/* ============================================================
   IMC — Infrastruktur Montenegro Cooperation
   Dark theme · magenta accent · Red Hat Display + Rubik
   ============================================================ */

:root {
  --bg:        #05060d;
  --bg-2:      #0a0c16;
  --bg-3:      #10131f;
  --surface:   rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border:    rgba(255, 255, 255, 0.10);
  --border-2:  rgba(255, 255, 255, 0.16);

  --accent:    #ec167f;
  --accent-2:  #a21caf;   /* purple for gradients */
  --accent-soft: rgba(236, 22, 127, 0.14);

  --gold:      #d8a848;   /* logo gold */
  --gold-2:    #b9812a;
  --navy-1:    #0a1230;   /* header banner navy */
  --navy-2:    #070b1c;

  --text:      #f5f6ff;
  --muted:     #a7abbd;
  --muted-2:   #7b8098;

  --grad: linear-gradient(120deg, #ec167f 0%, #a21caf 100%);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1200px;

  --font-head: "Red Hat Display", "Segoe UI", Arial, sans-serif;
  --font-body: "Rubik", "Segoe UI", Arial, sans-serif;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Typography helpers ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}
.section-desc { color: var(--muted); max-width: 620px; margin-top: 14px; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 54px; position: relative; }
.section-head.center .section-desc { margin-inline: auto; }
/* keep heading content above the watermark */
.section-head.center > * { position: relative; z-index: 1; }
/* huge faint outlined watermark word behind the heading */
.section-head.center[data-watermark]::before {
  content: attr(data-watermark);
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-family: var(--font-head); font-weight: 900; text-transform: lowercase;
  font-size: clamp(4.5rem, 15vw, 12rem); line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  z-index: 0; pointer-events: none; user-select: none;
}
/* thin guide line with a magenta dot at its centre */
.section-head.center[data-watermark]::after {
  content: ""; position: absolute; left: 4%; right: 4%; top: 66%;
  height: 8px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    radial-gradient(circle, var(--accent) 0 3.5px, transparent 4px);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 1px, 9px 9px;
  background-position: center center, center center;
}
[dir="rtl"] .section-head.center[data-watermark]::before { direction: ltr; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.92rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.82rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(236, 22, 127, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(236, 22, 127, 0.85); }
.btn-ghost { background: rgba(255,255,255,0.04); color: #fff; border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: linear-gradient(100deg, var(--navy-1) 0%, var(--navy-2) 55%, #05060d 100%);
  border-bottom: 1px solid rgba(216, 168, 72, 0.28);
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
  padding: 7px 0;
}
.site-header.scrolled {
  background: linear-gradient(100deg, rgba(10, 18, 48, 0.9), rgba(5, 6, 13, 0.92));
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px -20px rgba(0, 0, 0, 0.95);
  padding: 2px 0;
}
/* Dotted world-map motif echoing the logo banner (abstract dot matrix) */
.header-map {
  position: absolute; inset: 0 0 0 auto; width: 48%; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(216, 168, 72, 0.55) 1px, transparent 1.5px);
  background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 75%);
  opacity: 0.16;
}
[dir="rtl"] .header-map { inset: 0 auto 0 0; -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 75%); mask-image: linear-gradient(270deg, transparent 0%, #000 75%); }
.nav-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

/* --- Logo / brand banner --- */
.brand { position: relative; display: flex; align-items: center; gap: 13px; padding: 6px 12px 6px 6px; border-radius: 14px; }
.brand-glow {
  position: absolute; inset-inline-start: -10px; top: 50%; transform: translateY(-50%) scale(.75);
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 22, 127, 0.9) 0%, rgba(236, 22, 127, 0) 68%);
  filter: blur(16px); opacity: 0; pointer-events: none; z-index: 0;
  transition: opacity .45s ease, transform .45s ease;
}
.brand:hover .brand-glow, .brand:focus-visible .brand-glow { opacity: 0.95; transform: translateY(-50%) scale(1); }
.logo-mark {
  position: relative; z-index: 1; width: 54px; height: 54px; flex: none;
  border-radius: 12px; object-fit: cover; display: block;
  border: 1px solid rgba(216, 168, 72, 0.4);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.75);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, width .3s ease, height .3s ease;
}
.brand:hover .logo-mark { transform: translateY(-1px); box-shadow: 0 0 18px -2px rgba(236, 22, 127, 0.6); border-color: rgba(236, 22, 127, 0.55); }
.brand-divider { position: relative; z-index: 1; width: 1px; height: 40px; background: linear-gradient(180deg, transparent, rgba(216, 168, 72, 0.8), transparent); flex: none; }
.brand-word { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.12; }
.bw-1 { font-family: var(--font-head); font-weight: 800; font-size: 1.04rem; letter-spacing: 0.13em; color: #fff; }
.bw-2 { font-family: var(--font-head); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.15em; color: var(--gold); }
.bw-3 { font-size: 0.54rem; letter-spacing: 0.3em; color: var(--muted-2); text-transform: uppercase; margin-top: 4px; }
.site-header.scrolled .bw-3 { display: none; }
.site-header.scrolled .logo-mark { width: 46px; height: 46px; }
/* legacy footer monogram */
.brand-mark {
  font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 500; font-size: 0.9rem;
  color: var(--muted); padding: 8px 11px; border-radius: 8px;
  transition: color .25s ease, text-shadow .25s ease;
}
/* soft magenta light rising from under the link (matches the logo glow) */
.main-nav a::before {
  content: ""; position: absolute; inset: -3px -6px; z-index: -1; border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(236, 22, 127, 0.5) 0%, rgba(236, 22, 127, 0) 70%);
  opacity: 0; filter: blur(7px); transition: opacity .3s ease; pointer-events: none;
}
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; text-shadow: 0 0 14px rgba(236, 22, 127, 0.55); }
.main-nav a:hover::before, .main-nav a:focus-visible::before { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language switch */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.05); color: #fff;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 12px; cursor: pointer; font-family: var(--font-head);
  font-weight: 600; font-size: 0.82rem; transition: background .2s, border-color .2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--border-2); }
