/* ============================================
   HOME PAGE — mobile-first & responsive styles
   Optimized layout, balanced spacing & viewport fit
   ============================================ */

/* ========= HERO SECTION ========= */
.hero2 {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 24px 20px 0;
  min-height: 400px;
}

/* Soft green ellipse background (top-right) */
.hero2-leaf-bg {
  position: absolute;
  top: -20px;
  right: -40px;
  width: 240px;
  height: 290px;
  background: radial-gradient(ellipse at 55% 40%, #e2f5ce 0%, #f1fbe8 45%, transparent 70%);
  border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
  pointer-events: none;
  z-index: 0;
}

/* Decorative leaf shape top-right */
.hero2-leaf-bg::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 10px;
  width: 72px;
  height: 92px;
  background: url('../images/home_top_leaf.png') center/contain no-repeat;
  opacity: .9;
}

/* Text block — left column */
.hero2-copy {
  position: relative;
  z-index: 2;
  width: 56%;
}

/* Heading */
.hero2-heading {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: clamp(26px, 7vw, 42px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #172b3a;
  margin: 0 0 10px;
}

.hero2-heading em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: italic;
  color: #59A502;
  display: block;
  line-height: 1.08;
  margin-top: 2px;
}

/* Green underline divider */
.hero2-divider {
  width: 36px;
  height: 3px;
  background: #59A502;
  border-radius: 2px;
  margin: 10px 0 12px;
}

.hero2-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #61717a;
  margin: 0 0 14px;
}

/* Doctor byline */
.hero2-dr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid #59A502;
  padding-left: 12px;
  margin-top: 6px;
}

.hero2-dr strong {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #172b3a;
  line-height: 1.25;
}

.hero2-dr span {
  font-size: 11.5px;
  color: #61717a;
  line-height: 1.35;
}

.hero2-dr em {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 11.5px;
  color: #172b3a;
}

/* Doctor photo — mobile absolute right */
.hero2-photo-wrap {
  position: absolute;
  right: -6px;
  top: 0;
  bottom: 0;
  width: 52%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

.hero2-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  max-height: 390px;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, rgba(0,0,0,0.7) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, rgba(0,0,0,0.7) 92%, transparent 100%);
}

@media (max-width: 699px) {
  .hero2 {
    min-height: 360px;
    padding-bottom: 0;
  }
  .hero2-photo-wrap {
    top: auto;
    bottom: 0;
    height: 320px;
  }
  .hero2-photo {
    max-height: 320px;
    object-position: center bottom;
  }
}

/* ========= STAT BANNER ========= */
.stat-banner {
  position: relative;
  z-index: 3;
  margin: 14px 14px 0;
  background: #59A502;
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(89, 165, 2, 0.2);
}

.stat-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, .35);
  padding-right: 16px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.stat-banner-num {
  display: flex;
  flex-direction: column;
}

.stat-banner-num strong {
  display: inline-flex;
  align-items: baseline;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  white-space: nowrap;
}

.stat-banner-num strong span#dentist-count {
  display: inline;
}

.stat-banner-num strong .stat-plus {
  display: inline;
  margin-left: 1px;
}

.stat-banner-num span.stat-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
  white-space: nowrap;
  letter-spacing: -.01em;
}

/* Always blinking animation applied to the whole stat-banner-num */
.stat-num-blink {
  animation: statTextBlink 1.4s ease-in-out infinite;
}

@keyframes statTextBlink {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    opacity: 0.5;
    text-shadow: none;
  }
}

.stat-banner-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .94);
}

/* ========= CTA LIST ========= */
.home-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 0;
}

.home-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #dde8e2;
  border-radius: 12px;
  background: #fff;
  color: #172b3a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}

.home-cta:hover, .home-cta:focus-visible {
  border-color: #59A502;
  box-shadow: 0 4px 14px rgba(89, 165, 2, 0.16);
}

.home-cta--primary {
  background: #59A502;
  color: #fff;
  border-color: #59A502;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 12px;
}

