/* =====================================================================
   971 INSTITUTE — Core Stylesheet
   LIGHT canvas (off-white) · deep-green text · GREEN cards
   Header / Footer / Hero / feature bands stay deep green.
   Fonts: ae_Sindibad (EN) · GE Dinar Two (AR)
   ===================================================================== */

/* ---------- FONTS ---------- */
@font-face { font-family: 'Sindibad'; src: url('../fonts/ae_Sindibad.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'GE Dinar Two'; src: url('../fonts/GE-Dinar-Two-Medium.otf') format('opentype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'GE Dinar Two'; src: url('../fonts/GE-Dinar-Two-Bold.otf') format('opentype'); font-weight: 600 800; font-display: swap; }

/* ---------- DESIGN TOKENS ---------- */
:root {
    /* brand */
    --green:        #062c1c;      /* deep footer green (also used for green text) */
    --green-deep:   #0a5234;
    --green-darker: #062c1c;
    --gold:         #B6892F;      /* accent on light backgrounds */
    --gold-bright:  #d8b25f;      /* accent on green backgrounds */
    --gold-tint:    rgba(182,137,47,0.12);
    --cream:        #EFE6E0;
    --ink:          #262626;
    --white:        #ffffff;

    /* semantic — LIGHT canvas (white) */
    --bg:        #ffffff;         /* white main */
    --bg-alt:    #ffffff;         /* white alternating sections */
    --bg-deep:   #062c1c;         /* deep green feature bands (stats/footer/header) */

    --surface:    #0C5F3C;        /* GREEN cards (deep) */
    --surface-2:  #0a5234;        /* green card variant */

    --text:      #062c1c;         /* deep footer-green text on light */
    --text-soft: #325b48;         /* softer green body */
    --text-faint:#6f7d74;
    --heading:   #062c1c;

    /* text on green cards / bands */
    --on-green:      #eef3ec;
    --on-green-soft: #c5d6cc;
    --on-green-head: #ffffff;

    --border:      #e2ddd1;       /* light border */
    --border-soft: #ece8df;
    --border-green: rgba(255,255,255,0.13);

    /* type */
    --font-en: 'Sindibad', Georgia, 'Times New Roman', serif;
    --font-ar: 'GE Dinar Two', 'Segoe UI', Tahoma, sans-serif;
    --font:    var(--font-en);

    /* scale — restrained, standard/government-style sizing (body ~16px, hero ~42px) */
    --step--1: clamp(0.78rem, 0.75rem + 0.12vw, 0.83rem);
    --step-0:  clamp(0.94rem, 0.92rem + 0.1vw, 1rem);
    --step-1:  clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
    --step-2:  clamp(1.3rem, 1.15rem + 0.55vw, 1.55rem);
    --step-3:  clamp(1.55rem, 1.3rem + 1vw, 2rem);
    --step-4:  clamp(1.85rem, 1.45rem + 1.7vw, 2.6rem);

    /* spacing */
    --space-section: clamp(2.75rem, 2.2rem + 3.4vw, 5.25rem);
    --container: 1200px;
    --gutter: clamp(1.1rem, 0.6rem + 2vw, 2.5rem);

    /* radius */
    --r-sm: 8px; --r: 16px; --r-lg: 24px; --r-pill: 999px;

    /* shadow */
    --shadow-sm: 0 2px 10px rgba(12,95,60,0.06);
    --shadow:    0 18px 44px -18px rgba(12,95,60,0.28);
    --shadow-lg: 0 34px 80px -28px rgba(6,44,28,0.4);

    /* motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (max-width: 900px) { html { scroll-padding-top: 76px; } }

body {
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    max-width: 100%;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; color: var(--heading); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- HELPERS ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.55em; font-size: var(--step--1); font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: #8a6a24; margin-bottom: 0.9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: #8a6a24; display: inline-block; }
.eyebrow-light { color: var(--gold-bright); }
.eyebrow-light::before { background: var(--gold-bright); }

.section-title { font-size: var(--step-3); color: var(--heading); letter-spacing: -0.01em; }
.section-title-light { color: var(--white); }

.lead { font-size: var(--step-1); color: var(--text-soft); line-height: 1.6; margin-block: 1rem; }
.lead-light { color: var(--on-green-soft); }

.section { padding-block: var(--space-section); }
.section p { margin-block: 0.9rem; }
/* default body-paragraph colour scoped to the About intro only, so it never
   overrides component text rules (card text, eyebrows, leads) by specificity */
.about-intro > p:not(.lead) { color: var(--text-soft); }

.section-head { max-width: 760px; margin-bottom: clamp(1.5rem, 3vw, 2.6rem); }
.section-intro { font-size: var(--step-1); color: var(--text-soft); }

.placeholder-note { font-size: var(--step--1); color: var(--text-faint); font-style: italic; margin-top: 0.6rem; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 0.5em;
    padding: 0.9em 1.6em; border-radius: var(--r-pill); font-weight: 600; font-size: var(--step-0);
    letter-spacing: 0.01em; line-height: 1.15; min-height: 50px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
    will-change: transform; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { padding: 0.7em 1.3em; min-height: 42px; font-size: var(--step--1); }
.btn-block { width: 100%; }
/* consistent, uniform CTA width across the site */
.btn:not(.btn-sm):not(.btn-block) { min-width: 230px; }

/* gold primary works on both light and green backgrounds */
.btn-primary { background: var(--gold); color: #06301e; box-shadow: 0 12px 26px -14px rgba(182,137,47,0.8); }
.btn-primary:hover { background: #c79a3c; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(182,137,47,0.85); }
.btn-gold { background: var(--gold); color: #06301e; box-shadow: 0 12px 26px -14px rgba(182,137,47,0.8); }
.btn-gold:hover { background: #c79a3c; transform: translateY(-2px); }

/* light outline — for use on GREEN backgrounds (hero, bands) */
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }
.btn-ghost:hover { background: var(--white); color: var(--green); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* green outline — for use on LIGHT backgrounds */
.btn-line { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-line:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

/* ---------- SKIP LINK ---------- */
.skip-link { position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%); top: 8px; z-index: 2000;
    background: var(--gold); color: #06301e; padding: 0.6em 1.2em; border-radius: var(--r-sm); transition: transform 0.2s ease; }
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ---------- HEADER (kept green) ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(8,55,35,0.85);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.18); border-color: var(--border-green); background: rgba(6,44,28,0.94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; transition: transform 0.4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-971 { font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: 0.04em; }
.brand-sub { display: flex; flex-direction: column; font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; color: #ffffff; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: clamp(0.8rem, 1.6vw, 1.8rem); }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: #dfeae4; position: relative; padding: 0.3em 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--gold-bright); transition: width 0.3s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--gold-bright); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.lang-toggle { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.85rem; font-weight: 600; color: #fff;
    padding: 0.5em 0.85em; border-radius: var(--r-pill); border: 1px solid var(--border-green); transition: background 0.25s, border-color 0.25s; }
.lang-toggle:hover { background: rgba(216,178,95,0.18); border-color: var(--gold-bright); }

.nav-burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.nav-burger span { height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 0.25rem; padding: 1rem var(--gutter) 1.6rem; background: var(--bg-deep); border-top: 1px solid var(--border-green); }
.mobile-nav a { padding: 0.85em 0.4em; font-size: 1.05rem; font-weight: 500; color: #e3eee7; border-bottom: 1px solid var(--border-green); }
.mobile-nav .mobile-cta { margin-top: 0.8rem; border-bottom: none; color: #06301e; }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 900; }

/* ---------- HERO (photo background + deep-green brand overlay) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 3rem + 4vw, 6rem) clamp(3.5rem, 3rem + 5vw, 6.5rem);
    background: var(--green-darker); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero-overlay { position: absolute; inset: 0;
    background:
        linear-gradient(0deg, rgba(6,44,28,0.55), rgba(6,44,28,0.55)),
        linear-gradient(100deg, rgba(6,44,28,0.92) 0%, rgba(6,44,28,0.72) 42%, rgba(10,82,52,0.38) 74%, rgba(6,44,28,0.28) 100%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.6; }
.hero-orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(216,178,95,0.28), transparent 70%); top: -120px; inset-inline-end: -80px; animation: float 14s ease-in-out infinite; }
.hero-grid { position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 72%); }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas: "copy visual"; gap: 0 clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-eyebrow { grid-area: eyebrow; color: var(--gold-bright); align-self: end; margin-bottom: 1rem; }
.hero-eyebrow::before { background: var(--gold-bright); }
.hero-copy { grid-area: copy; align-self: start; }
.hero-visual { grid-area: visual; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

/* Hero title styled like the (removed) eyebrow line — uppercase, tracked serif — but white */
.hero-title { font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem); color: #ffffff; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.7; margin-bottom: 1.2rem;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero-subtitle { font-size: var(--step-1); color: #d9e4dc; max-width: 36ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }
.hero .btn-line { color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.65); }
.hero .btn-line:hover { background: #ffffff; color: var(--green); }
.hero-stats { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-size: var(--step-3); font-weight: 800; color: var(--gold-bright); line-height: 1; }
.hero-stat-label { font-size: var(--step--1); color: var(--on-green-soft); margin-top: 0.3rem; max-width: 14ch; }

.hero-crest { position: relative; width: min(360px, 80%); aspect-ratio: 1; display: grid; place-items: center; }
.hero-crest img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; animation: floatY 6s ease-in-out infinite; }
.hero-crest-glow { position: absolute; inset: 8% 8% 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.7), transparent 62%); filter: blur(26px); z-index: 1; animation: pulse 5s ease-in-out infinite; }
.hero-crest-dubaiit { width: min(370px, 78%); aspect-ratio: 1.6 / 1; }
.hero-crest-dubaiit img { filter: drop-shadow(0 12px 22px rgba(12,95,60,0.18)); }
.hero-crest-dubaiit .hero-crest-glow { inset: 2% 2% 2%; background: radial-gradient(circle, rgba(255,255,255,0.85), transparent 66%); }
.hero-dubai { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold-bright); font-size: var(--step--1); font-weight: 600;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); padding: 0.5em 1em; border-radius: var(--r-pill); }

/* ---------- ABOUT (light, full-width intro) ---------- */
.about { background: var(--bg); }
.about-intro { max-width: 880px; }
.about-intro .lead { color: var(--text); }
.check-list { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.check-list li { position: relative; padding-inline-start: 2rem; font-weight: 500; color: var(--text); }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.15em; width: 1.25rem; height: 1.25rem; background: var(--gold); border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.85rem no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.85rem no-repeat; }

/* ---------- CHAIRMAN (green panel — portrait + message) ---------- */
.chairman { background: var(--bg-alt); }
.chairman-body { max-width: 1040px; margin-inline: auto;
    background: linear-gradient(165deg, var(--green) 0%, var(--green-darker) 130%); color: var(--on-green); border-radius: var(--r-lg);
    padding: clamp(2.3rem, 4.5vw, 3.8rem); box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold-bright); }
/* portrait shown whole (natural ratio, never cropped), centred beside the message */
.chairman-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(1.6rem, 3.5vw, 3rem);
    align-items: center; text-align: start; }
.chairman-photo { margin: 0; position: relative; }
.chairman-photo img { width: 100%; height: auto; border-radius: var(--r); display: block;
    border: 1px solid rgba(216,178,95,0.5); box-shadow: 0 24px 55px -22px rgba(0,0,0,0.65); }
.chairman-photo::after { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 1.5px solid rgba(216,178,95,0.35);
    border-radius: var(--r); z-index: -1; }
.chairman-photo-caption { display: none; }
.chairman-mark { width: 56px; height: 56px; object-fit: contain; margin: 0 0 1rem; }
.chairman .eyebrow { color: var(--on-green-soft); }
.chairman .eyebrow::before { display: none; }
.chairman .section-title { color: #fff; }
/* Gold quote kept small (~body size) so it reads as a calm pull-quote, not a headline */
.chairman-quote { font-size: 0.98rem; color: var(--gold-bright); line-height: 1.65; font-weight: 600; font-style: italic;
    margin: 1.2rem 0 1.5rem; max-width: 52ch; border: none; padding: 0; }
.chairman-body p { color: var(--on-green-soft); margin-block: 1.15rem; font-size: 0.95rem; line-height: 1.9; }
.chairman-sign { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.chairman-sign-name { font-size: var(--step-0); font-weight: 700; color: #fff; }
.chairman-sign-role { font-size: var(--step--1); color: var(--gold-bright); letter-spacing: 0.05em; }

/* ---------- GREEN CARD BASE (why / programs / approach / media) ---------- */
.why { background: var(--bg); }
.programs { background: var(--bg-alt); }
.approach { background: var(--bg); }
.media { background: var(--bg-alt); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.why-card, .program-card, .approach-card, .media-card {
    background: var(--bg-deep); border: 1px solid var(--border-green); border-radius: var(--r);
    position: relative; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.why-card:hover, .program-card:hover, .approach-card:hover, .media-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* WHY */
.why-card { padding: 1.8rem 1.6rem; }
.why-num { position: absolute; top: 0.7rem; inset-inline-end: 1rem; font-size: 2.4rem; font-weight: 800; color: rgba(255,255,255,0.08); line-height: 1; }
.why-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--gold); color: #06301e; margin-bottom: 1rem; }
.why-card h3 { font-size: var(--step-1); color: #fff; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.94rem; color: var(--on-green-soft); margin: 0; }

/* PROGRAMS */
.programs-grid { align-items: stretch; }
.program-card { padding: 0; display: flex; flex-direction: column; cursor: pointer; }
.program-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transform: scaleX(0); transform-origin: inline-start; transition: transform 0.4s var(--ease); }
.program-card:hover { box-shadow: var(--shadow-lg); }
.program-card:hover::after { transform: scaleX(1); }
.program-card:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
/* card image — 16:9 window over 16:9-ish sources keeps every face whole */
.program-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border-green); }
.program-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s var(--ease); }
.pm-3 img { object-position: center 30%; }
.program-card:hover .program-media img { transform: scale(1.05); }
/* per-image face-safe crop tweaks (3:2 candle photo shows its upper band) */
.pm-4 img { object-position: center 22%; }
.program-card-body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.program-index { font-size: var(--step--1); font-weight: 700; color: var(--gold-bright); letter-spacing: 0.1em; }
.program-card-top h3 { font-size: 1.12rem; color: #fff; margin-top: 0.25rem; }
.program-text { font-size: 0.9rem; color: var(--on-green-soft); margin: 0; flex: 1; line-height: 1.55; }
.program-for { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin: 0; }
.program-for-label { color: var(--gold-bright); font-weight: 700; }
.program-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; font-size: 0.9rem; color: var(--gold-bright); margin-top: 0.4rem; }
.program-link .arrow-x { transition: transform 0.3s var(--ease); }
.program-link:hover .arrow-x { transform: translateX(4px); }

/* APPROACH */
.approach-card { padding: 1.6rem 1.4rem; }
.approach-step { display: inline-block; font-size: 1.6rem; font-weight: 800; color: var(--gold-bright); margin-bottom: 0.6rem; }
.approach-card h3 { font-size: var(--step-1); color: #fff; margin-bottom: 0.45rem; }
.approach-card p { font-size: 0.92rem; color: var(--on-green-soft); margin: 0; }

/* MEDIA */
.media-card { padding: 1.8rem 1.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.85rem; text-align: center; min-height: 148px; }
.media-card-head { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.media-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(216,178,95,0.18); color: var(--gold-bright); flex-shrink: 0; }
.media-tag { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); }
.media-card h3 { font-size: var(--step-1); color: #fff; line-height: 1.3; }
.media-card p { font-size: 0.9rem; color: var(--on-green-soft); margin: 0; }
.media-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.media-card.js-coming-soon { cursor: pointer; }
.media-card.js-coming-soon:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- COMING SOON MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(6,44,28,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; transition: opacity 0.3s var(--ease); }
.modal.open .modal-scrim { opacity: 1; }
.modal-card { position: relative; z-index: 1; width: min(440px, 100%); text-align: center;
    background: linear-gradient(165deg, var(--green) 0%, var(--green-darker) 130%); color: var(--on-green);
    border: 1px solid var(--border-green); border-top: 4px solid var(--gold-bright);
    border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(16px) scale(0.97); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 0.9rem; inset-inline-end: 0.9rem; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; color: var(--on-green-soft); background: rgba(255,255,255,0.08); transition: background 0.25s, color 0.25s; }
.modal-close:hover { background: var(--gold); color: #06301e; }
.modal-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 1.1rem;
    background: rgba(216,178,95,0.18); color: var(--gold-bright); }
.modal-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-bright); margin-bottom: 0.6rem; }
.modal-card h3 { font-size: var(--step-2); color: #fff; margin-bottom: 0.6rem; }
.modal-card p { font-size: var(--step-0); color: var(--on-green-soft); margin: 0; line-height: 1.6; }

/* ---------- PROGRAM DETAIL MODAL ---------- */
.modal-card-program { width: min(620px, 100%); text-align: start; padding: 0;
    max-height: min(88svh, 100%); overflow-y: auto; overscroll-behavior: contain; }
.program-modal-media { margin: 0; aspect-ratio: 16 / 8; overflow: hidden; }
.program-modal-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.program-modal-media.pm-3 img { object-position: center 30%; }
.program-modal-media.pm-4 img { object-position: center 22%; }
.program-modal-body { padding: 1.5rem clamp(1.3rem, 3vw, 2.1rem) 1.9rem; }
.modal-card-program .modal-close { background: rgba(6,44,28,0.55); color: #fff; }
.modal-card-program .modal-close:hover { background: var(--gold); color: #06301e; }
.modal-card-program h3 { font-size: var(--step-2); color: #fff; margin: 0.25rem 0 0.7rem; }
.program-modal-lead { font-size: var(--step-0); color: var(--on-green); margin: 0 0 1rem; line-height: 1.65; }
.program-modal-list { display: grid; gap: 0.55rem; margin: 0 0 1.2rem; }
.program-modal-list li { position: relative; padding-inline-start: 1.9rem; font-size: 0.94rem; color: var(--on-green-soft); }
.program-modal-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.2em; width: 1.15rem; height: 1.15rem;
    background: var(--gold-bright); border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.8rem no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.8rem no-repeat; }
.program-modal-for { margin: 0 0 1.4rem; }

/* ---------- AMBASSADOR (ivory section + green cards) ---------- */
.ambassador { position: relative; background: var(--bg); color: var(--text); overflow: hidden; }
.ambassador::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(12,95,60,0.05) 1px, transparent 1px); background-size: 28px 28px; opacity: 0.7; }
.ambassador > .container { position: relative; }
.ambassador-head { max-width: 820px; margin-bottom: 2.6rem; }
.ambassador .eyebrow-light { color: #8a6a24; }
.ambassador .eyebrow-light::before { background: #8a6a24; }
.ambassador .section-title-light { color: var(--heading); }
.ambassador .lead-light { color: var(--text-soft); }
.amb-quote { font-size: var(--step-1); font-style: italic; color: var(--text); border-inline-start: 3px solid var(--gold); padding-inline-start: 1.2rem; margin-top: 1.6rem; }
.amb-quote cite { display: block; font-style: normal; font-size: var(--step--1); color: #8a6a24; margin-top: 0.5rem; }
.amb-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.amb-step { display: flex; gap: 1rem; background: var(--bg-deep); border: 1px solid var(--border-green); border-radius: var(--r); padding: 1.5rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.amb-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-bright); }
.amb-step-num { font-size: 1.5rem; font-weight: 800; color: var(--gold-bright); line-height: 1; }
.amb-step h3 { font-size: var(--step-1); color: #fff; margin-bottom: 0.4rem; }
.amb-step p { font-size: 0.92rem; color: var(--on-green-soft); margin: 0; }
.amb-cta { margin-top: 2.4rem; }

/* ---------- STATS (green band) ---------- */
.stats { background: linear-gradient(160deg, var(--green-darker) 0%, #04221557 100%), var(--green-darker); color: var(--on-green);
    padding-block: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem); }
.stats .section-head { margin-bottom: clamp(0.9rem, 2vw, 1.4rem); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat-item { padding: 0.5rem 1rem; border-radius: var(--r); position: relative; }
.stat-item::after { content: ""; position: absolute; inset-inline-end: 0; top: 18%; bottom: 18%; width: 1px; background: rgba(255,255,255,0.12); }
.stats-grid .stat-item:last-child::after { display: none; }
.stat-num { display: block; font-size: clamp(2.6rem, 2rem + 3vw, 4rem); font-weight: 800; color: var(--gold-bright); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: var(--step--1); color: var(--on-green-soft); margin-top: 0.6rem; }

/* ---------- CTA BAND (green) ---------- */
.cta-band { background: linear-gradient(120deg, #0e6645 0%, #062c1c 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(216,178,95,0.3), transparent 70%); top: -140px; inset-inline-end: -60px; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.6rem, 5vw, 4.2rem); flex-wrap: wrap; }
.cta-inner h2 { font-size: var(--step-3); color: #fff; margin-bottom: 0.6rem; }
.cta-inner p { color: var(--on-green-soft); max-width: 52ch; margin: 0; }
.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- CONTACT ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
/* form sits inside a green card */
.contact-form-wrap { background: var(--bg-deep); border: 1px solid var(--border-green); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.contact-form-wrap .eyebrow { color: var(--gold-bright); }
.contact-form-wrap .eyebrow::before { background: var(--gold-bright); }
.contact-form-wrap .section-title { color: #fff; }
.contact-form-wrap .section-intro { color: var(--on-green-soft); }

.contact-form { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--gold-bright); letter-spacing: 0.02em; }
.req { color: var(--gold-bright); }
.field input, .field select, .field textarea { padding: 0.85em 1em; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-sm);
    background: #fff; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s; min-height: 48px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9a958a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(216,178,95,0.3); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.18); }
.field-error { font-size: 0.8rem; color: #ffd2c9; }
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.form-alert { padding: 1em 1.2em; border-radius: var(--r-sm); font-size: 0.95rem; margin-top: 1.4rem; }
.form-alert-success { background: #e6f4ec; color: #0a5b39; border: 1px solid #b6dcc6; }
.form-alert-error { background: #fdecea; color: #b0331f; border: 1px solid #f3c4bb; }

.contact-info h3 { font-size: var(--step-2); color: var(--green); margin-bottom: 1.4rem; }
.info-block { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.info-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; }
.info-block h4 { font-size: var(--step-0); color: var(--green); margin-bottom: 0.3rem; }
.info-block a { display: block; color: var(--text); font-size: 0.94rem; transition: color 0.2s; }
.info-block a:hover { color: var(--gold); }
.info-block p { font-size: 0.88rem; color: var(--text-faint); margin: 0.3rem 0 0; }
.office-addr { color: var(--text-soft) !important; font-weight: 500; }
.map-wrap { margin-top: 1.4rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 240px; border: 0; filter: grayscale(0.15) contrast(1.05); }

/* ---------- FOOTER (kept green) ---------- */
.site-footer { background: var(--bg-deep); color: var(--on-green-soft); padding-top: clamp(3rem, 5vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 1rem; }
.footer-name { color: #fff; font-weight: 700; font-size: var(--step-0); }
.footer-tagline { font-size: 0.92rem; margin: 0.5rem 0 1.2rem; max-width: 38ch; color: var(--on-green-soft); }
.dubai-badge { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--gold-bright); font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border-green); padding: 0.5em 1em; border-radius: var(--r-pill); }
.footer-col h4 { color: #fff; font-size: var(--step-0); margin-bottom: 1rem; letter-spacing: 0.04em; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.94rem; color: var(--on-green-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-contact a, .footer-contact li { font-size: 0.94rem; margin-bottom: 0.5rem; color: var(--on-green-soft); }
.footer-follow-title { margin-top: 1.6rem; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: #fff; transition: background 0.25s, transform 0.25s, color 0.25s; }
.footer-social a:hover { background: var(--gold); color: #06301e; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--border-green); padding-block: 1.4rem; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--on-green-soft); }
.footer-bottom-links { display: flex; gap: 1.4rem; }
.footer-bottom-links a { color: var(--on-green-soft); }
.footer-bottom-links a:hover { color: var(--gold-bright); }

/* ---------- FLOATING BUTTONS ---------- */
.wa-float { position: fixed; inset-block-end: 1.4rem; inset-inline-start: 1.4rem; width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: #fff; display: grid; place-items: center; z-index: 850;
    box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6); transition: transform 0.25s var(--ease); animation: waPulse 2.8s ease-in-out infinite; }
.wa-float:hover { transform: translateY(-3px) scale(1.06); }
@keyframes waPulse { 0%,100% { box-shadow: 0 10px 30px -8px rgba(37,211,102,0.55); } 50% { box-shadow: 0 12px 40px -6px rgba(37,211,102,0.95); } }

.back-to-top { position: fixed; inset-block-end: 1.4rem; inset-inline-end: 1.4rem; width: 48px; height: 48px; border-radius: 50%;
    background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); z-index: 800;
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.25s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: #06301e; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px, 22px); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.06); } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-grid { grid-template-columns: repeat(2, 1fr); }
    .amb-journey { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .nav-burger { display: flex; }
    .mobile-nav.open { display: flex; }
    .nav-cta { display: none; }

    /* mobile hero: tighter spacing, order = first block -> THEN Dubai-it logo */
    .hero { padding-block: 1.6rem 2.4rem; }
    .hero-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "visual"; text-align: center; gap: 0; }
    .hero-visual { margin-top: 1.4rem; gap: 0.9rem; }
    .hero-subtitle { margin-inline: auto; margin-bottom: 1.4rem; }
    .hero-actions { margin-bottom: 1.8rem; }
    .hero-actions, .hero-stats { justify-content: center; }
    .hero-crest { width: min(240px, 56%); }
    .hero-crest-dubaiit { width: min(280px, 72%); }
    .hero-title{ letter-spacing: 0.1em; }

    /* full-width, equal CTAs on mobile */
    .hero-actions, .cta-actions, .media-actions { width: 100%; }
    .hero-actions .btn, .cta-actions .btn, .media-actions .btn, .amb-cta .btn { width: 100%; min-width: 0; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; text-align: start; }

    /* chairman: portrait above the message, both centred */
    .chairman-layout { grid-template-columns: 1fr; text-align: center; gap: 1.4rem; }
    .chairman-photo { max-width: 250px; margin-inline: auto; }
    .chairman-photo::after { display: none; }
    .chairman-photo-caption { display: flex; flex-direction: column; align-items: center; margin-top: 0.9rem; }
    .chairman-text .chairman-mark { margin: 0 auto 1rem; }
    .chairman-text .chairman-sign { display: none; }
    .chairman-quote { margin-inline: auto; }
}

/* MOBILE: keep TWO cards per row (per brief) */
@media (max-width: 640px) {
    :root { --step-0: 1rem; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid .stat-item:nth-child(2)::after { display: none; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { justify-content: center; text-align: center; }

    .why-grid, .programs-grid, .approach-grid, .amb-journey, .media-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .why-card, .approach-card, .amb-step, .media-card { padding: 1.1rem 0.95rem; }
    .program-card { padding: 0; }
    .program-card-body { padding: 0.9rem 0.85rem 1rem; }
    .why-card h3, .program-card-top h3, .approach-card h3, .amb-step h3, .media-card h3 { font-size: 1.02rem; }
    .why-card p, .program-card p, .approach-card p, .amb-step p, .media-card p { font-size: 0.84rem; line-height: 1.55; }
    .why-num { font-size: 1.8rem; }
    .why-icon { width: 38px; height: 38px; }
    .amb-step { flex-direction: column; gap: 0.5rem; }
    .program-for { font-size: 0.76rem; }
    .chairman-body { padding: 1.6rem 1.2rem; }

    /* hero stats: all three on a single, balanced row */
    .hero-stats { flex-wrap: nowrap; gap: 0.5rem; width: 100%; justify-content: space-between; }
    .hero-stat { flex: 1 1 0; align-items: center; text-align: center; min-width: 0; }
    .hero-stat-num { font-size: 1.6rem; }
    .hero-stat-label { max-width: 12ch; font-size: 0.74rem; line-height: 1.3; margin-inline: auto; }
}

@media (max-width: 380px) { .brand-sub { display: none; } }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
