/* =========================================================
   Nutmeg Sauna Company — styles
   Colors and fonts live in :root so they're easy to change.
   ========================================================= */
:root {
  --cream: #F8F3EA;
  --cream-deep: #F0E7D8;
  --charcoal: #1E1A17;
  --wood: #6E4127;
  --honey: #D9A35B;
  --ember: #A64F1D;
  --ember-dark: #8A3F15;
  --text: #1E1A17;
  --muted: #5B4F46;      /* 7:1 on cream */
  --line: #E2D6C3;
  --white: #FFFFFF;

  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(30,26,23,.04), 0 8px 24px rgba(30,26,23,.06);
  --header-h: 64px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--wood); }
a:hover { color: var(--ember-dark); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.35rem, 7.5vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--charcoal); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.5em;
  border-radius: 999px; border: 0;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--ember); color: var(--white); box-shadow: 0 6px 18px rgba(166,79,29,.28); }
.btn-primary:hover { background: var(--ember-dark); color: var(--white); transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: .55em 1.1em; font-size: .9rem; box-shadow: none; }
.btn-lg { min-height: 56px; padding: 1em 2em; font-size: 1.075rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,243,234,.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(110,65,39,.12);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--charcoal); text-decoration: none; font: 600 1.2rem/1 var(--font-serif); margin-right: auto; white-space: nowrap; }
.logo:hover { color: var(--charcoal); }
.header-nav { display: none; gap: 28px; }
.header-nav a { color: var(--charcoal); text-decoration: none; font-size: .95rem; font-weight: 500; }
.header-nav a:hover { color: var(--ember); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88svh, 820px);
  display: flex; align-items: flex-end;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,13,.35) 0%, rgba(20,16,13,.15) 30%, rgba(20,16,13,.75) 72%, rgba(20,16,13,.9) 100%);
}
.hero-content { padding-top: 96px; padding-bottom: 48px; max-width: 1160px; }
.hero h1 { max-width: 13ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(1.075rem, 2.4vw, 1.3rem); max-width: 34ch; color: rgba(255,255,255,.92); margin-bottom: 1.5em; }
.trust-line { margin: 1.1em 0 0; font-size: .9rem; color: rgba(255,255,255,.88); letter-spacing: .01em; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--cream-deep); }
.section-dark { background: var(--charcoal); color: #EDE5D8; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--honey); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  font: 600 .8rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--wood); margin-bottom: 1em;
}

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); }
.icon { width: 40px; height: 40px; margin-bottom: 16px; fill: none; stroke: var(--wood); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; padding: 8px; background: var(--cream-deep); border-radius: 10px; box-sizing: content-box; }
.icon-lg { width: 32px; height: 32px; padding: 12px; border-radius: 50%; margin: 0 auto 20px; }

/* ---------- Indoor / outdoor ---------- */
.type-grid { display: grid; gap: 20px; }
.type-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.type-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.type-body { padding: 24px; }
.type-body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: .4em .9em; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--wood); }
.tags-lg { justify-content: center; margin: 8px 0 24px; }
.tags-lg li { background: var(--white); font-size: 1rem; padding: .55em 1.1em; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; margin-bottom: 44px; counter-reset: none; }
.step { position: relative; padding-left: 68px; }
.step-num {
  position: absolute; left: 0; top: -4px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 1.35rem/1 var(--font-serif); color: var(--white); background: var(--wood);
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 40px; align-items: center; }
.why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); max-height: 520px; }
.why-list { display: grid; gap: 22px; margin-top: 12px; }
.why-list li { padding-left: 22px; border-left: 2px solid var(--honey); }
.why-list h3 { font-size: 1.2rem; margin-bottom: .3em; }
.why-list p { margin: 0; color: #D7CCBC; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 16px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review blockquote { margin: 0 0 12px; font: 400 1.15rem/1.5 var(--font-serif); }
.review figcaption { color: var(--muted); font-size: .9rem; }

/* ---------- Service area ---------- */
.area { text-align: center; max-width: 820px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; font: 500 1.15rem/1.35 var(--font-serif); color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--wood); border-bottom: 2px solid var(--wood);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--ember); }
.faq-body { padding: 0 4px 22px; color: var(--muted); max-width: 64ch; }
.faq-body p { margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--charcoal); color: #EDE5D8; padding-bottom: 56px; }
.final-head { text-align: center; margin-bottom: 32px; }
.final-head h2 { color: var(--white); }
.final-head p { font-size: 1.2rem; color: var(--honey); margin: 0; }
.calendly-wrap {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  max-width: 1000px; margin: 0 auto; min-height: 700px; position: relative;
}
.calendly-wrap .calendly-inline-widget { min-width: 300px; height: 700px; }
.calendly-fallback { padding: 48px 24px; text-align: center; color: var(--text); }
.calendly-wrap:has(.calendly-fallback) { min-height: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #15120F; color: #CFC4B4; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #EDE5D8; }
.site-footer a:hover { color: var(--honey); }
.site-footer p { margin: 0 0 .4em; }
.footer-name { font: 500 1.25rem/1.3 var(--font-serif); color: var(--white); }
.footer-grid { display: grid; gap: 24px; }
.social { display: flex; gap: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(248,243,234,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(30,26,23,.08);
  transition: transform .3s ease;
}
.mobile-bar .btn-primary { flex: 1; box-shadow: none; }
.mobile-bar.is-hidden { transform: translateY(110%); }
.btn-call { background: var(--white); color: var(--charcoal); border: 1.5px solid var(--charcoal); padding: .8em 1.1em; }
.btn-call:hover { color: var(--charcoal); background: var(--cream-deep); }
.btn-call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
body { padding-bottom: 72px; } /* room for the mobile bar */

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page h2 { font-size: 1.5rem; margin-top: 1.8em; }
.page ul { list-style: disc; padding-left: 1.25em; margin-bottom: 1em; }
.page li { margin-bottom: .4em; }
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (max-width: 479px) {
  .site-header .btn-sm { display: none; } /* the sticky bottom bar handles booking on phones */
}
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .section { padding: 112px 0; }
  .type-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .step { padding-left: 0; padding-top: 68px; }
  .why-grid { grid-template-columns: 5fr 6fr; gap: 72px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .hero-content { padding-bottom: 88px; }
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .header-nav { display: flex; }
  .cards { grid-template-columns: repeat(5, 1fr); }
  .card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
