/* ===== Impact Explorers — Refined Reference Design ===== */

:root {
  --ink: #0E0E0E;
  --ink-soft: #2A2A2A;
  --paper: #FAFAF7;
  --cream: #F1ECE3;
  --cream-deep: #E8E0D2;
  --brand: #04964F;        /* Impact Explorers brand green */
  --brand-deep: #02562D;   /* Darker brand green for backgrounds */
  --forest: #04964F;       /* Alias to brand green */
  --forest-deep: #02562D;  /* Alias to brand deep */
  --terracotta: #B86B4A;
  --muted: #6B6B66;
  --rule: #D9D4C8;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);

  --radius-sm: 4px;
  --radius-md: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 1.25rem;
  display: inline-block;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-y) 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all .25s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--forest); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250,250,247,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}

/* Site logo image — compact and balanced */
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img {
  height: 52px !important;
  width: auto;
  display: block;
  transition: filter .3s var(--ease), height .3s var(--ease);
  filter: brightness(0) invert(1);
}
.site-header.scrolled .site-logo img {
  height: 42px !important;
  filter: none;
}
@media (max-width: 1024px) {
  .site-logo img { height: 46px !important; }
  .site-header.scrolled .site-logo img { height: 40px !important; }
}
@media (max-width: 768px) {
  .site-logo img { height: 42px !important; }
  .site-header.scrolled .site-logo img { height: 38px !important; }
}
@media (max-width: 560px) {
  .site-logo img { height: 38px !important; }
  .site-header.scrolled .site-logo img { height: 34px !important; }
}

/* Header padding */
.site-header { padding: 14px 0; }
.site-header.scrolled { padding: 8px 0; }

/* Prevent nav items from wrapping */
.nav-primary a { white-space: nowrap; }

/* Footer brand logo */
.footer-brand .site-logo {
  display: block;
  margin-bottom: 1.25rem;
  line-height: 0;
}
.footer-brand .site-logo img {
  height: 56px !important;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-primary { display: flex; gap: 32px; align-items: center; }
.nav-primary a {
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.site-header.scrolled .nav-primary a {
  color: var(--ink);
  text-shadow: none;
}
.nav-primary a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  height: 1.5px; width: 0; background: currentColor;
  transition: width .25s var(--ease);
}
.nav-primary a:hover::after { width: 100%; }

/* Header actions group — proposal + secondary */
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-secondary {
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.site-header.scrolled .header-secondary { color: var(--ink); text-shadow: none; }
.header-secondary:hover { opacity: 0.8; }

/* Primary Request Proposal CTA — brand green */
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .25s var(--ease);
  box-shadow: 0 4px 16px rgba(4,150,79,0.35);
}
.header-cta:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(4,150,79,0.45);
}

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column; gap: 6px; justify-content: center;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--paper); transition: background .3s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

@media (max-width: 1024px) {
  .nav-primary { gap: 24px; }
  .nav-primary a { font-size: 0.92rem; }
  .header-secondary { display: none; }
}
@media (max-width: 880px) {
  .nav-primary { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex; align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../assets/images/hero-mangrove.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 35%, rgba(0,0,0,0.75) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  padding: 0 var(--gutter) clamp(60px, 8vw, 100px);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero h1 {
  color: var(--paper);
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
}
.hero p {
  color: rgba(250,250,247,0.9);
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  color: var(--paper);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 12px;
  opacity: 0.7;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px; background: var(--paper);
}

/* ===== Stats strip ===== */
.stats {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(40px, 6vw, 70px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--forest);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ===== Section: Brands ===== */
.brands-section { background: var(--paper); }
.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.section-head p { color: var(--ink-soft); margin-top: 1.25rem; }

.brand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.brand-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--paper);
  cursor: pointer;
}
.brand-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.brand-card:hover img { transform: scale(1.05); }
.brand-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.75) 100%);
}
.brand-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(28px, 4vw, 48px);
  z-index: 2;
}
.brand-card-content .eyebrow { color: var(--cream); }
.brand-card h3 {
  color: var(--paper);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 12px;
}
.brand-card p {
  color: rgba(250,250,247,0.85);
  max-width: 32ch;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}
