/* ============================================================
   CENTREPOINT CHIROPRACTIC CLINIC — MAIN STYLESHEET
   Version 1.3 | April 2026
   Mobile-first design
   ============================================================ */

/* ============================================================
   GLOBAL SPACING CORRECTIONS — April 2026
   Applied globally so every page benefits automatically.
   These rules are placed first so they establish the baseline
   before any component-level rules below.
   ============================================================ */

/* --- HERO TEXT READABILITY --- */
.hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%) !important;
}
.hero-content h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9) !important;
}
.hero-content p {
  color: #f0f0f0 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
}

/* --- CORRECTION 1: HERO TO FIRST CONTENT SPACING ---
   Every hero type gets a clear gap before the first content.
   Uses !important to win over any section-level padding.      */
.hero,
.page-hero,
.page-hero-img {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* All section/content types directly after any hero variant
   RULE: sections directly after hero get 4rem top padding.
   main elements get ZERO padding — the first content-section inside provides the gap.
   div.breadcrumb gets compact padding — it's just a thin bar, not a content gap.        */

/* Hero → section (index.html pattern) */
.hero + section,
.hero + .section-white,
.hero + .section-alt,
.hero + .section-dark {
  padding-top: 4rem !important;
  margin-top:  0 !important;
}

/* page-hero → section (about.html pattern: direct sibling sections) */
.page-hero + section,
.page-hero + .section-white,
.page-hero + .section-alt,
.page-hero + .content-section {
  padding-top: 4rem !important;
  margin-top:  0 !important;
}

/* page-hero-img section → main wrapper (dva, contact, techniques, new-patients, gpccmp pattern)
   main itself has NO padding — the first content-section inside provides the 4rem gap      */
section.page-hero-img + main {
  padding-top: 0 !important;
  margin-top:  0 !important;
}

/* div.page-hero-img → div.breadcrumb (condition pages: breadcrumb bar, compact padding)  */
div.page-hero-img + div.breadcrumb {
  padding-top:    0.6rem !important;
  padding-bottom: 0.6rem !important;
  margin-top:     0 !important;
}

/* div.breadcrumb → first content section (condition pages: 4rem gap after breadcrumb)
   .content-section already has padding: 4rem 0 so this is just reinforcement            */
div.breadcrumb + section,
div.breadcrumb + .content-section {
  padding-top: 4rem !important;
}

/* --- CORRECTION 2: IMAGE SPACING ---
   Every image gets breathing space below it.
   Exemptions prevent double-spacing in specific contexts.     */
img {
  display: block;
  margin-bottom: 2rem;
}

/* Image-text layout block */
.img-text-block {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.img-side {
  flex: 0 0 45%;
}
.img-side img {
  margin-bottom: 0;   /* gap handled by flex gap */
  width: 100%;
  border-radius: 6px;
}
.text-side {
  flex: 1;
  padding-top: 0;
}
/* Keep text top-aligned with its image */
.img-text-block .text-side,
.img-text-block .img-side {
  align-self: flex-start;
}

/* Mobile: stack image above text */
@media (max-width: 768px) {
  .img-text-block {
    flex-direction: column;
    gap: 1.5rem;
  }
  .img-side {
    flex: none;
    width: 100%;
  }
  .img-side img {
    margin-bottom: 1.5rem;
  }
}

/* Images that must NOT have bottom margin */
.hero-img,
.hero img,
.card img,
.site-header img,
.site-footer img,
.mobile-phone-bar img,
.top-bar img {
  margin-bottom: 0;
}

/* --- CORRECTION 3: SECTION & TYPOGRAPHY SPACING ---
   Consistent vertical rhythm across every page.
   NOTE: .container gets NO vertical padding — sections handle that.  */
section {
  padding-top:    3rem;
  padding-bottom: 3rem;
}

h2 {
  margin-top:    0;
  margin-bottom: 1.5rem;
}

h3 {
  margin-top:    0;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  line-height:   1.8;
}

ul li,
ol li {
  margin-bottom: 0.6rem;
}

.card {
  margin-bottom: 2rem;
}

.card-body {
  padding: 2rem;
}

/* --- NEW PATIENTS PAGE — SPECIFIC OVERRIDES ---
   Extra space for checklist items and payment section.       */
.check-list li {
  margin-bottom: 0.8rem;
  padding-bottom: 0.2rem;
}

hr,
.section-divider {
  margin-top:    2.5rem;
  margin-bottom: 2.5rem;
}

/* --- CONDITION PAGES — CTA BUTTON SPACING ---              */
.cta-section .btn,
.condition-cta .btn {
  margin-top:    2rem;
  margin-bottom: 2rem;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:       #1A4E6E;   /* deep warm navy-teal */
  --primary-dark:  #12374E;   /* darker shade */
  --primary-light: #2A6E96;   /* lighter shade */
  --accent:        #C8902A;   /* warm gold */
  --accent-light:  #E8B04A;   /* lighter gold */
  --bg:            #F7F5F1;   /* warm cream */
  --bg-white:      #FFFFFF;
  --bg-alt:        #EEF4F8;   /* soft teal-tinted panel */
  --text:          #1C2B36;   /* dark blue-charcoal */
  --text-mid:      #4A5E6A;   /* mid grey-teal */
  --text-light:    #7A8E98;
  --border:        #D8E4EA;
  --success:       #2E7D52;
  --shadow:        0 2px 16px rgba(26,78,110,0.10);
  --shadow-lg:     0 6px 32px rgba(26,78,110,0.14);
  --radius:        8px;
  --radius-lg:     14px;
  --max-w:         1160px;
  --transition:    0.22s ease;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--accent);
}

ul, ol {
  padding-left: 1.4rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--primary-dark);
  line-height: 1.28;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-top: 0; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-top: 0; margin-bottom: 1rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1.2rem; line-height: 1.8; }
