/* ============================================================
   ITI MEDICA — Global Stylesheet (v2)
   Brand: teal #0C4C4C · gold #FCB833 · white
   Type: Raleway — line-height & letter-spacing: normal
   ============================================================ */

:root {
  --teal: #0C4C4C;
  --teal-card: #135C5C;
  --teal-deep: #062D2E;
  --ink: #1A3838;
  --gold: #FCB833;
  --gold-dark: #C98C1A;
  --white: #FFFFFF;
  --off-white: #F8FAFA;
  --muted: #C9DEDE;
  --body: #526B6B;
  --gray: #8C9E99;
  --border: #D9E5E5;

  --font: "Raleway", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1440px;
  --pad-x: clamp(20px, 3.9vw, 56px);
  --radius-card: 14px;
  --radius-panel: 18px;
  --radius-founder: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--gold); color: var(--teal); }

.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- Type scale (verified foundation) ---------- */
h1, .h1 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); font-weight: 700; }          /* 56 */
.h1-inner { font-size: clamp(2rem, 3.6vw, 2.875rem); font-weight: 600; }         /* 46 */
h2, .h2 { font-size: clamp(1.65rem, 2.6vw, 2.1875rem); font-weight: 700; }       /* 35 */
h3, .h3 { font-size: 25px; font-weight: 700; }
.lede { font-size: 16px; color: var(--body); max-width: 62ch; }
.on-dark .lede, .lede.on-dark { color: var(--muted); }
.body-sm { font-size: 14px; }
.caption { font-size: 13px; color: var(--gray); }
.footnote { font-size: 12px; color: var(--gray); }

.gold { color: var(--gold); }
.gold-dark { color: var(--gold-dark); }

/* ---------- Tag (gold pill) ---------- */
.tag {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 700;
}
.tag.tag-outline { background: transparent; border: 1px solid var(--border); color: var(--gold-dark); }
.tag.tag-chip { background: var(--white); border: 1px solid var(--border); color: var(--teal); gap: 8px; }
.tag.tag-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- Buttons — pill, no arrows ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--teal); box-shadow: 0 10px 26px -12px rgba(252, 184, 51, 0.6); }
.btn-gold:hover { box-shadow: 0 16px 34px -12px rgba(252, 184, 51, 0.75); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-card); }
.btn-outline-gold { border: 1px solid var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: rgba(252, 184, 51, 0.1); }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.play-ring {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.2px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
}

/* ---------- Floating pill navbar ---------- */
.site-header {
  position: absolute;
  top: 36px; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  padding: 0 var(--pad-x);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(28px, 4vw, 64px);
  background: var(--white);
  border-radius: 999px;
  padding: 18px 40px;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.18);
}
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-links a.active { color: var(--gold-dark); font-weight: 700; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--teal); display: block; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo .mark { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo .mark .ar { font-size: 10px; font-weight: 500; }
.logo .mark .en { font-size: 22px; font-weight: 700; color: var(--gold-dark); }
.logo .word { font-size: 19px; font-weight: 700; }
.logo.logo-teal .mark .ar, .logo.logo-teal .word { color: var(--teal); }
.logo.logo-white .mark .ar, .logo.logo-white .word { color: var(--white); }
.logo.logo-white .mark .en { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 6.5vw, 88px) 0; }
.section-teal { background: var(--teal); color: var(--white); }
.section-white { background: var(--white); }
.section-off { background: var(--off-white); }
.section-center { text-align: center; }
.section-center .container > * { margin-left: auto; margin-right: auto; }

.section-head { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: clamp(36px, 4vw, 52px); }
.section-head .sub { max-width: 76ch; }
.section-teal .section-head .sub { color: var(--muted); }
.section-white .section-head .sub, .section-off .section-head .sub { color: var(--body); }

/* ---------- Hero (Home — video banner) ---------- */
.hero-video {
  position: relative;
  background: var(--teal);
  color: var(--white);
  overflow: hidden;
  text-align: center;
  padding: 170px 0 110px;
}
.hero-video .bg-video,
.hero-video .bg-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video .bg-fallback {
  background:
    radial-gradient(900px 500px at 80% 100%, rgba(252, 184, 51, 0.28), transparent 60%),
    radial-gradient(800px 500px at 15% 0%, rgba(19, 92, 92, 0.9), transparent 65%),
    var(--teal);
}
.hero-video .scrim { position: absolute; inset: 0; background: rgba(6, 45, 46, 0.55); z-index: 1; }
.hero-video .map-layer { position: absolute; inset: 0; z-index: 2; opacity: 0.4; pointer-events: none; }
.hero-video .map-layer svg { width: 100%; height: 100%; }
.hero-video .container { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 26px; }

