/* ==========================================================================
   SKLD Group — main stylesheet
   Palette taken from the logo (forest → leaf green on warm off-white).
   Light mode only. Logical properties (inline/block) keep RTL (Arabic) correct.
   ========================================================================== */

:root {
    color-scheme: light only;

    --green-950: #12221A;
    --green-900: #17291D;
    --green-800: #1F3A28;
    --green-700: #2C4A31;
    --green-600: #3F6A35;
    --green-500: #5E8A42;
    --green-400: #86A853;
    --green-300: #A9C566;
    --green-100: #E4ECD3;
    --green-50:  #F0F4E6;

    --bg:      #F6F5F0;
    --surface: #FFFFFF;
    --tint:    #EEF1E6;
    --ink:     #17291D;
    --ink-2:   #3B4A3F;
    --muted:   #66736A;
    --line:    #DDE2D4;
    --wa:      #25D366;

    --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    --container: 1400px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 10vw, 128px);
    --header-h: 76px;
    --radius: 3px;
    --shadow: 0 1px 2px rgba(23, 41, 29, .04), 0 12px 32px -12px rgba(23, 41, 29, .16);
    --shadow-lg: 0 30px 60px -20px rgba(23, 41, 29, .28);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

[dir="rtl"] {
    --font-body: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
    --font-display: "Amiri", "Noto Kufi Arabic", serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: clamp(15px, 1vw + 11px, 17px);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.85; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--green-800);
    color: #fff;
    border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }

