/* ---------- Shared section wrapper widths ---------- */
.intro-clinics__inner,
.stats-band__inner,
.doctor-bio__inner,
.why-us__inner,
.online-consult__inner,
.health-categories__inner,
.products__inner,
.reviews__inner,
.media-band__inner,
.partners__inner,
.team__inner,
.before-after__inner,
.blog-teaser__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.eyebrow {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}

/* Section-level headings: black/near-black, NOT green — green is reserved
   for card/grid titles (h3/h4) inside content blocks, per site-wide rule. */
section h1,
section h2 {
  color: var(--color-text);
}

section h2 {
  font-size: 1.9rem;
  margin: 0 0 10px;
  line-height: 2.2rem;
  font-weight: 600;
}

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero__slide {
  flex: 0 0 100%;
}

.hero__slide img {
  width: 100%;
  max-height: fit-content;
  object-fit: cover;
  display: block;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero__arrow svg {
  width: 20px;
  height: 20px;
}

.hero__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.hero__arrow--prev {
  left: 1rem;
}

.hero__arrow--next {
  right: 1rem;
}

.hero__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* ==========================================================================
   Intro (left) + Visit Our Clinics (right)
   ========================================================================== */
.intro-clinics {
  background: #fff;
}

.intro-clinics__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-clinics__content h1 {
  font-size: 2.2rem;
  margin: 0 0 1rem;
}

.intro-clinics__content p {
  color: var(--color-text-light);
}

.intro-clinics__clinics {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 1.75rem;
}

.clinics__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.clinic-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.clinic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.clinic-card h3 {
  color: var(--color-primary);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.clinic-card p {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band {
  background: var(--color-bg-alt);
}

.stats-band p {
  color: var(--color-text-light);
  max-width: 820px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.stat__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   Doctor bio — image 45% / text 55%
   ========================================================================== */
.doctor-bio {
  background: #fff;
}

.doctor-bio__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.doctor-bio__inner img {
  border-radius: 8px;
  width: 100%;
}

.doctor-bio__text p {
  color: var(--color-text-light);
}

/* ==========================================================================
   Why choose us — icon cards
   ========================================================================== */
.why-us {
  background: var(--color-bg-alt);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-info);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.why-card__icon svg {
  width: 28px;
  height: 28px;
}

.why-card:hover .why-card__icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.08);
}

.why-card h3 {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.why-card p {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ==========================================================================
   Online consultation
   ========================================================================== */
.online-consult {
  background: #fff;
  text-align: center;
}

.online-consult img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
}
/* ==========================================================================
   Health categories
   ========================================================================== */
.health-categories {
  background: var(--color-bg-alt);
}

.health-categories > .health-categories__inner > p {
  color: var(--color-text-light);
  max-width: 720px;
}

.health-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}

.category-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.category-block h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.category-block li {
  margin-bottom: 0.4rem;
}

.category-block a {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.category-block a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Products — icon cards
   ========================================================================== */
.products {
  background: #fff;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.product-group {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: left;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  gap: 20px;
}

.product-group:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
}

.product-group__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.product-group__icon svg {
  width: 24px;
  height: 24px;
}

.product-group:hover .product-group__icon {
  background: #fff;
  color: var(--color-primary);
}

.product-group h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.product-group ul {
  text-align: left;
}

.product-group li {
  margin-bottom: 0.4rem;
}

.product-group a {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.product-group a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews {
  background: var(--color-bg-alt);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.review-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

.review-card cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  font-style: normal;
}

/* ==========================================================================
   Featured media band
   ========================================================================== */
.media-band {
  background: #fff;
  text-align: center;
}

.media-band__grid,
.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

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

.logo-card {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.logo-card img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  /* full color, no grayscale filter — matches the reference screenshots */
}

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

/* ==========================================================================
   Partners
   ========================================================================== */
.partners {
  background: var(--color-bg-alt);
  text-align: center;
}

/* ==========================================================================
   Shared horizontal carousel component (Team + Before/After + any future
   carousel) — the flex container that holds the prev arrow, track, and
   next arrow side by side.
   ========================================================================== */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: scale(1.06);
}

.carousel-item {
  scroll-snap-align: start;
  flex: 0 0
    var(
      --carousel-item-width,
      calc(
        (100% - (var(--visible, 4) - 1) * var(--carousel-gap, 1.25rem)) /
          var(--visible, 4)
      )
    );
}

.carousel-item img {
  display: block;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  flex: 1;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* ---------- Team carousel ---------- */
.team {
  background: #fff;
  text-align: center;
}

.team__subtitle {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.carousel--team {
  --visible: 4; /* change this one number to 3 or 5 later if needed */
}

.carousel--team .carousel-item {
  text-align: left;
  transition: transform 0.25s ease;
}

.carousel--team .carousel-item:hover {
  transform: translateY(-5px);
}

.carousel--team .carousel-item img {
  aspect-ratio: 4 / 4;
  background: var(--color-bg-alt);
}

.carousel--team .carousel-item h3 {
  color: var(--color-primary);
  font-size: 16px;
  margin: 0.75rem 0 0.15rem;
}

.carousel--team .carousel-item h3 a {
  color: inherit;
}

.carousel--team .carousel-item p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  margin: 0;
}

/* ---------- Before / After carousel ---------- */
.before-after {
  background: var(--color-bg-alt);
  text-align: center;
}

.before-after__subtitle {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.carousel--before-after {
  --visible: 3;
  --carousel-gap: 1rem;
}

.carousel--before-after .carousel-item img {
  transition: transform 0.25s ease;
}

.carousel--before-after .carousel-item:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Blog teaser
   ========================================================================== */
.blog-teaser {
  background: #fff;
}

.blog-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card h3 {
  color: var(--color-primary);
  font-size: 1rem;
  margin: 1rem 1rem 0.75rem;
  line-height: 1.4;
}

.blog-card h3 a {
  color: inherit;
}

.blog-card h3 a:hover {
  text-decoration: underline;
}

.blog-card .btn {
  margin: 0 1rem 1rem;
}

/* ==========================================================================
   Scroll-reveal animation system (progressive enhancement)
   The .has-js class is added by an inline script in header.php before CSS
   paints, so no-JS visitors always see full content with no animation.
   ========================================================================== */
html:not(.has-js) .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .intro-clinics__inner {
    grid-template-columns: 1fr;
  }

  .doctor-bio__inner {
    grid-template-columns: 1fr;
  }

  .doctor-bio__inner img {
    max-width: 360px;
    margin: 0 auto;
  }

  .why-us__grid,
  .health-categories__grid,
  .reviews__grid,
  .blog-teaser__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .why-us__grid,
  .health-categories__grid,
  .stats-grid,
  .products__grid,
  .reviews__grid,
  .blog-teaser__grid {
    grid-template-columns: 1fr;
  }

  .hero__slide img {
    max-height: 260px;
  }

  .hero__arrow {
    width: 36px;
    height: 36px;
  }

  .team-card {
    flex: 0 0 150px;
  }

  .before-after__track img {
    flex: 0 0 240px;
  }

}

/* ---------- Appointment form ---------- */
.appointment {
  background: var(--color-bg-alt);
  padding: 3rem 1.25rem;
}

.appointment__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.appointment__inner h2 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.appointment__inner > p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.appointment-form {
  text-align: left;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.75rem;
}

.appointment-form .form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.appointment-form label {
  display: block;
  flex: 1 1 200px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.appointment-form label.label-hidden {
  /* "Last" name field — layout partner to "First", label kept for
       accessibility but visually de-emphasized to match the two-part
       Name row on the live site */
  font-weight: 400;
}

.appointment-form input[type="text"],
.appointment-form input[type="tel"],
.appointment-form input[type="email"],
.appointment-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65em 0.75em;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-alt);
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  background: #fff;
}

.appointment-form .field-error {
  border-color: #c0392b;
  outline: 2px solid #c0392b;
  outline-offset: 1px;
}

.appointment-form .captcha-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 400;
  font-size: 0.85rem;
}

.appointment-form .captcha-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.appointment-form .btn {
  width: 100%;
  text-align: center;
  border: none;
}

/* ---------- FAQ accordion ---------- */
.faq {
  padding: 3rem 1.25rem;
}

.faq__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.faq__inner h2 {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.accordion__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  position: relative;
  padding-right: 2.5rem;
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

/* Custom +/- indicator, driven by [open] state — no JS needed for the
   toggle itself, but main-footer.js updates icon state for older browsers
   that don't restyle ::after based on the [open] attribute reliably. */
.accordion__item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
}

.accordion__item[open] summary::after {
  content: "\2212"; /* minus sign */
}

.accordion__item[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.accordion__item p {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---------- Team + Before/After carousels: responsive ---------- */
@media (max-width: 900px) {
  .carousel--team,
  .carousel--before-after {
    --visible: 1;   /* tablet: 2 cards */
  }
}

@media (max-width: 600px) {
  .carousel--team,
  .carousel--before-after {
    --visible: 1;   /* mobile: 1 card */
    --carousel-gap: 0.75rem;
  }

  .appointment-form label{
    flex: 1 1 75px;
  }
}