/* ============================================
   Classical Conversations South Africa
   Design System
   ============================================ */

:root {
  /* Brand palette — official Classical Conversations navy (#041E42),
     with warm cream and gold accents from the parent brand.
     "burgundy" CSS-var names retained for backward compatibility. */
  --burgundy: #041E42;
  --burgundy-dark: #020e20;
  --burgundy-light: #1c4983;
  --gold: #c9a44c;
  --gold-dark: #9b7d2e;
  --cream: #f4eedf;
  --cream-warm: #ece4cf;
  --ink: #1a1d24;
  --ink-soft: #353a45;
  --muted: #5b6473;
  --line: #d8d5cc;
  --bg: #faf7ee;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(31, 26, 23, 0.08);
  --shadow-md: 0 6px 24px rgba(31, 26, 23, 0.10);
  --shadow-lg: 0 20px 60px rgba(31, 26, 23, 0.18);
  --radius: 4px;
  --radius-lg: 10px;
  --max-w: 1200px;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--burgundy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--burgundy-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: .6rem; }
h4 { font-size: 1.15rem; margin-bottom: .4rem; }

p { margin-bottom: 1.1rem; color: var(--ink-soft); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ Top Bar ============ */
.topbar {
  background: var(--burgundy-dark);
  color: var(--cream);
  font-size: 13px;
  padding: 8px 0;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--cream); }
.topbar a:hover { color: var(--gold); }
.topbar-contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ============ Header ============ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  padding-bottom: .9rem;
  gap: 2rem;
}
.logo img { height: 56px; width: auto; }
.logo-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--burgundy);
  font-weight: 600;
  line-height: 1.1;
}
.logo-text small {
  display: block;
  font-size: .7rem;
  font-family: var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ============ Nav ============ */
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--burgundy); }
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 10px;
  color: var(--muted);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--white);
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: 14px;
}
.dropdown li a:hover { background: var(--cream); }

.menu-toggle { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--burgundy); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  background: var(--burgundy);
  color: var(--cream) !important;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--sans);
}
.btn:hover { background: var(--burgundy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--burgundy) !important; border: 2px solid var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--cream) !important; }
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: var(--gold-dark); color: var(--cream) !important; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(2, 14, 32, 0.92) 0%, rgba(4, 30, 66, 0.72) 40%, rgba(4, 30, 66, 0.25) 75%, rgba(4, 30, 66, 0.1) 100%),
    url('images/essentials.jpg') right center / cover no-repeat;
  color: var(--cream);
  padding: 6rem 0;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(2, 14, 32, 0.85) 0%, rgba(4, 30, 66, 0.85) 100%),
      url('images/essentials.jpg') center/cover no-repeat;
  }
}
.hero h1 { color: var(--cream); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  font-size: 1.25rem;
  color: rgba(247, 241, 227, 0.92);
  max-width: 640px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page hero (smaller, for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--cream);
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--cream); margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(247, 241, 227, 0.85); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.page-hero .breadcrumb { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }

/* ============ Sections ============ */
section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: .75rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p { color: var(--muted); max-width: 620px; margin: 1rem auto 0; }

.bg-cream { background: var(--cream); }
.bg-cream-warm { background: var(--cream-warm); }
.bg-burgundy { background: var(--burgundy); color: var(--cream); }
.bg-burgundy h2, .bg-burgundy h3 { color: var(--cream); }
.bg-burgundy p { color: rgba(247, 241, 227, 0.88); }

