/* =========================================================
   Surooh Al-Majd — main stylesheet
   Brand: gold (from the mark) + steel grey + charcoal
   ========================================================= */

:root {
    --gold: #E9A825;
    --gold-light: #F8CF6A;
    --gold-soft: #FDF4DF;
    --gold-ink: #9A6A09;
    --steel: #8D979F;
    --steel-light: #C9CFD4;
    --ink: #16191D;
    --ink-2: #20252B;
    --ink-3: #2C323A;
    --text: #2A2F35;
    --muted: #646C74;
    --line: #E7E4DD;
    --bg: #FFFFFF;
    --bg-alt: #F7F6F2;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 2px rgba(22, 25, 29, .04), 0 8px 24px rgba(22, 25, 29, .06);
    --shadow-lg: 0 20px 50px rgba(22, 25, 29, .12);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;

    --font: 'Manrope', 'Tajawal', system-ui, sans-serif;
}

html[lang="ar"] { --font: 'Tajawal', 'Manrope', system-ui, sans-serif; }

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html[lang="en"] body { line-height: 1.65; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--ink); font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--ink);
    border-radius: 8px;
    font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }
.text-gold { color: var(--gold); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--ink); box-shadow: 0 8px 22px rgba(233, 168, 37, .32); }
.btn-gold:hover { box-shadow: 0 12px 28px rgba(233, 168, 37, .42); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--gold); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(22, 25, 29, .05); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-mark { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text strong { font-size: 1.2rem; color: var(--ink); font-weight: 800; }
.brand-text small {
    font-size: .7rem;
    color: var(--muted);
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a, .nav-cta { white-space: nowrap; }
.main-nav ul a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink-3);
    transition: color .2s, background .2s;
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--gold-ink); background: var(--gold-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    transition: border-color .2s;
}
.lang-switch:hover { border-color: var(--gold); }
html[lang="ar"] .lang-switch { font-family: 'Manrope', sans-serif; }
html[lang="en"] .lang-switch { font-family: 'Tajawal', sans-serif; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 10vw, 120px) 0 0;
    background:
        radial-gradient(900px 500px at 85% 0%, rgba(233, 168, 37, .16), transparent 60%),
        linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 70%);
    color: #E9ECEF;
}
[dir="rtl"] .hero { background:
        radial-gradient(900px 500px at 15% 0%, rgba(233, 168, 37, .16), transparent 60%),
        linear-gradient(200deg, var(--ink-2) 0%, var(--ink) 70%); }

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-skyline {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    width: min(62%, 760px);
    height: auto;
    color: rgba(201, 207, 212, .14);
}
[dir="rtl"] .hero-skyline { transform: scaleX(-1); }
.hero-tri { position: absolute; width: 0; height: 0; border-style: solid; }
.hero-tri-a {
    top: 0;
    inset-inline-end: 0;
    border-width: 0 0 140px 260px;
    border-color: transparent transparent rgba(233, 168, 37, .22) transparent;
}
[dir="rtl"] .hero-tri-a { border-width: 0 260px 140px 0; border-color: transparent transparent rgba(233, 168, 37, .22) transparent; }
.hero-tri-b {
    bottom: 0;
    inset-inline-start: 0;
    border-width: 110px 0 0 200px;
    border-color: transparent transparent transparent rgba(233, 168, 37, .18);
}
[dir="rtl"] .hero-tri-b { border-width: 110px 200px 0 0; border-color: transparent rgba(233, 168, 37, .18) transparent transparent; }

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 48px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5.4vw, 4rem);
    letter-spacing: -.01em;
    margin-bottom: 22px;
}
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 .text-gold { display: block; }
.hero-lead { max-width: 580px; font-size: 1.15rem; color: #BFC5CB; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero photo collage */
.hero-collage {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 460px;
}
.hc { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.hc img { width: 100%; height: 100%; object-fit: cover; }
.hc-main { grid-row: 1 / 3; }
.hc-top { margin-top: 36px; }
.hc-bottom { margin-bottom: 36px; }
.hero-badge {
    position: absolute;
    bottom: 22px;
    inset-inline-start: -26px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--ink);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
}
.hero-badge strong { font-family: 'Manrope', sans-serif; font-size: 2rem; line-height: 1; }
.hero-badge span { font-weight: 700; font-size: .9rem; line-height: 1.3; max-width: 90px; }

.stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: clamp(56px, 8vw, 96px);
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.stats > div { padding: 28px 20px 36px; border-inline-start: 1px solid rgba(255, 255, 255, .08); }
.stats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats dd {
    order: -1;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
}
.stats > div { display: flex; flex-direction: column; gap: 6px; }
.stats dt { color: #A9B0B7; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p:not(.eyebrow) { color: var(--muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.eyebrow-light { color: var(--gold-light); }

.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--ink-3); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-grid p:not(.eyebrow):not(.lead) { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.pillars li {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.pillars li:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.pillar-num { display: block; margin-bottom: 10px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--gold); }
.pillars h3 { font-size: 1.08rem; margin-bottom: 4px; }
.pillars p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

.about-photo { position: relative; margin: 0; padding-bottom: 60px; padding-inline-start: 0; }
.about-photo > img:first-child {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-photo-sm {
    position: absolute;
    bottom: 0;
    inset-inline-start: -32px;
    width: 46%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 6px solid #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-photo figcaption {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    max-width: 70%;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(22, 25, 29, .78);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
    position: relative;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    transform: scaleX(0);
    transform-origin: var(--origin, left);
    transition: transform .35s;
}
[dir="rtl"] .service-card::after { --origin: right; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--gold-soft);
    color: var(--gold-ink);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .98rem; }

/* Solar */
.section-dark { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: #C9CED3; }
.section-dark .section-title { color: #fff; }
.solar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.solar-sub { font-size: 1.15rem; color: #A9B0B7; }
.solar-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.solar-kpis div {
    padding: 22px 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .03);
}
.solar-kpis strong { display: block; font-family: 'Manrope', sans-serif; font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: 8px; }
.solar-kpis span { font-size: .9rem; line-height: 1.5; display: block; }
.solar-card {
    position: relative;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-lg);
}
.badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 800;
    font-size: .9rem;
}
.check-list { display: grid; gap: 14px; }
.check-list li, .private-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon, .private-list .icon {
    width: 24px;
    height: 24px;
    padding: 4px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-ink);
    stroke-width: 2.5;
}

.solar-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-top: 56px; }
.solar-photos figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); height: 340px; }
.solar-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.solar-photos figure:hover img { transform: scale(1.04); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink-3);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--gold); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--gold); }

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 14px;
}
.g-big { grid-column: span 2; grid-row: span 2; }
.g-item[hidden] { display: none; }
.gallery .g-open { height: 100%; }
.gallery .g-open img { height: 100%; object-fit: cover; }
.g-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    cursor: zoom-in;
}
.g-open img { width: 100%; height: auto; transition: transform .5s ease; }
.g-open:hover img, .g-open:focus-visible img { transform: scale(1.05); }
.g-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 34px 14px 12px;
    background: linear-gradient(transparent, rgba(22, 25, 29, .85));
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: start;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
}
.g-open:hover .g-caption, .g-open:focus-visible .g-caption { opacity: 1; transform: none; }
@media (hover: none) { .g-caption { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(10, 12, 14, .94);
    color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: rgba(10, 12, 14, .9); }
.lightbox figure { grid-column: 2; margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 10px; image-rendering: auto; }
.lightbox figcaption { font-weight: 600; text-align: center; color: #D5DADF; }
.lb-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { position: absolute; top: 18px; inset-inline-end: 18px; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.icon-back { transform: scaleX(-1); }
[dir="rtl"] .icon-back { transform: none; }
[dir="rtl"] .icon-fwd { transform: scaleX(-1); }

/* Timeline */
.timeline { display: grid; gap: 0; }
.tl-year { display: grid; grid-template-columns: 140px 1fr; gap: 28px; position: relative; padding-bottom: 36px; }
.tl-year::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 0;
    inset-inline-start: 56px;
    width: 2px;
    background: var(--line);
}
.tl-year:last-child::before { display: none; }
.timeline.is-collapsed .tl-year:nth-last-child(1 of :not(.tl-extra))::before { display: none; }
.tl-label span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--gold);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
}
.tl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tl-card {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--gold);
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.tl-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tl-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; line-height: 1.5; }
.tl-card p { font-size: .9rem; color: var(--muted); }
.timeline.is-collapsed .tl-extra { display: none; }
#timeline-toggle .icon { transition: transform .25s; width: 18px; height: 18px; }
#timeline-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.private-block {
    margin-top: 72px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    border: 1px solid var(--line);
}
.private-block { background: #fff; }
.private-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.private-photos .g-open { height: 190px; }
.private-photos img { height: 100%; object-fit: cover; }
.block-title { font-size: 1.45rem; margin-bottom: 26px; }
.private-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.private-list span { color: var(--ink-3); }

/* Certificates */
.certs-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.certs-grid > div > p:not(.eyebrow) { color: var(--muted); }
.cert-cards { display: grid; gap: 18px; }
.cert-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: start;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.cert-thumb { border-radius: 10px; border: 1px solid var(--line); }
.cert-thumb img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.cert-top { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.cert-top h3 { font-family: 'Manrope', sans-serif; font-size: 1.35rem; text-align: start; }
[dir="rtl"] .cert-top h3 { text-align: right; }
.cert-top p { color: var(--muted); font-weight: 600; }
.cert-scope { font-size: .95rem; color: var(--ink-3); }
.cert-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.cert-meta dt { font-size: .8rem; color: var(--muted); }
.cert-meta dd { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--ink); }

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.partners-grid li {
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--steel);
    text-align: center;
    transition: color .2s, background .2s;
}
.partners-grid li:hover { color: var(--ink); background: var(--gold-soft); }

