/* ============================================================
   Mellow Weddings — Design System (brand.css)
   Fonts: Fraunces (headings) + Inter (body)
   Palette: Mel's Mood #3D098E / Glow #E331EE / Vibrant #E2007A
   ============================================================ */

/* 1. FONTS -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

/* 2. RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 3. DESIGN TOKENS ----------------------------------------- */
:root {
  /* Colours */
  --primary: #3D098E;
  --primary-dark: #2A0563;
  --secondary: #1C0940;      /* deep heading ink */
  --accent: #E331EE;         /* Glow */
  --vibrant: #E2007A;        /* CTA / emphasis */
  --vibrant-dark: #B80063;
  --bg: #FFFFFF;
  --bg-light: #F7F3FC;       /* soft lavender tint */
  --bg-alt: #FBF9FE;
  --text: #241536;
  --text-muted: #6B6280;
  --border: #E9E2F2;
  --success: #2E9E5B;
  --star: #E331EE;

  /* Type scale (1.25 modular) */
  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-5xl: 3.815rem;
  --text-6xl: 4.768rem;

  /* Spacing (4px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 9, 64, 0.06), 0 1px 3px rgba(28, 9, 64, 0.05);
  --shadow-md: 0 4px 12px rgba(28, 9, 64, 0.08), 0 2px 4px rgba(28, 9, 64, 0.05);
  --shadow-lg: 0 18px 40px rgba(28, 9, 64, 0.14), 0 6px 12px rgba(28, 9, 64, 0.07);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --hero-max: 1080px;

  /* Fonts */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 4. BASE --------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: var(--text-base);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--secondary);
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5vw + 0.5rem, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 3vw + 0.5rem, var(--text-3xl)); line-height: 1.15; }
h3 { font-size: var(--text-xl); line-height: 1.2; }
h4 { font-size: var(--text-lg); line-height: 1.25; }

p {
  line-height: 1.65;
  color: var(--text);
  max-width: 68ch;
}

a { color: var(--primary); transition: color var(--transition-fast); }
a:hover { color: var(--vibrant); }

strong { font-weight: 600; }

/* 5. LAYOUT UTILITIES -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.hero-headline {
  max-width: var(--hero-max);
  margin-inline: auto;
}
.section {
  padding-block: var(--space-16);
}
.section-alt { background: var(--bg-light); }

@media (min-width: 768px) {
  .section { padding-block: var(--space-24); }
}

/* 6. BUTTONS ------------------------------------------------ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
}
.btn-primary {
  background: var(--vibrant);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--vibrant-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-large {
  font-size: var(--text-lg);
  padding: var(--space-6) var(--space-12);
}

/* 7. CARD --------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 8. TRUST STRIP -------------------------------------------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.trust-strip .stars { color: var(--star); letter-spacing: 2px; }
.trust-item { display: inline-flex; align-items: center; gap: var(--space-2); }

/* 9. SECTION HEADINGS -------------------------------------- */
.section-eyebrow {
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: var(--space-3);
}
.section-title { margin-bottom: var(--space-4); }
.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  font-size: var(--text-lg);
}
.section-head-center { text-align: center; }
.section-head-center .section-subtitle { margin-inline: auto; }

/* 10. MODAL ------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 9, 64, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  z-index: 1000;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-light);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.modal-close:hover { background: var(--border); color: var(--text); }
body.modal-open { overflow: hidden; }

/* 11. FAQ ACCORDION ----------------------------------------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-6);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: var(--text-2xl);
  color: var(--primary);
  line-height: 1;
  transition: transform var(--transition-fast);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-body {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-muted);
}
.faq-item .faq-body p { color: var(--text-muted); }

/* 12. NAV + PLACEHOLDERS ----------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition-base);
}
.site-nav.nav-scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.nav-logo img { height: 34px; width: auto; }

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--secondary);
}
.video-wrap iframe,
.video-wrap .wistia_responsive_padding { position: absolute; inset: 0; width: 100%; height: 100%; }

.video-placeholder, .image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-8);
}
.video-placeholder { aspect-ratio: 16 / 9; }
.image-placeholder { aspect-ratio: 3 / 2; }

/* 13. FEATURE / LIST BITS ----------------------------------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.icon-badge svg { width: 24px; height: 24px; }

.qual-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-block: var(--space-3);
  font-size: var(--text-lg);
}
.qual-list li svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; }
.qual-yes svg { color: var(--success); }
.qual-no { color: var(--text-muted); }
.qual-no svg { color: var(--text-muted); }

.check-line { display: inline-flex; align-items: flex-start; gap: var(--space-3); }
.check-line svg { color: var(--success); flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; }

.step-list { counter-reset: step; }
.step-list li {
  position: relative;
  padding-left: calc(44px + var(--space-4));
  padding-bottom: var(--space-8);
  min-height: 44px;
}
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.step-list h4 { margin-bottom: var(--space-2); }

/* 14. UTILITIES --------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.grid-2, .grid-3 { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

.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;
}

/* .highlight — emphasise the single strongest phrase */
.highlight {
  color: var(--vibrant);
  background: linear-gradient(transparent 62%, rgba(227, 49, 238, 0.18) 62%);
  padding: 0 0.06em;
}

/* Hero-specific spacing helpers */
.hero { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.hero > * { margin-inline: auto; }
.hero-nudge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
  font-weight: 500;
  font-size: var(--text-sm);
}
.hero-nudge svg { width: 18px; height: 18px; }
.risk-reducer { font-size: var(--text-sm); color: var(--text-muted); }

.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text);
}
.testimonial-name { font-weight: 600; color: var(--primary); margin-top: var(--space-4); }
.testimonial-role { font-size: var(--text-sm); color: var(--text-muted); }

.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  padding-block: var(--space-12);
  font-size: var(--text-sm);
}
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: var(--space-6); }