.video-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12.5px; font-weight: 500;
}
.video-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #F24C40; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.hero-eyebrow { font-size: 13px; font-weight: 600; color: var(--gold); }
.hero-video .lede { color: var(--muted); max-width: 60ch; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 170px 0 100px;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.page-hero .lede { color: var(--muted); }
.page-hero .map-bg { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.page-hero .map-bg svg { width: 100%; height: 100%; }

/* ---------- Stats ---------- */
.stats-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: clamp(40px, 4.5vw, 60px) 0; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.stat .num { font-size: clamp(2.4rem, 4.5vw, 3.5rem); font-weight: 700; color: var(--teal); }
.stat .label { font-size: 14px; color: var(--body); }
.section-teal .stat .num { color: var(--gold); }
.section-teal .stat .label { color: var(--muted); }
.stat-note { font-size: 12px; color: var(--gray); text-align: center; margin-top: 28px; }
.section-teal .stat-note { color: #6B8888; }

/* ---------- Image placeholders ---------- */
.img-ph {
  position: relative;
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, #1A7070, var(--teal-deep));
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted);
  font-size: 12px; font-weight: 500;
  min-height: 220px;
}
.img-ph::before {
  content: "";
  width: 40px; height: 40px;
  border: 1.5px solid rgba(252, 184, 51, 0.7);
  border-radius: 50%;
}

/* ---------- Cards (What we do) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 432px)); justify-content: center; margin-top: 32px; }

.svc-card {
  background: var(--teal-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -25px rgba(0, 0, 0, 0.5); }
.svc-card .img-ph { border-radius: 0; min-height: 190px; }
.svc-card .content { padding: 26px 28px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; }
.svc-card h3 { color: var(--white); font-size: 25px; }
.svc-card p { font-size: 14px; color: var(--muted); flex: 1; }
.svc-card .link { font-size: 14px; font-weight: 600; color: var(--gold); }
.svc-card .link:hover { text-decoration: underline; }

/* ---------- Icon points ---------- */
.icon-ring {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.3px solid var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.icon-ring svg { width: 22px; height: 22px; }
.icon-ring.ring-teal { border-color: var(--teal); color: var(--teal); }

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.point { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.point h4 { font-size: 16.5px; font-weight: 700; }
.point p { font-size: 13px; }
.section-teal .point h4 { color: var(--white); }
.section-teal .point p { color: var(--muted); }
.section-white .point h4 { color: var(--teal); }
.section-white .point p { color: var(--body); }
.points + .points { margin-top: 48px; }

/* ---------- Why Oman (bg image band) ---------- */
.why-oman { position: relative; color: var(--white); overflow: hidden; text-align: center; }
.why-oman .bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(6, 45, 46, 0.62), rgba(6, 45, 46, 0.62)),
    linear-gradient(120deg, #146060 0%, var(--teal-deep) 55%, #8C6410 100%);
}
.why-oman .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 32px; padding-top: clamp(60px, 6.5vw, 88px); padding-bottom: clamp(60px, 6.5vw, 88px); }
.why-oman .points { width: 100%; padding-top: 12px; }

/* ---------- Principles (What drives us) ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principle { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.principle h3 { color: var(--white); font-size: 25px; }
.principle p { font-size: 14px; color: var(--muted); max-width: 40ch; }

/* ---------- Founders ---------- */
.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.founder-card {
  background: var(--white);
  border-radius: var(--radius-founder);
  overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(6, 45, 46, 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.founder-card:hover { transform: translateY(-6px); box-shadow: 0 30px 55px -18px rgba(6, 45, 46, 0.22); }
.founder-card .photo {
  aspect-ratio: 392 / 440;
  background: linear-gradient(180deg, #1A7070, var(--teal-deep));
  position: relative;
}
.founder-card .photo::before {
  content: "";
  position: absolute; top: 26%; left: 50%; transform: translateX(-50%);
  width: 28%; aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(252, 184, 51, 0.12);
  border: 1.5px solid rgba(252, 184, 51, 0.5);
}
.founder-card .photo::after {
  content: "";
  position: absolute; top: 57%; left: 50%; transform: translateX(-50%);
  width: 61%; height: 34%;
  border-radius: 50% 50% 0 0;
  background: rgba(252, 184, 51, 0.12);
  border: 1.5px solid rgba(252, 184, 51, 0.5);
  border-bottom: none;
}
.founder-card .band { padding: 26px 24px 30px; text-align: center; }
.founder-card .band .name { font-size: 20px; font-weight: 700; color: var(--teal); }
.founder-card .band .role { font-size: 14px; color: var(--body); margin-top: 6px; }

/* ---------- Service rows (Services page) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:first-of-type { border-top: 1px solid var(--border); }
.service-row .no { font-size: 30px; font-weight: 700; color: var(--gold-dark); }
.service-row h3 { color: var(--teal); margin-bottom: 8px; }
.service-row p { font-size: 16px; color: var(--body); max-width: 70ch; }
.service-row .go {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s var(--ease);
}
.service-row:hover .go { background: var(--teal); color: var(--gold); border-color: var(--teal); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service-tags span {
  font-size: 12px; font-weight: 600;
  color: var(--teal);
  background: rgba(12, 76, 76, 0.06);
  border: 1px solid var(--border);
  padding: 5px 13px; border-radius: 999px;
}

/* ---------- Steps (How we work) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.step .badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--teal);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { color: var(--white); font-size: 25px; }
.step p { font-size: 14px; color: var(--muted); max-width: 34ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--white); text-align: center; }
.cta-band .container { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: clamp(56px, 6vw, 72px); padding-bottom: clamp(56px, 6vw, 72px); }
.cta-band h2 { color: var(--teal); }
.cta-band p { font-size: 16px; color: var(--body); }

/* ---------- Contact ---------- */
.contact-main { display: grid; grid-template-columns: 560px 1fr; gap: clamp(32px, 4.5vw, 64px); align-items: stretch; }
.map-panel {
  position: relative;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(300px 200px at 50% 48%, rgba(252, 184, 51, 0.25), transparent 70%),
    linear-gradient(135deg, #146060, var(--teal-deep));
  overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.map-panel .pin { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.map-panel .pin .ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  margin: 0 auto 14px;
  position: relative;
}
.map-panel .pin .ring::after {
  content: "";
  position: absolute; inset: 12px;
  border-radius: 50%; background: var(--gold);
}

.form-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-panel); padding: clamp(26px, 3vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font: inherit; font-size: 14px;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(252, 184, 51, 0.18);
}
.field textarea { min-height: 130px; resize: vertical; }

.reach-card {
  margin-top: 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-panel);
  padding: 28px;
}
.reach-card h4 { font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 16px; }
.reach-line { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; }
.reach-line svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: var(--muted); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1.2fr;
  gap: clamp(30px, 4vw, 60px);
  padding: clamp(48px, 5.5vw, 68px) 0 44px;
}
.footer-grid h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid ul a { font-size: 14px; color: var(--muted); transition: color 0.25s; }
.footer-grid ul a:hover { color: var(--gold); }
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 30ch; }

.footer-contact li { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.footer-contact svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(201, 222, 222, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s;
}
.socials a svg { width: 14px; height: 14px; fill: var(--muted); }
.socials a:hover { border-color: var(--gold); background: rgba(252, 184, 51, 0.1); }
.socials a:hover svg { fill: var(--gold); }

.newsletter { display: flex; border: 1px solid rgba(201, 222, 222, 0.3); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.newsletter input {
  flex: 1; min-width: 0;
  background: transparent; border: none;
  padding: 13px 20px;
  color: var(--white); font: inherit; font-size: 13px;
}
.newsletter input:focus { outline: none; }
.newsletter input::placeholder { color: var(--gray); }
.newsletter button {
  background: var(--gold); color: var(--teal);
  padding: 0 22px; font-weight: 700;
}
.footer-note { font-size: 13px; margin-bottom: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(201, 222, 222, 0.16);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #7FA0A0;
}
.footer-bottom .legal { display: flex; gap: 26px; }
.footer-bottom .legal a:hover { color: var(--gold); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .video-chip .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Split (Our story) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5.5vw, 80px); align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; gap: 36px; }
  .contact-main { grid-template-columns: 1fr; }
  .map-panel { min-height: 320px; }
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .nav-pill { width: 100%; justify-content: space-between; padding: 14px 22px; }
  .nav-links {
    position: fixed; inset: 92px 16px auto 16px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    flex-direction: column; align-items: flex-start;
    padding: 22px 26px;
    gap: 16px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: flex; }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row .go { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Logo assets ---------- */
.logo img { height: 40px; width: auto; display: block; }
.logo-footer img { height: 50px; }

/* Banner buttons — bold gold pills */
.btn-gold { font-weight: 700; }

/* ---------- Hero video: natural (auto) height, content overlaid ---------- */
.hero-video { padding: 0; }
.hero-video .bg-video { position: relative; width: 100%; height: auto; min-height: 560px; object-fit: cover; z-index: 0; }
.hero-video .scrim { background: rgba(6, 45, 46, 0.6); }
.hero-video .container {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 24px;
  padding-top: 60px;
}

/* ---------- About hero: world map asset ---------- */
.page-hero .map-bg { display: flex; justify-content: center; align-items: flex-end; }
.map-wrap { position: relative; width: min(978px, 92%); margin-bottom: -40px; }
.map-wrap img { width: 100%; height: auto; opacity: 0.35; }
.map-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Tighter header-to-body rhythm (all pages/sections) ---------- */
.section-head { gap: 12px; margin-bottom: clamp(26px, 3vw, 38px); }
.hero-video .container { gap: 16px; }
.page-hero .container { gap: 14px; }
.why-oman .container { gap: 20px; }
.cta-band .container { gap: 14px; }

/* ---------- Uniform 32px vertical rhythm ---------- */
.section-head { margin-bottom: 32px; }          /* header block -> body content */
.btn-row { margin-top: 18px; }                  /* text -> buttons (16 gap + 18 = ~32) */
.why-oman .points { margin-top: 12px; }         /* intro -> icon row = 32 total */
.points { row-gap: 40px; }
.section .points + .points { margin-top: 40px; }

/* Restore original header-block -> content spacing (internal header gap stays tight) */
.section-head { margin-bottom: clamp(36px, 4vw, 52px); }

/* ---------- About hero: map below the text, like Figma ---------- */
.map-flow { display: flex; justify-content: center; }
.page-hero { overflow: visible; }
.about-map, .map-flow .map-wrap { margin-top: -36px; margin-bottom: -60px; }

/* ---------- Icon columns: real gutters ---------- */
.points { gap: 40px 56px; }

/* ---------- Hero video: content can never overflow (no hanging text) ---------- */
.hero-video { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 0; }
.hero-video .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.hero-video .container { position: relative; inset: auto; height: auto; padding-top: 140px; padding-bottom: 80px; }

/* ---------- Responsive checks ---------- */
@media (max-width: 900px) {
  .hero-video { aspect-ratio: auto; }
  .hero-video .container { padding-top: 130px; padding-bottom: 60px; }
  .map-flow .map-wrap { margin: 0 0 -20px; }
  .page-hero { padding-top: 150px; }
  .points { gap: 32px 24px; }
}

/* CTA button — same text-to-button spacing as other sections (~32px) */
.cta-band .btn { margin-top: 18px; }

/* Map: quieter continents, louder Muscat */
.map-flow .map-wrap img { opacity: 0.18; }

/* ---------- Map animation: flowing routes, pulsing locations ---------- */
.map-wrap .routes path {
  animation: routeFlow 18s linear infinite;
}
@keyframes routeFlow { to { stroke-dashoffset: -200; } }

.map-wrap .city-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotPulse 2.6s ease-in-out infinite;
}
.map-wrap .city-dot:nth-of-type(2n) { animation-delay: 0.6s; }
.map-wrap .city-dot:nth-of-type(3n) { animation-delay: 1.2s; }
.map-wrap .city-dot:nth-of-type(4n) { animation-delay: 1.8s; }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.75; }
}

.map-wrap .muscat-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: muscatPing 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes muscatPing {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .map-wrap .routes path, .map-wrap .city-dot, .map-wrap .muscat-pulse { animation: none; }
}

/* ---------- Contact map panel: full-bleed world map, Muscat centred ---------- */
.map-panel { overflow: hidden; }
.map-panel .world {
  position: absolute;
  left: 50%; top: 50%;
  width: 230%; max-width: none;
  transform: translate(-66%, -43.5%); /* puts Oman at panel centre */
  opacity: 0.26;
  pointer-events: none;
}
.map-panel .pin { position: relative; z-index: 1; }
.map-panel .pin .ring::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: muscatPing 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .map-panel .pin .ring::before { animation: none; }
}

/* ---------- Contact: real Google Maps embed ---------- */
.map-panel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Why Oman: fixed background image (no stretch, no scroll movement) ---------- */
.why-oman .bg {
  background:
    linear-gradient(rgba(6, 45, 46, 0.72), rgba(6, 45, 46, 0.72)),
    url("../img/why-oman-bg.jpg");
  background-size: cover;          /* keeps aspect ratio — never stretched */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;    /* image stays still while the page scrolls */
}
/* iOS/mobile: fixed attachment is unreliable — fall back gracefully */
@media (max-width: 900px), (hover: none) {
  .why-oman .bg { background-attachment: scroll; }
}

/* What we do — real card images */
.svc-card .card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;   /* fills without stretching */
  display: block;
}

