/*
Theme Name: Greenline Landscape
Description: ثيم خاص بشركة جرين لاين لأعمال اللاندسكيب وتنسيق الحدائق – أخضر الأوراق والنجيلة، إطارات على شكل ورقة شجر وخطوط النجيلة المقصوصة.
Version: 1.0.2
Author: biz-sky
Text Domain: greenline-landscape
*/

:root {
	--forest: #163d27;
	--forest-2: #1f5233;
	--leaf: #2f7d3b;
	--lime: #8cc63f;
	--lime-d: #76ab2f;
	--cream: #f7f4ea;
	--sand: #ece5cf;
	--wood: #9a5f34;
	--ink: #1d2a20;
	--muted: #5b6a5e;
	--line: #e2e6d8;
	--radius: 18px;
	--lawn: repeating-linear-gradient(90deg, #2f7d3b 0 60px, #3a8c45 60px 120px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Tajawal", Tahoma, sans-serif; font-size: 17px; line-height: 1.85; color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-decoration: none; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 { font-family: "El Messiri", "Tajawal", serif; font-weight: 700; line-height: 1.35; margin: 0 0 .5em; color: var(--forest); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; margin: 0; clip: auto; clip-path: none; inset-inline-start: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 14px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.more { color: var(--leaf); font-weight: 700; font-size: 15px; }
.more::after { content: " ←"; }
[dir="ltr"] .more::after { content: " →"; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.6em; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.4; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.2em; font-size: 15px; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--forest); color: #fff; }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { background: #fff; color: var(--forest); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--forest); }

/* Top bar & header */
.topbar { background: var(--forest); color: #d8e7cf; font-size: 14px; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.topbar-note, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-note svg { color: var(--lime); }
.topbar-links { display: inline-flex; gap: 18px; align-items: center; }
.topbar a { color: #d8e7cf; }
.topbar a:hover { color: var(--lime); }

.site-header { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 4px 22px rgba(22,61,39,.08); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 80px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--forest); }
.brand:hover { color: var(--forest); }
.brand-logo img { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: "El Messiri", serif; font-size: 24px; color: var(--leaf); }
.brand-text span { font-size: 13px; color: var(--muted); }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--cream); color: var(--leaf); }
.main-nav .sub-menu { position: absolute; inset-inline-start: 0; top: 100%; background: #fff; border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.1); min-width: 220px; padding: 6px; display: none; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: var(--leaf); border: 0; border-radius: 12px; width: 46px; height: 46px; padding: 14px 12px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* Hero: full photo, soft green veil, wave bottom */
.hero { position: relative; color: #fff; background: linear-gradient(200deg, rgba(22,61,39,.25), rgba(22,61,39,.85) 70%), var(--hero, none) center / cover no-repeat, var(--forest); padding-block: 110px 150px; overflow: hidden; }
.hero-inner { position: relative; max-width: 1200px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 6px 18px; border-radius: 999px; font-weight: 700; margin-bottom: 22px; backdrop-filter: blur(4px); }
.hero-badge svg { color: var(--lime); }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 70px); line-height: 1.2; max-width: 760px; }
.hero h1 span { color: var(--lime); font-size: .55em; display: inline-block; margin-top: 8px; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); max-width: 640px; color: #eef5e8; margin-bottom: 30px; }
.hero-wave { position: absolute; bottom: -2px; inset-inline: 0; width: 100%; height: 92px; fill: #fff; stroke: none; }

/* Section heads */
.section { padding-block: 84px; }
.section-cream { background: var(--cream); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); }
.sec-head p { color: var(--muted); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--leaf); font-weight: 700; margin-bottom: 8px; }
.kicker svg { color: var(--lime); width: 20px; height: 20px; }