.brand-card .link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 500;
  border-bottom: 1px solid var(--paper);
  padding-bottom: 3px;
}
.brand-card .link .arrow { transition: transform .25s var(--ease); }
.brand-card:hover .link .arrow { transform: translateX(4px); }

/* ===== Programs grid ===== */
.programs-section { background: var(--cream); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.program-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--ink);
}
.program-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), opacity .5s var(--ease);
  opacity: 0.75;
}
.program-card:hover img { transform: scale(1.06); opacity: 0.85; }
.program-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
}
.program-card-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px;
  z-index: 2;
  color: var(--paper);
}
.program-card h4 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.program-card .count {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ===== Destinations ===== */
.destinations-section { background: var(--paper); }
.dest-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 20px);
}
.dest-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.dest-card.tall { grid-row: span 2; }
.dest-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.dest-card:hover img { transform: scale(1.05); }
.dest-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.75) 100%);
}
.dest-label {
  position: absolute;
  bottom: 24px; left: 24px;
  z-index: 2;
  color: var(--paper);
}
.dest-label h4 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.dest-label span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ===== B Corp Section ===== */
.bcorp-section {
  background: var(--forest-deep);
  color: var(--paper);
}
.bcorp-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.bcorp-logo-wrap {
  display: flex; justify-content: center;
}
.bcorp-logo-wrap img { width: 180px; height: auto; }
.bcorp-section h2 { color: var(--paper); margin-bottom: 1.5rem; }
.bcorp-section p {
  color: rgba(250,250,247,0.85);
  font-size: 1.1rem;
  max-width: 55ch;
  margin-bottom: 1.75rem;
}
.bcorp-section .btn-light { background: var(--paper); color: var(--forest-deep); }
.bcorp-section .btn-light:hover { background: var(--cream); }

/* ===== Education Travel / Faculty CTA ===== */
.split-cta {
  background: var(--paper);
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.split-card {
  position: relative;
  padding: clamp(40px, 5vw, 64px);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--paper);
}
.split-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.split-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.split-card > * { position: relative; z-index: 2; }
.split-card .eyebrow { color: var(--cream); }
.split-card h3 {
  color: var(--paper);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 12px;
}
.split-card p {
  color: rgba(250,250,247,0.85);
  margin-bottom: 1.75rem;
  max-width: 38ch;
}

/* ===== Testimonials ===== */
.testimonials-section { background: var(--cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.testimonial {
  background: var(--paper);
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
}
.stars {
  color: var(--terracotta);
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-attr {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem;
}
.testimonial-attr strong { display: block; font-weight: 600; }
.testimonial-attr span { color: var(--muted); font-size: 0.85rem; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: grid; place-items: center;
  font-weight: 600; color: var(--forest);
  font-family: var(--serif);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(60px, 8vw, 100px) 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(241,236,227,0.15);
}
.footer-brand h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(241,236,227,0.7);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  max-width: 36ch;
}
.footer-bcorp img { width: 64px; height: auto; opacity: 0.85; }

/* Social links in footer */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(241,236,227,0.2);
  border-radius: 50%;
  color: rgba(241,236,227,0.7);
  transition: all .25s var(--ease);
  text-decoration: none;
}
.social-links a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
  transform: translateY(-2px);
}
.social-links svg {
  width: 18px; height: 18px;
  fill: currentColor;
  display: block;
}
.footer-col h5 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 1rem 0;
  padding: 0;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col li:last-child { margin-bottom: 0; }
.footer-col a {
  color: rgba(241,236,227,0.7);
  font-size: 0.92rem;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(241,236,227,0.5);
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--paper); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-primary { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .brand-split { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .dest-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
  }
  .dest-card.tall { grid-row: span 1; }
  .bcorp-inner { grid-template-columns: 1fr; text-align: center; }
  .bcorp-logo-wrap img { width: 140px; }
  .split-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .dest-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 220px); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* =================================================================
   MAGAZINE EDITION — confident editorial layer mixing A + B
   ================================================================= */