/* ============ Pillars / Cards ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar img { height: 220px; width: 100%; object-fit: cover; }
.pillar-body { padding: 1.75rem; }
.pillar h3 { color: var(--burgundy); margin-bottom: .6rem; }
.pillar a.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-top: .5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}
.pillar a.read-more::after { content: '→'; transition: transform .2s ease; }
.pillar a.read-more:hover::after { transform: translateX(4px); }

/* ============ Programs Grid ============ */
.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Programs timeline (horizontal pennant overview) */
.timeline-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}
.timeline-wrap::-webkit-scrollbar { height: 6px; }
.timeline-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.timeline {
  display: flex;
  gap: 0;
  position: relative;
  padding: 0;
  min-width: 1000px;
}
/* Dotted line sits in the gap between label text and the pennants */
.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 60px;
  border-top: 2px dotted var(--muted);
  opacity: .55;
  z-index: 0;
}
.timeline-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 .35rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease;
  position: relative;
  z-index: 1;
}
.timeline-item:hover { transform: translateY(-3px); }
.timeline-item:hover .timeline-label strong { color: var(--burgundy-light); }
/* Bottom-aligned label area — content sits just above the dotted line */
.timeline-label {
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.timeline-label strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--burgundy);
  transition: color .2s ease;
}
.timeline-label .age {
  display: block;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.timeline-pennant {
  width: 20px;
  height: 30px;
  display: block;
  margin-top: 24px;
}
.timeline-event {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.35;
  min-height: 34px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}
.timeline-event:empty::before { content: '\00a0'; }

/* Programs slider (horizontal carousel) */
.programs-slider {
  position: relative;
  margin: 0 -1.5rem;
}
.programs-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 1.5rem 1.5rem;
}
.programs-track::-webkit-scrollbar { display: none; }
.programs-track .program-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  max-width: 380px;
  scroll-snap-align: start;
}
@media (max-width: 960px) {
  .programs-track .program-card { flex-basis: calc(50% - 0.75rem); }
}
@media (max-width: 640px) {
  .programs-track .program-card { flex-basis: 85%; min-width: 0; }
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background .2s ease, transform .15s ease;
}
.slider-btn:hover { background: var(--burgundy-dark); transform: translateY(-50%) scale(1.05); }
.slider-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: translateY(-50%); }
.slider-prev { left: -8px; }
.slider-next { right: -8px; }
@media (max-width: 720px) {
  .slider-btn { display: none; }
}
.program-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.program-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,26,23,0) 30%, rgba(31,26,23,0.95) 100%);
}
.program-card-body {
  position: relative;
  padding: 1.75rem;
  z-index: 1;
}
.program-card h3 { color: var(--cream); margin-bottom: .35rem; }
.program-card .age { color: var(--gold); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
.program-card .signature {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: .5rem;
  letter-spacing: .01em;
}
.program-card p { color: rgba(247,241,227,0.88); font-size: 14px; margin-bottom: 0; }

/* ============ Two-column / Feature ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-row img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.feature-row.reverse > :first-child { order: 2; }

/* ============ Quote / Mission Banner ============ */
.mission-banner {
  background: var(--burgundy);
  color: var(--cream);
  padding: 5rem 0;
  text-align: center;
}
.mission-banner blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 500;
  max-width: 880px;
  margin: 0 auto;
  color: var(--cream);
  line-height: 1.35;
}
.mission-banner blockquote::before { content: '"'; display: block; font-size: 4rem; color: var(--gold); line-height: 0.5; margin-bottom: 1rem; }
.mission-banner cite { display: block; margin-top: 1.5rem; font-style: normal; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; font-size: 14px; font-family: var(--sans); }

