/* ============================================================
   THE EDITOR'S GUIDE — SHARED DESIGN SYSTEM
   Used by every page. Change colors/fonts here, propagates everywhere.
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-light: #ffffff;
  --bg-cream: #faf7f2;
  --bg-section-alt: #f5f1ea;
  --text-light: #ffffff;
  --text-muted: #c4c4c4;       /* >= 7:1 on dark — WCAG AAA */
  --text-soft: #9d9d9d;        /* >= 4.5:1 on dark — WCAG AA */
  --text-dark: #1a1a1a;
  --text-body: #4a4a4a;
  --accent: #c47c5a;
  --accent-hover: #a8684a;
  --accent-soft: #d49479;
  --gold: #c9a96e;
  --border-soft: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(0, 0, 0, 0.08);

  --font-script: 'Allura', 'Brush Script MT', cursive;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-nav: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1280px;
  --container-narrow: 1100px;
  --container-tight: 820px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; line-height: 1.2; }
p { margin: 0; }

/* Visually-hidden utility for screen-reader-only labels */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: var(--text-light);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-nav); font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  z-index: 1000; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ---------- CONTAINERS ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.script-heading { font-family: var(--font-script); font-weight: 400; line-height: 1.05; }
.serif-heading { font-family: var(--font-display); font-weight: 500; }
.eyebrow {
  font-family: var(--font-nav); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-nav); font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em;
  padding: 1.1rem 2.4rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--text-light); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-hover); }
.btn-light { background: var(--bg-light); color: var(--text-dark); }
.btn-light:hover, .btn-light:focus-visible { background: var(--bg-cream); }
.btn-outline-light { background: transparent; color: var(--text-light); border-color: var(--text-light); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: var(--text-light); color: var(--text-dark); }
.btn-outline-dark { background: transparent; color: var(--text-dark); border-color: var(--text-dark); }
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { background: var(--text-dark); color: var(--text-light); }

/* ---------- HEADER / NAV ---------- */
.site-header {
  background: var(--bg-dark);
  padding: 1.5rem 0;
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 2rem;
}
.nav-list {
  display: flex; list-style: none; padding: 0; margin: 0;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-family: var(--font-nav); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-light);
}
.nav-list--left { justify-content: flex-start; }
.nav-list--right { justify-content: flex-end; }
.nav-list a { color: var(--text-light); transition: color 0.2s ease; position: relative; padding: 0.25rem 0; }
.nav-list a:hover, .nav-list a:focus-visible { color: var(--accent-soft); }
.nav-list a[aria-current="page"] { color: var(--accent-soft); }
.nav-list a[aria-current="page"]::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 1px; background: var(--accent-soft);
}
.nav-logo {
  font-family: var(--font-script); font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text-light); white-space: nowrap; line-height: 1;
}
.menu-dropdown-toggle {
  color: var(--text-light); font-family: inherit; font-size: inherit;
  font-weight: inherit; letter-spacing: inherit; text-transform: inherit;
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0;
}
.menu-dropdown-toggle::after {
  content: ''; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile menu is hidden by default on every viewport (fixes desktop leak) */
.mobile-menu { display: none; }

@media (max-width: 880px) {
  .nav-list--left, .nav-list--right { display: none; }
  .menu-toggle { display: flex; justify-self: end; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    display: none;
    background: var(--bg-dark); border-top: 1px solid var(--border-soft);
    padding: 1.5rem 0;
  }
  .mobile-menu.is-open { display: block; }
  .mobile-menu ul {
    list-style: none; padding: 0 1.5rem; margin: 0;
    display: flex; flex-direction: column; gap: 1.25rem;
    font-family: var(--font-nav); font-size: 0.85rem;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-light);
  }
  .mobile-menu a { color: var(--text-light); }
}

/* ---------- PAGE HEADER (for interior pages) ---------- */
.page-header {
  background: var(--bg-dark); color: var(--text-light);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}