/* Hero v2 — vertical "issue" indicator + asymmetric headline + chip */
.hero-v2 {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--paper);
  overflow: hidden;
}
.hero-v2::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../assets/images/hero-mangrove.jpg');
  background-size: cover; background-position: center;
  z-index: 1;
}
.hero-v2::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.8) 100%);
  z-index: 2;
}
.hero-v2-inner {
  position: relative; z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: end;
  padding-bottom: clamp(60px, 8vw, 100px);
}
.issue-marker {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--cream);
  opacity: 0.8;
  align-self: end;
  margin-bottom: 6px;
}
.issue-marker::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 60px;
  background: var(--cream);
  margin-right: 16px;
  vertical-align: middle;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
}
.hero-headline .ampersand {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}
.hero-meta {
  display: flex; gap: 32px;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.8);
}
.hero-meta span::before {
  content: '·';
  margin-right: 32px;
  opacity: 0.5;
}
.hero-meta span:first-child::before { content: none; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.featured-chip {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(60px, 8vw, 100px);
  z-index: 3;
  display: flex; gap: 14px; align-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.85rem;
  max-width: 280px;
}
.featured-chip img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.featured-chip strong { display: block; font-weight: 600; font-size: 0.9rem; }
.featured-chip em { font-style: normal; opacity: 0.7; font-size: 0.78rem; }

/* Marquee strip — editorial categories scroll */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(241,236,227,0.1);
  border-bottom: 1px solid rgba(241,236,227,0.1);
}
.marquee-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
}
.marquee-track span { display: flex; align-items: center; gap: 60px; }
.marquee-track span::after {
  content: '✦';
  color: var(--terracotta);
  font-style: normal;
  font-size: 0.8rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stats v2 — line-rule editorial, no boxes */
.stats-v2 {
  background: var(--paper);
  padding: clamp(60px, 7vw, 90px) 0;
}
.stats-v2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-v2 {
  padding: 0 32px;
  border-left: 1px solid var(--rule);
}
.stat-v2:first-child { border-left: none; padding-left: 0; }
.stat-v2 .num {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.stat-v2 .num em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.stat-v2 .label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Brand Duo wrapper */
.duo-wrap { background: var(--paper); padding: clamp(48px, 6vw, 80px) 0 0; }

/* Brand Duo — card-style split with logo band on top */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  max-width: var(--container);
  margin: clamp(40px, 5vw, 60px) auto 0;
  padding: 0 var(--gutter);
}
.duo-panel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  text-decoration: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.duo-panel:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }

/* Top logo band — clean white area with brand logo, centered and equal scale */
.duo-logo-band {
  background: var(--paper);
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border-bottom: 1px solid var(--rule);
}
.duo-logo-band img {
  max-height: 72px;
  max-width: 260px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Photo zone — shorter, with text overlay */
.duo-photo {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 4vw, 48px);
  color: var(--paper);
}
.duo-photo .duo-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.5s var(--ease);
  z-index: 0;
  filter: brightness(0.7);
}
.duo-panel:hover .duo-photo .duo-bg { transform: scale(1.04); filter: brightness(0.85); }
.duo-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}
.duo-content {
  position: relative; z-index: 2;
}

/* ==========================================================
   Content pages (legal, FAQ, policy) — typography-led
   ========================================================== */
.content-hero {
  background: var(--cream);
  padding: 160px 0 60px;
  border-bottom: 1px solid var(--rule);
}
.content-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  margin-bottom: 0.5rem;
}
.content-body {
  background: var(--paper);
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px);
}
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose .updated {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--ink);
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.25rem; padding-left: 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--brand); border-bottom: 1px solid currentColor; transition: color .2s; }
.prose a:hover { color: var(--brand-deep); }
.prose strong { color: var(--ink); }

