/* =========================================================
   Sierra Acupuncture Clinic — Stylesheet
   Palette: sage green + warm sand + soft terracotta accent
   ========================================================= */

:root {
  /* Colors */
  --sage-900: #2f3a30;
  --sage-700: #4a5a48;
  --sage-500: #6f8268;
  --sage-300: #aebfa3;
  --sage-100: #e7ede1;

  --sand-100: #f7f4ee;
  --sand-200: #efe9df;
  --sand-300: #e3dac9;

  /* Warm green-grey-brown accent — Sierra Nevada sagebrush/granite
     (variable names kept for simplicity) */
  --terracotta: #8a7d5f;
  --terracotta-dark: #6a6047;

  --ink: #2a2b27;
  --ink-soft: #55584f;
  --white: #ffffff;

  /* Type */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(47, 58, 48, 0.45);
  --transition: 0.25s ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--sand-100);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sage-900);
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(138, 125, 95, 0.9);
}
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--sage-900);
  border-color: var(--sage-300);
}
.btn-ghost:hover { background: var(--sage-100); }

.btn-small { padding: 0.55rem 1.2rem; font-size: 0.92rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-300);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-500);
  color: var(--white);
  font-size: 1.3rem;
  font-family: var(--font-serif);
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--sage-900);
}
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage-500);
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--sage-700);
  font-weight: 600;
  font-size: 0.96rem;
}
.nav a:hover { color: var(--terracotta-dark); text-decoration: none; }
.nav .nav-cta { color: var(--white); }
.nav .nav-cta:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--sage-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(174, 191, 163, 0.35), transparent 55%),
    linear-gradient(160deg, var(--sage-100) 0%, var(--sand-100) 60%);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 125, 95, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; position: relative; z-index: 1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-500);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--sand-200); }

.kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.section-head { max-width: 720px; margin-bottom: 2.8rem; }
.section-intro { font-size: 1.12rem; color: var(--ink-soft); }
.section-note {
  margin-top: 2.2rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 760px;
}

/* ---------- Practitioner ---------- */
.practitioner-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--sage-300), var(--sage-500));
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  box-shadow: var(--shadow);
}
/* ---------- Cards (What We Treat) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 12px 30px -26px rgba(47, 58, 48, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card h3 { color: var(--sage-700); margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Offer list ---------- */
.offer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.offer-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.9rem;
  border-top: 4px solid var(--sage-500);
  box-shadow: 0 12px 30px -26px rgba(47, 58, 48, 0.5);
}
.offer-item h3 { color: var(--sage-900); }
.offer-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}
.why-item { position: relative; padding-top: 0.5rem; }
.why-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--sage-300);
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}
.why-item h3 { color: var(--sage-700); }
.why-item p { margin: 0; color: var(--ink-soft); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2rem;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card h3 { color: var(--sage-700); margin-bottom: 0.2rem; }
.price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0.3rem 0 0.8rem;
}
.price-card p:last-child { margin: 0; color: var(--ink-soft); }

.fine-print {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--sage-700), var(--sage-900));
  color: var(--sand-100);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.12rem;
  color: var(--sage-100);
}
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.contact-info address { font-style: normal; margin-bottom: 1.8rem; }
.contact-line { margin: 0 0 0.4rem; font-size: 1.1rem; }
.contact-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-900);
  color: var(--sage-100);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.footer-tagline { font-family: var(--font-serif); font-size: 1.25rem; color: var(--white); }
.footer-meta { font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer-meta a { color: var(--sage-100); }
.footer-disclaimer {
  max-width: 760px;
  margin: 1.8rem auto 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(231, 237, 225, 0.18);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--sage-300);
  text-align: left;
}
.footer-disclaimer strong { color: var(--sage-100); }

.footer-copy { font-size: 0.82rem; color: var(--sage-300); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .practitioner-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .practitioner-photo { max-width: 360px; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sand-100);
    border-bottom: 1px solid var(--sand-300);
    padding: 0.5rem 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--sand-300);
    font-size: 1.05rem;
  }
  .nav .nav-cta {
    margin-top: 1rem;
    border-bottom: none;
    text-align: center;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}