/* ---------- Typography ---------- */
.h1, .h2, .hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.01em;
}
.h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.h4 { font-size: 1.1rem; font-weight: 500; }
.h1 em, .h2 em, .hero-title em {
    font-style: normal;
    color: var(--green-500);
}
[dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .hero-title { line-height: 1.35; letter-spacing: 0; }

.lead { font-size: 1.08em; color: var(--muted); max-width: 60ch; }

.eyebrow {
    display: block;
    margin-bottom: 22px;
    color: var(--green-500);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .36em;
    text-transform: uppercase;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .85rem; }
.eyebrow-light { color: var(--green-300); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
    white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
[dir="rtl"] .btn .icon:last-child, [dir="rtl"] .link-arrow .icon { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .icon:last-child { transform: scaleX(-1) translateX(3px); }

.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-100); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-900); border-color: #fff; }
.btn-whatsapp { background: var(--wa); color: #0B3D20; }
.btn-whatsapp:hover { background: #1EBE5A; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-700);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .03em;
}
.link-arrow::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(.3);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
[dir="rtl"] .link-arrow::after { transform-origin: right; }
.link-arrow:hover::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: rgba(246, 245, 240, .86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(23, 41, 29, .4);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 52px; height: auto; }
.logo-word {
    font-family: "Jost", sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: .22em;
    color: var(--green-900);
    white-space: nowrap;
    direction: ltr;
}
.logo-word b {
    font-weight: 500;
    background: linear-gradient(90deg, var(--green-600), var(--green-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.main-nav a {
    position: relative;
    padding-block: 8px;
    color: var(--ink-2);
    font-size: .76rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .2s;
}
[dir="rtl"] .main-nav a { font-size: .92rem; letter-spacing: 0; }
.header-cta { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
[dir="rtl"] .header-cta { font-size: .85rem; letter-spacing: 0; }
.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--green-600);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--green-700); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding-inline: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink-2);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
}
.lang-btn:hover { border-color: var(--green-500); }
.lang-btn .icon-sm { width: 14px; height: 14px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .icon-sm { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 2px;
    font-size: .9rem;
}
.lang-menu a:hover { background: var(--tint); }
.lang-menu a[aria-current] { color: var(--green-600); font-weight: 500; }

.menu-toggle, .menu-close {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

/* Mobile nav panel */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 16px var(--gutter) max(24px, env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    animation: panel-in .35s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-top .menu-close { display: grid; }
.mobile-nav nav { flex: 1; }
.mobile-nav nav li {
    border-bottom: 1px solid var(--line);
    animation: item-in .5s var(--ease) both;
    animation-delay: calc(var(--i) * 50ms + 80ms);
}
.mobile-nav nav a {
    display: block;
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--ink);
}
.mobile-nav nav a[aria-current] { color: var(--green-600); font-style: italic; }
[dir="rtl"] .mobile-nav nav a[aria-current] { font-style: normal; }
.mobile-nav-langs { display: flex; gap: 8px; }
.mobile-nav-langs a {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    font-size: .9rem;
}
.mobile-nav-langs a[aria-current] { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }
@keyframes panel-in { from { opacity: 0; } }
@keyframes item-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Responsive images ---------- */
.pic {
    display: block;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--green-100);
}
.pic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--header-h) + 60px) clamp(120px, 14vh, 170px);
    color: #fff;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-bg img { animation: hero-zoom 14s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.08); } }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 34, 26, .30) 0%, rgba(18, 34, 26, .15) 35%, rgba(18, 34, 26, .82) 100%),
        linear-gradient(90deg, rgba(18, 34, 26, .55) 0%, rgba(18, 34, 26, 0) 70%);
}
[dir="rtl"] .hero::before {
    background:
        linear-gradient(180deg, rgba(18, 34, 26, .30) 0%, rgba(18, 34, 26, .15) 35%, rgba(18, 34, 26, .82) 100%),
        linear-gradient(270deg, rgba(18, 34, 26, .55) 0%, rgba(18, 34, 26, 0) 70%);
}
.hero-content { animation: rise 1s .15s var(--ease) both; }
.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 40px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
[dir="rtl"] .hero-location { letter-spacing: 0; }
.hero-location .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-300);
    box-shadow: 0 0 0 4px rgba(169, 197, 102, .25);
}
.hero-title {
    max-width: 13em;
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(2.6rem, 6.4vw, 5.2rem);
}
.hero-title em { display: block; color: var(--green-300); }
.hero-subtitle { max-width: 52ch; margin-bottom: 34px; color: rgba(255, 255, 255, .86); font-size: 1.1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll {
    position: absolute;
    inset-inline-end: var(--gutter);
    bottom: clamp(110px, 13vh, 160px);
    display: grid;
    place-items: center;
    width: 30px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
}
.hero-scroll span {
    width: 3px;
    height: 9px;
    border-radius: 2px;
    background: #fff;
    animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { transform: translateY(-8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -72px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: clamp(22px, 3vw, 38px) clamp(16px, 2.6vw, 36px);
    border-inline-start: 1px solid var(--line);
}
.stat:first-child { border-inline-start: 0; }
.stat strong {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1;
    color: var(--green-700);
    direction: ltr;
    text-align: start;
}
[dir="rtl"] .stat strong { text-align: end; }
.stat > span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--green-900); color: rgba(255, 255, 255, .78); }
.section-dark .h2 { color: #fff; }
.section-dark .h2 em { color: var(--green-300); }
.section-dark .eyebrow { color: var(--green-300); }

.section-head { margin-bottom: clamp(40px, 5.5vw, 76px); }
.section-head .h2 { max-width: none; }
.section-head .lead { margin-top: 18px; margin-bottom: 0; }
.section-head.is-center { text-align: center; }
.section-head.is-center .h2, .section-head.is-center .lead { margin-inline: auto; }
.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(36px, 5vw, 60px);
}
.section-top .section-head { margin-bottom: 0; }
.section-top > .link-arrow, .section-top > .btn { flex: none; margin-bottom: 8px; }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.service-card {
    position: relative;
    padding: clamp(30px, 3vw, 40px) clamp(26px, 3vw, 40px) clamp(34px, 3.4vw, 44px);
    background: var(--bg);
    transition: background-color .35s var(--ease);
}
.service-card:hover { background: var(--surface); }
.card-icon {
    width: 34px;
    height: 34px;
    margin-bottom: clamp(36px, 4vw, 50px);
    color: var(--green-500);
    stroke-width: 1.25;
}
.card-title {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.1vw, 1.9rem);
    font-weight: 500;
    line-height: 1.2;
}
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:focus-visible { outline: none; }
.service-card:focus-within { outline: 2px solid var(--green-500); outline-offset: -2px; }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.service-num {
    position: absolute;
    inset-inline-end: clamp(20px, 2.5vw, 36px);
    top: clamp(20px, 2.5vw, 34px);
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--green-400);
}
.service-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
    transition: background-color .35s, color .35s;
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--green-700); color: #fff; }
.stretched { position: absolute; inset: 0; }