/* About — real images */
.story-img {
  width: 100%;
  min-height: 380px;
  height: 100%;
  object-fit: cover;   /* no stretching */
  border-radius: var(--radius-panel);
  display: block;
}
.founder-card .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-card .photo::before,
.founder-card .photo::after { display: none; }  /* hide silhouette when a real photo is present */

/* ============================================================
   Performance pass — smooth scrolling
   ============================================================ */

/* 1. background-attachment:fixed causes per-frame repaints (main lag source).
      Replace with GPU-friendly clip-path + fixed layer — same visual effect. */
.why-oman { clip-path: inset(0); }
.why-oman .bg {
  position: fixed;
  inset: 0;
  background-attachment: scroll !important;
  will-change: transform;
}
@media (max-width: 900px), (hover: none) {
  .why-oman { clip-path: none; }
  .why-oman .bg { position: absolute; }
}

/* 2. Promote animated map pieces to their own compositor layers */
.map-wrap .city-dot, .map-wrap .muscat-pulse { will-change: transform, opacity; }
.map-panel .pin .ring::before { will-change: transform, opacity; }

/* 3. Route-line animation is paint-heavy — slow it down and lighten it */
.map-wrap .routes path { animation-duration: 36s; }

/* 4. Skip rendering work for below-the-fold sections until needed */
.cta-band, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* 5. GPU-hint the reveal animation, release after it settles */
.reveal { will-change: opacity, transform; }
.reveal.in { will-change: auto; }

