/* =====================================================================
   HASAD ALNOOR SDN. BHD. — Brand stylesheet
   Palette: deep forest green + muted gold + warm cream.
   Type: Manrope (primary) · Cormorant Garamond (accent) ·
         IBM Plex Sans Arabic (Arabic). Full light/dark + RTL.
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
  --green-900: #16301E;
  --green-800: #1C4A2C;
  --green-700: #226039;
  --green-600: #2E7048;
  --logo-green: #3A5A40;

  --gold: #C0902C;
  --gold-600: #A9791F;
  --gold-ink: #8A6410;

  --cream: #FAF6EE;
  --cream-2: #F4EDDF;
  --beige: #ECE5D4;
  --card: #FFFFFF;
  --border: #E7DFCE;
  --ink: #1A2A1F;
  --body: #55605A;
  --muted: #7C857E;
  --white: #FFFFFF;

  --bg: var(--cream);
  --surface: var(--card);
  --primary: var(--green-800);
  --primary-hover: var(--green-700);
  --on-primary: #FFFFFF;
  --accent: var(--gold);
  --heading: var(--ink);
  --text: var(--body);
  --footer-bg: var(--green-900);
  --footer-text: #D7E0D3;
  --footer-muted: #9DB0A0;
  --ring: rgba(34, 96, 57, .45);
  --shadow-sm: 0 1px 2px rgba(22,48,30,.06), 0 2px 8px rgba(22,48,30,.05);
  --shadow-md: 0 6px 20px rgba(22,48,30,.10), 0 2px 6px rgba(22,48,30,.06);
  --shadow-lg: 0 24px 60px rgba(22,48,30,.16);

  /* Type */
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-accent: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: var(--font-body);
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-ar-accent: "IBM Plex Serif", "IBM Plex Sans Arabic", serif;

  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --space-section: clamp(64px, 9vw, 120px);
  --nav-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --cream: #0E1A12;
  --cream-2: #12241A;
  --beige: #17301F;
  --card: #16271C;
  --border: #29402F;
  --ink: #F1EEE2;
  --body: #B9C4BB;
  --muted: #8C9A8E;

  --bg: #0E1A12;
  --surface: #16271C;
  --primary: #2F7A49;
  --primary-hover: #3A9057;
  --gold: #D9B15A;
  --gold-600: #C99A3F;
  --gold-ink: #E1BE6C;
  --heading: var(--ink);
  --text: var(--body);
  --footer-bg: #0A140D;
  --footer-text: #C9D4C7;
  --footer-muted: #98A899;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 26px rgba(0,0,0,.45);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.55);
}

/* ----------------------------- Base -------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.9; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--heading);
  line-height: 1.14;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: var(--font-ar); letter-spacing: 0; line-height: 1.4;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Cormorant accent — one-line brand statements, hero tagline */
.accent-serif, .hero h1, .cta-final h2, .markets-card h3, .quote-card blockquote {
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: 0;
}
[dir="rtl"] .accent-serif, [dir="rtl"] .hero h1, [dir="rtl"] .cta-final h2,
[dir="rtl"] .markets-card h3, [dir="rtl"] .quote-card blockquote {
  font-family: var(--font-ar-accent);
}
.hero h1 { line-height: 1.06; font-weight: 600; }
[dir="rtl"] .hero h1 { line-height: 1.35; }