/* ==========================================================
   Cookie Consent Bar
   ========================================================== */
#ie-cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  font-family: var(--sans);
}
#ie-cookie-bar.open { opacity: 1; transform: none; }
.ie-cc-inner { padding: 24px 28px; }
.ie-cc-main h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.ie-cc-main p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.ie-cc-main p a {
  color: var(--brand);
  border-bottom: 1px solid currentColor;
}
.ie-cc-prefs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 1rem;
  padding: 14px;
  background: var(--cream);
  border-radius: 10px;
}
.ie-cc-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.ie-cc-row strong { color: var(--ink); font-weight: 600; }
.ie-cc-row small { color: var(--muted); font-size: 0.78rem; line-height: 1.4; display: block; margin-top: 2px; }
.ie-cc-row input { margin-top: 4px; cursor: pointer; accent-color: var(--brand); }
.ie-cc-row input:disabled { cursor: not-allowed; opacity: 0.6; }
.ie-cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ie-cc-btn {
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .25s var(--ease);
}
.ie-cc-btn-primary {
  background: var(--brand);
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(4,150,79,0.3);
}
.ie-cc-btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.ie-cc-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.ie-cc-btn-ghost:hover { background: var(--cream); }

@media (max-width: 680px) {
  #ie-cookie-bar { left: 8px; right: 8px; bottom: 8px; }
  .ie-cc-inner { padding: 20px; }
  .ie-cc-prefs { grid-template-columns: 1fr; }
  .ie-cc-actions { flex-direction: column-reverse; }
  .ie-cc-actions .ie-cc-btn { width: 100%; }
}

/* University partner logos — infinite marquee */
.uni-marquee{overflow:hidden;position:relative;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);}
.uni-marquee-track{display:flex;gap:64px;width:max-content;animation:uni-scroll 80s linear infinite;align-items:center;}
.uni-marquee:hover .uni-marquee-track{animation-play-state:paused;}
.uni-marquee-item{flex:0 0 auto;height:80px;display:flex;align-items:center;justify-content:center;}
.uni-marquee-item img{height:80px;width:auto;max-width:200px;object-fit:contain;mix-blend-mode:multiply;filter:grayscale(0.3);opacity:.85;transition:filter .25s,opacity .25s,transform .25s;}
.uni-marquee-item:hover img{filter:none;opacity:1;transform:scale(1.05);}
@keyframes uni-scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
@media (max-width:768px){.uni-marquee-track{gap:48px;}.uni-marquee-item{height:60px;}.uni-marquee-item img{height:60px;max-width:160px;}}

/* Accreditations — trust strip */
.accreditations {
  background: var(--paper);
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid var(--rule);
}
.accred-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 72px);
}
.accred-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1.25rem;
}
.accred-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}
.accred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  justify-items: center;
}
.accred-logo {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  opacity: 0.85;
}
.accred-logo:hover { opacity: 1; transform: translateY(-2px); }
.accred-logo img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* Blend white backgrounds from JPEG logos into the section background */
  mix-blend-mode: multiply;
}
@media (max-width: 960px) {
  .accred-grid { grid-template-columns: repeat(3, 1fr); }
  .accred-logo { height: 90px; }
  .accred-logo img { max-height: 72px; }
}
@media (max-width: 640px) {
  .accred-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .accred-logo { height: 80px; }
  .accred-logo img { max-height: 64px; }
}

