/* ============================================================
   SoundUpkeep — Shared Stylesheet
   To change colors, fonts, or spacing: edit this file only.
   ============================================================ */

/* ── TOKENS ── */
:root {
  /* Colors */
  --cream: #FAF6F0;
  --tan: #E8D9C4;
  --warm-brown: #C4A882;
  --deep-brown: #5C3D2E;
  --rust: #B5522A;
  --rust-light: #D4703F;
  --rust-pale: #F2E0D6;
  --text: #2E1F14;
  --text-mid: #6B4C38;
  --text-light: #9C7B66;
  --white: #FFFFFF;
  --green: #4A7C59;
  --green-pale: #EAF2EC;
  --shadow: rgba(92,61,46,0.10);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;

  /* Page header — change once, updates all interior pages */
  --page-top: 9rem;
  --page-h-size: clamp(2.4rem, 5vw, 3.4rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body > * { width: 100%; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.25rem 5vw;
  background: rgba(250,246,240,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tan);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }
.nav-logo {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
  color: var(--deep-brown); letter-spacing: -0.02em;
  text-decoration: none; justify-self: start;
}
.nav-logo span { color: var(--rust); }
.nav-links { display: flex; gap: 2rem; list-style: none; justify-self: center; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--rust); }
.nav-right { display: flex; align-items: center; gap: 1rem; justify-self: end; }
.nav-cta {
  background: var(--rust); color: var(--white);
  padding: 0.6rem 1.4rem; border-radius: 100px;
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--rust-light); transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--deep-brown); border-radius: 2px; transition: all 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; top: 65px; left: 0; right: 0; z-index: 99;
  background: var(--cream); border-bottom: 2px solid var(--tan);
  padding: 1.5rem 5vw 2rem; flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.9rem 0; font-size: 1rem; font-weight: 500; color: var(--text-mid); text-decoration: none; border-bottom: 1px solid var(--tan); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--rust); }
.mobile-menu .mobile-cta { margin-top: 1.25rem; background: var(--rust); color: var(--white); padding: 0.85rem 1.5rem; border-radius: 100px; text-align: center; border-bottom: none; font-weight: 600; }

/* ── PAGE HEADER (interior pages) ── */
/* Change --page-top or --page-h-size in :root to update all interior headers at once */
.page-header { padding: var(--page-top) 5vw 4rem; }
.inner-wrap { max-width: 960px; margin: 0 auto; }
.page-eyebrow {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--rust);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.6rem;
}
.page-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--rust); }
.page-title {
  font-family: var(--font-serif);
  font-size: var(--page-h-size);
  font-weight: 700; color: var(--deep-brown);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; padding: 1rem 2.25rem;
  background: var(--rust); color: var(--white);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  border: none; border-radius: 100px; cursor: pointer;
  text-decoration: none; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(181,82,42,0.25);
}
.btn-primary:hover { background: var(--rust-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(181,82,42,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.full { display: block; width: 100%; text-align: center; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-white {
  display: inline-block; padding: 0.9rem 2.25rem;
  background: var(--white); color: var(--rust);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  border: none; border-radius: 100px; cursor: pointer;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

.btn-ghost { color: var(--text-mid); font-size: 0.88rem; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.2s; }
.btn-ghost:hover { color: var(--rust); }

.btn-back { background: none; border: none; cursor: pointer; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-mid); display: inline-flex; align-items: center; gap: 0.4rem; padding: 0; transition: color 0.2s; }
.btn-back:hover { color: var(--rust); }

/* ── FORM ELEMENTS ── */
label { font-size: 0.8rem; font-weight: 600; color: var(--deep-brown); }
input, select, textarea {
  font-family: var(--font-sans); font-size: 0.9rem;
  padding: 0.75rem 1rem; border: 1.5px solid var(--tan); border-radius: 10px;
  background: var(--cream); color: var(--text); outline: none; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--warm-brown);
  box-shadow: 0 0 0 3px rgba(196,168,130,0.15);
  background: var(--white);
}
input::placeholder, textarea::placeholder { color: var(--text-light); }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C7B66' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
textarea { resize: vertical; min-height: 100px; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-field.full { grid-column: 1 / -1; }
.field-error { font-size: 0.75rem; color: var(--rust); display: none; }
.field-error.show { display: block; }

/* ── CTA STRIP ── */
.cta-strip { background: var(--rust); padding: 4.5rem 5vw; text-align: center; }
.cta-strip h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--white); margin-bottom: 0.75rem; line-height: 1.2; }
.cta-strip p { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-weight: 300; }

/* ── SPINNER ── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; border-radius: 50%; animation: su-spin 0.7s linear infinite; vertical-align: middle; margin-right: 0.5rem; }
@keyframes su-spin { to { transform: rotate(360deg); } }

/* ── ANIMATIONS ── */
.fade-up, .fu { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible, .fu.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
footer { background: var(--text); padding: 3rem 5vw 0; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
.f-logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--cream); }
.f-logo span { color: var(--rust); }
.f-tagline { color: var(--text-light); font-size: 0.8rem; line-height: 1.7; margin-top: 0.5rem; font-weight: 300; max-width: 200px; }
.f-col h5 { color: var(--tan); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.f-col ul { list-style: none; }
.f-col li { margin-bottom: 0.45rem; }
.f-col a { color: var(--text-light); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.f-col a:hover { color: var(--warm-brown); }
.f-bottom { max-width: 1080px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.07); padding: 1.25rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.f-bottom p { color: var(--text-light); font-size: 0.72rem; }

/* ── SUCCESS / STATUS BADGES ── */
.success-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--green-pale); color: var(--green); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.25rem; }
.success-badge::before { content: '✓'; }
.cancelled-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: #FEF2F2; color: #B91C1C; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.25rem; }
.free-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--green-pale); color: var(--green); font-size: 0.72rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 100px; margin-bottom: 1.25rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-header { padding: 7rem 5vw 3rem; }
  .cta-strip { padding: 3.5rem 5vw; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; } /* Hide Get Started button on mobile */
  nav { 
    padding: 1rem 5vw; 
    grid-template-columns: auto 1fr; /* Two columns on mobile: logo and hamburger */
  }
  .nav-right { justify-self: end; } /* Keep hamburger on right */
  .page-header { padding: 6rem 5vw 2.5rem; }
  .page-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  input, select, textarea { font-size: 16px; } /* Prevents zoom on iOS */
  .cta-strip h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .btn-primary, .btn-white { padding: 0.85rem 2rem; font-size: 0.9rem; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .page-header { padding: 5.5rem 5vw 2rem; }
  :root { --page-top: 7rem; }
}