/* ---------- Projects ---------- */
.project-card { position: relative; margin: 0; }
.project-link {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
}
.project-link .pic { height: 100%; }
.project-link img { transition: transform 1s var(--ease); }
.project-card:hover .project-link img { transform: scale(1.05); }
.project-tag {
    position: absolute;
    inset-inline-start: 14px;
    top: 14px;
    padding: 5px 11px;
    border-radius: 30px;
    background: rgba(246, 245, 240, .92);
    color: var(--green-800);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}
[dir="rtl"] .project-tag { letter-spacing: 0; }
.project-card figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; }
.project-card figcaption strong { color: var(--ink); font-weight: 500; }
.project-card figcaption em { color: var(--muted); font-family: var(--font-display); font-size: 1.08rem; }
[dir="rtl"] .project-card figcaption em { font-style: normal; font-family: var(--font-body); font-size: .9rem; }

/* Home mosaic: captions sit on the images */
.projects-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(220px, 23vw, 320px);
    gap: clamp(12px, 1.6vw, 20px);
}
.projects-mosaic .project-card:first-child { grid-column: span 2; grid-row: span 2; }
.projects-mosaic figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 50px 20px 18px;
    background: linear-gradient(0deg, rgba(18, 34, 26, .85), rgba(18, 34, 26, 0));
    border-radius: 0 0 var(--radius) var(--radius);
    pointer-events: none;
}
.projects-mosaic figcaption strong { color: #fff; }
.projects-mosaic figcaption em { color: rgba(255, 255, 255, .8); }
.projects-mosaic .project-card:first-child figcaption strong { font-size: 1.2rem; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
}
.projects-grid .project-link { aspect-ratio: 4 / 3; height: auto; }

/* Full portfolio page: masonry with natural ratios */
.projects-masonry { display: block; columns: 3; column-gap: clamp(20px, 2.4vw, 32px); }
.projects-masonry .project-card { break-inside: avoid; margin-bottom: clamp(24px, 2.6vw, 36px); }
.projects-masonry .project-link { aspect-ratio: auto; }
.projects-masonry .project-card.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: transparent;
    font-size: .88rem;
    cursor: pointer;
    transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--green-500); color: var(--green-700); }