/* Brands intro strip — clean white section above the duo */
.brands-intro {
  background: var(--paper);
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 80px);
}
.brand-logos-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 60px);
  padding: clamp(40px, 5vw, 60px) clamp(24px, 4vw, 60px);
  background: var(--cream);
  border-radius: 12px;
}
.brand-logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform .3s var(--ease);
}
.brand-logo-tile:hover { transform: translateY(-2px); }
.brand-logo-tile .logo-wrap {
  height: 88px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.brand-logo-tile .logo-wrap img {
  max-height: 88px;
  max-width: 280px;
  width: auto;
  height: auto;
  display: block;
}
.brand-logo-tile h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.brand-logo-tile p {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.brand-logo-tile .link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 3px;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.brand-logo-tile:hover .link { gap: 14px; color: var(--brand-deep); }
.brand-divider {
  width: 1px;
  height: 120px;
  background: var(--rule);
}
@media (max-width: 768px) {
  .brand-logos-row { grid-template-columns: 1fr; gap: 40px; }
  .brand-divider { width: 60%; height: 1px; justify-self: center; }
  .brand-logo-tile .logo-wrap { height: 64px; }
  .brand-logo-tile .logo-wrap img { max-height: 64px; max-width: 220px; }
}
.duo-panel::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.duo-panel > * { position: relative; z-index: 2; }
.duo-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 1rem;
  opacity: 0.85;
}
.duo-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--paper);
}
.duo-tag {
  font-size: 1.05rem;
  color: rgba(250,250,247,0.85);
  max-width: 38ch;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.duo-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  color: var(--paper);
  transition: gap 0.3s var(--ease);
}
.duo-panel:hover .duo-link { gap: 18px; }