/* 6. Keep hover effects on transform/shadow only where cheap */
.svc-card, .founder-card { backface-visibility: hidden; }

/* ============================================================
   Responsive fixes
   ============================================================ */

/* prevent any accidental horizontal scroll */
html, body { overflow-x: hidden; }

/* contact split: flexible map column instead of hard 560px */
.contact-main { grid-template-columns: minmax(340px, 560px) 1fr; }
@media (max-width: 1024px) {
  .contact-main { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  /* remove Quick links column on mobile */
  .footer-quick { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }

  /* tighter type & rhythm on small screens */
  h1, .h1 { font-size: 2.1rem; }
  .h1-inner { font-size: 1.85rem; }
  h2, .h2 { font-size: 1.55rem; }
  h3, .h3 { font-size: 21px; }
  .section { padding: 52px 0; }
  .page-hero { padding: 140px 0 70px; }
  .hero-video .container { padding-top: 130px; padding-bottom: 56px; }

  /* nav pill */
  .logo img { height: 32px; }

  /* stats */
  .stat .num { font-size: 2.2rem; }
  .stats-grid { gap: 30px 16px; }

  /* about */
  .story-img { min-height: 240px; }
  .map-wrap svg text { font-size: 9px; }

  /* contact */
  .map-panel { min-height: 300px; }
  .reach-card { padding: 22px; }

  /* buttons full-width feel on tiny screens */
  .btn { padding: 14px 26px; font-size: 15px; }
}

@media (max-width: 480px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================================
   Nav: fixed, auto-hide on scroll down / show on scroll up
   ============================================================ */
.site-header {
  position: fixed;
  transition: transform 0.35s var(--ease);
  will-change: transform;
}
.site-header.nav-hidden { transform: translateY(-150%); }

/* Smaller nav pill on mobile + lower dropdown */
@media (max-width: 800px) {
  .site-header { top: 14px; }
  .nav-pill { padding: 9px 18px; gap: 16px; }
  .logo img { height: 26px; }
  .nav-toggle span { width: 20px; }
  .nav-links {
    inset: 78px 16px auto 16px;   /* sits clearly below the smaller pill */
  }
}


/* ============================================================
   Tablet fixes (Surface Pro / iPad Pro / iPad — 801px to 1024px)
   ============================================================ */
@media (max-width: 1024px) and (min-width: 801px) {
  /* icon points: 3 columns on tablets */
  .points { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }

  /* principles: keep 3-up instead of a long single column */
  .principles { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .principle p { max-width: none; }

  /* founders: keep 3-up so no orphan card */
  .founder-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .founder-card .band { padding: 20px 16px 24px; }
  .founder-card .band .name { font-size: 18px; }

  /* what-we-do: 2-up, but let an orphan card span the full row */
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > .svc-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* steps: keep the 4-step line, tighter */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step p { max-width: none; }
}

/* phones landscape / small tablets: 2 columns of points */
@media (max-width: 800px) {
  .points { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
}
/* small phones: single column */
@media (max-width: 540px) {
  .points { grid-template-columns: 1fr; }
}

/* ============================================================
   Nav-to-content clearance — consistent at every screen size
   ============================================================ */

/* Home hero: content-driven height with guaranteed gap below the nav,
   video always covers the section behind it */
.hero-video {
  display: block;
  aspect-ratio: auto;
  min-height: 560px;
}
.hero-video .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video .container {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
  padding-top: 178px;   /* nav bottom ≈ 114px + 64px breathing room */
  padding-bottom: 96px;
}

/* Inner page heroes: same 64px clearance below the nav */
.page-hero { padding-top: 178px; }

@media (max-width: 1024px) {
  .hero-video .container { padding-top: 168px; padding-bottom: 80px; }
  .page-hero { padding-top: 168px; }
}
@media (max-width: 800px) {
  /* mobile nav bottom ≈ 64px + 60px breathing room */
  .hero-video .container { padding-top: 124px; padding-bottom: 56px; }
  .page-hero { padding-top: 124px; padding-bottom: 60px; }
  .hero-video { min-height: 480px; }
}

/* ---------- Simplified equal-size card layout ---------- */
/* desktop: 3 per row (5 cards -> 3 + 2); tablet: 2,2,1; mobile: 1 per row */
.card-grid > .svc-card:last-child:nth-child(odd) { grid-column: auto; }

/* 1. Home hero: full screen again (content centered, nav clearance kept) */
.hero-video { display: flex; align-items: center; min-height: 100svh; }
.hero-video .container { padding-top: 140px; padding-bottom: 80px; }

/* 2. Service cards: desktop rows centered (3 on top, 2 centered below), equal sizes */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.card-grid .svc-card { flex: 0 1 calc((100% - 64px) / 3); min-width: 0; }
@media (max-width: 1024px) {
  .card-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .card-grid { display: grid; grid-template-columns: 1fr; }
}

/* ============================================================
   In-between screens: cards 2-up (not stretched), orphans centered;
   icon rows centered at every width
   ============================================================ */

/* service cards: 2 columns from 561px up to 1024px, last odd card centered */
@media (max-width: 1024px) {
  .card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
  .card-grid .svc-card { flex: 0 1 calc((100% - 28px) / 2); }
}
@media (max-width: 560px) {
  .card-grid .svc-card { flex: 0 1 100%; }
}

/* icon points: centered flex rows — incomplete rows always center */
.points { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 56px; }
.points .point { flex: 0 1 calc((100% - 168px) / 4); }
@media (max-width: 1024px) {
  .points { gap: 40px 32px; }
  .points .point { flex: 0 1 calc((100% - 64px) / 3); }
}
@media (max-width: 800px) {
  .points { gap: 34px 20px; }
  .points .point { flex: 0 1 calc((100% - 20px) / 2); }
}
@media (max-width: 540px) {
  .points .point { flex: 0 1 100%; }
}

/* Icon points: keep 2 columns on mobile and smaller screens */
@media (max-width: 540px) {
  .points { gap: 30px 16px; }
  .points .point { flex: 0 1 calc((100% - 16px) / 2); }
  .points .point h4 { font-size: 14.5px; }
}

/* Mobile dropdown: sit directly under the nav pill (8px gap, any pill size) */
@media (max-width: 800px) {
  .nav-pill { position: relative; }
  .nav-links {
    position: absolute;
    inset: auto;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
  }
}

/* Hero video clarity: lighter scrim + gentle text shadow keeps legibility */
.hero-video .scrim { background: rgba(6, 45, 46, 0.42); }
.hero-video h1, .hero-video .lede, .hero-video .hero-eyebrow {
  text-shadow: 0 2px 18px rgba(4, 24, 24, 0.45);
}

/* Hero overlay: a touch darker */
.hero-video .scrim { background: rgba(6, 45, 46, 0.52); }