::selection { background: var(--gold); color: #1a1500; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------- Layout ------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-cream2 { background: var(--cream-2); }
.bg-green { background: radial-gradient(1200px 500px at 85% -10%, rgba(192,144,44,.10), transparent 60%), var(--green-900); }
.center { text-align: center; }

/* Eyebrow label (no dash) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .9rem;
}
[dir="rtl"] .eyebrow { font-family: var(--font-ar); letter-spacing: 0; }
.eyebrow.center-eb { display: block; }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--text); font-size: 1.08rem; margin-top: .4rem; }
.lead { font-size: 1.14rem; color: var(--text); }

/* Slim gold accent bar (replaces decorative icons on cards) */
.accent-bar { width: 34px; height: 3px; background: var(--gold); border-radius: 3px; margin-bottom: 1.1rem; }
.accent-bar.center-bar { margin-inline: auto; }

/* --------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap; line-height: 1;
}
[dir="rtl"] .btn { font-family: var(--font-ar); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #241a00; }
.btn--gold:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Text link */
.link-more { display: inline-block; font-weight: 700; font-size: .9rem; color: var(--gold-ink); position: relative; }
.link-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
[dir="rtl"] .link-more::after { transform-origin: right; }
.link-more:hover::after { transform: scaleX(1); }

/* ---------------------------- Header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: .6rem; margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
[data-theme="dark"] .brand img { filter: brightness(0) saturate(100%) invert(84%) sepia(18%) saturate(560%) hue-rotate(58deg) brightness(92%); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-en { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; color: var(--heading); letter-spacing: .04em; }
.brand-ar { font-family: var(--font-ar); font-size: .82rem; color: var(--gold-ink); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  position: relative; color: var(--heading); font-weight: 500; font-size: .96rem;
  padding: .5rem .8rem; border-radius: var(--radius-sm); transition: color .2s var(--ease);
}
[dir="rtl"] .nav-links a, [dir="rtl"] .brand-en { font-family: var(--font-ar); }
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-btn { width: auto; padding-inline: .85rem; gap: .4rem; font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: .8rem clamp(20px,5vw,40px) 1.4rem; box-shadow: var(--shadow-lg);
    transform: translateY(-140%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .85rem .4rem; border-radius: 8px; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: color-mix(in srgb, var(--primary) 10%, transparent); }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}

/* ----------------------------- Hero -------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px) var(--space-section); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(680px 420px at 82% 8%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero-lead { max-width: 30rem; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.hero-visual { position: relative; padding: 24px; }
.hero-photo {
  position: relative; border-radius: 26px; overflow: hidden;
  aspect-ratio: 4 / 3.5; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13) translate(-1.5%, -1%); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(22,48,30,.32)); }

.hero-float-card {
  position: absolute; z-index: 3; width: clamp(120px, 15vw, 172px); aspect-ratio: 1;
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface); top: -6px; inset-inline-end: -6px;
}
.hero-float-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; z-index: 3; inset-block-end: 8px; inset-inline-start: 8px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 14px; padding: .75rem 1.05rem;
  box-shadow: var(--shadow-md);
}
.hero-badge b { color: var(--heading); font-family: var(--font-accent); font-size: 1.6rem; line-height: 1; display: block; }
[dir="rtl"] .hero-badge b { font-family: var(--font-ar); }
.hero-badge span { font-size: .78rem; color: var(--muted); }

/* Trust strip — icon-free, editorial */
.trust-strip { margin-top: clamp(34px, 5vw, 56px); display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.trust-item { background: var(--surface); padding: 1.5rem 1.4rem; }
.trust-item .accent-bar { margin-bottom: .9rem; }
.trust-item b { color: var(--heading); font-size: 1rem; font-family: var(--font-body); font-weight: 700; display: block; margin-bottom: .25rem; }
[dir="rtl"] .trust-item b { font-family: var(--font-ar); }
.trust-item span { font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* --------------------------- Page hero ----------------------------- */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(40px,5vw,64px); text-align: center; overflow: hidden;
  background: radial-gradient(900px 380px at 50% -30%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%), var(--cream-2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.page-hero p { max-width: 640px; margin-inline: auto; font-size: 1.1rem; }
.breadcrumb { display: flex; gap: .5rem; justify-content: center; font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.breadcrumb a { color: var(--gold-ink); font-weight: 600; }
.breadcrumb span { opacity: .6; }
/* Faded related photo behind a page hero */
.page-hero > .container { position: relative; z-index: 1; }
.ph-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: kenburns 24s ease-in-out infinite alternate; }
.ph-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cream-2) 58%, transparent), color-mix(in srgb, var(--cream-2) 30%, transparent)); }
@media (prefers-reduced-motion: reduce) { .ph-bg img { animation: none; } }