.lang-btn .chev { transition: transform .25s ease; }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 172px; background: #0d1020; border: 1px solid var(--border);
  border-radius: 12px; padding: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 120;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.9rem; color: var(--muted); transition: color .2s ease, text-shadow .2s ease;
}
.lang-menu li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 8px; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(236, 22, 127, 0.42) 0%, rgba(236, 22, 127, 0) 72%);
  transition: opacity .25s ease;
}
.lang-menu li:hover::before { opacity: 1; }
.lang-menu li:hover { color: #fff; text-shadow: 0 0 12px rgba(236, 22, 127, 0.55); }
.lang-menu li.active { color: #fff; background: var(--accent-soft); }
.lang-menu .flag { font-size: 1.05rem; }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,6,13,0.55) 0%, rgba(5,6,13,0.75) 55%, var(--bg) 100%),
    radial-gradient(1200px 600px at 15% 25%, rgba(236,22,127,0.22), transparent 60%);
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; }
.hero-content { position: relative; z-index: 3; max-width: 820px; }
.hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 5rem); line-height: 1.03;
  letter-spacing: -0.02em; color: #fff; margin-bottom: 22px;
}
.hero-title .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d3d6e6; max-width: 640px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--bg-2); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 16px; border-inline-end: 1px solid var(--border); }
.stat:last-child { border-inline-end: 0; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.86rem; margin-top: 10px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; }
.about-badge {
  position: absolute; inset-block-end: -22px; inset-inline-end: -18px;
  background: var(--grad); color: #fff; border-radius: 14px;
  padding: 16px 22px; text-align: center; box-shadow: 0 14px 34px -12px rgba(236,22,127,0.8);
  display: flex; flex-direction: column; line-height: 1;
}
.about-badge-num { font-size: 0.72rem; letter-spacing: 0.14em; opacity: 0.85; }
.about-badge-year { font-family: var(--font-head); font-weight: 900; font-size: 1.7rem; margin-top: 4px; }
.about-body p { color: var(--muted); margin-top: 16px; }
.about-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about-list li { position: relative; padding-inline-start: 30px; color: #d3d6e6; }
.about-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft); border: 1.5px solid var(--accent);
}
.about-list li::after {
  content: ""; position: absolute; inset-inline-start: 5px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ============================================================
   MISSION
   ============================================================ */
.mission { overflow: hidden; }
.mission-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.mission-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(5,6,13,0.92) 40%, rgba(5,6,13,0.96) 100%);
}
.mission-content { position: relative; }
.mission-head { max-width: 760px; margin-bottom: 50px; }
.mission-lead { color: #d3d6e6; font-size: clamp(1.02rem, 1.5vw, 1.2rem); margin-top: 16px; }

.mission-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Glass card (shared) */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  backdrop-filter: blur(6px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.glass-card:hover { transform: translateY(-6px); border-color: rgba(236,22,127,0.5); background: var(--surface-2); }
.glass-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; color: #fff; margin-bottom: 12px; }
.glass-card p { color: var(--muted); font-size: 0.95rem; }

.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(236,22,127,0.3);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 3px; width: 0;
  background: var(--grad); transition: width .35s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.service-card:hover::before { width: 100%; }
.service-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: #fff; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   PROJECTS / GALLERY
   ============================================================ */
.projects { background: var(--bg-2); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
/* show the full image (no crop) — e.g. wide aerial shots */
.gallery-item.contain img { object-fit: contain; background: radial-gradient(circle at 50% 40%, #141826 0%, #0a0c16 100%); }
.gallery-item.contain:hover img { transform: scale(1.03); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; gap: 8px;
  background: linear-gradient(180deg, transparent 40%, rgba(5,6,13,0.85) 100%);
  color: #fff;
}
.gallery-item figcaption span:last-child { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.tag {
  align-self: flex-start; font-family: var(--font-head); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 5px 11px; border-radius: 999px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info p { color: var(--muted); margin-top: 12px; max-width: 440px; }
.contact-list { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(236,22,127,0.3);
}
.contact-list strong { display: block; font-family: var(--font-head); color: #fff; font-size: 0.95rem; margin-bottom: 2px; }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-list a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: 0.86rem; color: #d3d6e6; }
.field input, .field textarea {
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px; color: #fff;
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color .2s, background .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 0.88rem; color: var(--muted); min-height: 1.2em; }
.form-note.ok { color: #4ade80; }
.form-note.err { color: #f87171; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { padding-inline-start: 0; margin-bottom: 6px; display: inline-flex; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 360px; font-size: 0.92rem; }
.footer-col h4 { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a { position: relative; z-index: 1; width: max-content; transition: color .25s ease, text-shadow .25s ease; }
.footer-col a::before {
  content: ""; position: absolute; inset: -3px -8px; z-index: -1; border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(236, 22, 127, 0.5) 0%, rgba(236, 22, 127, 0) 70%);
  opacity: 0; filter: blur(7px); transition: opacity .3s ease; pointer-events: none;
}
.footer-col a:hover, .footer-col a:focus-visible { color: #fff; text-shadow: 0 0 12px rgba(236, 22, 127, 0.5); }
.footer-col a:hover::before, .footer-col a:focus-visible::before { opacity: 1; }
/* footer brand monogram glow (matches the header logo light) */
.footer-brand .brand-mark { display: inline-block; transition: filter .35s ease; }
.footer-brand .brand-mark:hover { filter: drop-shadow(0 0 16px rgba(236, 22, 127, 0.75)); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom .container { text-align: center; color: var(--muted-2); font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin: 0 auto; }
  .about-badge { inset-inline-end: 10px; }
  .mission-cards, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Nav collapses to a slide-in menu below desktop widths (covers tablets) */
@media (max-width: 1080px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: #0a0c16; border-inline-start: 1px solid var(--border);
    flex-direction: column; padding: 104px 26px 40px; gap: 6px;
    transform: translateX(100%); transition: transform .35s ease; z-index: 90;
  }
  [dir="rtl"] .main-nav { inset: 0 auto 0 0; border-inline-start: 0; border-inline-end: 1px solid var(--border); transform: translateX(-100%); }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; padding: 12px 14px; width: 100%; }
  .nav-toggle { display: flex; z-index: 95; }
  .nav-cta { display: none; }
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .mission-cards, .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-divider, .bw-3 { display: none; }
  .bw-1 { font-size: 0.92rem; }
  .bw-2 { font-size: 0.62rem; }
}
@media (max-width: 400px) {
  .brand-word { display: none; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   INNER PAGES (About / Services)
   ============================================================ */
.page-hero { position: relative; padding: 160px 0 80px; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,13,0.72) 0%, rgba(5,6,13,0.9) 100%),
    radial-gradient(760px 380px at 18% 20%, rgba(236,22,127,0.26), transparent 60%);
}
.page-hero-content { position: relative; max-width: 760px; }
.page-hero h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem, 5.5vw, 3.7rem); line-height: 1.05; color: #fff; }
.page-hero p { color: #d3d6e6; margin-top: 16px; font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 620px; }
.breadcrumb { font-size: 0.84rem; color: var(--muted-2); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--gold); }

/* Alternating feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(44px, 6vw, 84px); }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.1; object-fit: cover; }
.feature-body .eyebrow { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: rgba(255,255,255,0.1); line-height: 1; }
.feature-body h3 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; margin: 8px 0 14px; }
.feature-body p { color: var(--muted); }
.feature-body p + p { margin-top: 14px; }

/* Values / info card grid (reuses .glass-card / .service-card) */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg-3); padding: 28px 24px; }
.fact-k { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em; }
.fact-v { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.15rem; margin-top: 8px; }
.fact-v .gold { color: var(--gold); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 30px 24px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--grad);
  box-shadow: 0 10px 24px -10px rgba(236,22,127,0.7);
}
.step h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: #fff; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* CTA band */
.cta-band {
  text-align: center; border-radius: var(--radius); padding: clamp(38px, 6vw, 64px);
  background: linear-gradient(120deg, rgba(236,22,127,0.16), rgba(162,28,175,0.16));
  border: 1px solid rgba(236,22,127,0.32);
}
.cta-band h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: #fff; }
.cta-band p { color: #d3d6e6; margin: 14px auto 26px; max-width: 560px; }

.section.alt { background: var(--bg-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

@media (max-width: 980px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .facts, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .values-grid, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