.chip[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- Videos ---------- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.6vw, 20px);
}
.video-card { margin: 0; }
.video-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--green-900);
    cursor: pointer;
}
.video-link video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.video-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(18, 34, 26, .45), rgba(18, 34, 26, 0) 45%);
    transition: background-color .35s;
}
.video-card:hover video { transform: scale(1.04); }
.video-card:hover .video-link::after { background-color: rgba(18, 34, 26, .2); }
.video-play {
    position: absolute;
    inset-inline-start: 16px;
    bottom: 16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(246, 245, 240, .92);
    color: var(--green-800);
    transition: transform .3s var(--ease), background-color .3s;
}
.video-play .icon { width: 18px; height: 18px; margin-inline-start: 2px; }
.video-card:hover .video-play { transform: scale(1.1); background: #fff; }
.video-card figcaption { padding-top: 12px; color: var(--ink); font-weight: 500; }

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.steps { display: grid; gap: 4px; counter-reset: step; }
.step {
    display: flex;
    gap: 22px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
    flex: none;
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--green-500);
    width: 44px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.duo { position: relative; padding-bottom: 70px; padding-inline-start: 50px; }
.duo figure { margin: 0; position: relative; }
.duo-main .pic { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.duo-inset {
    position: absolute !important;
    inset-inline-start: 0;
    bottom: 0;
    width: 48%;
    border: 8px solid var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.duo-inset .pic { aspect-ratio: 1; }
.duo-label {
    position: absolute;
    inset-inline-start: 14px;
    top: 14px;
    padding: 6px 12px;
    border-radius: 30px;
    background: var(--green-800);
    color: #fff;
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.duo-inset .duo-label { background: #fff; color: var(--green-800); }
[dir="rtl"] .duo-label { letter-spacing: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 28px);
}
.testimonial {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: clamp(28px, 3vw, 40px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .03);
    transition: background-color .3s, border-color .3s;
}
.testimonial:hover { background: rgba(255, 255, 255, .06); border-color: rgba(169, 197, 102, .4); }
.quote-icon { width: 34px; height: 34px; color: var(--green-300); margin-bottom: 18px; }
.testimonial blockquote {
    flex: 1;
    margin: 0 0 26px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.32rem;
    line-height: 1.45;
}
[dir="rtl"] .testimonial blockquote { font-size: 1.15rem; line-height: 1.9; }
.testimonial figcaption { display: flex; flex-direction: column; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.testimonial figcaption strong { color: #fff; font-weight: 500; }
.testimonial figcaption span { font-size: .88rem; color: var(--green-300); }

/* ---------- Instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.insta-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.insta-item .pic { height: 100%; }
.insta-item img { transition: transform .8s var(--ease); }
.insta-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(31, 58, 40, .55);
    color: #fff;
    opacity: 0;
    transition: opacity .35s;
}
.insta-overlay .icon { width: 30px; height: 30px; }
.insta-item:hover .insta-overlay { opacity: 1; }
.insta-item:hover img { transform: scale(1.08); }

/* ---------- Contact ---------- */
.contact { background: var(--tint); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}
.contact-list { display: grid; gap: 20px; margin: 10px 0 34px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.contact-list a, .contact-list span:not(.contact-icon) { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--green-600); }
.contact-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--green-700);
}

.quote-form {
    display: grid;
    gap: 18px;
    padding: clamp(24px, 3.4vw, 44px);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .85rem; font-weight: 500; color: var(--ink); }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 16px; /* prevents iOS zoom */
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F6A35' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 14px center;
    padding-inline-end: 42px;
}
[dir="rtl"] .field select { background-position: left 14px center; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green-500);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(94, 138, 66, .14);
}
.field input:user-invalid, .field select:user-invalid { border-color: #B4533C; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }
.form-note .icon { color: var(--green-500); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(380px, 60vh, 560px);
    padding-block: calc(var(--header-h) + 40px) clamp(48px, 7vw, 80px);
    color: #fff;
    isolation: isolate;
}
.banner-bg { position: absolute; inset: 0; z-index: -2; }
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(18, 34, 26, .25), rgba(18, 34, 26, .82));
}
.banner-content { animation: rise .9s var(--ease) both; }
.page-banner .h1 { max-width: 20ch; color: #fff; }
.banner-lead { max-width: 58ch; margin: 18px 0 0; color: rgba(255, 255, 255, .85); font-size: 1.05em; }
.page-banner-404 .btn { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; font-size: .82rem; color: rgba(255, 255, 255, .7); letter-spacing: .06em; }
.crumbs a:hover { color: #fff; }

/* ---------- Services page ---------- */
.service-list { display: grid; gap: clamp(64px, 9vw, 120px); }
.service-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 6vw, 90px);
    align-items: center;
}
.service-row.is-reverse .service-row-media { order: 2; }
.service-row-media { display: block; overflow: hidden; border-radius: var(--radius); }
.service-row-media .pic { aspect-ratio: 5 / 4; }
.service-row-media img { transition: transform 1s var(--ease); }
.service-row-media:hover img { transform: scale(1.04); }
.service-row-body { position: relative; }
.service-row-body .service-num { position: static; display: block; margin-bottom: 10px; font-size: 1.4rem; }
.service-row-body .h2 { margin-bottom: 16px; }
.service-row-body .btn { margin-top: 10px; }

.check-list { display: grid; gap: 10px; margin: 22px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .icon {
    margin-top: 3px;
    padding: 3px;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-700);
}
.check-list-lg { grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-block: 24px 36px; }

/* Service detail */
.service-detail {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}
.service-icon-lg { width: 72px; height: 72px; margin-bottom: 24px; }
.service-icon-lg .icon { width: 32px; height: 32px; }
.service-detail-body .lead { font-size: 1.2em; color: var(--ink-2); margin-bottom: 40px; }
.service-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    padding: 28px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.aside-title { margin-bottom: 14px; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--green-600); }
[dir="rtl"] .aside-title { letter-spacing: 0; font-size: .9rem; }
.aside-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: .95rem;
    transition: color .2s, padding .25s var(--ease);
}
.aside-links a span { flex: 1; }
.aside-links a .icon { color: var(--green-500); }
.aside-links .arrow { opacity: 0; transition: opacity .2s; }
[dir="rtl"] .aside-links .arrow { transform: scaleX(-1); }
.aside-links a:hover { color: var(--green-700); padding-inline-start: 6px; }
.aside-links a:hover .arrow { opacity: 1; }

