
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* MapleVow — shared styles
   Type: Cormorant Garamond (display) + Inter (body)
   Aesthetic: editorial wedding magazine meets clean SaaS
*/

:root {
  /* Light theme — warm neutrals */
  --bg:        oklch(98.5% 0.006 80);
  --bg-alt:    oklch(96.8% 0.012 78);
  --surface:   oklch(99% 0.004 80);
  --line:      oklch(88% 0.012 75);
  --line-soft: oklch(93% 0.010 75);
  --ink:       oklch(22% 0.012 40);
  --ink-soft:  oklch(45% 0.012 40);
  --ink-mute:  oklch(62% 0.010 40);

  /* Single romantic accent — dusty rose */
  --accent:      oklch(64% 0.08 25);
  --accent-deep: oklch(54% 0.09 25);
  --accent-soft: oklch(94% 0.025 25);

  /* Quiet supporting tone — deep champagne */
  --gold:        oklch(72% 0.06 75);
  --gold-soft:   oklch(95% 0.020 80);

  --shadow-sm: 0 1px 2px oklch(20% 0.01 30 / 0.04), 0 2px 8px oklch(20% 0.01 30 / 0.04);
  --shadow-md: 0 2px 6px oklch(20% 0.01 30 / 0.06), 0 8px 24px oklch(20% 0.01 30 / 0.06);
  --shadow-lg: 0 8px 32px oklch(20% 0.01 30 / 0.10), 0 24px 64px oklch(20% 0.01 30 / 0.08);

  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 24px;

  --maxw: 1200px;
  --gutter: 1rem;

  --display: "Cormorant Garamond", "Cormorant Metric Fallback", "Cormorant", Georgia, "Times New Roman", serif;
  --body:    "Inter", "Inter Metric Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg:        oklch(16% 0.010 40);
  --bg-alt:    oklch(20% 0.012 40);
  --surface:   oklch(22% 0.012 40);
  --line:      oklch(30% 0.012 40);
  --line-soft: oklch(26% 0.012 40);
  --ink:       oklch(95% 0.006 80);
  --ink-soft:  oklch(75% 0.010 60);
  --ink-mute:  oklch(58% 0.010 50);

  --accent:      oklch(72% 0.08 25);
  --accent-deep: oklch(80% 0.07 25);
  --accent-soft: oklch(28% 0.030 25);

  --gold:        oklch(78% 0.06 75);
  --gold-soft:   oklch(26% 0.025 70);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3), 0 2px 8px oklch(0% 0 0 / 0.25);
  --shadow-md: 0 2px 6px oklch(0% 0 0 / 0.35), 0 8px 24px oklch(0% 0 0 / 0.3);
  --shadow-lg: 0 8px 32px oklch(0% 0 0 / 0.5), 0 24px 64px oklch(0% 0 0 / 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--accent-soft); color: var(--ink); }

img, video, table, iframe { max-width: 100%; }
img { display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ── Eyebrow label (e.g. "How MapleVow works") ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}

/* The dot sits inline via flex — no absolute positioning, no overlap */
.eyebrow .dot {
  flex-shrink: 0;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  /* no margin, no position:absolute — gap handles spacing */
}

/* Standalone dot (used outside .eyebrow, e.g. in .hero-trust) */
.dot {
  flex-shrink: 0;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.container {
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ───── Nav ───── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }

.nav-inner {
  max-width: 1320px;
  width: 100%;
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 22px);
}

.nav-inner > * { min-width: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.mv-brand-logo {
  display: block;
  width: clamp(156px, 12vw, 202px);
  height: auto;
  max-height: 50px;
  object-fit: contain;
}
.brand .leaf {
  width: 22px; height: 22px;
  color: var(--accent);
}
.brand em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-deep);
}

.nav-links {
  display: flex;
  gap: clamp(8px, 1vw, 18px);
  margin-left: clamp(16px, 2vw, 34px);
  font-size: clamp(11px, 0.82vw, 14px);
  color: var(--ink-soft);
  flex: 0 1 auto;
  justify-content: flex-start;
  min-width: 0;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}