/* Vision */
.vision {
    position: relative;
    padding: clamp(72px, 10vw, 110px) 0;
    background:
        linear-gradient(135deg, rgba(22, 25, 29, .9), rgba(32, 37, 43, .78)),
        var(--vision-img, none) center / cover no-repeat,
        var(--ink);
    color: #C9CED3;
    overflow: hidden;
}
.vision::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 6px;
    background: linear-gradient(var(--gold-light), var(--gold));
}
.vision-inner { max-width: 860px; text-align: center; }
.vision-inner .eyebrow { justify-content: center; }
.vision h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.vision p:not(.eyebrow) { font-size: 1.1rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-grid > div > p:not(.eyebrow) { color: var(--muted); }
.contact-list { display: grid; gap: 22px; margin-top: 34px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a, .contact-list span { display: block; font-weight: 700; color: var(--ink); }
[dir="rtl"] .contact-list a[dir="ltr"] { text-align: right; }
.contact-list a:hover { color: var(--gold-ink); }

.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink-3); }
.field input, .field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 168, 37, .15); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.alert-ok { background: #E8F6EC; color: #1F6B35; }
.alert-err { background: #FDECEC; color: #9B2C2C; }

.map { margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 360px; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A9B0B7; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr; gap: 36px; align-items: start; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { display: block; color: #fff; font-size: 1.2rem; }
.footer-brand small { font-size: .78rem; line-height: 1.5; display: block; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 24px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: 8px; justify-items: end; }
[dir="rtl"] .footer-contact { justify-items: start; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); }
.to-top:hover { border-color: var(--gold); color: var(--gold); }
.to-top .icon { width: 18px; height: 18px; }

.whatsapp-fab {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
    transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.07); }
.whatsapp-fab .icon { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
    .brand-text small { display: none; }
    .main-nav { gap: 12px; }
    .main-nav ul a { padding: 8px 9px; }
}

@media (max-width: 1140px) {
    .main-nav ul a { padding: 8px 6px; font-size: .88rem; }
    .nav-cta { display: none; }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px var(--gutter) 28px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav-cta { display: inline-flex; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav ul a { padding: 12px 14px; font-size: 1rem; }
    .header-actions { margin-inline-start: auto; }

    .hero-inner, .about-grid, .solar-grid, .certs-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-collage { height: 380px; }
    .hero-badge { inset-inline-start: 14px; bottom: 14px; }
    .about-photo { max-width: 560px; }
    .about-photo-sm { inset-inline-start: 14px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
    .stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-contact, [dir="rtl"] .footer-contact { justify-items: start; }
}

@media (max-width: 640px) {
    :root { --header-h: 66px; }
    body { font-size: 1rem; }
    .logo-mark { width: 40px; height: 40px; }
    .services-grid, .private-list, .field-row { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .solar-kpis { grid-template-columns: 1fr; }
    .tl-year { grid-template-columns: 1fr; gap: 14px; padding-inline-start: 0; }
    .tl-year::before { display: none; }
    .tl-items { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, auto); }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-collage { height: 300px; gap: 10px; }
    .hc-top { margin-top: 20px; }
    .hc-bottom { margin-bottom: 20px; }
    .pillars { grid-template-columns: 1fr; }
    .solar-photos { grid-template-columns: 1fr; }
    .solar-photos figure { height: 230px; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
    .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
    .filter { white-space: nowrap; }
    .private-photos .g-open { height: 110px; }
    .cert-card { grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; }
    .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 16px; }
    .lightbox figure { grid-column: 1 / 3; grid-row: 1; }
    .lb-prev, .lb-next { grid-row: 2; }
    .lb-prev { grid-column: 1; }
    .lb-next { grid-column: 2; }
    .stats > div { padding: 22px 14px 26px; }
}