/* Pull quote / editorial moment */
.editorial {
  background: var(--cream);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.editorial-image {
  position: relative;
}
.editorial-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.editorial-image .caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
}
.editorial-text {
  max-width: 600px;
}
.editorial-text .eyebrow { color: var(--terracotta); }
.editorial-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.editorial-quote::before {
  content: '"';
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.2em;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}
.editorial-attr {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.editorial-attr strong { color: var(--ink); font-weight: 600; }

/* Destinations v2 — editorial numbering */
.destinations-v2 { background: var(--paper); }
.dest-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}
.dest-v2-card {
  position: relative;
  overflow: hidden;
}
.dest-v2-card .img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.dest-v2-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.dest-v2-card:hover .img-wrap img { transform: scale(1.05); }
.dest-v2-card .img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
}
.dest-v2-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.dest-v2-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--terracotta);
}
.dest-v2-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0;
  color: var(--ink);
}
.dest-v2-card .programs {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dest-v2-card .read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-style: italic;
  font-family: var(--serif);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

/* Section heading editorial */
.section-head-v2 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: end;
}
.section-head-v2 h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
}
.section-head-v2 .sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Responsive — magazine layer */
@media (max-width: 960px) {
  .hero-v2-inner { grid-template-columns: 1fr; padding-bottom: 60px; }
  .issue-marker { display: none; }
  .featured-chip { display: none; }
  .stats-v2-grid { grid-template-columns: 1fr 1fr; }
  .stat-v2 { padding: 20px 0; border-left: none; border-top: 1px solid var(--rule); }
  .stat-v2:nth-child(odd) { padding-right: 20px; }
  .duo { grid-template-columns: 1fr; }
  .duo-logo-band { height: 110px; padding: 20px; }
  .duo-logo-band img { max-height: 60px; max-width: 220px; }
  .duo-photo { min-height: 320px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .dest-v2-grid { grid-template-columns: 1fr 1fr; }
  .section-head-v2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-v2-grid { grid-template-columns: 1fr; }
  .dest-v2-grid { grid-template-columns: 1fr; }
}



/* ============================================================ *
 * MOBILE NAVIGATION — drawer menu                              *
 * Added 2026-05-26: was missing — hamburger had no panel.      *
 * ============================================================ */

@media (max-width: 880px) {
  /* Hamburger button — visible + clickable above everything */
  .nav-toggle {
    display: flex !important;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px;
    transition: transform .3s var(--ease), opacity .25s var(--ease);
  }
  /* Animate hamburger → X when open */
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* Header keeps its layout, but pack the right side compactly */
  .header-inner { gap: 12px; }

  /* Hide the desktop "Contact" secondary link and CTA on mobile —
     they're duplicated inside the drawer */
  .header-actions .header-secondary,
  .header-actions .header-cta { display: none; }
  /* Keep language switcher visible in header — useful before opening menu */
  .header-actions .lang-switcher--header { margin-right: 0; }

  /* Hidden default state for the nav */
  .nav-primary {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 28px 32px;
    background: var(--ink, #0E0E0E);
    color: var(--paper, #FAFAF7);
    box-shadow: -10px 0 40px rgba(0,0,0,0.25);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-primary.open { transform: translateX(0); }

  /* Backdrop behind the drawer */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(14,14,14,0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
    z-index: 999;
    pointer-events: none;
  }
  body.nav-open::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }

  /* Drawer links */
  .nav-primary a {
    display: block;
    color: var(--paper, #FAFAF7) !important;
    font-family: var(--serif, 'Lora', serif);
    font-size: 1.35rem;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid rgba(241,236,227,0.12);
    text-decoration: none;
    white-space: normal;
  }
  .nav-primary a::after { display: none; } /* kill desktop underline animation */
  .nav-primary a:hover,
  .nav-primary a:focus { color: var(--brand, #04964F) !important; }

  /* Mobile drawer CTAs — appended via JS below */
  .nav-primary .mobile-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .nav-primary .mobile-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: var(--sans, 'Inter', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 0;
    text-align: center;
  }
  .nav-primary .mobile-actions .header-secondary {
    background: transparent;
    border: 1px solid rgba(241,236,227,0.3);
    color: var(--paper, #FAFAF7) !important;
  }
  .nav-primary .mobile-actions .header-cta {
    background: var(--brand, #04964F);
    color: #fff !important;
  }

  /* Logo doesn't compete with hamburger on tiny screens */
  .site-logo img { max-height: 36px; width: auto; }

  /* Above-the-fold sections often have padding optimised for desktop —
     ensure they don't crush against the header */
  .hero-v2 .hero-v2-inner,
  .page-hero .container { padding-top: clamp(96px, 16vw, 140px); }
}

@media (max-width: 560px) {
  .header-inner { padding: 14px 18px; }
  .nav-primary a { font-size: 1.2rem; padding: 12px 0; }
}

/* Larger viewports — ensure body class side-effect is reset */
@media (min-width: 881px) {
  body.nav-open { overflow: auto; }
  body.nav-open::after { display: none; }
}



/* ============================================================ *
 * Mobile nav-toggle polish — kill iOS tap-highlight + default
 * button chrome, beef up the icon strokes so X is crisp.
 * ============================================================ */

.nav-toggle,
.nav-toggle:focus,
.nav-toggle:active,
.nav-toggle:hover {
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
  background: transparent !important;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--brand, #04964F) !important;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Also clear iOS tap-highlight globally on header links + drawer items */
.site-header a,
.nav-primary a,
.nav-toggle,
.lang-toggle {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 880px) {
  /* Chunkier hamburger / X strokes so they read clearly on small screens */
  .nav-toggle {
    width: 36px;
    height: 36px;
    gap: 6px;
  }
  .nav-toggle span {
    height: 2px !important;
    width: 24px !important;
    background: var(--paper, #FAFAF7) !important;
    border-radius: 2px;
  }
  /* When scrolled past hero, header background turns white — make bars dark */
  .site-header.scrolled .nav-toggle span {
    background: var(--ink, #0E0E0E) !important;
  }
  /* When the drawer is open, force light bars over the dark drawer
     regardless of scroll state */
  .nav-toggle.is-open span,
  body.nav-open .nav-toggle span {
    background: var(--paper, #FAFAF7) !important;
  }
}



/* ============================================================ *
 * Force the cloned Contact link visible inside the mobile drawer.
 * The desktop CSS hides .header-secondary at ≤1024px (tablet), and
 * that selector also matches our cloned copy unless we scope past it.
 * ============================================================ */
.nav-primary .mobile-actions .header-secondary,
.nav-primary .mobile-actions .header-cta {
  display: inline-flex !important;
}



/* ============================================================ *
 * Mobile drawer: kill backdrop blur (iOS Safari blends it into
 * the drawer's transformed layer, softening the text), force
 * crisp subpixel-AA font rendering on the menu items.
 * ============================================================ */
@media (max-width: 880px) {
  /* Solid backdrop, no blur — Safari handles transformed siblings
     more reliably without backdrop-filter in the stacking chain */
  body::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(14,14,14,0.6) !important;
  }

  /* Drawer: crisp text + own stacking context so it isn't downsampled
     by the backdrop layer */
  .nav-primary {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    isolation: isolate;                      /* new stacking context */
    backface-visibility: hidden;             /* avoid GPU subpixel artifacts */
    -webkit-backface-visibility: hidden;
    will-change: transform;
  }

  /* Once the slide-in transition completes the browser keeps the layer
     promoted — that's what was causing the soft-text look. We promote
     the layer explicitly, then make sure text inside isn't subject to
     transform-related rasterisation softening. */
  .nav-primary a,
  .nav-primary .mobile-actions a {
    transform: translateZ(0);                /* own raster layer */
    -webkit-font-smoothing: antialiased;
  }
}



/* ============================================================ *
 * Mobile drawer — light cream theme to match the editorial
 * style of the rest of the site (the previous black drawer was
 * too heavy on small screens).
 * ============================================================ */
@media (max-width: 880px) {
  /* Drawer body — cream/paper instead of ink */
  .nav-primary {
    background: var(--paper, #FAFAF7) !important;
    color: var(--ink, #0E0E0E) !important;
    box-shadow: -16px 0 60px rgba(14,14,14,0.18) !important;
  }

  /* Menu links — dark ink, brand-green hover, hairline cream-grey divider */
  .nav-primary a {
    color: var(--ink, #0E0E0E) !important;
    border-bottom: 1px solid rgba(14,14,14,0.08) !important;
  }
  .nav-primary a:hover,
  .nav-primary a:focus,
  .nav-primary a:active {
    color: var(--brand, #04964F) !important;
  }

  /* Drawer CTAs — keep the green "Request a Proposal" solid, but the
     "Contact" ghost button needs dark text on light background now */
  .nav-primary .mobile-actions .header-secondary {
    background: transparent !important;
    border: 1px solid rgba(14,14,14,0.18) !important;
    color: var(--ink, #0E0E0E) !important;
  }
  .nav-primary .mobile-actions .header-secondary:hover {
    background: rgba(14,14,14,0.04) !important;
    border-color: var(--brand, #04964F) !important;
    color: var(--brand, #04964F) !important;
  }
  .nav-primary .mobile-actions .header-cta {
    background: var(--brand, #04964F) !important;
    color: #fff !important;
  }

  /* Backdrop — slightly lighter now that the drawer is light too */
  body::after {
    background: rgba(14,14,14,0.45) !important;
  }

  /* Hamburger bars when drawer is open — needs to be DARK now
     (was light because old drawer was dark) */
  .nav-toggle.is-open span,
  body.nav-open .nav-toggle span {
    background: var(--ink, #0E0E0E) !important;
  }
}



/* ============================================================ *
 * Mobile drawer stacking fix.
 * .site-header has z-index:50; backdrop body::after has z-index:999.
 * Because the drawer (.nav-primary) is a CHILD of .site-header,
 * its z-index:1000 is relative to the header's 50 — so the backdrop
 * ends up rendered ON TOP of the drawer, giving it a dim/grey look.
 *
 * When the menu is open, promote .site-header above the backdrop so
 * everything inside it (drawer + hamburger) is correctly on top.
 * ============================================================ */
body.nav-open .site-header {
  z-index: 1100 !important;
}
@media (max-width: 880px) {
  body.nav-open .site-header {
    /* Make the bar itself transparent so the cream drawer reads cleanly
       without the dark gradient bleeding over its top edge */
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