.nav-spacer { flex: 1 1 auto; min-width: 24px; }

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 0.8vw, 10px);
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}
.nav-actions .language-switcher,
.nav-actions .theme-toggle,
.nav-actions .nav-account-link,
.nav-actions .nav-mobile-toggle { flex: 0 0 auto; }
.nav-action-separator { width: 1px; height: 24px; background: var(--line); flex: 0 0 auto; }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.language-switcher form { margin: 0; }
.language-switcher__icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--ink-mute);
}
.language-switcher__icon svg { width: 14px; height: 14px; }
.language-switcher__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 11px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.language-switcher__option:hover { color: var(--ink); background: var(--bg-alt); }
.language-switcher__option.is-active {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 6px oklch(20% 0.01 30 / 0.12);
}
.language-switcher__label { display: none; }
.language-switcher--mobile {
  width: 100%;
  justify-content: flex-start;
  padding: 6px;
  margin: 0 0 10px;
  background: var(--surface);
}
.language-switcher--mobile form { flex: 1; }
.language-switcher--mobile .language-switcher__option {
  width: 100%;
  min-height: 38px;
  padding: 9px 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.language-switcher--mobile .language-switcher__label { display: inline; }
.language-switcher--mobile .language-switcher__short { display: none; }

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-mute); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 2px oklch(20% 0.01 30 / 0.08);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px color-mix(in oklch, var(--accent) 28%, transparent);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-mute); background: var(--bg-alt); }
.btn-text {
  color: var(--ink-soft);
  background: transparent;
  padding: 11px 14px;
}
.btn-text:hover { color: var(--ink); }

.btn-lg { padding: 14px 28px; font-size: 14px; }

.btn-arrow svg { transition: transform 0.2s ease; width: 14px; height: 14px; }
.btn-arrow:hover svg { transform: translateX(3px); }

.nav-mobile-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ───── Footer ───── */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 40px;
  margin-top: 0;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.foot-grid .footer-heading {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a,
.foot-grid button {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}
.foot-grid a:hover,
.foot-grid button:hover { color: var(--accent); }
.foot-grid p { font-size: 13.5px; color: var(--ink-soft); max-width: 32ch; line-height: 1.55; }
.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-mute);
}
.foot-bottom .leaf-row { display: flex; align-items: center; gap: 8px; }
.foot-bottom svg { width: 13px; height: 13px; color: var(--accent); }
.foot-bottom .design-credit { font-size: 12px; color: var(--ink-mute); opacity: 0.85; }
.foot-bottom .design-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.foot-bottom .design-credit a:hover { color: var(--accent); }

/* ───── Reusable bits ───── */
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-narrow { padding: clamp(64px, 8vw, 110px) 0; }

.divider-sprig {
  display: flex;
  justify-content: center;
  margin: 48px 0;
  color: var(--accent);
  opacity: 0.5;
}
.divider-sprig svg { width: 80px; height: 24px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.pill-rose { background: var(--accent-soft); color: var(--accent-deep); }

.kbd {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ───── Mobile ───── */

/* Compact the full nav on smaller laptops so it still fits (incl. longer FR labels). */
@media (max-width: 1400px) and (min-width: 1181px) {
  .mv-brand-logo { width: clamp(138px, 10vw, 168px); }
  .nav-account-link.btn-primary { padding-inline: 15px; }
  .nav-account-link.btn-text { padding-inline: 6px; }
  .nav-links { gap: clamp(7px, 0.9vw, 14px); margin-left: clamp(12px, 1.4vw, 22px); }
  .nav-inner { gap: clamp(8px, 1vw, 16px); }
}

/* Accounts that manage both weddings and vendor listings have two account
   actions. Move them into the menu earlier so long EN/FR labels never overlap. */
@media (max-width: 1400px) {
  .nav-has-dual-account-actions .nav-links { display: none; }
  .nav-has-dual-account-actions .nav-mobile-toggle { display: inline-flex; }
  .nav-has-dual-account-actions .nav-spacer { flex: 1 1 auto; }
  .nav-has-dual-account-actions .nav-account-link,
  .nav-has-dual-account-actions .nav-actions > .language-switcher,
  .nav-has-dual-account-actions .nav-actions > .theme-toggle,
  .nav-has-dual-account-actions .nav-action-separator { display: none; }
  .nav-has-dual-account-actions .nav-actions { min-width: 0; margin-left: auto; }
}

/* Collapse to the hamburger only on tablets / small screens. */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-spacer { flex: 1 1 auto; }
  .nav-account-link,
  .nav-actions > .language-switcher,
  .nav-actions > .theme-toggle,
  .nav-action-separator { display: none; }
  .nav-actions { min-width: 0; margin-left: auto; }
}

@media (max-width: 1320px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; align-items: center; }
  .foot-bottom .leaf-row { justify-content: center; flex-wrap: wrap; line-height: 1.7; }
}

