/* ============================================
   JUNIOR SMILES OF STAFFORD - DESIGN SYSTEM
   Brand Board Compliant CSS
   ============================================ */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

/* --- CSS Custom Properties (Brand Tokens) --- */
:root {
  /* Brand Colors */
  --color-primary: #1B203C;       /* Headlines, buttons, key emphasis */
  --color-secondary: #6EA7C5;     /* Section backgrounds, graphics, supporting */
  --color-accent-coral: #F0756B;  /* CTA buttons, highlights, icons */
  --color-accent-green: #56C06C;  /* Badges, secondary emphasis */
  --color-white: #FFFFFF;         /* Primary background */
  --color-light-bg: #F4F6F8;     /* Section breaks, cards, forms */
  --color-body-text: #2E2E2E;    /* Primary body text */

  /* Derived Colors */
  --color-coral-hover: #E85F53;
  --color-primary-hover: #14182E;
  --color-secondary-light: rgba(110, 167, 197, 0.1);
  --color-secondary-lighter: rgba(110, 167, 197, 0.15);
  --color-green-light: rgba(86, 192, 108, 0.1);
  --color-overlay: rgba(27, 32, 60, 0.6);

  /* Typography */
  --font-family: 'Nunito', sans-serif;
  --font-size-base: 17px;
  --font-size-sm: 15px;
  --font-size-xs: 13px;
  --font-size-h1: clamp(2rem, 5vw, 3rem);
  --font-size-h2: clamp(1.5rem, 3.5vw, 2.25rem);
  --font-size-h3: clamp(1.2rem, 2.5vw, 1.5rem);
  --font-size-subheadline: clamp(1.05rem, 2vw, 1.25rem);
  --line-height-body: 1.7;
  --line-height-heading: 1.25;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --section-padding: clamp(3rem, 8vw, 5rem) 0;

  /* Layout */
  --container-max: 1140px;
  --container-narrow: 800px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(27, 32, 60, 0.06);
  --shadow-md: 0 4px 20px rgba(27, 32, 60, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 32, 60, 0.10);
  --shadow-card: 0 2px 16px rgba(27, 32, 60, 0.07);

  /* Transitions */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-body-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent-coral);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-primary);
  line-height: var(--line-height-heading);
  font-weight: 700;
}

h1 { font-size: var(--font-size-h1); margin-bottom: var(--space-md); }
h2 { font-size: var(--font-size-h2); margin-bottom: var(--space-md); }
h3 { font-size: var(--font-size-h3); margin-bottom: var(--space-sm); }

p {
  margin-bottom: var(--space-sm);
}

.subheadline {
  font-size: var(--font-size-subheadline);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1.5;
}

.caption {
  font-size: var(--font-size-xs);
  font-weight: 300;
  color: #6B7280;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding);
}

.section--light {
  background-color: var(--color-light-bg);
}

.section--blue {
  background-color: var(--color-secondary-light);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section__header p {
  color: #5A6270;
  font-size: var(--font-size-subheadline);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 700;
  border-radius: var(--border-radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background-color: var(--color-accent-coral);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-coral-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(240, 117, 107, 0.35);
}

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

.btn--secondary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 32, 60, 0.25);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

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

.btn--white:hover {
  background-color: var(--color-light-bg);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--font-size-sm);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Navigation / Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header__top-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: var(--font-size-xs);
  font-weight: 300;
}

.header__top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__top-bar a {
  color: var(--color-white);
  text-decoration: none;
}

.header__top-bar a:hover {
  color: var(--color-accent-coral);
}

.header__main {
  padding: 0.75rem 0;
}

.header__main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  height: 55px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}

.header__nav-item {
  position: relative;
}

.header__nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: color var(--transition);
  text-decoration: none;
}

.header__nav-link:hover {
  color: var(--color-accent-coral);
}

/* Dropdown */
.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-body-text);
  font-size: var(--font-size-sm);
  font-weight: 400;
  transition: all var(--transition);
}

.header__dropdown a:hover {
  background-color: var(--color-light-bg);
  color: var(--color-accent-coral);
  padding-left: 1.5rem;
}

.header__cta {
  margin-left: 1rem;
}

/* Mobile Nav Toggle */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: all var(--transition);
}