p:last-child { margin-bottom: 0; }

strong { color: var(--primary-dark); }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.1rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  padding: 4rem 0;
}

.section-white {
  background: var(--bg-white);
  padding: 4rem 0;
}

.section-dark {
  background: var(--primary-dark);
  color: #fff;
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

/* --- TOP BAR --- */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  display: none;
}

@media (min-width: 640px) {
  .top-bar { display: block; }
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.top-bar a {
  color: #fff;
  opacity: 0.9;
}

.top-bar a:hover { opacity: 1; color: var(--accent-light); }

/* --- HEADER / NAV --- */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(26,78,110,0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo .logo-name {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.site-logo .logo-sub {
  font-size: 0.75rem;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}

.header-phone {
  display: none;
}

@media (min-width: 640px) {
  .header-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .header-phone a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
  }
  .header-phone small {
    font-size: 0.72rem;
    color: var(--text-mid);
  }
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta { display: inline-flex; }
}

/* --- MOBILE PHONE BAR (always visible on mobile) --- */
.mobile-phone-bar {
  background: var(--primary);
  padding: 0.55rem 1.1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .mobile-phone-bar { display: none; }
}

.mobile-phone-bar a {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- NAVIGATION --- */
.main-nav {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.1rem 1.5rem;
}

.main-nav.open {
  display: block;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex !important;
    align-items: center;
    border-top: none;
    padding: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
  }
  .main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    padding: 0 1.1rem;
  }
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > button {
  display: block;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

@media (min-width: 900px) {
  .nav-list > li > a,
  .nav-list > li > button {
    border-radius: 0;
    padding: 0.85rem 0.85rem;
    border-bottom: 3px solid transparent;
  }
}

.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li > a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

@media (min-width: 900px) {
  .nav-list > li > a:hover,
  .nav-list > li > button:hover,
  .nav-list > li > a.active {
    background: none;
    border-bottom-color: var(--accent);
  }
}

/* Dropdown */
.has-dropdown > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.has-dropdown > button::after {
  content: '▾';
  font-size: 0.75rem;
  margin-left: 0.3rem;
  transition: transform var(--transition);
}

.has-dropdown.open > button::after {
  transform: rotate(180deg);
}

.dropdown {
  display: none;
  list-style: none;
  padding: 0.3rem 0 0.3rem 1rem;
  margin: 0;
}

@media (min-width: 900px) {
  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 230px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0.5rem 0;
    border-top: 3px solid var(--accent);
  }
}

.has-dropdown.open .dropdown,
.has-dropdown:hover .dropdown {
  display: block;
}

@media (max-width: 899px) {
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open:hover .dropdown { display: block; }
}

.dropdown li a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.dropdown li a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.menu-toggle span {
  display: block;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.25s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #a87220;
  border-color: #a87220;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,144,42,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-call {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-call:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* --- HERO / BANNER --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(18,55,78,0.82) 0%, rgba(18,55,78,0.5) 60%, rgba(18,55,78,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 3rem 1.1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 0.8rem;
  max-width: 640px;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.93;
  max-width: 520px;
  margin-bottom: 1.4rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Page hero (non-home) */
.page-hero {
  background: var(--primary-dark);
  color: #fff;
  padding: 2.5rem 0;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 0;
}

.page-hero-img {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.page-hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-img .hero-overlay {
  background: linear-gradient(to right, rgba(18,55,78,0.85) 0%, rgba(18,55,78,0.55) 70%, rgba(18,55,78,0.2) 100%);
}

.page-hero-img .hero-content {
  padding: 2.5rem 1.1rem;
}

/* --- CARDS --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

@media (min-width: 540px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.4rem;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

/* --- INFO PANEL --- */
.info-panel {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0;
}

.info-panel h3, .info-panel h4 {
  margin-bottom: 0.5rem;
}

/* --- TWO-COLUMN LAYOUT --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col-wide { grid-template-columns: 1.6fr 1fr; }
  .two-col-wide-r { grid-template-columns: 1fr 1.6fr; }
}

/* --- STEPS --- */
.steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.steps li::before {
  content: counter(steps);
  min-width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* --- CHECK LIST --- */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 0.35rem 0 0.35rem 1.8rem;
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* --- TECHNIQUE CARD --- */
.technique-block {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.technique-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.technique-number {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.technique-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.25rem;
}

.technique-body {
  padding: 1.5rem;
}

/* --- CONDITION PAGE HERO --- */
.condition-intro {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary);
}

/* --- CTA SECTION --- */
.cta-section {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 3rem 1.1rem;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.cta-section p {
  opacity: 0.88;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section a:not(.btn) {
  color: #fff;
  text-decoration: underline;
  opacity: 1;
}

.cta-section a:not(.btn):hover {
  color: var(--accent);
  opacity: 1;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

/* --- CONTACT FORM --- */
.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* --- MAP --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  display: block;
  height: 380px;
  border: 0;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer-col p,
.footer-col li,
.footer-col a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.9;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-logo-name {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.footer-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.85);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0 0 1.2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover { color: var(--accent-light); }

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 0.6rem 0;
  font-size: 0.82rem;
  color: var(--text-mid);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.breadcrumb li::after {
  content: ' ›';
  margin-left: 0.3rem;
  color: var(--text-light);
}

.breadcrumb li:last-child::after { display: none; }

.breadcrumb a { color: var(--text-mid); }
.breadcrumb a:hover { color: var(--primary); }

/* --- PAYMENT ICONS ROW --- */
.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.payment-badge {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

/* --- CONDITIONS GRID (home page) --- */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

@media (min-width: 600px) {
  .conditions-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .conditions-grid { grid-template-columns: repeat(4, 1fr); }
}

.condition-link {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}

.condition-link:hover {
  background: var(--bg-alt);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.condition-link .icon {
  font-size: 1.3rem;
}

/* --- IMAGE + TEXT SPLIT --- */
.img-text-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .img-text-block { grid-template-columns: 1fr 1fr; }
  .img-text-block.reverse .img-side { order: 2; }
  .img-text-block.reverse .text-side { order: 1; }
}

.img-side img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- NOTICE BOXES --- */
.notice {
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.notice-info {
  background: #E8F4FD;
  border: 1px solid #B3D7F0;
}

.notice-gold {
  background: #FEF9EE;
  border: 1px solid #E8C96A;
}

.notice-success {
  background: #EBF8F2;
  border: 1px solid #7DCCA4;
}

.notice .notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --- DVA PAGE SPECIFIC --- */
.dva-card-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .dva-card-group { grid-template-columns: 1fr 1fr; }
}

.dva-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid transparent;
}

.dva-card-gold {
  background: #FEF9EE;
  border-color: #C8A030;
}

.dva-card-white {
  background: #F4F8FB;
  border-color: #6A9EBB;
}

.dva-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

/* --- BLOG PAGE --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-placeholder {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-placeholder-img {
  width: 100%;
  height: 180px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.88rem;
}

.blog-placeholder-body {
  padding: 1.2rem;
}

/* --- MEDIA: LARGE SCREENS --- */
@media (min-width: 900px) {
  .section, .section-alt, .section-white, .section-dark {
    padding: 5rem 0;
  }
  .hero { min-height: 560px; }
  .page-hero-img { min-height: 360px; }
}

/* --- UTILITY --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.color-accent { color: var(--accent); }
.color-primary { color: var(--primary); }
.text-sm { font-size: 0.88rem; }
.text-lg { font-size: 1.1rem; }
.bold { font-weight: 700; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.w-full { width: 100%; }

/* ============================================================
   AGENT-BUILT PAGE CLASSES — April 2026 Spacing Corrections
   These rules cover all condition pages + new-patients.html
   which were built with different class naming conventions.
   ============================================================ */

/* --- CONTENT SECTION (replaces .section on agent pages) --- */
.content-section {
  padding: 4rem 0;
}
.content-section .container {
  padding-top:    0;
  padding-bottom: 0;
}
.content-section.bg-light,
.content-section + .content-section.bg-light {
  background: var(--bg-alt);
}

/* --- BACKGROUND VARIANTS --- */
.bg-light  { background: var(--bg-alt); }
.bg-white  { background: var(--bg-white); }

/* --- MAIN CONTENT WRAPPER (new-patients.html) --- */
main.main-content {
  display: block;
}
/* First content-section inside main gets top breathing room */
main.main-content > .content-section:first-child {
  padding-top: 4rem;
}

/* --- PAGE HERO OVERLAY (condition pages) ---
   Dark gradient overlay inside .page-hero-img divs.           */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 60%,
    rgba(0,0,0,0.55) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}
.page-hero-overlay h1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9);
  margin-bottom: 0.75rem;
}
.page-hero-overlay .subtitle,
.page-hero-overlay p {
  color: #f0f0f0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  margin-bottom: 0;
}

/* Ensure the hero div is positioned so the overlay can fill it */
div.page-hero-img {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- BREADCRUMB BAR (condition pages) ---
   Sits directly after the hero div.                           */
div.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.88rem;
  color: var(--text-mid);
}
div.breadcrumb a {
  color: var(--primary);
}
div.breadcrumb a:hover {
  color: var(--accent);
}
/* Space from breadcrumb to first content section */
div.breadcrumb + .content-section,
div.breadcrumb + section {
  padding-top: 4rem;
}

/* --- OPENING SECTION modifier --- */
.content-section.opening-section {
  padding-top: 4rem;
}

/* --- TWO-COL CONTENT LAYOUT (condition pages) --- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.content-main {
  min-width: 0;
}
.content-sidebar {
  min-width: 0;
}
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- INFO BOX (sidebar panels on condition pages) --- */
.info-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  margin-bottom: 1.5rem;
}
.info-box h3,
.info-box h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.info-box ul {
  margin-bottom: 0;
}

/* --- CTA BOX (call-to-action panels on condition pages) --- */
.cta-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  text-align: center;
}
.cta-box h3,
.cta-box h4 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}
.cta-box .btn {
  margin-top: 0.5rem;
}

.cta-box a:not(.btn) {
  color: #fff;
  text-decoration: underline;
}

.cta-box a:not(.btn):hover {
  color: var(--accent);
}

/* --- CHECK ITEMS (new-patients.html checklist) --- */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.1rem;
}
.check-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* --- PAYMENT GRID (new-patients.html) --- */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.payment-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1.5px solid var(--border);
  text-align: center;
}
.payment-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.payment-item p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* --- TWO-COL CONTACT LAYOUT (contact.html) --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.col-contact,
.col-map {
  min-width: 0;
}
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- CONTACT FORM --- */
.contact-form .form-group {
  margin-bottom: 1.2rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-white);
  color: var(--text);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea {
  resize: vertical;
}

