/* ============================================================
   Georgetown Chiropractic — redesign mockup
   Anchors: Airbnb warmth · Stripe elegance · Apple rhythm
   ============================================================ */

:root {
  --canvas: #ffffff;
  --parchment: #f5f8fb;
  --ice: #e7f9fd;
  --ink: #131d4b;
  --muted: #5a6b8a;
  --navy: #1d2d74;
  --navy-press: #16235c;
  --cyan: #8be3f3;
  --midnight: #0e1533;
  --gold: #d4a017;
  --hairline: #e2e9f2;
  --radius: 20px;
  --shadow-soft: 0 8px 30px rgba(19, 29, 75, 0.07);
  --shadow-lift: 0 20px 50px rgba(19, 29, 75, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .trust-num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); }

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

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--cyan); }

/* ---------- Top bar ---------- */
.topbar { background: var(--midnight); color: #c9d3ec; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 24px; flex-wrap: wrap; }
.topbar a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--hairline), 0 8px 24px rgba(19, 29, 75, 0.06);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo img { height: 58px; display: block; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  border-radius: 8px;
}
.main-nav > ul > li > a:hover { color: var(--navy); background: var(--parchment); }
.has-dropdown > a::after { content: " ▾"; font-size: 0.72em; color: var(--muted); }
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: #fff;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-size: 14.5px; border-radius: 8px; }
.dropdown a:hover { background: var(--ice); color: var(--navy); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; padding: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-press); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: #a5ecf9; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(139, 227, 243, 0.35); }
.header-cta { padding: 11px 22px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 12% 8%, rgba(139, 227, 243, 0.55), transparent 60%),
    radial-gradient(ellipse 45% 55% at 88% 0%, rgba(231, 249, 253, 0.9), transparent 65%),
    radial-gradient(ellipse 40% 40% at 70% 100%, rgba(212, 160, 23, 0.08), transparent 60%),
    linear-gradient(170deg, #f2fbfe 0%, #ffffff 70%);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 62px); color: var(--ink); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--navy); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-proof {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 480px;
  backdrop-filter: blur(6px);
}
.hero-proof p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.hero-proof strong { color: var(--ink); }
.stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; white-space: nowrap; }
.hero-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 32px 64px rgba(19, 29, 75, 0.22);
  display: block;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust-item { text-align: center; color: #fff; }
.trust-num { display: block; font-size: 44px; color: var(--cyan); margin-bottom: 4px; }
.trust-label { font-size: 13.5px; color: #c9d3ec; line-height: 1.45; display: block; max-width: 22ch; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-title { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 24px; }
.section-title.on-dark { color: #fff; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 72ch; margin-bottom: 18px; }
.on-dark-soft { color: #b9c4e4; }

/* ---------- Why choose ---------- */
.why-choose { background: var(--canvas); }
.check-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 36px; }
.check-grid li {
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 22px 24px 22px 56px;
  font-weight: 500;
  font-size: 16.5px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.check-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.check-grid li::before {
  content: "✓";
  position: absolute;
  left: 24px;
  top: 20px;
  width: 22px;
  height: 22px;
  color: var(--navy);
  font-weight: 800;
}
.check-grid li em { color: var(--navy); }

/* ---------- Why pain returns (dark tile) ---------- */
.why-pain { background: var(--midnight); color: #fff; }
.why-pain-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.quote-list { list-style: none; margin-top: 26px; }
.quote-list li {
  font-family: 'Fraunces', serif;
  font-size: 21px;
  font-style: italic;
  color: #dfe6f7;
  padding: 14px 0 14px 38px;
  position: relative;
  border-bottom: 1px solid rgba(139, 227, 243, 0.14);
}
.quote-list li::before { content: "”"; position: absolute; left: 4px; top: 10px; color: var(--cyan); font-size: 30px; }
.why-pain-callout {
  background: rgba(139, 227, 243, 0.07);
  border: 1px solid rgba(139, 227, 243, 0.28);
  border-radius: var(--radius);
  padding: 44px;
  font-size: 19px;
  color: #dfe6f7;
}
.why-pain-callout p { margin-bottom: 16px; }
.why-pain-callout strong { color: var(--cyan); }
.why-pain-callout .btn { margin-top: 14px; }

/* ---------- Personalized ---------- */
.personalized { background: var(--parchment); }
.personalized p { max-width: 76ch; margin-bottom: 14px; }
.expect-box {
  margin-top: 48px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 56px;
  box-shadow: var(--shadow-soft);
}
.expect-box h3 { font-size: 30px; margin-bottom: 6px; }
.expect-tagline { font-weight: 600; color: var(--navy); margin-bottom: 32px; }
.expect-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--navy);
  font-family: 'Fraunces', serif;
  font-size: 19px;
  margin-bottom: 14px;
}
.step p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* ---------- Treat ---------- */
.treat { background: var(--canvas); }
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.treat-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.treat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.treat-card.featured { border-color: var(--cyan); box-shadow: 0 12px 36px rgba(139, 227, 243, 0.22); }
.treat-card h3 { font-size: 24px; color: var(--navy); }
.treat-note { font-size: 13.5px; color: var(--muted); font-style: italic; margin: 4px 0 18px; }
.treat-card ul { list-style: none; }
.treat-card li { padding: 9px 0 9px 22px; position: relative; font-size: 15.5px; border-bottom: 1px solid var(--hairline); }
.treat-card li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 999px; background: var(--cyan); }
.treat-card li:last-child { border-bottom: none; }

/* ---------- Includes ---------- */
.includes { background: var(--parchment); }
.includes-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.check-list { list-style: none; margin: 18px 0 24px; }
.check-list li { padding: 13px 0 13px 40px; position: relative; border-bottom: 1px solid var(--hairline); font-size: 16px; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.includes-close { color: var(--muted); font-size: 15.5px; }
.personal-attention {
  background: var(--navy);
  color: #dfe6f7;
  border-radius: 24px;
  padding: 44px;
  position: sticky;
  top: 110px;
}
.personal-attention h3 { color: var(--cyan); font-size: 26px; margin-bottom: 14px; }
.personal-attention p { margin-bottom: 16px; font-size: 16px; }
.personal-attention .btn { margin-top: 10px; }

/* ---------- About ---------- */
.about { background: var(--canvas); }
.about-inner { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 72px; align-items: center; }
.about-photo { position: relative; }
.about-photo::after {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: 24px;
  background: var(--ice);
  z-index: -1;
}
.about-photo img { width: 100%; max-width: 400px; height: auto; border-radius: 24px; box-shadow: var(--shadow-lift); display: block; }
.about-copy p { margin-bottom: 18px; max-width: 62ch; }

/* ---------- Reviews ---------- */
.reviews { background: var(--parchment); text-align: center; }
.reviews .eyebrow { margin-bottom: 10px; }
.review-card {
  max-width: 780px;
  margin: 32px auto 0;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 52px 56px;
  box-shadow: var(--shadow-soft);
}
.review-card .stars { font-size: 24px; display: block; margin-bottom: 22px; }
.review-text {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 22px;
}
.review-author { font-weight: 600; color: var(--muted); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact { background: var(--canvas); }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.contact-form {
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.contact-form input, .contact-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(139, 227, 243, 0.3); }
.contact-form .btn { align-self: flex-start; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.visit-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 32px; }
.visit-card h3 { color: var(--navy); font-size: 21px; margin-bottom: 16px; }
.hours-list { list-style: none; margin-bottom: 14px; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--hairline); font-size: 15px; font-weight: 500; }
.hours-list li:last-child { border-bottom: none; }
.visit-note { color: var(--muted); font-size: 14px; }
.visit-card p { margin-bottom: 18px; font-size: 15.5px; }
.visit-card a { text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: #b9c4e4; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 52px; background: #fff; border-radius: 10px; padding: 4px 10px; margin-bottom: 16px; }
.site-footer h4 { color: var(--cyan); font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #b9c4e4; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--cyan); }
.site-footer p { font-size: 14.5px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(139, 227, 243, 0.15); padding: 20px 0; font-size: 13.5px; color: #8494bd; }

/* ---------- Mobile action bar ---------- */
.mobile-action-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .section { padding: 80px 0; }
  .hero-inner, .why-pain-inner, .includes-inner, .about-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { gap: 44px; }
  .hero { padding: 56px 0 72px; }
  .expect-steps, .treat-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .personal-attention { position: static; }
  .about-photo { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lift);
    padding: 12px 24px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a { padding: 13px 8px; font-size: 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar-hours { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .expect-box { padding: 32px; }
  .review-card { padding: 36px 28px; }
  .review-text { font-size: 19px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }

  .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(14, 21, 51, 0.18);
  }
  .mobile-action-bar a {
    flex: 1;
    text-align: center;
    padding: 18px 12px;
    font-weight: 700;
    font-size: 15.5px;
    text-decoration: none;
    min-height: 56px;
  }
  .mab-call { background: #fff; color: var(--navy); border-top: 1px solid var(--hairline); }
  .mab-book { background: var(--navy); color: #fff; }
}
