/* ============================================================
   Franklin Upper Cervical — style.css
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --navy:   #1a2e4a;
  --gold:   #c8962a;
  --white:  #ffffff;
  --text:   #1f2937;
  --muted:  #4b5563;
  --light:  #f9fafb;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --font-body: 'Inter', sans-serif;
  --font-head: 'Playfair Display', serif;
  --max-w: 1100px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Utility ────────────────────────────────────────────────── */
.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;
}

/* ── Sticky Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: var(--navy);
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-phone {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { opacity: 0.85; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  color: var(--white);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.nav-overlay a:hover { color: var(--gold); }
.nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  padding: 64px 24px;
  min-height: 560px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 48px;
  align-items: start;
}
.hero-left h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.2;
}
.hero-subhead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 16px;
}
.hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  background: #e5e7eb;
  margin-top: 24px;
}
.btn-call {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 24px;
  border-radius: 6px;
  text-align: center;
  margin-top: 24px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-call:hover { opacity: 0.88; }

/* Form card (hero right) */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 80px;
}

/* ── Form Badge ─────────────────────────────────────────────── */
.form-badge {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 20px;
}
.form-badge .arrow { color: var(--gold); }

/* ── Lead Form ──────────────────────────────────────────────── */
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.lead-form textarea { resize: vertical; min-height: 90px; }
.lead-form .btn-submit {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 20px;
  border-radius: 6px;
  text-align: center;
  transition: opacity 0.15s;
}
.lead-form .btn-submit:hover { opacity: 0.88; }
.form-thankyou {
  display: none;
  text-align: center;
  padding: 24px 0;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
}

/* ── Section Base ───────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}

/* ── Intro Section ──────────────────────────────────────────── */
.intro-section { background: var(--white); }
.intro-section p { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.intro-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; }
.intro-links a { color: var(--gold); font-weight: 600; }
.intro-links a:hover { text-decoration: underline; }

/* ── Service Blocks ─────────────────────────────────────────── */
.service-blocks { padding: 0 0 64px; }
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}
.service-block:last-child { border-bottom: none; }
/* Even blocks: text left, image right */
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  background: #e5e7eb;
}
.service-text h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.service-text a.learn-more {
  color: var(--gold);
  font-weight: 600;
  transition: text-decoration 0.1s;
}
.service-text a.learn-more:hover { text-decoration: underline; }

/* ── FAQ Teaser ─────────────────────────────────────────────── */
.faq-teaser { background: var(--light); }
.faq-teaser-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.faq-teaser-list a {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
}
.faq-teaser-list a:hover { text-decoration: underline; }

/* ── City Grid ──────────────────────────────────────────────── */
.city-section { background: var(--white); }
.city-section p { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.city-grid a {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--navy);
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.city-grid a:hover { background: #f0f4fa; border-color: var(--navy); }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials { background: var(--light); padding: 64px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card blockquote {
  font-size: 1rem;
  color: #374151;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-card cite {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 16px;
  font-style: normal;
}
.testimonial-disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

/* ── Final CTA Band ─────────────────────────────────────────── */
.cta-band {
  background: var(--navy);
  padding: 64px 24px;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 2rem;
}
.cta-band .btn-call {
  display: inline-block;
  width: auto;
  min-width: 240px;
  margin-top: 24px;
}
.cta-band p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: var(--light);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.7;
}
.page-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  background: #e5e7eb;
  margin-top: 32px;
}

/* ── Content Section (inner pages) ──────────────────────────── */
.content-section {
  padding: 56px 0;
}
.content-section h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 32px 0 12px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.content-section ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.9;
}
.content-section ul li { margin-bottom: 4px; }

/* Services list page */
.services-list { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.services-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s;
}
.services-list a::after { content: '→'; margin-left: auto; color: var(--gold); }
.services-list a:hover { background: #f0f4fa; border-color: var(--navy); }

/* Locations */
.location-section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.location-section:last-of-type { border-bottom: none; }
.location-section h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.location-section p { color: var(--muted); line-height: 1.7; margin-bottom: 10px; }

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-list { margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  padding: 18px 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.faq-chevron {
  color: var(--gold);
  font-size: 0.9rem;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: 16px;
}

/* ── Contact Page ───────────────────────────────────────────── */
.contact-phone-cta {
  text-align: center;
  padding: 40px 0 32px;
}
.contact-phone-cta p { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.phone-display {
  display: inline-block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}
.phone-display:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col h3 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-col p { font-size: 0.88rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 16px;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.6;
}
.footer-bottom a { color: #9ca3af; transition: color 0.15s; }
.footer-bottom a:hover { color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Header */
  .site-nav { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Service blocks */
  .service-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  .service-block.reverse { direction: ltr; }
  .service-img { order: -1; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* CTA band */
  .cta-band .btn-call { width: 100%; min-width: unset; }
}