/* ============ Blog ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card img { height: 200px; width: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .date { font-size: 12px; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; margin-bottom: .5rem; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--burgundy); }
.blog-card .excerpt { color: var(--muted); font-size: 14.5px; flex: 1; }

/* ============ Article ============ */
.article {
  padding: 4rem 0;
  background: var(--white);
}
.article-header { text-align: center; margin-bottom: 3rem; }
.article-header .meta { color: var(--muted); font-size: 13px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1rem; }
.article-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-content h3 { margin-top: 2rem; margin-bottom: .8rem; }
.article-content p { font-size: 1.08rem; line-height: 1.8; }
.article-content ul, .article-content ol { margin: 0 0 1.4rem 1.5rem; color: var(--ink-soft); }
.article-content li { margin-bottom: .4rem; }
.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: .5rem 0 .5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ============ Video Feature (centered, with shaded background) ============ */
.video-feature {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 164, 76, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(4, 30, 66, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  padding: 6rem 1.5rem;
  overflow: hidden;
}
.video-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(4, 30, 66, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.video-feature > * { position: relative; z-index: 1; }
.video-feature .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: .75rem;
}
.video-feature h2 {
  margin-bottom: 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.video-feature .lead {
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.video-frame {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow:
    0 40px 80px -20px rgba(4, 30, 66, 0.45),
    0 12px 30px -8px rgba(4, 30, 66, 0.25),
    0 0 0 1px rgba(244, 238, 223, 0.4);
  transition: transform .3s ease;
}
.video-frame:hover { transform: translateY(-4px); }
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 720px) {
  .video-feature { padding: 4rem 1rem; }
}

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.8rem; color: var(--burgundy); font-weight: 300; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--burgundy); }
.faq-answer { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }
.faq-answer p { font-size: 1rem; }

/* ============ Forms ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  max-width: 1080px;
  margin: 0 auto;
}
.contact-info { background: var(--burgundy); color: var(--cream); padding: 2.5rem; border-radius: var(--radius-lg); }
.contact-info h3 { color: var(--cream); margin-bottom: 1.5rem; }
.contact-info .contact-row { display: flex; gap: 1rem; margin-bottom: 1.4rem; align-items: flex-start; }
.contact-info .icon { color: var(--gold); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.contact-info .label { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; display: block; }
.contact-info a { color: var(--cream); }
.contact-info a:hover { color: var(--gold); }

.contact-form { background: var(--white); border: 1px solid var(--line); padding: 2.5rem; border-radius: var(--radius-lg); }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: .4rem; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(4, 30, 66, 0.15);
}
.form-row textarea { min-height: 140px; resize: vertical; }

/* ============ CTA Strip ============ */
.cta-strip {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--cream);
  padding: 4rem 0;
  text-align: center;
}
.cta-strip h2 { color: var(--cream); }
.cta-strip p { color: rgba(247, 241, 227, 0.88); max-width: 620px; margin: 0 auto 2rem; }

/* ============ Footer ============ */
.site-footer {
  background: #020e20;
  color: rgba(244, 238, 223, 0.7);
  padding: 4rem 0 1.5rem;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.site-footer h4 {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer a { color: rgba(247, 241, 227, 0.7); }
.site-footer a:hover { color: var(--gold); }
.site-footer p { color: rgba(247, 241, 227, 0.6); margin-bottom: .8rem; font-size: 14.5px; }
.footer-logo { font-family: var(--serif); color: var(--cream); font-size: 1.3rem; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(247, 241, 227, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: rgba(247, 241, 227, 0.5);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse > :first-child { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; right: 0; background: var(--white); flex-direction: column; padding: 1rem; min-width: 260px; max-width: calc(100vw - 24px); box-shadow: var(--shadow-md); border-radius: 0 0 var(--radius-lg) var(--radius-lg); border: 1px solid var(--line); border-top: 0; }
  .main-nav.open { display: flex; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li:last-child { border-bottom: 0; }
  .main-nav > ul > li > a { display: block; padding: .8rem 0; }
  /* Mobile: dropdowns are COLLAPSED by default and only shown when parent has .expanded */
  .dropdown { position: static; box-shadow: none; border: 0; min-width: auto; padding: 0 0 .5rem 1rem; transform: none; display: none; opacity: 1; visibility: visible; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: none; transform: none; }
  .has-dropdown.expanded > .dropdown { display: block; }
  /* Caret indicator rotates when expanded */
  .has-dropdown > a::after { transition: transform .2s ease; }
  .has-dropdown.expanded > a::after { transform: rotate(180deg); }
  .site-header .container { position: relative; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 3.5rem 0; }
  .hero { min-height: 60vh; padding: 4rem 0; }
  .topbar { font-size: 12px; }
  .topbar .container { justify-content: center; text-align: center; }
}
