/* ================================================================
   AmeetsB — Golden Hour Design System
   Palette: cream / peach / terracotta / espresso / sage / gold
   Typography: Cormorant Garamond (headlines) · Inter (body/UI)
   Rule: ONE terracotta element per viewport section at a time
================================================================ */

:root {
  --cream:      #FAF6EF;
  --peach:      #F2D8C9;
  --terracotta: #C97B5D;
  --terracotta-dark: #b3674a;
  --espresso:   #3B2F2A;
  --sage:       #A8B5A0;
  --gold:       #D4B483;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-w: 1220px;
  --section-pad: clamp(64px, 8vw, 128px);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.65;
  font-size: 16px;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--espresso); color: var(--cream);
  padding: .5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding-block: var(--section-pad); }
.section--peach { background: var(--peach); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--espresso);
  line-height: 1.1;
  font-weight: 600;
}
h1 { font-size: clamp(44px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

/* Terracotta highlighted word in headlines */
h1 em, h2 em {
  font-style: italic;
  color: var(--terracotta);
}

/* Kicker — uppercase Inter in sage/gold */
.kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .75rem;
}

.section-header { margin-bottom: clamp(32px, 4vw, 56px); max-width: 640px; }
.section-header--center { text-align: center; margin-inline: auto; }
.section-subtext { margin-top: .75rem; color: var(--espresso); opacity: .75; font-size: 17px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  line-height: 1;
  transition: background .15s, opacity .15s;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  border: 2px solid transparent;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--terracotta-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border: 2px solid var(--gold);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--espresso);
}
.btn-disabled {
  background: var(--peach);
  color: var(--espresso);
  border: 2px solid transparent;
  opacity: .6;
  cursor: not-allowed;
}
.btn-lg { padding: 1rem 2rem; font-size: 15px; }
.btn-sm { padding: .5rem 1rem; font-size: 13px; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
}
.badge-sage { background: var(--sage); color: var(--cream); }

/* ── Announcement Bar ──────────────────────────────────────── */
.announcement-bar {
  background: var(--espresso);
  color: var(--cream);
  font-size: 13px; text-align: center;
  padding: .6rem 1rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 180, 131, .3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 1.5rem;
}
.nav-logo img { height: 56px; width: auto; object-fit: contain; }
.logo-text { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--espresso); }
.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: 14px; font-weight: 500;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-cta { font-weight: 600; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--espresso); transition: transform .2s; }

@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 30%;
    flex-direction: column; align-items: flex-start;
    background: var(--cream); padding: 5rem 2rem 2rem;
    gap: 1.25rem; font-size: 18px;
    transform: translateX(100%); transition: transform .25s ease;
    z-index: 99; box-shadow: -8px 0 32px rgba(0,0,0,.1);
  }
  .nav-links.open { transform: translateX(0); }
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--espresso); color: var(--cream); }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; padding-block: 4rem;
}
.footer-logo { opacity: .9; filter: brightness(10); }
.footer-logo-text { font-family: var(--font-serif); font-size: 24px; color: var(--cream); }
.footer-tagline { font-size: 14px; margin-top: .5rem; opacity: .7; }
.footer-socials { display: flex; gap: 1.25rem; margin-top: 1.25rem; }
.footer-socials a {
  display: flex; align-items: center; gap: .4rem;
  font-size: 13px; font-weight: 500; opacity: .8;
}
.footer-socials a:hover { opacity: 1; color: var(--gold); }
.footer-nav { display: flex; gap: 3rem; }
.footer-nav-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav-heading { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }
.footer-nav-col a { font-size: 13px; opacity: .7; }
.footer-nav-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(212, 180, 131, .2);
  padding-block: 1.25rem;
  font-size: 12px; opacity: .5; text-align: center;
}
.footer-sub { margin-top: .25rem; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; gap: 2rem; }
}

