/* =====================================================================
   Cream & Terracotta · Shared dev styles for all redesign preview pages
   Imported by every /dev/redesign-*.html file. Page-specific styles go
   inline in each page's <style> block.
   ===================================================================== */

:root {
  --bg: #F7F2EA;
  --card: #EFE7DA;
  --ink: #2B2520;
  --quiet: #6B6258;
  --accent: #B65A3C;
  --accent-deep: #8C3F26;
  --blue: #3C5A78;
  --hair: #D9CFBE;
  --warm: #EFE0D6;
  --ember: #E8C4A8;
  --sand: #C8B89F;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums tabular-nums;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.dev-tag {
  position: fixed; top: 12px; right: 12px;
  background: var(--accent); color: var(--bg);
  padding: 6px 12px; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  z-index: 100; font-family: var(--mono);
}

/* === EYEBROW === */
.eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow.blue { color: var(--blue); }
.eyebrow.ember { color: var(--ember); }

/* === PHOTO PLACEHOLDER === */
.photo {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--card) 0 14px, var(--bg) 14px 28px);
  border: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
}
.photo.dark {
  background: repeating-linear-gradient(135deg, #4a3322 0 14px, #3a2818 14px 28px);
  border-color: #5a3e2a;
}
.photo.round { border-radius: 50%; }
.photo .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--quiet); background: var(--bg);
  padding: 8px 12px; text-transform: uppercase;
}
.photo.dark .label {
  color: var(--ember); background: rgba(20, 15, 10, 0.7);
}

