/* ==========================================================================
   Back & Neck Pain Center — Vidalia & Baxley, GA
   Modern shared stylesheet
   ========================================================================== */

:root {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --accent: #d97706;
  --accent-dark: #b45309;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.brand-name { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.2; color: var(--text); }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.5px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.main-nav a.active { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  font-size: 1.4rem; line-height: 1; padding: 6px 10px; cursor: pointer; color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--font-head); font-size: 2.6rem; line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; opacity: 0.95; margin: 0 0 24px; }
.hero .lead { font-size: 1.05rem; opacity: 0.9; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { font-family: var(--font-head); font-size: 2rem; margin: 0 0 10px; color: var(--text); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-family: var(--font-head); font-size: 1.25rem; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 12px; font-size: 0.98rem; }
.card a.more { font-weight: 700; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--primary); font-weight: 800;
}

/* ---------- Info / Contact ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-box h3 { font-family: var(--font-head); margin: 0 0 12px; }
.info-box p { margin: 6px 0; color: var(--text); }
.info-box .muted { color: var(--muted); }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td, .hours-table th { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.hours-table th { color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; font-size: 1.4rem; color: var(--primary); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.checkbox-row label { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; margin: 0; }

/* ---------- Callout ---------- */
.callout {
  background: var(--primary-light);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p { margin: 0; }

/* ---------- Front-desk note (home) ---------- */
.frontdesk-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 860px;
  margin: 32px auto 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.frontdesk-note .fd-icon { font-size: 1.8rem; line-height: 1.2; }
.frontdesk-note h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 6px; }
.frontdesk-note p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.frontdesk-note a { font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin: 0 0 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 44px 0;
}
.page-hero h1 { font-family: var(--font-head); font-size: 2.2rem; margin: 0 0 8px; }
.page-hero p { margin: 0; opacity: 0.92; max-width: 720px; }

/* ---------- Article / prose ---------- */
.prose h2 { font-family: var(--font-head); font-size: 1.6rem; margin: 36px 0 12px; }
.prose h3 { font-family: var(--font-head); font-size: 1.25rem; margin: 28px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); margin: 0 0 14px; font-size: 1.05rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 20px; text-align: center; font-size: 0.85rem; color: #94a3b8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 44px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .frontdesk-note { flex-direction: column; gap: 8px; padding: 20px; }
  .frontdesk-note .fd-icon { font-size: 1.5rem; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 10px 20px 16px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
}
