/* ===========================================================
   Cedar & Stone Spa — Shared Design System
   Palette: linen, cedar wood, river stone, soft sage
   Type: Georgia (display) / system sans (body)
=========================================================== */

:root {
  --linen: #f6f1e8;
  --linen-dark: #ede4d3;
  --paper: #fffdf9;
  --cedar: #7a5a3a;
  --cedar-dark: #4f3a26;
  --cedar-light: #a9805a;
  --stone: #a49c8d;
  --stone-light: #d8d1c3;
  --sage: #8a9a80;
  --sage-dark: #5f6f57;
  --ink: #2f2b25;
  --ink-soft: #55503f;
  --white: #ffffff;

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 6px;
  --shadow-soft: 0 12px 32px -18px rgba(47, 43, 37, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cedar-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw + 1rem, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.4vw + 1rem, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--cedar); text-decoration: none; }
a:hover, a:focus-visible { color: var(--cedar-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--cedar);
  color: var(--white);
  border-color: var(--cedar);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--cedar-dark);
  border-color: var(--cedar-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--cedar-dark);
  border-color: var(--cedar-dark);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--cedar-dark);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--cedar-dark);
  border-color: var(--white);
}
.btn-light:hover, .btn-light:focus-visible {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-light);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cedar-dark);
}
.brand svg { flex-shrink: 0; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cedar-dark);
  position: relative;
  transition: 0.2s;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active {
  color: var(--cedar-dark);
  border-bottom-color: var(--sage);
}

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stone-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .main-nav ul li { width: 100%; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--stone-light); }
  .nav-toggle:checked ~ .main-nav { max-height: 420px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47,38,26,0.55) 0%, rgba(47,38,26,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(90px, 16vw, 160px) 24px clamp(70px, 10vw, 110px);
}
.hero-content .eyebrow { color: var(--linen-dark); }
.hero-content h1 { color: var(--white); max-width: 20ch; }
.hero-content p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--linen-dark);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6em;
}

.hero-small {
  padding: 70px 0 40px;
  background: var(--linen-dark);
  border-bottom: 1px solid var(--stone-light);
}
.hero-small h1 { max-width: 22ch; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--linen-dark); }
.section-dark {
  background: var(--cedar-dark);
  color: var(--linen);
}
.section-dark h2, .section-dark h3 { color: var(--linen); }
.section-dark p { color: var(--stone-light); }

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head.left { margin: 0 0 3rem; text-align: left; }

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.photo-card {
  background: var(--paper);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.photo-card img { width: 100%; height: 260px; object-fit: cover; }
.photo-card .photo-body { padding: 22px 24px 26px; }

figure { margin: 0; }
figcaption.credit {
  font-size: 0.72rem;
  color: var(--stone);
  padding: 6px 2px 0;
}
figcaption.credit a { color: var(--stone); text-decoration: underline; }

/* ---------- Pricing table ---------- */
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--stone-light);
}
.price-list li:last-child { border-bottom: none; }
.price-list .name { font-weight: 600; color: var(--ink); }
.price-list .meta { color: var(--stone); font-size: 0.85rem; display: block; }
.price-list .price { font-family: var(--font-display); color: var(--cedar-dark); white-space: nowrap; }

/* ---------- Forms ---------- */
form {
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.field-note { font-size: 0.8rem; color: var(--stone); margin-top: 4px; }

.form-confirm {
  display: none;
  background: var(--sage);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
}
form:target ~ .form-confirm,
.show-confirm { display: block; }

/* ---------- Quote / testimonial ---------- */
.quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cedar-dark);
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}
.quote-attr {
  display: block;
  margin-top: 1em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--stone-dark, var(--stone));
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cedar-dark);
  color: var(--linen-dark);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.8em; }
.footer-grid p, .footer-grid a { color: var(--stone-light); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand span { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--stone);
}
.footer-bottom a { color: var(--stone); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Utility ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }
.badge {
  background: var(--linen-dark);
  border: 1px solid var(--stone-light);
  color: var(--ink-soft);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.section-dark .badge { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: var(--linen-dark); }

.divider-leaf { text-align: center; margin: 0 auto 2rem; opacity: 0.7; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col.reverse .col-media { order: -1; }
@media (max-width: 780px) {
  .two-col.reverse .col-media { order: 0; }
}
.col-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

table.hours-table { width: 100%; border-collapse: collapse; }
table.hours-table td, table.hours-table th { padding: 10px 6px; border-bottom: 1px solid var(--stone-light); text-align: left; }
table.hours-table th { color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

.map-frame {
  border: 1px solid var(--stone-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--linen-dark);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