/* === DESKTOP NAV === */
.nav-d {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 64px; border-bottom: 1px solid var(--hair);
  background: var(--bg);
}
.nav-d.dark {
  background: var(--ink); color: var(--bg);
  border-bottom-color: rgba(247, 242, 234, 0.12);
}
.nav-d .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.nav-d a.brand:hover .brand-name strong { color: var(--accent); }
.nav-d .brand-mark {
  width: 38px; height: 38px; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 18px;
}
.nav-d img.brand-mark {
  background: none; object-fit: cover; display: block;
}
.nav-d.dark .brand-mark { background: var(--bg); color: var(--ink); }
.nav-d.dark img.brand-mark { background: none; }
.nav-d .brand-name { font-size: 13px; letter-spacing: 0.04em; }
.nav-d .brand-name strong { font-weight: 500; display: block; }
.nav-d .brand-name span { color: var(--quiet); font-size: 11px; }
.nav-d.dark .brand-name span { color: var(--sand); }
.nav-d .links { display: flex; gap: 36px; font-size: 13px; }
.nav-d .links a { text-decoration: none; color: var(--quiet); }
.nav-d.dark .links a { color: var(--sand); }
.nav-d .links a.active {
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.nav-d.dark .links a.active {
  color: var(--bg); border-bottom-color: var(--ember);
}
.nav-d.blue-active .links a.active {
  border-bottom-color: var(--blue);
}
.nav-d .links a:hover { color: var(--ink); }
.nav-d.dark .links a:hover { color: var(--bg); }
.nav-d .nav-cta {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  padding: 10px 18px; font-size: 12px; text-decoration: none; display: inline-block;
}
.nav-d.dark .nav-cta {
  color: var(--bg); border-color: var(--bg);
}
.nav-d .nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-d.dark .nav-cta:hover { background: var(--bg); color: var(--ink); }

/* === PRIMARY CTA === */
.btn-primary {
  background: var(--accent); color: #FBF8F3; border: none;
  padding: 18px 28px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary.large { padding: 20px 36px; font-size: 15px; }
.btn-primary.full { width: 100%; text-align: center; padding: 18px; }
.btn-primary.ember {
  background: var(--ember); color: var(--ink);
}
.btn-secondary {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  padding: 14px 18px; font-size: 12px; font-family: inherit;
  text-decoration: none; display: inline-block;
}
.btn-secondary.dark {
  background: var(--ink); color: var(--bg);
}
.cta-support {
  font-size: 12px; color: var(--quiet); max-width: 380px; line-height: 1.5; margin: 0;
}
.cta-alt {
  font-size: 13px; color: var(--quiet); margin: 4px 0 0;
}
.cta-alt a {
  color: var(--accent); text-decoration: none; font-weight: 500;
}
.cta-alt a:hover { text-decoration: underline; }
.final-cta .cta-alt { color: var(--bg); opacity: 0.85; }
.final-cta .cta-alt a { color: var(--ember); }
.cta-stack {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.cta-stack.center { align-items: center; text-align: center; }

/* === FINAL CTA SECTION (dark) === */
.final-cta {
  padding: 90px 64px; background: var(--ink); color: var(--bg); text-align: center;
}
.final-cta .eyebrow { color: var(--ember); }
.final-cta h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -0.025em; margin: 20px auto 0; line-height: 1.05; max-width: 800px;
}
.final-cta .lede {
  font-size: 17px; line-height: 1.6; opacity: 0.85; margin: 22px auto 0; max-width: 600px;
}
.final-cta .cta-stack { margin-top: 36px; display: inline-flex; gap: 14px; }
.final-cta .cta-support { color: var(--bg); opacity: 0.75; font-size: 13px; max-width: 420px; text-align: center; }

/* === FOOTER === */
footer.site-footer {
  padding: 40px 64px; background: var(--bg); color: var(--quiet);
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; font-size: 12px;
}
footer.site-footer .links { display: flex; gap: 24px; }
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { color: var(--accent); }

/* === TRUST BAND (social proof) === */
.trust-band {
  padding: 72px 64px; background: var(--bg);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  text-align: center;
}
.trust-band .eyebrow { color: var(--accent); }
.trust-band h2 {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  letter-spacing: -0.02em; margin: 14px 0 0; line-height: 1.1;
}
.trust-band .vendor-row {
  margin: 36px auto 0; max-width: 900px;
  display: flex; justify-content: center; align-items: center;
  gap: 56px; flex-wrap: wrap;
}
.trust-band .vendor-row img {
  max-height: 72px; max-width: 160px; width: auto; height: auto;
  object-fit: contain; opacity: 0.92;
}
.trust-band .rating-row {
  margin-top: 28px; display: flex; justify-content: center; align-items: center;
  gap: 12px; font-size: 14px; color: var(--quiet);
}
.trust-band .rating-row .stars { color: var(--accent); letter-spacing: 0.08em; font-size: 16px; }
.trust-band .rating-row strong { color: var(--ink); font-weight: 500; }
.trust-band .cert-line {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--ink); font-weight: 500; text-transform: uppercase;
}
.trust-band .since-line {
  margin-top: 14px; font-size: 15px; color: var(--ink);
}
.trust-band .insurance-line {
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: var(--ink); font-weight: 500; text-transform: uppercase;
}

/* === HAMBURGER NAV (iPad landscape + cramped laptops, 769-1200px) ===
   Below 769 the mobile nav takes over. Above 1200 the full desktop nav fits comfortably.
   In between, the regular link bar collapses into a hamburger toggle to the left of the brand. */
.nav-d-toggle {
  display: none;
  background: none; border: none;
  padding: 6px 10px; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink);
  font-family: inherit;
}
.nav-d-toggle:hover { color: var(--accent); }
.nav-d-toggle:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1200px) {
  .nav-d {
    position: relative;
    padding: 20px 32px;
  }
  .nav-d-toggle { display: block; }
  .nav-d .brand-name span { display: none; }
  .nav-d .nav-cta { padding: 9px 14px; }
  .nav-d .links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    padding: 8px 0;
    border-bottom: 1px solid var(--hair);
    box-shadow: 0 12px 28px rgba(43, 37, 32, 0.10);
    z-index: 60;
  }
  .nav-d.open .links { display: flex; }
  .nav-d .links a {
    padding: 14px 32px;
    border-bottom: 1px solid var(--hair);
    font-size: 14px;
  }
  .nav-d .links a:last-child { border-bottom: none; }
  .nav-d .links a.active {
    border-bottom: 1px solid var(--hair);
    color: var(--accent);
    padding-bottom: 14px;
  }
}

/* Mobile-specific tightening (≤480px) — keeps everything visible on phones */
@media (max-width: 480px) {
  .nav-d { padding: 14px 18px; }
  .nav-d-toggle { padding: 4px 8px; font-size: 22px; }
  .nav-d .brand { gap: 8px; }
  .nav-d .brand-mark { width: 34px; height: 34px; }
  .nav-d .brand-name { font-size: 12px; }
  .nav-d .nav-cta { padding: 7px 10px; font-size: 11px; letter-spacing: 0.02em; }
  .nav-d .links a { padding: 12px 18px; }
}

/* === STICKY CTA (desktop only — mobile uses .m-sticky) === */
/* Fade-in pill that appears after scroll past the hero and hides near the footer.
   Show/hide is driven by sticky-cta.js toggling the .visible class. */
.sticky-cta {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--accent); color: #FBF8F3 !important;
  padding: 14px 26px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; text-transform: uppercase;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(43, 37, 32, 0.35);
  z-index: 100;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.sticky-cta.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.sticky-cta:hover {
  background: var(--accent-deep);
  box-shadow: 0 10px 32px rgba(43, 37, 32, 0.45);
}

