/* PEAK PERFORMANCE CHIROPRACTIC — SHARED STYLES */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #FAF6F1;
  color: #2A332D;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --forest:     #25423A;
  --forest-dk:  #1A322B;
  --sage:       #8C9B7E;
  --sage-dk:    #5C7060;
  --sage-lt:    #EEF1EA;
  --warm:       #FAF6F1;
  --white:      #FFFFFF;
  --border:     #E1DED4;
  --text:       #2A332D;
  --muted:      #5B6960;
  --dark:       #1E241F;
}

h1, h2, h3, h4 { font-family: 'Libre Caslon Display', Georgia, serif; color: var(--dark); font-weight: 400; line-height: 1.2; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-dk); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--sage); color: #1F2B1B; box-shadow: 0 8px 20px rgba(140,155,126,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(140,155,126,.4); }
.btn-outline { border: 1.5px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { border: 1.5px solid var(--forest); color: var(--forest); }
.btn-outline-dark:hover { background: var(--sage-lt); }

/* TOPBAR */
.topbar {
  background: var(--forest); color: #FFFFFF; font-size: .82rem;
  padding: 9px 0; text-align: center; letter-spacing: .01em;
}
.topbar strong { font-weight: 700; }

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 78px; background: #FFFFFF;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 500;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 42px; height: 42px; background: var(--sage-lt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--forest); flex-shrink: 0;
}
.logo-name { font-family: 'Libre Caslon Display', Georgia, serif; font-size: 1.12rem; color: var(--dark); line-height: 1.15; }
.logo-sub { font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: .92rem; color: var(--text); }
.nav-links a:hover { color: var(--sage-dk); }
.nav-links .dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(30,36,31,.14); padding: 10px; min-width: 240px;
  opacity: 0; visibility: hidden; transition: all .18s ease; z-index: 50;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; font-size: .87rem; }
.dropdown-menu a:hover { background: var(--sage-lt); color: var(--forest); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--forest); font-size: .9rem; display: flex; align-items: center; gap: 6px; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 600;
}
.hamburger span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: all .25s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 0; right: -100%; width: 82%; max-width: 360px; height: 100vh;
  background: #fff; z-index: 550; box-shadow: -10px 0 40px rgba(0,0,0,.15);
  padding: 100px 30px 30px; overflow-y: auto; transition: right .3s ease;
}
.mobile-menu.active { right: 0; }
.mobile-menu a { display: block; padding: 14px 0; font-weight: 600; font-size: 1.03rem; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu .mm-group-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 18px; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(30,36,31,.4); z-index: 540; opacity: 0; transition: opacity .25s ease; }
.overlay.active { display: block; opacity: 1; }

@media (max-width: 960px) {
  .nav-links, .nav-phone { display: none; }
  .hamburger, .mobile-menu, .overlay { display: flex; }
  .mobile-menu { flex-direction: column; }
  .nav-cta .btn { padding: 10px 18px; font-size: .84rem; }
}