/* ----------------------------- Grid -------------------------------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }

/* Stacked About + Markets (full width, larger type) */
.about-market { display: grid; gap: clamp(30px, 4vw, 52px); }
.am-about h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: .7rem; }
.am-about p { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.7; max-width: 62ch; }
.about-market .markets-card { padding: clamp(28px, 4vw, 48px); }
.about-market .markets-card h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.about-market .markets-card > p { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 60ch; }
.about-market .chip { font-size: .95rem; padding: .5rem 1.1rem; }

/* Stacked feature — photo on top, text below (full width) */
.feature-stack { max-width: 980px; margin-inline: auto; text-align: center; }
.feature-stack .media-frame { aspect-ratio: 16 / 8; margin-bottom: clamp(24px, 3vw, 40px); }
.feature-stack .fs-body { max-width: 720px; margin-inline: auto; }
.feature-stack .check-list { text-align: start; max-width: 620px; margin-inline: auto; }

/* ----------------------------- Cards ------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }

/* Product card */
.p-card .p-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--beige); }
.p-card .p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.p-body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.p-body .p-desc { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.p-body .link-more { margin-top: auto; align-self: flex-start; }

/* Feature / value / service card (icon-free) */
.f-card { padding: 1.9rem 1.6rem; }
.f-card h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.f-card p { font-size: .94rem; color: var(--muted); margin: 0; }
.f-index { font-family: var(--font-accent); font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: .7rem; display: block; }
[dir="rtl"] .f-index { font-family: var(--font-ar-accent); }
.f-card.center .f-index { margin-inline: auto; }

/* Gold-title card variant (services, quality pillars) */
.card--gold h3 { color: var(--gold); font-weight: 800; }
.card--gold .f-desc, .card--gold p { color: var(--heading); }

/* Why band — light, icon-free */
.why-band { background: var(--cream-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(30px,4vw,52px); }
.why-band h2 { color: var(--heading); }
.why-band .eyebrow { color: var(--gold-ink); }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; margin-top: 2.2rem; }
.why-item { padding: 1.4rem 1.2rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.why-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.why-item b { display: block; font-family: var(--font-body); font-size: 1.05rem; color: var(--heading); font-weight: 700; line-height: 1.35; }
[dir="rtl"] .why-item b { font-family: var(--font-ar); }

/* Markets card */
.markets-card { background: var(--beige); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px,3vw,38px); }
.markets-card .eyebrow { color: var(--gold-ink); }
.markets-card h3 { font-size: clamp(1.5rem,2.6vw,2rem); }
.markets-serve { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chip { display: inline-flex; align-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); color: var(--heading); font-weight: 600; font-size: .84rem; padding: .45rem .95rem; border-radius: var(--radius-pill); }

/* Stat */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-accent); font-size: clamp(2.4rem,4.4vw,3.4rem); color: var(--gold); font-weight: 600; line-height: 1; }
[dir="rtl"] .stat .num { font-family: var(--font-ar-accent); }
.stat .lbl { font-size: .95rem; color: var(--muted); margin-top: .5rem; }
.bg-green .stat .lbl { color: var(--footer-muted); }
/* Light stats band (replaces the green block) */
.stats-band { background: var(--cream-2); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(30px,4vw,48px); }

/* Check list — icon-free (gold rule) */
.check-list { display: grid; gap: .7rem; margin-top: 1.3rem; }
.check-list li { padding-inline-start: 1rem; border-inline-start: 2px solid var(--gold); font-size: .98rem; color: var(--text); line-height: 1.5; }