@media (max-width: 1024px) {
  .header__toggle {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    width: 100%;
  }

  .header__nav-link {
    padding: 1rem 0;
    font-size: var(--font-size-base);
    border-bottom: 1px solid var(--color-light-bg);
  }

  .header__dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    display: none;
  }

  .header__nav-item.is-open .header__dropdown {
    display: block;
  }

  .header__cta {
    margin-left: 0;
    margin-top: var(--space-md);
    width: 100%;
    text-align: center;
  }

  .header__cta .btn {
    width: 100%;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, rgba(27, 32, 60, 0.85) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: var(--font-size-subheadline);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero__trust-bar {
  display: flex;
  gap: var(--space-md);
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  .hero__trust-bar {
    flex-wrap: wrap;
  }
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.hero__trust-item .icon {
  color: var(--color-accent-green);
  font-size: 1.1rem;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-height: 450px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__trust-bar {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

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

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

/* Center icon when card uses text-center */
.text-center .card__icon,
.card--service .card__icon {
  margin-left: auto;
  margin-right: auto;
}

.card__icon--coral {
  background-color: rgba(240, 117, 107, 0.12);
  color: var(--color-accent-coral);
}

.card__icon--blue {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.card__icon--green {
  background-color: var(--color-green-light);
  color: var(--color-accent-green);
}

.card h3 {
  font-size: 1.15rem;
}

.card p {
  color: #5A6270;
  font-size: var(--font-size-sm);
}

/* Service Card (linked) */
.card--service {
  text-align: center;
  text-decoration: none;
  display: block;
  color: inherit;
  border: 2px solid transparent;
}

.card--service:hover {
  border-color: var(--color-secondary);
  color: inherit;
}

.card--service h3 {
  color: var(--color-primary);
}

/* --- Trust Bar / Stats --- */
.trust-bar {
  background: var(--color-white);
  padding: var(--space-lg) 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid #EEF0F2;
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  .trust-bar .container {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
}

.trust-bar__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

/* --- Steps / How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent-coral);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: #5A6270;
  font-size: var(--font-size-sm);
}

/* Steps mobile rules moved to bottom responsive section */

/* --- Testimonials --- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-secondary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card__stars {
  color: #F5A623;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--font-size-base);
  font-style: italic;
  color: var(--color-body-text);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.testimonial-card__author {
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
}

.testimonial-card__source {
  font-size: var(--font-size-xs);
  color: #9CA3AF;
  font-weight: 300;
}

/* --- Age Group Cards --- */
.age-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.age-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.age-card__image {
  height: 200px;
  background-color: var(--color-secondary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.age-card__content {
  padding: var(--space-md);
}

.age-card__content h3 {
  margin-bottom: 0.4rem;
}

.age-card__content p {
  font-size: var(--font-size-sm);
  color: #5A6270;
}

.age-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent-coral);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-top: 0.5rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), #2A3058);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-subheadline);
}

.cta-banner__buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #E5E7EB;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent-coral);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer__inner {
  padding-bottom: 1.25rem;
  color: #5A6270;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand img {
  height: 50px;
  margin-bottom: var(--space-md);
}

.footer__brand p {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer__social a:hover {
  background: var(--color-accent-coral);
  color: var(--color-white);
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

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

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--color-accent-coral);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* --- Sticky Mobile CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 900;
}

.mobile-cta .container {
  display: flex;
  gap: 0.5rem;
}

.mobile-cta .btn {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-sm) 0;
  font-size: var(--font-size-xs);
  color: #9CA3AF;
  border-bottom: 1px solid #EEF0F2;
}

.breadcrumbs a {
  color: var(--color-secondary);
}

.breadcrumbs span {
  margin: 0 0.4rem;
}

/* --- Interior Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary), #2A3058);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  color: var(--color-white);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.page-hero .subheadline {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Content Page Layout --- */
.content-page {
  padding: var(--space-xl) 0;
}

.content-page h2 {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid #EEF0F2;
}

.content-page h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-page ul,
.content-page ol {
  margin-bottom: var(--space-md);
}

.content-page li {
  margin-bottom: 0.4rem;
  color: #5A6270;
}

.content-page strong {
  color: var(--color-primary);
}

/* --- Badge / Tag --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--border-radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.badge--green {
  background-color: var(--color-green-light);
  color: #2D8A3E;
}

.badge--blue {
  background-color: var(--color-secondary-light);
  color: var(--color-secondary);
}

.badge--coral {
  background-color: rgba(240, 117, 107, 0.12);
  color: var(--color-accent-coral);
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --- Highlight Box --- */
.highlight-box {
  background-color: var(--color-secondary-light);
  border-left: 4px solid var(--color-secondary);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin: var(--space-md) 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Info Grid (Contact / Hours) --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.info-block {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.info-block h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.info-block p,
.info-block li {
  font-size: var(--font-size-sm);
  color: #5A6270;
}

/* --- Phone Link Styling --- */
.phone-link {
  color: var(--color-accent-coral);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--color-coral-hover);
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: var(--space-md);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E0E0E0;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-body-text);
  transition: border-color var(--transition);
  background-color: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(110, 167, 197, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0B0B0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Sidebar / Content Layout --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 120px;
}

.sidebar .card {
  margin-bottom: var(--space-md);
}

.sidebar-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: var(--space-md);
}

.sidebar-cta h3 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-sm);
}

.sidebar-cta .phone-link {
  display: block;
  color: var(--color-accent-coral);
  font-size: 1.5rem;
  font-weight: 700;
  margin: var(--space-sm) 0;
}

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

.sidebar-nav li {
  border-bottom: 1px solid #EEF0F2;
}

.sidebar-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-body-text);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--color-accent-coral);
  padding-left: 0.5rem;
}