.page-eyebrow {
  font-family: var(--font-nav); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--accent-soft); margin-bottom: 1.25rem;
}
.page-title {
  font-family: var(--font-script); font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--text-light); margin-bottom: 1.25rem; line-height: 1.05;
}
.page-subtitle {
  max-width: 42rem; margin: 0 auto;
  color: var(--text-muted); font-size: 1.0625rem; line-height: 1.7;
}

/* ---------- SECTION LABELS ---------- */
.section-dark { background: var(--bg-dark); color: var(--text-light); padding: var(--section-pad) 0; }
.section-light { background: var(--bg-light); color: var(--text-dark); padding: var(--section-pad) 0; }
.section-cream { background: var(--bg-cream); color: var(--text-dark); padding: var(--section-pad) 0; }

.section-heading {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 1rem; text-align: center;
}
.section-heading-dark { color: var(--text-dark); }
.section-heading-light { color: var(--text-light); }
.section-heading-accent { color: var(--accent); }
.section-divider {
  width: 60px; height: 1px; background: var(--accent);
  margin: 0 auto 3rem;
}

/* ---------- FORMS ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-row-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label {
  font-family: var(--font-nav); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dark);
}
.form-group--dark label { color: var(--text-light); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans); font-size: 1rem;
  background: var(--bg-light); color: var(--text-dark);
  border: 1px solid var(--border-dark); border-radius: 2px;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
}
.form-group--dark input,
.form-group--dark textarea,
.form-group--dark select {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light); border: 1px solid var(--border-soft);
}
.form-group--dark input::placeholder,
.form-group--dark textarea::placeholder { color: var(--text-soft); }
.form-group textarea { min-height: 150px; resize: vertical; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- CARDS / TIERS ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.tier-card {
  background: var(--bg-light); color: var(--text-dark);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-dark);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.tier-card--featured {
  background: var(--bg-dark); color: var(--text-light);
  border-color: var(--accent);
  position: relative;
}
.tier-card--featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--text-light);
  font-family: var(--font-nav); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  padding: 0.4rem 1rem; white-space: nowrap;
}
.tier-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  margin-bottom: 0.5rem;
}
.tier-price {
  font-family: var(--font-display); font-size: 2.75rem; font-weight: 300;
  color: var(--accent); margin-bottom: 0.25rem; line-height: 1;
}
.tier-card--featured .tier-price { color: var(--accent-soft); }
.tier-period {
  font-family: var(--font-nav); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-body); margin-bottom: 1.5rem;
}
.tier-card--featured .tier-period { color: var(--text-muted); }
.tier-divider { height: 1px; background: var(--border-dark); margin: 1rem 0 1.5rem; }
.tier-card--featured .tier-divider { background: var(--border-soft); }
.tier-features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.tier-features li {
  padding: 0.5rem 0 0.5rem 1.75rem; position: relative;
  font-size: 0.95rem; line-height: 1.5;
  color: var(--text-body);
}
.tier-card--featured .tier-features li { color: var(--text-muted); }
.tier-features li::before {
  content: ''; position: absolute; left: 0; top: 0.95rem;
  width: 10px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-darker); color: var(--text-soft);
  padding: 3rem 0 2rem; text-align: center;
  border-top: 1px solid var(--border-soft);
}
.site-footer-logo {
  font-family: var(--font-script); font-size: 2rem;
  color: var(--text-light); margin-bottom: 1rem;
}
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem;
  font-family: var(--font-nav); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.15em;
}
.footer-nav a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--accent); }
.social-links {
  display: flex; gap: 1.25rem; justify-content: center;
  margin: 1.5rem 0; list-style: none; padding: 0;
}
.social-links a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft); border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.social-links a:hover, .social-links a:focus-visible {
  color: var(--accent); border-color: var(--accent);
}
.social-links svg { width: 16px; height: 16px; fill: currentColor; }
.footer-copy {
  font-size: 0.875rem; color: var(--text-soft);
  margin-top: 1rem;
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