/* Media block */
.media-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); aspect-ratio: 4/3.2; background: var(--beige); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------- Process chain ------------------------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-top: 2.6rem; }
.timeline::before { content: ""; position: absolute; top: 27px; inset-inline-start: 12%; inset-inline-end: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); opacity: .5; }
.t-node { position: relative; text-align: center; }
.t-node .t-num {
  position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 1.2rem;
  border-radius: 50%; background: var(--surface); border: 1.5px solid var(--gold);
  display: grid; place-items: center; color: var(--gold-ink); box-shadow: 0 0 0 6px var(--bg);
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.t-node:hover .t-num { transform: translateY(-4px); background: var(--gold); color: #fff; }
.t-node .t-num svg { width: 28px; height: 28px; }
.t-node h3 { font-size: 1.14rem; margin-bottom: .4rem; }
.t-node p { font-size: .9rem; color: var(--muted); margin: 0; }

/* -------------------------- Testimonials --------------------------- */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
.quote-card .qmark { font-family: var(--font-accent); font-size: 3.4rem; line-height: .7; color: var(--gold); height: 30px; }
.quote-card blockquote { margin: 0 0 1.3rem; font-size: 1.28rem; line-height: 1.4; color: var(--heading); }
[dir="rtl"] .quote-card blockquote { font-size: 1.15rem; }
.quote-card .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote-card .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-accent); font-size: 1.3rem; }
.quote-card .who b { color: var(--heading); font-size: .95rem; display: block; font-family: var(--font-body); font-weight: 700; }
[dir="rtl"] .quote-card .who b { font-family: var(--font-ar); }
.quote-card .who span { font-size: .82rem; color: var(--muted); }

/* Partners (text only) */
.partners { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; align-items: center; justify-content: center; }
.partner { font-family: var(--font-accent); font-weight: 600; font-size: 1.4rem; color: var(--muted); opacity: .85; transition: color .3s, opacity .3s; }
[dir="rtl"] .partner { font-family: var(--font-ar-accent); }
.partner:hover { opacity: 1; color: var(--heading); }

/* ---------------------------- Gallery ------------------------------ */
.gallery { columns: 3; column-gap: 16px; }
.gallery .g-item { break-inside: avoid; margin-bottom: 16px; border-radius: 14px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--border); cursor: pointer; }
.gallery .g-item img { width: 100%; display: block; transition: transform .6s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.05); }
.gallery .g-cap { position: absolute; inset: auto 0 0 0; padding: 1.4rem .9rem .8rem; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(10,20,13,.82)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gallery .g-item:hover .g-cap { opacity: 1; transform: none; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { padding: .5rem 1.2rem; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--heading); font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s var(--ease); font-family: var(--font-body); }
[dir="rtl"] .filter-btn { font-family: var(--font-ar); }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.g-item.hide { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,16,10,.9); display: none; align-items: center; justify-content: center; padding: 4vw; backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 20px; inset-inline-end: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }

/* ------------------------------ CTA -------------------------------- */
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(28px,3.4vw,44px); display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.cta-band .cb-text { flex: 1; min-width: 280px; }
.cta-band .cb-text h2 { font-size: clamp(1.5rem,2.6vw,2rem); margin-bottom: .3rem; }
.cta-band .cb-text p { margin: 0; color: var(--muted); }
.cta-band .cb-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