/* ── BLOCK: Hero ─────────────────────────────────────────────── */
.block-hero {
  position: relative; overflow: hidden;
  min-height: clamp(520px, 70vh, 800px);
  display: flex; align-items: center;
  background: var(--cream);
}
.hero-media { position: absolute; inset: 0; }
.hero-bg-img, .hero-bg-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(59,47,42,.55) 0%, rgba(59,47,42,.2) 100%);
}
.block-hero.has-video .hero-overlay,
.block-hero:has(.hero-bg-img) .hero-overlay {
  background: linear-gradient(135deg, rgba(59,47,42,.6) 0%, rgba(59,47,42,.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-block: var(--section-pad);
  max-width: 700px;
}
.block-hero:not(:has(.hero-media)) .hero-content { color: var(--espresso); }
.block-hero:has(.hero-media) .hero-content { color: var(--cream); }
.block-hero:has(.hero-media) .kicker { color: var(--gold); }
.block-hero:has(.hero-media) h1 { color: var(--cream); }
.block-hero:has(.hero-media) h1 em { color: var(--gold); }
.hero-heading { margin-bottom: 1.25rem; }
.hero-subtext {
  font-size: clamp(16px, 2vw, 19px);
  margin-bottom: 2rem; max-width: 560px;
  font-weight: 400; opacity: .9;
}

/* ── BLOCK: Text ─────────────────────────────────────────────── */
.prose-container { max-width: 720px; }
.prose h2 { margin-bottom: 1rem; }
.prose h3 { margin-bottom: .75rem; margin-top: 2rem; }
.prose p { margin-bottom: 1rem; font-size: 17px; line-height: 1.75; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.25rem; }
.prose li { margin-bottom: .4rem; font-size: 16px; }
.prose a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem; margin: 1.5rem 0;
  font-style: italic; opacity: .8;
}

/* ── BLOCK: Gallery ──────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.gallery-carousel { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel-slide { flex: 0 0 100%; }
.carousel-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.carousel-prev, .carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(250,246,239,.9); color: var(--espresso);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.carousel-prev { left: 1rem; } .carousel-next { right: 1rem; }

/* ── BLOCK: Video ────────────────────────────────────────────── */
.video-wrap { border-radius: var(--radius-lg); overflow: hidden; }
.video-player { width: 100%; max-height: 70vh; background: var(--espresso); }
.video-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── BLOCK: Audio ────────────────────────────────────────────── */
.audio-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--peach);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 680px;
}
.audio-icon { color: var(--gold); flex-shrink: 0; margin-top: .25rem; }
.audio-title { font-family: var(--font-serif); font-size: 22px; margin-bottom: .5rem; }
.audio-desc { font-size: 15px; opacity: .75; margin-bottom: 1rem; }
.audio-player { width: 100%; accent-color: var(--terracotta); }

/* ── BLOCK: Events Grid ──────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.event-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212,180,131,.3);
  display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.event-card:hover { box-shadow: 0 12px 40px rgba(59,47,42,.1); }
.event-card.sold-out .btn-primary { display: none; }
.event-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--peach); }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-card-img img { transform: scale(1.03); }
.event-card-img--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--espresso);
}
.event-card-body { padding: 1.25rem 1.25rem .75rem; flex: 1; }
.event-card-meta { display: flex; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.event-card-title { font-size: clamp(18px, 2vw, 22px); margin-bottom: .75rem; }
.event-card-details { display: grid; gap: .25rem; }
.event-card-details li { font-size: 13px; font-weight: 500; opacity: .7; }
.event-card-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(212,180,131,.2); }
.event-card-footer .btn { width: 100%; }
.events-empty {
  text-align: center; padding: 3rem;
  background: var(--peach); border-radius: var(--radius-lg);
}

/* ── BLOCK: Steps ────────────────────────────────────────────── */
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; counter-reset: steps;
}
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-number {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  color: var(--gold);
}
.step-title { font-family: var(--font-serif); font-size: 20px; margin-bottom: .4rem; }
.step-desc { font-size: 14px; opacity: .7; }

