/* Foundation Chiropractic — Upper Cervical Landing Page
   Brand tokens pulled from foundationlutz.com for visual consistency. */

:root {
  --red: #D42020;
  --red-dark: #8E1616;
  --cream: #FFFCF8;
  --cream-alt: #F8EEDF;
  --tan: #E8C999;
  --ink: #111111;
  --black: #000000;
  --white: #FFFFFF;
  --gold: #FBBC04;

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

  --max-width: 1120px;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--black);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 16px; }

section { padding: 64px 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  min-height: 56px;
  max-width: 100%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

@media (max-width: 360px) {
  .btn { padding: 16px 20px; font-size: 0.98rem; }
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(212, 32, 32, 0.35);
}

.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover { background: var(--white); color: var(--red); }

.btn-block { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 32px;
  width: auto;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: var(--red);
  min-height: 44px;
}

.header-phone:hover { background: var(--red-dark); border-color: var(--red-dark); }

.header-phone svg { flex-shrink: 0; }

@media (max-width: 480px) {
  .header-phone span { display: none; }
  .header-phone { padding: 10px 12px; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 40px;
  padding-bottom: 48px;
}

.hero .container {
  max-width: 880px;
  text-align: center;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--red-dark);
  background: var(--tan);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-copy h1 { margin-bottom: 18px; }

.hero-copy .subhead {
  font-size: 1.15rem;
  color: rgba(17, 17, 17, 0.78);
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

.areas-served {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--red-dark);
  margin: 10px 0 0;
}

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px auto 6px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

.trust-line .stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }

.trust-line span.count { text-decoration: underline; text-underline-offset: 3px; }

.offer-box {
  margin: 26px auto 0;
  max-width: 520px;
  background: var(--white);
  border: 2px solid var(--tan);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  text-align: left;
}

.offer-box .offer-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--red-dark);
  margin-bottom: 6px;
}

.offer-box p { margin: 0; color: rgba(17,17,17,0.8); }

/* ---------- Lead form ---------- */

.lead-form-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(212, 32, 32, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(212, 32, 32, 0.12);
  padding: 40px;
}

.lead-form-copy h2 { margin-bottom: 12px; }
.lead-form-copy p { color: rgba(17,17,17,0.75); margin: 0; }

.lead-form-fields {
  display: grid;
  gap: 14px;
}

.lead-form-fields input,
.lead-form-fields textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(17,17,17,0.14);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
}

.lead-form-fields input:focus,
.lead-form-fields textarea:focus {
  outline: none;
  border-color: var(--red);
}

.lead-form-fields textarea { resize: vertical; min-height: 80px; }

.lead-form-note {
  font-size: 0.82rem;
  color: rgba(17,17,17,0.55);
  text-align: center;
  margin: 4px 0 0;
}

.lead-form-success { text-align: center; padding: 20px; }
.lead-form-success h3 { color: var(--red-dark); margin-bottom: 8px; }
.lead-form-success p { margin: 0; }

@media (max-width: 860px) {
  .lead-form-card { grid-template-columns: 1fr; padding: 28px 24px; }
}

/* ---------- Symptom grid ---------- */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head p { color: rgba(17,17,17,0.7); }

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.symptom-card {
  background: var(--white);
  border: 1px solid rgba(212, 32, 32, 0.25);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(212, 32, 32, 0.12);
}

.icon-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-alt);
}

.symptom-card .icon {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.symptom-card h3 { font-size: 1.02rem; margin-bottom: 6px; }

.symptom-card p { font-size: 0.9rem; color: rgba(17,17,17,0.68); margin: 0; }

@media (max-width: 900px) {
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .symptom-grid { grid-template-columns: 1fr; }
}

/* ---------- Why upper cervical ---------- */

.why-section {
  background: var(--cream-alt);
}

.why-section .container { max-width: 820px; }

.why-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 20px;
}

.why-section p.body-text {
  font-size: 1.05rem;
  color: rgba(17,17,17,0.82);
}

.skeptic-line {
  margin-top: 20px;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
}

/* ---------- Credibility ---------- */

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.doc-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  flex-shrink: 0;
}

.doc-card .doc-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.doc-card .badge-link { margin-top: auto; align-self: center; }

.doc-card h3 { margin-bottom: 4px; }

.doc-card .role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 10px;
}

.doc-card .credential {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.doc-card .credential-icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--red-dark);
}

.doc-card .bio {
  font-size: 0.92rem;
  color: rgba(17,17,17,0.75);
  text-align: left;
  margin-bottom: 14px;
}

.doc-card .doc-info > *:last-child { margin-bottom: 0; }

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-dark);
  border: 1px solid var(--red-dark);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
}

@media (max-width: 700px) {
  .doctors-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.testimonials-section { background: var(--cream-alt); }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

.testimonial {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(212, 32, 32, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(212, 32, 32, 0.12);
  padding: 22px;
}

.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; display: block; }

.testimonial blockquote {
  flex: 1;
  margin: 0 0 12px;
  font-size: 1rem;
  color: rgba(17,17,17,0.85);
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial .condition-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-dark);
  background: var(--tan);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- What to expect ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step .step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: rgba(17,17,17,0.7); font-size: 0.95rem; margin: 0; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FAQ ---------- */

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

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.03rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--red-dark);
  font-size: 1.2rem;
  line-height: 28px;
  text-align: center;
  transition: transform 0.2s ease;
}

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

.faq-item p {
  margin: 14px 0 0;
  color: rgba(17,17,17,0.75);
}

/* ---------- Insurance ---------- */

.insurance {
  background: var(--cream-alt);
}

.insurance .container { max-width: 700px; text-align: center; }

.insurance p { color: rgba(17,17,17,0.78); }

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.final-cta h2 { color: var(--white); }

.final-cta p { color: rgba(255,255,255,0.9); max-width: 520px; margin-left: auto; margin-right: auto; }

.final-cta .cta-row { justify-content: center; }

.final-cta .phone-big {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--white);
  text-decoration: none;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 40px 0 100px;
  font-size: 0.9rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .footer-email { display: inline-block; margin-top: 6px; }

.site-footer .hours-list { list-style: none; padding: 0; margin: 0; }
.site-footer .hours-list li { margin-bottom: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Sticky mobile call bar ---------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}

.mobile-cta-bar .btn {
  flex: 1;
  padding: 14px 10px;
  font-size: 0.95rem;
  min-height: 52px;
}

@media (max-width: 760px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 78px; }
}

/* ---------- Utility ---------- */

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