@media (max-width: 540px) {
  footer { margin-top: 0; padding: 44px 0 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 34px; text-align: left; }
  .foot-grid > div:first-child { padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
  .foot-grid p { max-width: none; }
  .foot-grid ul { gap: 8px; }
  .foot-bottom { padding-top: 20px; font-size: 12px; }
  .foot-bottom .leaf-row { gap: 6px 8px; max-width: 32ch; }
  .foot-bottom .leaf-row > span[aria-hidden="true"] { display: none; }
  .foot-bottom svg { margin-top: 2px; }
  .foot-bottom .design-credit { display: inline-flex; gap: 4px; align-items: baseline; white-space: nowrap; }
  .nav-inner { padding: 14px var(--gutter); gap: 12px; }
  .brand { font-size: 19px; }
  .nav .brand { margin-left: -16px; }
  .mv-brand-logo { width: 145px; max-height: 38px; }
  .brand .leaf { width: 19px; height: 19px; }
  .nav-actions { gap: 8px; }
  .btn-lg { padding: 13px 22px; font-size: 13.5px; }
}

/* ───── Mobile menu sheet ───── */
.menu-sheet {
  display: none;
  position: fixed;
  /* Cover the area below the navbar; navbar stays visible so hamburger is clickable to close */
  inset: 60px 0 0 0;
  /* Fully opaque solid background so content behind doesn't bleed through */
  background: var(--bg);
  z-index: 48;
  padding: 24px var(--gutter) 32px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line-soft);
}
.menu-sheet.open { display: flex; }
.menu-sheet a {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 300;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.menu-sheet a em { color: var(--accent); font-style: italic; }
.menu-sheet .btn {
  margin-top: 24px;
  align-self: flex-start;
  font-family: var(--body);
  font-size: 14px;
  border-bottom: none;
  padding: 11px 22px;
}
/* When menu is open, force the navbar fully opaque so its translucent backdrop
   doesn't make the menu look transparent through it */
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .nav-mobile-toggle svg { transform: rotate(90deg); transition: transform 0.2s ease; }
.nav-mobile-toggle svg { transition: transform 0.2s ease; }

/* ═══════════ Vendor directory — shared components (cards, stars, icons) ═══════════ */
.vendor-cat-ic { width: 22px; height: 22px; }

.v-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.v-card:hover { transform: translateY(-3px); border-color: rgba(185,112,108,.35); box-shadow: 0 18px 44px rgba(37,30,25,.08); }
.v-card-media { position: relative; display: grid; place-items: center; height: 184px; background: radial-gradient(120% 120% at 30% 20%, color-mix(in oklch, var(--accent) 16%, var(--surface)), var(--bg-alt)); overflow: hidden; text-decoration: none; }
.v-card-media img { width: 100%; height: 100%; object-fit: cover; }
.v-card-monogram { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--surface); color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.v-card-monogram .vendor-cat-ic { width: 28px; height: 28px; }
.v-card-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.v-tag { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 4px 9px; }
.v-tag-promoted { background: var(--accent-deep); color: #fff; }
.v-tag-unclaimed { background: rgba(255,255,255,.92); color: #8b6b37; }
.v-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.v-card-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.v-card-price { color: var(--accent-deep); font-weight: 700; letter-spacing: .04em; }
.v-card-name { font-family: var(--font-display); font-size: 23px; line-height: 1.08; color: var(--ink); margin: 0; }
.v-card-name a { color: inherit; text-decoration: none; }
.v-card-name a:hover { color: var(--accent-deep); }
.v-card-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.v-card-loc svg { width: 14px; height: 14px; color: var(--ink-muted); flex: none; }
.v-card-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); }
.v-card-link { font-size: 13px; font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.v-card-link:hover { color: var(--ink); }
.v-card-saved { font-size: 11.5px; color: var(--ink-muted); }

.vendor-stars { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.vendor-stars-track { position: relative; display: inline-block; font-size: 13px; line-height: 1; letter-spacing: 1px; }
.vendor-stars-empty { color: var(--line); }
.vendor-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: #e0a93b; }
.vendor-stars-num { font-weight: 700; color: var(--ink); }
.vendor-stars-count { color: var(--ink-muted); font-size: 12px; }
