/* Southern Pain Specialists — static site
   Brand teal sampled from the clinic logo: #245454
*/
:root {
  --teal: #245454;
  --teal-dark: #163838;
  --teal-deep: #102c2c;
  --teal-mid: #2d6a6a;
  --teal-soft: #dce8e8;
  --cream: #f5f1ea;
  --cream-2: #ebe4d8;
  --sand: #d5c7ae;
  --gold: #b08d57;
  --ink: #1a2424;
  --muted: #4a5858;
  --line: #ddd6ca;
  --white: #ffffff;
  --error: #8b1e1e;
  --ok: #1c5c3a;
  --ok-bg: #e7f4ec;
  --error-bg: #f8ecec;
  --shadow: 0 10px 30px rgba(16, 44, 44, 0.08);
  --radius: 16px;
  --header-h: 4.5rem;
  --max: 70rem;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--teal-dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0 0 0.35rem; }
.skip-link {
  position: absolute; left: 0.75rem; top: -3rem; background: var(--teal); color: #fff;
  padding: 0.5rem 0.8rem; z-index: 100; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(calc(100% - 2rem), 48rem); margin-inline: auto; }

/* Top bar */
.topbar {
  background: var(--teal-deep);
  color: #e8eeee;
  font-size: 0.9rem;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between; align-items: center; padding: 0.4rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; align-items: center; }
.social { display: flex; gap: 0.55rem; align-items: center; }
.social a { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); align-items: center; justify-content: center; }
.social svg { width: 0.85rem; height: 0.85rem; fill: currentColor; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.logo img { height: 48px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.4rem 0.55rem; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 1.25rem; height: 2px; background: var(--teal-dark); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-nav { display: flex; align-items: center; gap: 0.15rem 1.1rem; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--teal); color: #fff !important; text-decoration: none !important;
  border: 0; border-radius: 999px; padding: 0.7rem 1.2rem; font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: 0.98rem; line-height: 1.2;
}
.btn:hover { background: var(--teal-dark); color: #fff !important; }
.btn-gold { background: var(--gold); color: #1a2424 !important; }
.btn-gold:hover { background: #9a7544; color: #fff !important; }
.btn-outline { background: transparent; color: var(--teal) !important; border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff !important; }
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1.05rem; }
.header-cta { margin-left: 0.5rem; white-space: nowrap; }

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(16,44,44,0.88) 0%, rgba(36,84,84,0.72) 55%, rgba(36,84,84,0.45) 100%),
    var(--teal-dark);
  color: #fff;
  padding: 3.5rem 0 3.75rem;
}
.hero h1, .hero h2 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.hero-kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--sand); margin-bottom: 0.6rem; }
.hero p { font-size: 1.15rem; color: #e8eeee; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; max-width: 26rem; margin-left: auto; border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28); object-fit: cover; aspect-ratio: 4/5;
}
.hero-caption {
  position: absolute; left: 1rem; bottom: 1rem; background: rgba(16,44,44,0.9);
  color: #fff; padding: 0.65rem 0.9rem; border-radius: 12px; font-size: 0.92rem;
}
.hero-caption strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; }

