/* ===================================================================
   Terri Mercantino — Massage Therapy in Princeton, NJ
   Stylesheet — Lavender Twilight
   ------------------------------------------------------------------
   Palette: aromatherapy-inflected lavender. Pale lilac ground, deep
   purple-black ink, mid-lavender accent with a warm-amber humanizing
   note. Dignified, sensory, calm — never spa-pastel. WCAG 2.1 AA
   contrast on every text/background pair. Designed for the unhurried
   pace of bodywork.
   =================================================================== */

:root {
  --walnut:        #2A2538;   /* deep purple-black — primary text */
  --walnut-soft:   #463E59;   /* secondary text */
  --muted:         #635771;   /* meta text — AA on lilac */
  --clay:          #674E89;   /* deep lavender accent — AA on lilac */
  --clay-bright:   #7A5E9E;   /* hover — lighter lavender */
  --camel:         #D4A571;   /* warm amber — humanizing accent */
  --rosewater:     #E2D9EC;   /* powder lavender — soft surface */
  --cream:         #F7F4FA;   /* very pale lilac — page background */
  --paper:         #FFFFFF;   /* card background */
  --line:          #E5DEEC;   /* subtle borders */

  --font-serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --max-width:     1100px;
  --section-pad:   clamp(3rem, 8vw, 6rem);
  --content-pad:   clamp(1.25rem, 4vw, 2rem);

  --shadow-soft:   0 1px 2px rgba(45, 36, 29, 0.04), 0 4px 12px rgba(45, 36, 29, 0.06);
  --shadow-lift:   0 2px 4px rgba(45, 36, 29, 0.06), 0 8px 24px rgba(45, 36, 29, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--walnut);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

a:hover { color: var(--clay-bright); }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--walnut);
  letter-spacing: -0.005em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   Skip link
   ------------------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--walnut);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(-100%);
  transition: transform 0.15s ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--cream);
}

/* ------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--content-pad);
  z-index: 100;
}

.nav-brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--walnut);
  line-height: 1.1;
}

.nav-brand-link:hover { color: var(--walnut); }

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--walnut-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--clay); }

.nav-cta {
  background: var(--walnut);
  color: var(--cream) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--clay); color: var(--cream) !important; }

@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-tagline { display: none; }
  .nav-links a { font-size: 0.88rem; }
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--walnut);
  color: var(--cream);
  border-color: var(--walnut);
}

.btn-primary:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--walnut);
  border-color: var(--walnut);
}

.btn-ghost:hover {
  background: var(--walnut);
  color: var(--cream);
}

.btn-large { padding: 1.1rem 2.2rem; font-size: 1.05rem; }

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  padding: clamp(3rem, 7vw, 5rem) var(--content-pad) clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--rosewater) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-text { max-width: 36rem; }

.hero h1 {
  margin-top: 0.25rem;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--walnut-soft);
  margin: 1.25rem 0 2rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-lift);
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-photo-wrap { order: -1; }
  .hero-photo { max-width: 320px; }
}

/* ------------------------------------------------------------------
   Section scaffolding
   ------------------------------------------------------------------ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad) var(--content-pad);
}

.about .section-inner { max-width: 760px; }

.section-lede {
  font-size: 1.1rem;
  color: var(--walnut-soft);
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--walnut);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------
   Services
   ------------------------------------------------------------------ */
.services {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  padding: 1.6rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--camel);
}

.service-card h3 {
  color: var(--clay);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--walnut-soft);
  font-size: 0.96rem;
  margin: 0;
  line-height: 1.6;
}

/* ------------------------------------------------------------------
   PEMF feature section
   ------------------------------------------------------------------ */
.feature {
  background: linear-gradient(135deg, var(--rosewater) 0%, var(--cream) 100%);
}

.feature-inner {
  max-width: 760px;
  text-align: center;
}

.feature-text .eyebrow { color: var(--clay); }

.feature-text p {
  font-size: 1.08rem;
  color: var(--walnut-soft);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------------
   Location
   ------------------------------------------------------------------ */
.location {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--walnut);
}

.location-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.contact-hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-left: 0.15rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.hours h3 {
  color: var(--clay);
  font-family: var(--font-serif);
  font-weight: 600;
}

.hours-note {
  color: var(--walnut-soft);
}

@media (max-width: 720px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq { background: var(--cream); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.4rem;
  transition: border-color 0.15s ease;
}

.faq-item[open] { border-color: var(--camel); }

.faq-item summary {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--walnut);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--clay);
  font-weight: 300;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
  border-radius: 2px;
}

.faq-item p {
  margin: 0.85rem 0 0;
  color: var(--walnut-soft);
  line-height: 1.65;
}

/* ------------------------------------------------------------------
   Book CTA
   ------------------------------------------------------------------ */
.book {
  background: var(--walnut);
  color: var(--cream);
}

.book-inner {
  text-align: center;
  max-width: 640px;
}

.book h2 { color: var(--cream); }

.book-lede {
  font-size: 1.15rem;
  color: var(--rosewater);
  margin-bottom: 2rem;
}

.book .btn-primary {
  background: var(--camel);
  border-color: var(--camel);
  color: var(--walnut);
}

.book .btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--walnut);
}

.book-cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-ghost-light:hover {
  background: var(--cream);
  color: var(--walnut);
  border-color: var(--cream);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--content-pad);
  text-align: center;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--walnut);
  margin-bottom: 0.5rem;
}

.footer-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.footer-meta a { color: var(--muted); }

.footer-meta a:hover { color: var(--clay); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