/* --- MAP CONTAINER --- */
.map-container {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* --- INFO PANEL (contact info block) --- */
.info-panel {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}
.info-panel h3 {
  margin-top: 0;
  color: var(--primary);
}

/* --- CLINIC PHOTOS (contact.html) --- */
.clinic-photos-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.clinic-photo img {
  border-radius: var(--radius);
  margin-bottom: 0;
  width: 100%;
}
.clinic-photo-full {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.clinic-photo-full img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.clinic-photo-full p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .clinic-photos-row {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ ACCORDION (details/summary pattern) --- */
.faq-section details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg-white);
}
.faq-section details[open] {
  border-color: var(--primary);
}
.faq-section summary {
  padding: 1rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-section summary::-webkit-details-marker {
  display: none;
}
.faq-section summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-section details[open] summary::after {
  content: '−';
}
.faq-section details > *:not(summary) {
  padding: 0 1.2rem 1rem;
  color: var(--text);
  line-height: 1.8;
}

/* --- LARGE SCREEN OVERRIDES for agent-built classes --- */
@media (min-width: 900px) {
  .content-section {
    padding: 5rem 0;
  }
  div.page-hero-img {
    min-height: 400px;
  }
}

/* ============================================================
   FINAL SPACING OVERRIDES — April 2026
   These rules are placed LAST so they definitively win the
   CSS cascade. They enforce all spacing requirements from the
   user's spacing correction instructions.
   ============================================================ */

/* --- HEROES: zero bottom spacing so the gap is controlled
       entirely by the first content element below them          --- */
.hero,
.page-hero,
section.page-hero-img,
div.page-hero-img {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* --- ALL CONTENT SECTIONS: consistent 4rem vertical padding   --- */
.section,
.section-white,
.section-alt,
.section-dark {
  padding-top:    4rem !important;
  padding-bottom: 4rem !important;
}

.content-section {
  padding-top:    4rem !important;
  padding-bottom: 4rem !important;
}

/* --- HERO TO FIRST CONTENT: definitive gap rules             --- */

/* index.html: section.hero → section.section-white */
.hero + .section-white,
.hero + .section-alt,
.hero + .section-dark,
.hero + section {
  padding-top: 4rem !important;
}

/* about.html: section.page-hero → section.content-section */
.page-hero + section,
.page-hero + .content-section,
.page-hero + .section-white,
.page-hero + .section-alt {
  padding-top: 4rem !important;
}

/* dva/contact/techniques/new-patients/gpccmp: section.page-hero-img → main → content-section
   The main wrapper gets NO padding — the content-section provides the gap              */
section.page-hero-img + main {
  padding-top:    0 !important;
  padding-bottom: 0 !important;
  margin:         0 !important;
}

/* First content-section inside main gets the full 4rem top gap */
main > section:first-child,
main > .content-section:first-child,
main.main-content > section:first-child,
main.main-content > .content-section:first-child {
  padding-top: 4rem !important;
}

/* Condition pages: div.page-hero-img → div.breadcrumb → section.content-section */
div.page-hero-img + div.breadcrumb {
  padding-top:    0.6rem !important;
  padding-bottom: 0.6rem !important;
  margin-top:     0 !important;
  margin-bottom:  0 !important;
}

div.breadcrumb + section,
div.breadcrumb + .content-section {
  padding-top: 4rem !important;
}

/* --- .page-hero itself has no extra padding so the text inside
       sits centred in its min-height, not pushed down by 3rem   --- */
.page-hero {
  padding-top:    0 !important;
  padding-bottom: 0 !important;
}

/* --- CONTAINER: horizontal padding only, never vertical        --- */
.container {
  padding-top:    0 !important;
  padding-bottom: 0 !important;
  padding-left:   1.1rem;
  padding-right:  1.1rem;
}

/* --- IMAGES: clear breathing space after every image          --- */
img {
  display:       block;
  margin-bottom: 2rem;
}

/* Exceptions: images that must NOT have bottom margin          */
.hero img,
.hero-img,
.site-header img,
.site-footer img,
.top-bar img,
.mobile-phone-bar img,
nav img,
.page-hero-overlay img {
  margin-bottom: 0 !important;
}

/* Card images: no bottom margin inside cards */
.card img,
.payment-item img {
  margin-bottom: 0 !important;
}

/* --- IMAGE + TEXT BLOCKS: flex layout with gap                --- */
.img-text-block {
  display:   flex;
  gap:       3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.img-side {
  flex: 0 0 45%;
}
.img-side img {
  margin-bottom: 0 !important;
  width:         100%;
  border-radius: 6px;
}
.text-side {
  flex:       1;
  padding-top: 0;
}
/* Two-column layout with image (new-patients, about) */
.col-image img {
  width:         100%;
  border-radius: var(--radius);
  margin-bottom: 0 !important;
}
.two-col .col-image {
  padding-right: 0;
}
@media (max-width: 768px) {
  .img-text-block {
    flex-direction: column;
    gap:            1.5rem;
  }
  .img-side {
    flex:  none;
    width: 100%;
  }
  .img-side img {
    margin-bottom: 1.5rem !important;
  }
  .col-image {
    margin-bottom: 2rem;
  }
}

/* --- TYPOGRAPHY RHYTHM                                         --- */
h2 {
  margin-top:    0 !important;
  margin-bottom: 1.5rem !important;
}
h3 {
  margin-top:    0 !important;
  margin-bottom: 1rem !important;
}
p {
  margin-bottom: 1.2rem;
  line-height:   1.8;
}
p:last-child {
  margin-bottom: 0;
}
ul li,
ol li {
  margin-bottom: 0.6rem;
}

/* --- CARDS                                                     --- */
.card {
  margin-bottom: 2rem;
}
.card-body {
  padding: 2rem;
}

/* --- CHECK ITEMS (new-patients.html)                          --- */
.check-list {
  margin-bottom: 1.5rem;
}
.check-item {
  display:       flex;
  align-items:   flex-start;
  gap:           0.8rem;
  margin-bottom: 0.9rem !important;
  padding-bottom: 0.1rem;
}
.check-icon {
  flex-shrink:    0;
  width:          1.4rem;
  height:         1.4rem;
  background:     var(--accent);
  color:          #fff;
  border-radius:  50%;
  display:        flex;
  align-items:    center;
  justify-content: center;
  font-size:      0.8rem;
  font-weight:    700;
  margin-top:     0.15rem;
}

/* --- PAYMENT SECTION (new-patients.html)
       Minimum 3rem space between payment section and section above --- */
.content-section + .content-section {
  /* handled by content-section's own padding-top: 4rem above */
}
.payment-grid {
  margin-top: 2rem;
}

/* --- DIVIDERS                                                  --- */
hr,
.section-divider {
  margin-top:    2.5rem !important;
  margin-bottom: 2.5rem !important;
}

/* --- CTA BUTTONS                                               --- */
.cta-section .btn,
.condition-cta .btn,
.content-section.cta-section .btn {
  margin-top:    2rem !important;
  margin-bottom: 2rem !important;
}

/* --- INFO BOX: sidebar panels on condition pages              --- */
.info-box {
  background:   var(--bg-alt);
  border-radius: var(--radius);
  padding:       1.5rem;
  border-left:   4px solid var(--accent);
  margin-bottom: 1.5rem;
}

/* --- LARGE SCREENS                                             --- */
@media (min-width: 900px) {
  .section,
  .section-white,
  .section-alt,
  .section-dark,
  .content-section {
    padding-top:    5rem !important;
    padding-bottom: 5rem !important;
  }

  /* Keep hero-adjacent sections at 4rem, not 5rem,
     so there's a visual distinction between hero and content   */
  .hero + .section-white,
  .hero + .section-alt,
  .hero + section,
  .page-hero + section,
  .page-hero + .content-section,
  div.breadcrumb + section,
  div.breadcrumb + .content-section,
  main > section:first-child,
  main > .content-section:first-child,
  main.main-content > section:first-child,
  main.main-content > .content-section:first-child {
    padding-top: 5rem !important;
  }
}

/* Mobile spacing */
@media (max-width: 768px) {
  .section,
  .section-white,
  .section-alt,
  .section-dark,
  .content-section {
    padding-top:    2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .hero + .section-white,
  .hero + .section-alt,
  .hero + section,
  .page-hero + section,
  .page-hero + .content-section,
  div.breadcrumb + section,
  div.breadcrumb + .content-section,
  main > section:first-child,
  main > .content-section:first-child {
    padding-top: 2.5rem !important;
  }
}

/* ============================================================
   PATCH — fixes for April 2026 final overrides
   ============================================================ */

/* .page-hero keeps its internal 2.5rem text padding — do NOT zero it.
   Only the bottom is zeroed to prevent double-gap with the element below. */
.page-hero {
  padding-top:    2.5rem !important;
  padding-bottom: 0 !important;
  margin-bottom:  0 !important;
}

/* about.html / gpccmp.html: section.page-hero → main.main-content → section.content-section
   The main wrapper must NOT add extra padding on top of the content-section's own padding. */
section.page-hero + main,
.page-hero + main {
  padding-top:    0 !important;
  padding-bottom: 0 !important;
  margin-top:     0 !important;
}

/* Two-col grid gap between image and text: ensure there is visible horizontal space */
.two-col {
  gap: 3rem !important;
}
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .col-image {
    margin-bottom: 1.5rem;
  }
  .col-image img {
    margin-bottom: 0 !important;
    width: 100%;
  }
}

/* ============================================================
   BLOG STYLES — April 2026
   blog.html, blog-gpccmp.html, blog-dva.html
   ============================================================ */

/* --- BLOG POST CARDS GRID (blog.html) --- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.blog-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.blog-post-card__date {
  color: var(--accent);
  font-weight: 600;
}

.blog-post-card__author {
  color: var(--text-mid);
}

.blog-post-card__title {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.35;
  margin-bottom: 0;
}

.blog-post-card__title a {
  color: var(--primary-dark);
  text-decoration: none;
}

.blog-post-card__title a:hover {
  color: var(--accent);
}

.blog-post-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 0;
  flex: 1;
}

.blog-read-more {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.92rem;
  display: inline-block;
  margin-top: 0.25rem;
}

.blog-read-more:hover {
  color: var(--accent);
}

/* --- BLOG ARTICLE LAYOUT (post pages: two-col article + sidebar) --- */
.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .blog-sidebar {
    order: -1; /* Show sidebar above article on mobile */
  }
}

/* --- BLOG ARTICLE (main post content) --- */
.blog-article {
  min-width: 0;
}

.blog-article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.blog-article-category {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-article-category a {
  color: var(--primary);
  font-weight: 600;
}

.blog-article-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.blog-article-meta {
  font-size: 0.88rem;
  color: var(--text-mid);
}

.blog-article-intro {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.blog-article h3 {
  color: var(--primary-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.blog-article p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

/* --- NUMBERED STEPS LIST --- */
.blog-steps {
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
  margin-bottom: 2rem;
}

.blog-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.7;
}

.blog-steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

/* --- BLOG ARTICLE CTA BOX --- */
.blog-article-cta {
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  text-align: center;
}

.blog-article-cta h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.blog-article-cta p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.25rem;
}

.blog-article-cta a:not(.btn) {
  color: #fff;
  text-decoration: underline;
}

.blog-article-cta a:not(.btn):hover {
  color: var(--accent);
}

.blog-article-back {
  margin-top: 2rem;
  font-size: 0.92rem;
}

.blog-article-back a {
  color: var(--primary);
  font-weight: 600;
}

/* --- BLOG SIDEBAR --- */
.blog-sidebar {
  min-width: 0;
}

/* --- INTRO TEXT STYLE --- */
.intro-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

/* ============================================================
   SPACING REDUCTION + NAV FIX — April 2026
   ============================================================ */

/* --- SLIGHTLY REDUCED SECTION SPACING
   Reduces the gap between content blocks across all pages.
   "4rem" was a touch too spacious — 3rem feels more natural.  --- */
.content-section {
  padding-top:    3rem !important;
  padding-bottom: 3rem !important;
}
.section,
.section-white,
.section-alt,
.section-dark {
  padding-top:    3rem !important;
  padding-bottom: 3rem !important;
}

@media (min-width: 900px) {
  .content-section,
  .section,
  .section-white,
  .section-alt,
  .section-dark {
    padding-top:    3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

@media (max-width: 768px) {
  .content-section,
  .section,
  .section-white,
  .section-alt,
  .section-dark {
    padding-top:    2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* --- NAV FIX: tighten horizontal padding on nav items
   so all 9 items (including Blog) always fit in the bar.
   "Medicare GPCCMP" is long — smaller padding gives it room. --- */
@media (min-width: 900px) {
  .nav-list > li > a,
  .nav-list > li > button {
    padding-left:  0.55rem !important;
    padding-right: 0.55rem !important;
    font-size:     0.87rem !important;
  }
}

/* On very wide screens restore comfortable padding */
@media (min-width: 1200px) {
  .nav-list > li > a,
  .nav-list > li > button {
    padding-left:  0.8rem !important;
    padding-right: 0.8rem !important;
    font-size:     0.92rem !important;
  }
}