/* ---------- Cities ---------- */
.cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.city-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    isolation: isolate;
}
.city-card .pic { position: absolute; inset: 0; z-index: -2; height: 100%; }
.city-card img { transition: transform 1s var(--ease); }
.city-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(18, 34, 26, 0) 35%, rgba(18, 34, 26, .85));
    transition: background-color .4s;
}
.city-card:hover img { transform: scale(1.06); }
.city-card:hover::before { background-color: rgba(31, 58, 40, .25); }
.city-body { position: absolute; inset: auto 24px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.city-name { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.city-card .link-arrow { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 8vw, 96px);
    background:
        radial-gradient(circle at 85% 20%, rgba(169, 197, 102, .28), transparent 45%),
        linear-gradient(120deg, var(--green-900), var(--green-700));
    color: rgba(255, 255, 255, .82);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band .h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 88px); background: var(--green-50); border-top: 1px solid var(--line); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(32px, 4vw, 56px);
    padding-bottom: 48px;
}
.footer-brand .logo-mark { width: 64px; }
.footer-brand p { margin: 18px 0 22px; max-width: 32ch; color: var(--muted); font-family: var(--font-display); font-size: 1.2rem; font-style: italic; }
[dir="rtl"] .footer-brand p { font-style: normal; font-size: 1.05rem; }
.socials { display: flex; gap: 10px; }
.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--green-700);
    transition: all .25s;
}
.socials a:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.socials .icon { width: 19px; height: 19px; }
.footer-title { margin-bottom: 18px; color: var(--ink); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
[dir="rtl"] .footer-title { letter-spacing: 0; font-size: .95rem; }
.footer-links { display: grid; gap: 11px; font-size: .93rem; }
.footer-links a, .footer-links span { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--green-600); }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.footer-contact .icon { color: var(--green-500); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top:hover { color: var(--green-600); }

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed;
    inset-inline-end: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 90;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .65);
    transition: transform .25s var(--ease);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--wa);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 16px;
    background: rgba(12, 22, 16, .94);
    animation: panel-in .25s ease;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1400px, 100%); text-align: center; }
.lb-figure img { max-height: calc(100svh - 160px); width: auto; margin-inline: auto; border-radius: var(--radius); }
.lb-figure video {
    display: block;
    max-width: 100%;
    max-height: calc(100svh - 160px);
    margin-inline: auto;
    border-radius: var(--radius);
    background: #000;
}
.lb-figure [hidden] { display: none; }
.lb-figure figcaption { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.lb-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { inset-inline-start: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb-next { inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lb-prev { transform: translateY(-50%); }
[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
    .main-nav, .header-cta { display: none; }
    .menu-toggle { display: grid; }
}

@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    :root { --header-h: 68px; }
    .logo-mark { width: 44px; }
    .services-grid, .testimonials-grid, .projects-grid, .cities-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-masonry { columns: 2; }
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
    .projects-mosaic .project-card:first-child { grid-column: span 2; grid-row: span 1; }
    .process-grid, .contact-grid, .service-detail { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; }
    .service-row.is-reverse .service-row-media { order: 0; }
    .service-aside { position: static; }
    .duo { max-width: 560px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-inline-start: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .testimonials-grid .testimonial:last-child { grid-column: span 2; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .section-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .logo-word { font-size: .92rem; letter-spacing: .18em; }
    .lang-btn .icon:first-child { display: none; }
    .hero { padding-bottom: 130px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-scroll { display: none; }
    .stats { margin-top: -60px; }
    .services-grid, .testimonials-grid, .projects-grid, .cities-grid { grid-template-columns: 1fr; }
    .testimonials-grid .testimonial:last-child { grid-column: auto; }
    .projects-masonry { columns: 1; }
    .videos-grid { gap: 8px; }
    .video-play { width: 38px; height: 38px; inset-inline-start: 10px; bottom: 10px; }
    .projects-mosaic { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .projects-mosaic .project-card:first-child { grid-column: auto; grid-row: span 1; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .field-row, .check-list-lg { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .duo { padding-inline-start: 24px; padding-bottom: 50px; }
    .cta-actions, .cta-actions .btn, .btn-group .btn { width: 100%; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .chip { flex: none; }
    .wa-float { width: 52px; height: 52px; }
}