.quick-facts {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.quick-facts table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.quick-facts td {
  padding: 0.6rem 0;
  border-bottom: 1px solid #EEF0F2;
}

.quick-facts td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  width: 45%;
}

.quick-facts td:last-child {
  color: #5A6270;
}

@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

/* --- Age Navigation Strip --- */
.age-nav-strip {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: nowrap;
  padding: var(--space-lg) 0;
}

.age-nav-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-white);
  border: 2px solid #E5E7EB;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  transition: all var(--transition);
  text-decoration: none;
}

.age-nav-strip a:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.age-nav-strip a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* --- Active Nav State --- */
.header__nav-link.is-current {
  color: var(--color-accent-coral);
}

/* --- Accepting Patients Banner --- */
.accepting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-green);
  color: var(--color-white);
  padding: 0.25rem 0.85rem;
  border-radius: var(--border-radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 700;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent-coral);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
  color: var(--color-white);
}

/* --- Mobile Top Bar Responsive --- */
@media (max-width: 768px) {
  .header__top-bar .container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: center;
  }

  .header__top-bar .hide-mobile {
    display: none;
  }
}

/* --- Scroll Progress Indicator --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-accent-coral);
  z-index: 10001;
  transition: width 0.1s ease;
}

/* --- Checklist Styles --- */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: var(--font-size-sm);
  color: #5A6270;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-green);
  font-weight: 700;
}

/* --- Blog Card Enhancements --- */
.blog-date {
  font-size: var(--font-size-xs);
  color: #9CA3AF;
  margin-bottom: 0.35rem;
}

/* --- Hours Table --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #EEF0F2;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
}

.hours-table td:last-child {
  text-align: right;
  color: #5A6270;
}

/* --- Feature Grid (2-col sections for CTAs, intros) --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature-grid--reverse {
  direction: rtl;
}

.feature-grid--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .feature-grid,
  .feature-grid--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* --- Steps 4-column variant --- */
.steps--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* steps--4 mobile rules moved to bottom responsive section */

@media (min-width: 769px) and (max-width: 1024px) {
  .steps--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Image Placeholder (for mockup) --- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, var(--color-secondary-lighter), rgba(110,167,197,0.25));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-align: center;
  padding: 2rem;
}

/* --- Utility: margin-bottom-xl --- */
.mb-xl {
  margin-bottom: var(--space-xl);
}

/* ============================================
   MOBILE RESPONSIVE REFINEMENTS
   ============================================ */
@media (max-width: 768px) {
  /* Tighter card padding on mobile */
  .card {
    padding: var(--space-md);
  }

  /* Smaller card icons on mobile */
  .card__icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
  }

  /* Compact card typography */
  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: var(--font-size-xs);
  }

  /* Quick-fact cards in 2-col: center everything */
  .grid--4 .card.text-center {
    text-align: center;
    padding: var(--space-sm) var(--space-xs);
  }

  .grid--4 .card.text-center h3 {
    font-size: 0.95rem;
  }

  /* Steps: single column on mobile */
  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: var(--space-sm);
  }

  .steps--4 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: var(--space-sm);
  }

  .step {
    padding: var(--space-sm);
  }

  .step__number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
  }

  .step p {
    font-size: var(--font-size-xs);
  }

  /* Reduce section padding on mobile */
  .section {
    padding: clamp(2rem, 6vw, 3rem) 0;
  }

  /* Testimonial card tighter on mobile */
  .testimonial-card {
    padding: var(--space-md);
  }

  .testimonial-card__text {
    font-size: var(--font-size-sm);
  }

  /* Feature grid image placeholder shorter on mobile */
  .img-placeholder {
    min-height: 200px;
  }

  /* Buttons: full width on mobile for tap targets */
  .hero__buttons {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hero__buttons .btn {
    width: 100%;
  }

  /* CTA banner buttons stack on mobile */
  .cta-banner__buttons {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .cta-banner__buttons .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  /* FAQ items tighter */
  .faq-question {
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
  }

  .faq-answer {
    font-size: var(--font-size-sm);
  }

  /* Breadcrumbs smaller */
  .breadcrumbs {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) 0;
  }

  /* Age nav strip: shrink pills to fit one line */
  .age-nav-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-xs);
    gap: var(--space-xs);
  }

  .age-nav-strip a {
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-xs);
    white-space: nowrap;
  }

  /* Section headers tighter */
  .section__header {
    margin-bottom: var(--space-md);
  }

  .section__header p {
    font-size: var(--font-size-sm);
  }

  /* Service cards in related treatments: 2-col */
  .grid--4 .card--service {
    padding: var(--space-sm);
  }

  .card--service h3 {
    font-size: 0.95rem;
  }

  .card--service p {
    font-size: var(--font-size-xs);
  }
}

/* Extra-small screens: stack 4-col grids to 1 column */
@media (max-width: 420px) {
  .grid--4 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}
