/* =============================================
   Health Minimalist — Chiropractic Clinic Stylesheet
   ============================================= */

:root {
  --sage: #7c9473;
  --sage-dark: #5f7355;
  --sage-light: #a9bb98;
  --cream: #faf6f0;
  --cream-2: #f4efe4;
  --tan: #ded0b0;
  --tan-2: #e7ddc7;
  --text-dark: #2e2a22;
  --text-gray: #6b6455;
  --text-gray-light: #948c78;
  --border: #e8e1d2;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 44px -22px rgba(46, 42, 34, 0.22);
  --shadow-sm: 0 10px 24px -12px rgba(46, 42, 34, 0.18);
  --container: 1180px;
  --ff-serif: 'Fraunces', Georgia, serif;
  --ff-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--ff-sans);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(124, 148, 115, 0.55);
}
.btn-primary:hover { background: var(--sage-dark); }

.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border-color: var(--sage);
}
.btn-outline:hover { background: var(--tan-2); }

.btn-white {
  background: var(--white);
  color: var(--sage-dark);
}
.btn-white:hover { background: var(--cream-2); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px -10px rgba(46, 42, 34, 0.18); border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--ff-serif); font-size: 1.2rem; font-weight: 600; color: var(--text-dark); }
.logo-sub { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; color: var(--text-gray-light); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; align-items: center; gap: 32px; }
.main-nav > ul > li > a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
  transition: color 0.15s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--sage-dark); }
.main-nav > ul > li > a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--sage);
  border-radius: 2px;
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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;
  padding-top: 40px;
  background: var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-bottom: 120px;
}
.hero-copy h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-dark);
}
.hero-desc {
  margin-top: 22px;
  color: var(--text-gray);
  font-size: 1.05rem;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-illustration { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  line-height: 0;
  z-index: 1;
}
.hero-wave svg { width: 100%; height: 130px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 110px 0 100px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.eyebrow {
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.25;
}

/* ---------- Services ---------- */
.services { padding-top: 70px; background: var(--cream); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 500; color: var(--text-dark); margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--text-gray); }

/* ---------- Benefits ---------- */
.benefits { background: var(--cream); }
.benefits-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 70px;
}
.benefits-illustration { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.benefits-copy h2 { font-family: var(--ff-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; color: var(--text-dark); margin-bottom: 18px; line-height: 1.25; }
.benefits-desc { color: var(--text-gray); max-width: 480px; margin-bottom: 24px; }
.benefits-list { display: flex; flex-direction: column; gap: 14px; }
.benefits-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text-dark); }
.check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.healing-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}
.healing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.healing-copy { position: relative; z-index: 1; padding: 50px 56px; max-width: 480px; }
.healing-copy h3 { font-family: var(--ff-serif); font-size: 2rem; font-weight: 500; color: var(--white); margin-bottom: 14px; }
.healing-copy p { color: #e4ead9; font-size: 0.95rem; margin-bottom: 24px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream-2); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; }
.testimonial-name { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.testimonial-card p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 14px; }
.stars { color: #d9a441; letter-spacing: 2px; font-size: 0.9rem; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #cabf9f;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.carousel-dots button.active { background: var(--sage); width: 22px; border-radius: 4px; }

/* ---------- Booking ---------- */
.booking { background: var(--cream); }
.booking-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.booking-copy h2 { font-family: var(--ff-serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; color: var(--text-dark); margin: 14px 0 16px; line-height: 1.2; }
.booking-desc { color: var(--text-gray); max-width: 420px; }

.booking-card {
  background: linear-gradient(160deg, var(--tan-2) 0%, var(--cream-2) 100%);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.highlight-tag {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.booking-card h3 { font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 500; margin-bottom: 10px; color: var(--text-dark); }
.booking-card > p { color: var(--text-gray); font-size: 0.92rem; margin-bottom: 22px; }
.booking-form { display: flex; flex-direction: column; gap: 12px; }
.booking-form input,
.booking-form textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--ff-sans);
  font-size: 0.92rem;
  color: var(--text-dark);
  resize: vertical;
}
.booking-form input:focus,
.booking-form textarea:focus { outline: none; border-color: var(--sage); }
.booking-form .btn { align-self: flex-start; margin-top: 4px; }
.booking-msg { margin-top: 12px; font-size: 0.85rem; color: var(--sage-dark); min-height: 1em; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--sage-dark);
  color: #dbe4d4;
  padding: 90px 0 30px;
  margin-top: -1px;
}
.footer-wave { position: absolute; top: -60px; left: 0; right: 0; line-height: 0; }
.footer-wave svg { width: 100%; height: 60px; display: block; }
.footer-title { font-family: var(--ff-serif); font-size: 2rem; font-weight: 500; color: var(--white); text-align: center; margin-bottom: 16px; }
.footer-about { max-width: 560px; margin: 0 auto 56px; text-align: center; color: #c9d6c0; font-size: 0.95rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; }
.footer-col p { font-size: 0.87rem; color: #c9d6c0; margin-bottom: 6px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 0.87rem; color: #c9d6c0; transition: color 0.15s ease; }
.footer-col ul li a:hover { color: var(--white); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #dbe4d4;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-row a svg { width: 15px; height: 15px; }
.social-row a:hover { background: var(--white); color: var(--sage-dark); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #b7c6ac;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sage-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 150px; }
  .hero-media { order: -1; max-width: 460px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .benefits-inner { grid-template-columns: 1fr; }
  .benefits-media { max-width: 460px; margin: 0 auto; }
  .healing-copy { padding: 40px 32px; }
  .booking-inner { grid-template-columns: 1fr; }
  .booking-copy { text-align: center; }
  .booking-desc { margin: 0 auto; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 82vw);
    background: var(--cream);
    box-shadow: -10px 0 40px rgba(46,42,34,0.18);
    padding: 100px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    justify-content: flex-start;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; }
  .main-nav > ul > li { width: 100%; }
  .main-nav > ul > li > a { display: block; padding: 12px 0; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0 60px; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-row { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .healing-copy { padding: 32px 24px; }
}