.cta-final { text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(2rem,3.6vw,2.9rem); }
.cta-final p { color: var(--footer-muted); max-width: 560px; margin: .6rem auto 1.8rem; font-size: 1.08rem; }
.cta-final .btn-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ----------------------------- Forms ------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px,3vw,40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--heading); margin-bottom: .45rem; }
[dir="rtl"] .field label { font-family: var(--font-ar); }
.field .req { color: #C0522C; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--heading);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px;
  padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.field.error input, .field.error select, .field.error textarea { border-color: #C0522C; }
.field .err-msg { display: none; color: #C0522C; font-size: .8rem; margin-top: .35rem; font-weight: 600; }
.field.error .err-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-status { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.form-status.show { display: block; }
.form-status.ok { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); }

/* Contact info blocks (functional icons kept) */
.contact-block { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.contact-block:last-child { border-bottom: none; }
.contact-block .cb-ic { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); display: grid; place-items: center; flex: none; }
.contact-block .cb-ic svg { width: 19px; height: 19px; }
.contact-block b { color: var(--heading); font-family: var(--font-body); display: block; font-size: .95rem; margin-bottom: .1rem; font-weight: 700; }
[dir="rtl"] .contact-block b { font-family: var(--font-ar); }
.contact-block a, .contact-block p { color: var(--text); font-size: .92rem; margin: 0; }
.contact-block a:hover { color: var(--primary); }

/* Country cards */
.country-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.country-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.country-head h3 { margin: 0; font-size: 1.2rem; }
.country-head .badge { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 16%, transparent); padding: .2rem .5rem; border-radius: 6px; }
.country-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text); margin-bottom: .6rem; }
.country-row svg { width: 16px; height: 16px; color: var(--primary); flex: none; margin-top: 3px; }
.country-company { font-weight: 700; color: var(--gold-ink); font-size: .9rem; letter-spacing: .01em; margin-bottom: .8rem; }
.tbd { color: var(--muted); font-style: italic; }

/* Responsive video frame (adapts to portrait or landscape) */
.video-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: #0b140e; display: grid; place-items: center; max-width: 900px; margin-inline: auto; }
.video-frame video { width: 100%; max-height: 78vh; display: block; }
/* Event invitation card */
.invite-card { max-width: 520px; margin-inline: auto; }
.invite-card .media-frame { aspect-ratio: 5/4; background: var(--surface); }
.invite-card .media-frame img { object-fit: contain; padding: .5rem; }

/* ----------------------------- Footer ------------------------------ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-block: clamp(48px,6vw,72px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(24px,3vw,44px); padding-bottom: 2.4rem; }
.footer-brand .brand-en { color: #fff; }
.footer-brand img { width: 44px; height: 44px; filter: brightness(0) invert(1); opacity: .9; }
.footer-blurb { color: var(--footer-muted); font-size: .92rem; margin: 1rem 0 1.3rem; max-width: 30ch; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: var(--footer-text); transition: background-color .2s, transform .2s, border-color .2s; }
.footer-social a:hover { background: var(--gold); color: #241a00; border-color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
[dir="rtl"] .footer-col h4, [dir="rtl"] .footer-brand .brand-en { font-family: var(--font-ar); }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a, .footer-col li { color: var(--footer-muted); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: var(--footer-muted); }
.footer-bottom a { color: var(--footer-muted); }
.footer-bottom a:hover { color: var(--gold); }

/* ------------------------ Floating WhatsApp ------------------------ */
.wa-float { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-pulse 2.2s var(--ease) infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

/* --------------------------- Reveal anim --------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal-right] { opacity: 0; transform: translateX(52px); }
.js [data-reveal-right].is-visible { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* Gentle continuous float (hero accent) */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float-soft { animation: floaty 5s ease-in-out infinite; }

/* Stat number pop */
@keyframes statpop { 0% { transform: scale(.55); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.stat .num.pop { animation: statpop .6s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] , .js [data-reveal-right] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wa-float::after, .float-soft, .stat .num.pop { animation: none; }
  .hero-photo img { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------------------------- Responsive --------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo { aspect-ratio: 16/10; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(3,1fr); }
  .why-item { border-inline-start: none; padding-inline: 0; padding-block: .6rem; }
  .timeline { grid-template-columns: repeat(2,1fr); gap: 2rem 1.2rem; }
  .timeline::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .gallery { columns: 2; }
  .trust-strip { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-stack .media-frame { aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .timeline, .stats { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: start; }
  .hero-actions .btn { flex: 1; }
  .hero-float-card { width: 108px; }
}

/* Hide Netlify badge */
[data-netlify-badge], .netlify-badge, a[href*="netlify.com"][rel*="noopener"],
iframe[src*="netlify"], div[style*="netlify"], .netlify-identity-widget {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