/* Sections */
section { padding: 3.25rem 0; }
.section-cream { background: var(--cream); }
.section-teal { background: var(--teal-dark); color: #f3f6f6; }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.4rem; }
.lede { font-size: 1.12rem; color: var(--muted); }

/* Cards / grids */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
}
a.card:hover { border-color: var(--teal); transform: translateY(-2px); transition: 0.15s ease; }
.card img { width: 100%; height: 10.5rem; object-fit: cover; background: var(--cream-2); }
.card-body { padding: 1.1rem 1.15rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: var(--teal-dark); }
.card-body p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card-link { font-weight: 700; color: var(--teal); margin-top: 0.5rem; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.split-photo img { border-radius: var(--radius); width: 100%; object-fit: cover; max-height: 32rem; }
.qual-list { list-style: none; padding: 0; }
.qual-list li { padding-left: 1.3rem; position: relative; }
.qual-list li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.quote {
  background: var(--white); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.2rem; box-shadow: var(--shadow);
}
.quote p { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; }
.quote cite { font-style: normal; font-weight: 700; color: var(--teal); font-size: 0.95rem; }

/* Affiliations */
.affiliations { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; }
.affiliations img { height: 64px; width: auto; object-fit: contain; filter: grayscale(0.2); }
.affiliations a { text-decoration: none; }

/* CTA band */
.cta-band { text-align: center; padding: 3.5rem 0; }
.cta-band p { max-width: 36rem; margin: 0 auto 1.25rem; }

/* Page hero (interior) */
.page-hero { background: var(--cream); padding: 2.4rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 42rem; color: var(--muted); margin: 0; }
.breadcrumb { font-size: 0.88rem; margin-bottom: 0.6rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }

.prose { padding: 2.5rem 0 3.5rem; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3, .prose h4, .prose h5 { margin-top: 1.35rem; color: var(--teal); }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.7fr); gap: 2rem; align-items: start; }
.form-layout > * { min-width: 0; }
.form-card, .aside-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.7rem; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form-row label, .form-legend {
  display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; color: var(--teal-dark);
}
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.86rem; margin-top: 0.25rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.field-error { color: var(--error); font-size: 0.86rem; margin-top: 0.25rem; display: none; }
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea { border-color: var(--error); }
.form-row.has-error .field-error { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.choices label { font-weight: 500; display: flex; gap: 0.4rem; align-items: center; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.consent input { margin-top: 0.3rem; }
.form-alert {
  display: none; padding: 0.75rem 0.9rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600;
}
.form-alert.error { display: block; background: var(--error-bg); color: var(--error); }
.form-status { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.thank-you {
  display: none; background: var(--ok-bg); border: 1px solid #b7d8c4; border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.thank-you h2 { color: var(--ok); }
.placeholder-form {
  border: 2px dashed var(--sand); background: var(--cream); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; margin: 1.2rem 0;
}
.placeholder-form strong { color: var(--teal-dark); }
.callout { background: var(--teal-soft); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1rem 0; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 0 0 0.65rem; }
.contact-list a { font-weight: 700; text-decoration: none; }

/* Blog */
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
article.article img.featured { border-radius: var(--radius); margin: 0 0 1.5rem; max-height: 24rem; object-fit: cover; width: 100%; }

/* Footer */
.site-footer { background: var(--teal-deep); color: #d9e3e3; padding: 2.75rem 0 1.25rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.7rem; }
.site-footer .logo img { height: 44px; margin-bottom: 0.8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; font-size: 0.86rem; color: #b7c6c6; }
.footer-bottom a { color: #d9e3e3; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 0.5rem 1rem 1rem; gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .header-cta { margin: 0.6rem 0 0; text-align: center; }
  .hero-grid, .split, .form-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.2rem 0 2.4rem; }
  .hero-photo img { max-width: 22rem; margin: 0 auto; aspect-ratio: 4/5; }
  .logo img { height: 40px; }
}
@media (max-width: 520px) {
  .topbar-links span.hide-sm { display: none; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; }
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-row fieldset { margin: 0; }
.hero .btn-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,0.85);
  background: transparent;
}
.hero .btn-outline:hover {
  background: #fff;
  color: var(--teal-dark) !important;
}
.hero-photo img { object-position: 50% 12%; }
.site-nav { flex-wrap: wrap; justify-content: flex-end; }

.jotform-embed {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: auto;
  width: 100%;
}
.jotform-embed iframe { display: block; width: 100%; min-width: 100%; background: #fff; }

/* Google reviews carousel */
.reviews-section { padding: 3.25rem 0 3.5rem; }
.reviews-score {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--teal-dark);
  font-weight: 600;
  margin: 0 0 1.4rem;
}
.reviews-score .review-stars { display: inline-flex; vertical-align: -0.15em; margin-right: 0.4rem; }
.review-carousel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.35rem;
  max-width: 46rem;
}
.review-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.review-stars { display: inline-flex; gap: 0.12rem; }
.review-stars svg { width: 1.1rem; height: 1.1rem; fill: #d4a017; }
.review-slide { display: none; }
.review-slide.is-active { display: block; }
.review-slide blockquote { margin: 0.7rem 0 0.85rem; }
.review-slide blockquote p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.review-slide cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--teal);
  font-size: 1rem;
}
.review-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.review-nav {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: #fff;
  color: var(--teal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}
.review-nav:hover, .review-nav:focus-visible {
  background: var(--teal);
  color: #fff;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.review-dots { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-left: 0.25rem; }
.review-dot {
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
}
.review-dot[aria-current="true"] { background: var(--teal); transform: scale(1.15); }
.review-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
@media (prefers-reduced-motion: reduce) {
  .review-slide, .review-dot, .review-nav { transition: none; }
}
@media (max-width: 520px) {
  .review-carousel { padding: 1.3rem 1.1rem 1.1rem; }
  .review-slide blockquote p { font-size: 1.08rem; }
}


/* FAQ, travel, and educational guide sections */
.faq-section { background: var(--cream); padding: 2.75rem 0 3.25rem; }
.faq-section .faq-item + .faq-item { margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid rgba(36,84,84,0.12); }
.faq-section h3, .prose .faq-item h3 { margin: 0 0 0.35rem; font-size: 1.12rem; color: var(--teal-dark); }
.prose .faq-item { margin: 1.25rem 0; }
.edu-note { font-size: 0.95rem; color: var(--muted); border-left: 3px solid var(--gold); padding: 0.65rem 0 0.65rem 0.9rem; margin-top: 1.75rem; }
.travel-section { background: var(--teal-dark); color: #f3f6f6; padding: 2.75rem 0; }
.travel-section h2 { color: #fff; }
.travel-section p { max-width: 48rem; }
.travel-section a { color: #f3e2c2; }
.travel-section a:hover { color: #fff; }
.related-care { margin-top: 2.25rem; padding: 1.25rem 1.3rem; background: var(--cream); border-radius: var(--radius); }
.related-care h2 { margin-top: 0; font-size: 1.2rem; }
.related-care ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.related-care li { margin: 0.25rem 0; }
.practice-details { margin-top: 2rem; padding: 1.25rem 1.3rem; background: var(--cream); border-radius: var(--radius); }
.practice-details h2 { margin-top: 0; font-size: 1.2rem; }
.page-hero .lede { font-size: 1.12rem; max-width: 46rem; }
nav.breadcrumb { font-size: 0.88rem; margin-bottom: 0.6rem; color: var(--muted); }
nav.breadcrumb a { color: var(--muted); text-decoration: none; }
nav.breadcrumb a:hover { color: var(--teal); }