/* ── BLOCK: Testimonials ─────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid rgba(212,180,131,.3);
}
.testimonial-quote {
  font-family: var(--font-serif); font-size: 19px; line-height: 1.5;
  margin-bottom: 1.25rem; font-style: italic;
}
.testimonial-attribution {
  display: flex; align-items: center; gap: .75rem;
  font-size: 13px; font-weight: 600;
}
.testimonial-attribution cite { font-style: normal; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
}

/* ── BLOCK: FAQ ──────────────────────────────────────────────── */
.faq-container { max-width: 760px; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { border-bottom: 1px solid rgba(212,180,131,.4); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 16px; font-weight: 500; text-align: left;
  color: var(--espresso);
}
.faq-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute;
  background: var(--gold);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; transition: transform .2s; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-answer { overflow: hidden; }
.faq-answer[hidden] { display: none; }
.faq-answer-inner { padding: 0 0 1.25rem; font-size: 15px; line-height: 1.7; opacity: .8; }

/* ── BLOCK: CTA Band ─────────────────────────────────────────── */
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-band-text h2 { font-size: clamp(26px, 3vw, 40px); }
.cta-band-text p { margin-top: .5rem; font-size: 16px; opacity: .8; }

/* ── BLOCK: Split ────────────────────────────────────────────── */
.split-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.split--img-right .split-media { order: 2; }
.split--img-right .split-content { order: 1; }
.split-img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; }
.split-img-placeholder {
  aspect-ratio: 4/3; background: var(--peach);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.split-content h2 { margin-bottom: 1rem; }
.split-content .prose { margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .split-inner { grid-template-columns: 1fr; }
  .split--img-right .split-media { order: 1; }
  .split--img-right .split-content { order: 2; }
}

/* ── BLOCK: Stats ────────────────────────────────────────────── */
.stats-row {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 3rem 4rem;
}
.stat-item { text-align: center; }
.stat-value { display: block; font-family: var(--font-serif); font-size: clamp(44px, 6vw, 72px); font-weight: 600; color: var(--espresso); line-height: 1; }
.stat-label { display: block; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--sage); margin-top: .5rem; }

/* ── Event Page ──────────────────────────────────────────────── */
.event-page { padding-bottom: var(--section-pad); }
.event-hero-img { aspect-ratio: 21/9; overflow: hidden; max-height: 540px; }
.event-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.event-content { max-width: 800px; padding-top: 3rem; }
.event-header { margin-bottom: 2.5rem; }
.event-meta-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.event-header h1 { margin-bottom: 1.5rem; }
.event-details-list { display: grid; gap: .5rem; }
.event-details-list li { font-size: 15px; }
.event-details-list strong { font-weight: 600; min-width: 70px; display: inline-block; }
.event-body { border-top: 1px solid rgba(212,180,131,.3); padding-top: 2rem; margin-bottom: 3rem; }
.event-cta-area { padding: 2rem; background: var(--peach); border-radius: var(--radius-lg); }
.event-cta-note { margin-top: .75rem; font-size: 13px; opacity: .7; max-width: 480px; }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-page { padding-block: var(--section-pad); }
.legal-header { margin-bottom: 3rem; border-bottom: 1px solid rgba(212,180,131,.3); padding-bottom: 1.5rem; }

/* ── Application / Thank-you ─────────────────────────────────── */
.page-centred { padding-block: var(--section-pad); text-align: center; }
.page-centred h1 { margin-bottom: 1rem; }
.page-centred p { font-size: 17px; max-width: 540px; margin-inline: auto; margin-bottom: 1rem; }
.timeline { display: grid; gap: 0; max-width: 520px; margin: 3rem auto 0; text-align: left; }
.timeline-step { display: flex; gap: 1.25rem; padding-bottom: 2rem; position: relative; }
.timeline-step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--gold); }
.timeline-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--gold); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--gold); }
.timeline-text strong { display: block; font-family: var(--font-serif); font-size: 18px; margin-bottom: .25rem; }
.timeline-text p { font-size: 14px; opacity: .7; margin: 0; }

/* ── 404 ─────────────────────────────────────────────────────── */
.page-404 { padding-block: var(--section-pad); text-align: center; min-height: 60vh; display: flex; align-items: center; }
.page-404 h1 { font-size: clamp(80px, 15vw, 180px); opacity: .12; line-height: 1; }

/* ── Cookie Banner ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: min(calc(100vw - 2rem), 520px);
  background: var(--cream);
  border: 1px solid rgba(212,180,131,.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(59,47,42,.14);
  padding: 1.25rem 1.5rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner p { font-size: 14px; margin-bottom: 1rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* ── Utilities ───────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-row { gap: 2rem 3rem; }
}

/* ── CMS preview iframe overrides ───────────────────────────── */
@media (max-width: 480px) {
  :root { --section-pad: 48px; }
}