/* Services */
.services-sec { padding-top: 40px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px 26px 26px 90px; padding: 0 0 26px; color: var(--ink); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
[dir="rtl"] .service { border-radius: 26px 26px 90px 26px; }
.service:hover { color: var(--ink); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(22,61,39,.12); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover .service-img img { transform: scale(1.06); }
.service-icon { width: 60px; height: 60px; border-radius: 0 50% 50% 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; margin: -30px 24px 10px; position: relative; border: 4px solid #fff; }
[dir="rtl"] .service-icon { border-radius: 50% 0 50% 50%; }
.service-icon svg { width: 26px; height: 26px; }
.service h3, .service p, .service .more { padding-inline: 24px; }
.service h3 { font-size: 23px; margin-bottom: .2em; }
.service p { color: var(--muted); font-size: 15.5px; flex: 1; margin-bottom: 10px; }

/* About */
.about-sec { background: var(--cream); position: relative; }
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; min-height: 480px; }
.leaf-frame { position: absolute; overflow: hidden; box-shadow: 0 20px 40px rgba(22,61,39,.18); border: 6px solid #fff; }
.leaf-frame img { width: 100%; height: 100%; object-fit: cover; }
.leaf-1 { inset-inline-start: 0; top: 0; width: 72%; height: 78%; border-radius: 0 160px 0 160px; }
.leaf-2 { inset-inline-end: 0; bottom: 0; width: 52%; height: 52%; border-radius: 120px 0 120px 0; }
.about-text h2 { font-size: clamp(28px, 3.6vw, 40px); }
.about-text > p { color: var(--muted); }
.chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14.5px; color: var(--forest); }
.chips li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 0 50% 50% 50%; background: var(--lime); margin-inline-end: 7px; vertical-align: middle; }

/* Gallery on mowed-lawn stripes */
.gallery-sec { background: var(--forest); position: relative; overflow: hidden; }
.gallery-sec::before { content: ""; position: absolute; inset: 0; background: var(--lawn); opacity: .18; }
.gallery-sec .wrap { position: relative; }
.sec-head-light h2 { color: #fff; }
.sec-head-light .kicker { color: var(--lime); }
.works { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.work { overflow: hidden; border-radius: 16px; display: block; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.06); }
.work-1 { grid-column: span 2; grid-row: span 2; border-radius: 16px 16px 16px 90px; }
[dir="rtl"] .work-1 { border-radius: 16px 16px 90px 16px; }
.work-4 { grid-row: span 2; }

/* Estimate documents */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.doc { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.doc:hover { color: var(--ink); border-color: var(--lime); box-shadow: 0 14px 30px rgba(22,61,39,.1); }
.doc-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--cream); color: var(--leaf); display: grid; place-items: center; flex-shrink: 0; }
.doc-icon svg { width: 24px; height: 24px; }
.doc h3 { font-family: "Tajawal", sans-serif; font-size: 17px; line-height: 1.6; margin-bottom: 4px; }
.doc p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Contact band */
.contact-band { background: var(--leaf); background-image: linear-gradient(120deg, var(--leaf), var(--forest-2)); color: #fff; padding-block: 56px; position: relative; overflow: hidden; }
.contact-band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 10px; background: var(--lawn); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: center; }
.contact-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); }
.contact-band p { margin: 0; color: #e1efd8; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-cards a { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 14px 16px; color: #fff; height: 100%; }
.contact-cards a:hover { background: #fff; color: var(--forest); }
.contact-cards svg { width: 26px; height: 26px; color: var(--lime); }
.contact-cards span { display: flex; flex-direction: column; min-width: 0; }
.contact-cards small { font-size: 13px; opacity: .85; }
.contact-cards b { font-size: 15px; overflow-wrap: anywhere; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 22px; }
.card-meta { font-size: 13px; color: var(--leaf); }
.card h3 { font-family: "Tajawal", sans-serif; font-size: 17.5px; line-height: 1.6; margin: 4px 0 8px; }
.card h3 a { color: var(--forest); }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Inner pages */
.page-head { background: var(--forest); color: #fff; padding-block: 54px 64px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 12px; background: var(--lawn); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin: 0; max-width: 960px; }
.page-head .search-form { margin-top: 18px; }
.crumbs { font-size: 14px; color: var(--lime); margin-bottom: 6px; }
.crumbs a { color: var(--lime); }
.search-form { display: flex; gap: 8px; max-width: 460px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.search-submit { padding: 10px 20px; border: 0; border-radius: 999px; background: var(--lime); color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
.empty { text-align: center; display: grid; justify-items: center; gap: 12px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-block: 54px 76px; }
.entry { min-width: 0; }
.entry-featured img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.entry-content { font-size: 17.5px; overflow-wrap: anywhere; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.2em; }
.entry-content h1 { font-size: 30px; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 22px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content img { border-radius: 14px; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content table tbody, .entry-content table thead { display: table; width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; }
/* Estimate tables may have inline colours; only weight is added. */
.entry-content th, .entry-content tr:first-child td { font-weight: 700; }
.entry-content td[height] { height: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gallery-columns-1 .gallery-item img { aspect-ratio: auto; }
.gallery br { display: none; }
.wp-caption { max-width: 100%; }

.side-sticky { position: sticky; top: 110px; display: grid; gap: 22px; }
.box { background: var(--cream); border-radius: var(--radius); padding: 22px; }
.box h3 { font-size: 22px; }
.box-cta { background: var(--forest); color: #d8e7cf; position: relative; overflow: hidden; }
.box-cta h3 { color: #fff; }
.box-cta p { font-size: 15px; }
.box-leaf { position: absolute; inset-inline-end: -10px; top: -10px; color: rgba(140,198,63,.25); }
.box-leaf svg { width: 110px; height: 110px; }
.side-phone { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 700; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: flex; gap: 12px; align-items: center; color: var(--ink); font-size: 14.5px; line-height: 1.6; }
.side-list img { width: 62px; height: 62px; object-fit: cover; border-radius: 0 18px 0 18px; flex-shrink: 0; }
.pagination { margin-top: 34px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.pagination .current { background: var(--leaf); color: #fff; }

/* Footer */
.site-footer { background: #0f2c1c; color: #c3d3c3; font-size: 15.5px; position: relative; }
.footer-lawn { height: 14px; background: var(--lawn); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-logo img { height: 64px; width: auto; background: #fff; border-radius: 14px; padding: 4px 10px; margin-bottom: 16px; }
.site-footer h4 { color: var(--lime); font-size: 21px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #dfe9df; }
.site-footer a:hover { color: var(--lime); }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list svg { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }

/* Responsive */
@media (max-width: 1000px) {
	.nav-toggle { display: flex; }
	.main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.08); border-radius: 0 0 18px 18px; }
	.main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; padding: 8px 14px 14px; }
	.main-nav a { border-radius: 10px; }
	.main-nav .sub-menu { position: static; display: block; box-shadow: none; padding-inline-start: 14px; }
	.header-actions { margin-inline-start: auto; }
	.services, .cards { grid-template-columns: repeat(2, 1fr); }
	.works { grid-template-columns: repeat(3, 1fr); }
	.contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.about, .layout { grid-template-columns: 1fr; }
	.about-media { min-height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.side-sticky { position: static; }
	.contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.section { padding-block: 58px; }
	.header-row { min-height: 66px; gap: 10px; }
	.brand-logo img { height: 44px; }
	.brand-text strong { font-size: 19px; }
	.brand-text span { display: none; }
	.header-actions .btn span { display: none; }
	.header-actions .btn { padding: 0; width: 46px; height: 46px; }
	.topbar .topbar-note, .topbar .topbar-mail { display: none; }
	.topbar-row { justify-content: center; }
	.hero { padding-block: 70px 110px; }
	.services, .cards, .footer-grid { grid-template-columns: 1fr; }
	.works { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
	.work-4 { grid-row: span 1; }
	.about-media { min-height: 300px; }
	.docs { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.gallery-columns-1 { grid-template-columns: 1fr; }
}