/* HERO — full bleed photo + overlay, used on every page */
.hero {
  position: relative; padding: 100px 5% 110px; color: #fff;
  background-image: linear-gradient(135deg, rgba(37,66,58,.86), rgba(37,66,58,.68)), repeating-linear-gradient(135deg, #3a5a4d, #3a5a4d 14px, #33513f 14px, #33513f 28px);
  background-size: cover; background-position: center 30%;
}
.hero .eyebrow { color: #C7D4C4; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 14px 0 18px; max-width: 620px; }
.hero p.lead { font-size: 1.08rem; color: #EDEFE9; margin-bottom: 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { font-size: .85rem; color: #EDEFE9; display: flex; align-items: center; gap: 8px; }

/* interior page hero — same photo, more muted so text pops */
.page-hero {
  background-image: linear-gradient(135deg, rgba(37,66,58,.93), rgba(37,66,58,.87)), repeating-linear-gradient(135deg, #3a5a4d, #3a5a4d 14px, #33513f 14px, #33513f 28px);
  background-size: cover; background-position: center 30%;
  padding: 64px 5% 54px; text-align: center; color: #fff;
}
.page-hero .eyebrow { color: #C7D4C4; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-top: 10px; }
.page-hero p { color: #EDEFE9; max-width: 620px; margin: 14px auto 0; font-size: 1.02rem; }

/* SECTIONS */
section { padding: 80px 5%; }
.section-alt { background: var(--sage-lt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.03rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1180px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 1180px; margin: 0 auto; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(30,36,31,.08); }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; background: var(--sage-lt); color: var(--forest);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .87rem; color: var(--sage-dk); }

.stat-strip { background: var(--forest); color: #fff; padding: 26px 5%; }
.stat-strip .grid-4 { text-align: center; }
.stat-strip .num { font-family: 'Libre Caslon Display', Georgia, serif; font-size: 1.3rem; white-space: nowrap; }
.stat-strip .lbl { font-size: .78rem; opacity: .85; margin-top: 6px; }

.testi { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px; }
.testi .stars { color: var(--sage-dk); margin-bottom: 14px; letter-spacing: 2px; }
.testi p { font-style: italic; color: var(--text); margin-bottom: 16px; }
.testi .who { font-weight: 700; font-size: .9rem; color: var(--dark); }
.testi .who span { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }

.cta-band { background: var(--forest); color: #fff; text-align: center; padding: 68px 5%; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.cta-band p { opacity: .92; margin: 14px 0 28px; font-size: 1.03rem; color: #EDEFE9; }

.acc-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; overflow: hidden; background: #fff; }
.acc-q { padding: 20px 22px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.acc-q .plus { font-size: 1.3rem; color: var(--sage-dk); transition: transform .2s ease; }
.acc-item.open .acc-q .plus { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acc-a p { padding: 0 22px 20px; color: var(--muted); }
.acc-item.open .acc-a { max-height: 400px; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 40px; box-shadow: 0 20px 50px rgba(30,36,31,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.full { grid-template-columns: 1fr; }
label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 7px; color: var(--dark); }
input, select, textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: .95rem; background: var(--warm); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

footer { background: var(--forest-dk); color: #C9D4CB; padding: 68px 5% 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; max-width: 1180px; margin: 0 auto; }
.footer-grid h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-grid a { display: block; color: #A9B8AE; font-size: .89rem; margin-bottom: 11px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-name { color: #fff; }
.footer-bottom { max-width: 1180px; margin: 50px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: #8FA095; }
.footer-demo-note { max-width: 1180px; margin: 16px auto 0; font-size: .76rem; font-style: italic; color: #6F8377; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.mt-lg { margin-top: 60px; }
.text-center { text-align: center; }
.badge-pill { display: inline-block; background: var(--sage-lt); color: var(--forest); font-size: .78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 10px; }

@media (max-width: 960px) {
  .hero { padding: 70px 5% 70px; }
  section { padding: 56px 5%; }
}

/* PHOTO HERO VARIANTS — heavy transparency, photo is background accent only */
.hero-photo-home { background-image: linear-gradient(135deg, rgba(37,66,58,.88), rgba(37,66,58,.82)), url('assets/images/hero-home.jpg'); background-size: cover; background-position: center 30%; }
.hero-photo-about { background-image: linear-gradient(135deg, rgba(37,66,58,.93), rgba(37,66,58,.89)), url('assets/images/spine-model.jpg'); background-size: cover; background-position: center 40%; }
.hero-photo-team { background-image: linear-gradient(135deg, rgba(37,66,58,.93), rgba(37,66,58,.89)), url('assets/images/spine-model.jpg'); background-size: cover; background-position: center 40%; }
.hero-photo-services { background-image: linear-gradient(135deg, rgba(37,66,58,.93), rgba(37,66,58,.89)), url('assets/images/consult-desk.jpg'); background-size: cover; background-position: center 35%; }
.hero-photo-newpatients { background-image: linear-gradient(135deg, rgba(37,66,58,.93), rgba(37,66,58,.89)), url('assets/images/consult-room.jpg'); background-size: cover; background-position: center 35%; }
.hero-photo-general { background-image: linear-gradient(135deg, rgba(37,66,58,.95), rgba(37,66,58,.91)), url('assets/images/consult-room.jpg'); background-size: cover; background-position: center 35%; }

/* light dot pattern for plain text sections */
.pattern-dots {
  background-color: var(--warm);
  background-image: radial-gradient(circle, var(--sage) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  background-position: 0 0;
  position: relative;
  padding: 48px 5% !important;
}
.pattern-dots::before {
  content: ""; position: absolute; inset: 0; background: rgba(250,246,241,.86);
}
.pattern-dots > * { position: relative; z-index: 1; }

/* welcome card light green texture */
.card-tint {
  background-color: var(--sage-lt);
  background-image: radial-gradient(circle, rgba(140,155,126,.25) 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  border: 1px solid var(--border);
}

/* numbered editorial list */
.num-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }
.num-row { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.num-row .num { font-family: 'Libre Caslon Display', Georgia, serif; font-size: 2.1rem; color: var(--sage); width: 56px; flex-shrink: 0; }
.num-row:nth-child(2n) .num { color: var(--forest); }
.num-row:nth-child(3n) .num { color: var(--sage-dk); }
.num-row .num-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.num-row .num-body p { color: var(--muted); font-size: .95rem; }

/* bento grid */
.bento { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 16px; max-width: 1000px; margin: 0 auto; }
.bento-photo {
  grid-row: span 2; border-radius: 16px; padding: 26px; color: #fff; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--forest-dk);
}
.bento-tile { border-radius: 16px; padding: 24px; background: var(--sage-lt); border: 1px solid var(--border); }
.bento-tile.alt { background: #fff; }
@media (max-width: 800px) { .bento { grid-template-columns: 1fr; } .bento-photo { grid-row: auto; } }

/* split bio layout */
.split-bio { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto; }
.split-bio img { border-radius: 18px; width: 100%; object-fit: cover; box-shadow: 0 20px 40px rgba(30,36,31,.12); }
@media (max-width: 800px) { .split-bio { grid-template-columns: 1fr; } }