/* === MOBILE SHARED === */
.mobile-only { display: none !important; }

/* Force dark nav variant back to light on mobile — the dark theme is only
   meaningful inside the cellar desktop hero; on mobile the cellar page body
   is cream like every other page, so the nav should match. */
@media (max-width: 768px) {
  .nav-d.dark { background: var(--bg); border-bottom-color: var(--hair); color: var(--ink); }
  .nav-d.dark .brand-mark { background: var(--ink); color: var(--bg); }
  .nav-d.dark img.brand-mark { background: none; }
  .nav-d.dark .brand-name strong { color: var(--ink); }
  .nav-d.dark .brand-name span { color: var(--quiet); }
  .nav-d.dark .links a { color: var(--quiet); }
  .nav-d.dark .links a.active { color: var(--ink); border-bottom-color: var(--accent); }
  .nav-d.dark .nav-cta { color: var(--ink); border-color: var(--ink); background: transparent; }
  .nav-d.dark .nav-d-toggle { color: var(--ink); }
}

/* === DISCLOSURE WIDGET NORMALIZATION === */
/* Hide the browser-default disclosure triangle on every <details> across the site.
   Custom +/- indicators (or service-specific markers) handle the open/closed state instead. */
details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::marker {
  display: none;
}
/* +/- toggle for any details using a .toggle span — applies on every page that uses
   the m-row pattern (weddings, corporate, private, cellar). Replaces hardcoded characters. */
details.m-row .toggle::before {
  content: "+";
}
details.m-row[open] .toggle::before {
  content: "\2013";
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  /* === MOBILE TRUST BAND === */
  .m-trust-band {
    padding: 36px 20px 28px; background: var(--bg);
    border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
    text-align: center;
  }
  .m-trust-band .eyebrow {
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent); font-weight: 600;
  }
  .m-trust-band h2 {
    font-family: var(--serif); font-size: 24px; font-weight: 400;
    letter-spacing: -0.02em; margin: 10px 0 0; line-height: 1.15;
  }
  .m-trust-band .vendor-row {
    margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 14px; align-items: center; justify-items: center;
  }
  .m-trust-band .vendor-row img {
    max-height: 40px; max-width: 100%; width: auto; height: auto;
    object-fit: contain; opacity: 0.92;
  }
  .m-trust-band .rating-row {
    margin-top: 22px; font-size: 12px; color: var(--quiet);
  }
  .m-trust-band .rating-row .stars { color: var(--accent); letter-spacing: 0.08em; }
  .m-trust-band .rating-row strong { color: var(--ink); font-weight: 500; }
  .m-trust-band .cert-line {
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    color: var(--ink); font-weight: 500; text-transform: uppercase;
    line-height: 1.5;
  }
  .m-trust-band .since-line {
    margin-top: 10px; font-size: 13px; color: var(--ink);
  }
  .m-trust-band .insurance-line {
    margin-top: 10px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    color: var(--ink); font-weight: 500; text-transform: uppercase;
    line-height: 1.5;
  }

  .m-final-cta {
    padding: 48px 20px; background: var(--ink); color: var(--bg); text-align: center;
  }
  .m-final-cta h2 {
    font-family: var(--serif); font-size: 28px; font-weight: 400;
    margin: 0; letter-spacing: -0.025em; line-height: 1.1;
  }
  .m-final-cta .btn-primary {
    width: 100%; margin-top: 22px; padding: 18px; text-align: center;
  }
  .m-final-cta .lede {
    font-size: 11px; opacity: 0.7; margin-top: 10px; line-height: 1.5; color: var(--bg);
  }

  .m-footer {
    padding: 20px; background: var(--bg); color: var(--quiet);
    font-size: 11px; text-align: center; border-top: 1px solid var(--hair);
  }

  .m-sticky {
    position: fixed; right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--ink); color: var(--bg);
    padding: 12px 18px; font-size: 12px; font-weight: 500;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(43, 37, 32, 0.25);
    z-index: 50;
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  .m-sticky.visible {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}

/* === ULTRAWIDE SCALING (>= 1700px) === */
/* Cap page content at 1800px on ultrawide displays. Uses body max-width so
   section paddings inside each page work unchanged - this avoids
   specificity wars with per-page inline styles. Letterboxes dark sections
   in the cream html background on ultrawide. */
@media (min-width: 1700px) {
  html { background: var(--bg); }
  body { max-width: 1800px; margin: 0 auto; }
}