.home-cta--primary:hover, .home-cta--primary:focus-visible {
  background: #4a8b02;
  border-color: #4a8b02;
  box-shadow: 0 6px 20px rgba(89, 165, 2, 0.3);
}

.cta-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
}

.cta-arrow {
  margin-left: auto;
  font-size: 16px;
  opacity: .7;
}

.home-cta--primary .cta-arrow {
  opacity: 1;
}

/* ========= BOTTOM LEAF ========= */
.home-bottom-leaf {
  margin-top: 20px;
  height: 70px;
  background: url('../images/bottom_leaf_accent.png') center bottom / cover no-repeat;
  pointer-events: none;
  opacity: .6;
}

/* Footer watermark */
.footer-watermark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-watermark a {
  color: #79b0c9;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-watermark a:hover {
  color: #fff;
}

/* ============================================
   TABLET (700px+)
   ============================================ */
@media (min-width: 700px) {
  .hero2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    gap: 32px;
    min-height: 420px;
    padding: 32px 32px 0;
  }

  .hero2-copy {
    width: 100%;
    max-width: 520px;
    padding-bottom: 24px;
  }

  .hero2-leaf-bg {
    width: 320px;
    height: 380px;
    top: -40px;
    right: -40px;
  }

  .hero2-heading {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .hero2-desc {
    font-size: 14px;
    max-width: 360px;
  }

  .hero2-dr strong {
    font-size: 15.5px;
  }

  .hero2-dr span,
  .hero2-dr em {
    font-size: 12.5px;
  }

  .hero2-photo-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .hero2-photo {
    width: 100%;
    max-width: 380px;
    max-height: 440px;
  }

  /* Stat banner */
  .stat-banner {
    margin: 20px 32px 0;
    padding: 18px 24px;
  }

  .stat-banner-num strong {
    font-size: 36px;
  }

  .stat-banner-num span.stat-label {
    font-size: 14.5px;
  }

  .stat-banner-desc {
    font-size: 13px;
  }

  /* CTAs: 2-column clean grid */
  .home-ctas {
    padding: 18px 32px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .home-cta {
    font-size: 14px;
    padding: 15px 18px;
  }

  .home-cta--primary {
    grid-column: 1 / -1;
    font-size: 15.5px;
    padding: 16px 22px;
  }
}

/* ============================================
   DESKTOP (1024px+) — Perfectly balanced, no excess whitespace
   ============================================ */
@media (min-width: 1024px) {
  .hero2 {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 40px 0;
    min-height: 440px;
    align-items: flex-end;
  }

  .hero2-copy {
    max-width: 500px;
    padding-bottom: 30px;
  }

  .hero2-heading {
    font-size: 46px;
    line-height: 1.05;
  }

  .hero2-desc {
    font-size: 14.5px;
    max-width: 380px;
    margin: 0 0 16px;
  }

  .hero2-dr {
    padding-left: 14px;
    margin-top: 8px;
  }

  .hero2-dr strong {
    font-size: 16px;
  }

  .hero2-dr span,
  .hero2-dr em {
    font-size: 13px;
  }

  .hero2-photo-wrap {
    justify-content: flex-end;
  }

  .hero2-photo {
    max-width: 420px;
    max-height: 470px;
  }

  /* Stat banner */
  .stat-banner {
    max-width: 1060px;
    margin: 20px auto 0;
    padding: 18px 28px;
  }

  .stat-banner-left {
    padding-right: 24px;
    gap: 16px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .stat-banner-num strong {
    font-size: 40px;
  }

  .stat-banner-num span.stat-label {
    font-size: 15px;
  }

  .stat-banner-desc {
    font-size: 14px;
    max-width: 500px;
  }

  /* CTAs */
  .home-ctas {
    max-width: 1060px;
    margin: 0 auto;
    padding: 16px 0 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .home-cta {
    font-size: 14.5px;
    padding: 16px 22px;
  }

  .home-cta--primary {
    font-size: 16px;
    padding: 18px 24px;
  }
}
