@media (max-width: 1200px) {
  .hero-title { max-width: 760px; font-size: clamp(52px, 5vw, 66px); }
}

@media (max-width: 980px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .mobile-menu {
    position: fixed;
    z-index: 999;
    top: 84px;
    right: 0;
    left: 0;
    width: min(100% - 36px, 520px);
    margin-inline: auto;
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(248, 250, 248, .96);
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(4, 24, 16, .16);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, visibility .35s ease, top .3s ease;
  }
  .site-header.scrolled .mobile-menu { top: 80px; }
  .mobile-menu.open { max-height: calc(100vh - 92px); overflow-y: auto; visibility: visible; opacity: 1; }
  .mobile-nav { width: 100%; display: grid; margin-inline: auto; padding: 10px 16px 16px; }
  .mobile-nav .nav-link { min-height: 44px; border-bottom: 1px solid rgba(216, 231, 221, .85); font-size: 13px; }
  .mobile-nav .nav-link::after { display: none; }
  .mobile-nav .nav-link.active { padding-left: 10px; color: var(--green-700); }
  .mobile-nav .button { margin-top: 15px; }
}

@media (max-width: 1024px) {
  .credential-badge { right: 0; }
  .hero-trust > div { padding-inline: 13px; }
  .about-grid { gap: 55px; }
  .about-image-wrap > img { height: 360px; }
  .expertise-card { min-height: 194px; padding: 18px; }
  .process-step { padding-inline: 13px; }
  .clinic-card { grid-template-columns: .9fr 1.1fr; }
  .clinic-details { padding: 30px; }
  .footer-grid { grid-template-columns: 1.35fr .7fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / 4; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; column-gap: 24px; }
  .footer-grid > div:last-child h2 { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { min-height: 100dvh; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-content { order: 2; max-width: 760px; }
  .hero-title { max-width: 760px; font-size: 56px; line-height: 1.02; }
  .hero-visual { order: 1; justify-self: center; }
}

@media (max-width: 820px) {
  .section { padding-block: 68px; }
  .hero { padding: 46px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: 720px; }
  .hero-visual { justify-self: center; width: min(100%, 390px); }
  .doctor-card { height: auto; }
  .credential-badge { right: 0; }
  .container.stats-grid { width: min(100% - 40px, 1280px); grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 18px; border-radius: 25px; }
  .stat-card { min-height: 122px; }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n + 2) { border-bottom: 1px solid rgba(216, 231, 221, .2); }
  .stat-card:nth-child(3) { border-right: 1px solid rgba(216, 231, 221, .2); }
  .about-grid { grid-template-columns: .86fr 1.14fr; gap: 40px; }
  .about-image-wrap > img { height: 350px; }
  .about-note { right: 14px; }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 18px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-grid::before,
  .process-grid::after { display: none; }
  .experience-grid { gap: 36px; }
  .faq-grid { gap: 50px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { min-height: auto; }
  .cta-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
  .cta-actions { justify-content: flex-start; }
  .clinic-card { grid-template-columns: 1fr; }
  .map-wrap { width: min(100% - 44px, 390px); min-height: 0; margin: 24px auto 0; }
  .map-wrap iframe { min-height: 0; }
  .footer-grid { grid-template-columns: 1.3fr .7fr 1fr; gap: 35px; }
}

@media (max-width: 768px) {
  :root { --header-height: 68px; }
  html { scroll-padding-top: 82px; }
  body {
    padding-bottom: 0;
    overflow-x: clip;
    -webkit-overflow-scrolling: touch;
  }
  .container { width: min(100% - 40px, var(--container)); }
  .container.header-inner { width: min(100% - 28px, 520px); }
  .container.hero-grid { width: min(100% - 40px, 1280px); }
  .container > *,
  .hero-grid > *,
  .about-grid > *,
  .clinic-card > *,
  .faq-grid > * { min-width: 0; }
  .section { padding-block: 55px; }
  .site-header, .site-header.scrolled { top: 10px; height: 54px; }
  .site-header { padding-top: 0; }
  .header-inner { height: 100%; padding: 7px 7px 7px 9px; }
  .site-header.scrolled .mobile-menu, .mobile-menu { top: 72px; }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 12px; }
  .brand-copy strong { font-size: 12px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 34px; }
  .section-heading.centered { margin-bottom: 35px; text-align: left; }
  .section-title,
  .expertise-section .section-title,
  .experience-intro .section-title { max-width: 100%; font-size: clamp(31px, 8.5vw, 38px); overflow-wrap: anywhere; }
  .hero { padding: 0; }
  .hero-grid { gap: 38px; }
  .hero-title { max-width: 100%; font-size: clamp(40px, 8vw, 52px); line-height: 1.04; }
  .hero-line-text { white-space: normal; }
  .hero-description { font-size: 16px; }
  .hero-actions .button { flex: 1 1 190px; }
  .hero-trust { justify-content: space-between; }
  .hero-trust > div { flex: 1; padding-inline: 10px; }
  .hero-trust span { white-space: normal; line-height: 1.3; }
  .about-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 24px; }
  .about-image-wrap { align-self: center; width: min(100%, 390px); }
  .about-image-wrap > img { height: 340px; }
  .about-note { right: 14px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-step { display: grid; grid-template-columns: 54px 1fr; column-gap: 15px; padding: 0 0 28px; text-align: left; }
  .process-step > span { grid-row: 1 / 3; margin: 0; border-width: 4px; }
  .process-step h3 { margin: 7px 0 3px; }
  .process-step p { margin: 0; }
  .experience-grid { grid-template-columns: 1fr; gap: 28px; }
  .booking-grid { grid-template-columns: 1fr; gap: 28px; }
  .booking-copy { position: static; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .experience-intro, .faq-intro { position: static; }
  .experience-section { padding-block: 48px; }
  .reviews-section { padding-block: 42px; }
  .rating-summary { align-self: flex-start; }
  .review-card { padding: 20px; }
  .cta-section { padding-block: 46px; }
  .clinic-details { padding: 28px 24px; }
  .faq-item button { font-size: 13px; }
  .footer-grid { grid-template-columns: 1.2fr .8fr; }
  .footer-grid > div:nth-child(3) { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-bottom .disclaimer { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .mobile-booking-bar { display: none; }
  .back-to-top { left: 14px; right: auto; bottom: 14px; }
  .floating-contact { right: 14px; bottom: 14px; }
}

@media (max-width: 600px) {
  .hero { padding: 28px 0 50px; }
  .hero-grid { gap: 34px; }
  .hero-title { max-width: 100%; font-size: clamp(34px, 10vw, 44px); line-height: 1.06; letter-spacing: -.035em; }
  .hero-line { display: block; overflow: hidden; padding: .04em .14em .1em 0; margin: -.04em -.14em -.1em 0; }
  .hero-line-text { display: block; white-space: normal; }
  .hero-description { margin-top: 24px; }
  .hero-qualifications { gap: 7px 12px; font-size: 12px; }
  .hero-qualifications span { gap: 12px; }
  .hero-actions { margin-bottom: 28px; }
  .hero-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-trust > div { min-width: 0; }
  .hero-image-wrapper { width: min(calc(100% - 24px), 300px); max-width: 300px; }
  .credential-badge { right: 0; max-width: calc(100% - 12px); }
  .map-wrap { width: min(100% - 28px, 330px); margin: 20px auto 0; }
  .map-action { margin-bottom: 20px; }
  .map-wrap iframe { min-height: 0; }
  .clinic-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
  }
  .clinic-details,
  .clinic-actions {
    display: contents;
  }
  .clinic-label,
  .clinic-details h3,
  .clinic-details address,
  .clinic-info-list {
    order: 1;
  }
  .clinic-actions a:not(:last-child) {
    order: 2;
    width: 100%;
    margin-bottom: 10px;
  }
  .clinic-actions a:nth-child(2) {
    margin-bottom: 0;
  }
  .contact-note {
    order: 3;
  }
  .map-wrap {
    order: 4;
  }
  .clinic-actions a:last-child {
    order: 5;
    width: min(100% - 28px, 330px);
    align-self: center;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .eyebrow { max-width: 100%; font-size: 9px; }
  .qualifications { font-size: 11px; line-height: 1.6; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-trust strong { font-size: 14px; }
  .hero-trust span { font-size: 8px; }
  .stats-section { padding: 28px 0 36px; }
  .container.stats-grid { gap: 0; padding: 16px 10px; border-radius: 22px; }
  .stat-card { min-height: 112px; padding: 16px 10px; }
  .stat-number { font-size: 34px; }
  .stat-card > span { margin-top: 10px; font-size: 10px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 14px; }
  .expertise-card { min-height: 0; padding: 18px; }
  .expertise-card h3 { font-size: 19px; }
  .process-step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 13px; }
  .process-step > span { width: 46px; height: 46px; }
  .reviews-section { padding-block: 36px; }
  .review-card { width: 280px; padding: 18px; }
  .review-card > p { font-size: 14px; }
  .booking-form { padding: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .booking-form > .button,
  .booking-success .button { width: 100%; }
  .booking-success { grid-template-columns: 1fr; }
  .cta-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .cta-actions .button { width: 100%; }
  .clinic-actions { display: contents; }
  .clinic-actions a:not(:last-child) { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; order: 1; }
  .footer-grid > div:nth-child(2) { grid-column: 1; order: 2; }
  .footer-grid > div:last-child { grid-column: 2; order: 3; }
  .footer-grid > div:nth-child(3) { grid-column: 1; order: 4; }
  .about-section { padding-block: 44px; }
  .about-grid { padding: 18px; border-radius: 18px; }
  .about-image-wrap > img { height: 300px; }
  .about-note { right: 10px; bottom: 10px; padding: 10px 12px; }
  .about-note span { display: none; }
  .about-content .lead { font-size: 15px; }
  .about-highlights { gap: 8px; margin-block: 16px 20px; }
  .about-highlights span { min-height: 32px; padding: 7px 11px; font-size: 11px; }
  .about-experience-button { width: 100%; justify-content: center; }
  .experience-section { padding-block: 42px; }
  .timeline-item { padding-right: 8px; padding-left: 30px; }
  .timeline-item h3 { font-size: 18px; }
  .timeline-item p { font-size: 14px; }
  .faq-grid { gap: 30px; }
  .faq-panel p { padding-right: 0; }
}

@media (max-width: 400px) {
  .brand-copy small { display: none; }
  .hero-trust { align-items: start; }
  .hero-trust > div { padding-inline: 7px; }
  .hero-trust strong { font-size: 12px; }
  .credential-badge { right: -4px; }
  .about-note { right: 8px; bottom: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(2) { grid-column: 1; }
  .footer-grid > div:last-child { grid-column: 2; display: flex; }
  .footer-grid > div:nth-child(3) { grid-column: 1; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom .disclaimer { grid-column: auto; }
}

@media (max-width: 340px) {
  .container { width: min(100% - 32px, var(--container)); }
  .container.header-inner,
  .container.hero-grid { width: min(100% - 32px, 1280px); }
  .brand-copy strong { font-size: 11px; }
  .hero-title { font-size: 32px; }
  .eyebrow { padding-inline: 8px; letter-spacing: .01em; }
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-trust > div { padding-inline: 5px; }
  .container.stats-grid { width: min(100% - 32px, 1280px); grid-template-columns: 1fr; padding: 10px 18px; }
  .stat-card,
  .stat-card:nth-child(2),
  .stat-card:nth-child(3) { border-right: 0; border-bottom: 1px solid rgba(216, 231, 221, .2); }
  .stat-card:last-child { border-bottom: 0; }
  .doctor-card { height: auto; }
  .credential-badge { padding: 10px; }
  .credential-badge small { display: none; }
  .mobile-booking-bar { grid-template-columns: .7fr 1.5fr .9fr; }
  .mobile-booking-bar a { font-size: 9px; }
}

/* Mobile hero — copy first, floating portrait with badges underneath */
.hero-title-desktop { display: block; }
.hero-title-mobile,
.hero-description-mobile,
.hero-qualifications-mobile { display: none; }

@media (max-width: 768px) {
  .hero {
    min-height: calc(var(--vh, 1vh) * 100);
    height: calc(var(--vh, 1vh) * 100);
    max-height: none;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
  }

  .hero-overlay {
    -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 84%, #000 0%, transparent 74%);
    mask-image: radial-gradient(ellipse 90% 55% at 50% 84%, #000 0%, transparent 74%);
  }

  .container.hero-grid {
    position: relative;
    z-index: auto;
    width: 100%;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 2.2svh, 18px);
    padding: 0 24px;
  }

  .hero-content {
    z-index: 3;
    position: relative;
    order: 1;
    width: 100%;
    min-height: 0;
    height: auto;
    max-width: 460px;
    display: block;
    padding: 0;
    opacity: 1;
    text-align: left;
  }

  .eyebrow { margin-bottom: 14px; }

  .hero-title-desktop,
  .hero-description-desktop,
  .hero-qualifications-desktop { display: none; }

  .hero-title-mobile,
  .hero-description-mobile,
  .hero-qualifications-mobile { display: block; }

  .hero-title {
    max-width: 100%;
    font-size: clamp(30px, 7.7vw, 40px);
    line-height: 1.08;
  }

  .hero-title-mobile { white-space: normal; }

  .hero-description-mobile {
    max-width: 100%;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: clamp(13px, 3.35vw, 15px);
    font-weight: 500;
    line-height: 1.48;
  }

  .hero-qualifications-mobile {
    width: fit-content;
    margin: 10px 0 0;
    padding: 7px 12px;
    color: var(--green-700);
    background: var(--green-100);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .02em;
  }

  .hero-qualifications-mobile span {
    display: inline;
    margin-inline: 5px;
    color: var(--green-500);
  }

  .hero-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 14px 0 0;
  }

  .hero-actions .button {
    min-width: 0;
    min-height: 48px;
    flex: 1 1 0;
    padding: 12px 10px;
    font-size: 12px;
  }

  .hero-visual {
    order: 2;
    width: fit-content;
    margin: 0 auto;
  }

  .hero-shadow { width: min(60%, 220px); height: 20px; }

  .doctor-card img { height: clamp(230px, 39svh, 340px); }

  body:not(.hero-variant-two) .doctor-card img { height: 100%; }

  .credential-badge {
    right: -8px;
    bottom: 14%;
    max-width: 176px;
    padding: 10px 12px;
    border-radius: 12px;
  }
  .credential-badge small { font-size: 7px; }
  .credential-badge strong { font-size: 11px; }

  .hero-stat-badge {
    left: -8px;
    top: 10%;
    max-width: 160px;
    padding: 9px 11px;
    border-radius: 12px;
  }
  .hero-stat-icon { width: 22px; height: 22px; flex-basis: 22px; font-size: 11px; }
  .hero-stat-badge strong { font-size: 11px; }
  .hero-stat-badge small { font-size: 7px; }

  .image-fallback { display: none; }

  .reviews-marquee {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
  }
}

@media (max-width: 360px) {
  .hero-title { font-size: clamp(24px, 7.6vw, 28px); }
  .hero-description-mobile { font-size: 13px; }
  .doctor-card img { height: clamp(190px, 34svh, 250px); }
  body:not(.hero-variant-two) .doctor-card img { height: 100%; }
}

@media (max-width: 768px) and (max-height: 650px) {
  .hero { padding-block: clamp(18px, 4svh, 30px); }
  .hero-title { font-size: clamp(24px, 6.6vw, 30px); }
  .hero-description-mobile { margin-top: 9px; font-size: 13px; line-height: 1.5; }
  .hero-qualifications-mobile { margin-top: 10px; }
  .hero-actions { margin-top: 14px; }
  .hero-actions .button { min-height: 44px; }
  .hero-visual { margin-top: 0; }
  .doctor-card img { height: clamp(170px, 31svh, 240px); }
  body:not(.hero-variant-two) .doctor-card img { height: 100%; }
}

@media (max-width: 768px) and (max-height: 430px) {
  .hero-title { font-size: clamp(21px, 5.8vw, 26px); }
  .hero-description-mobile { display: none; }
  .hero-visual { margin-top: 10px; }
  .doctor-card img { height: clamp(130px, 30svh, 190px); }
  body:not(.hero-variant-two) .doctor-card img { height: 100%; }
  .hero-stat-badge { display: none; }
}

/* Final hero fixes: keep mobile composition intact, improve label contrast,
   animate the hero heading, and keep the desktop portrait clean on the right. */
@media (min-width: 769px) {
  .hero {
    align-items: center;
  }

  .container.hero-grid {
    position: static;
    display: block;
    min-height: auto;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-title {
    max-width: 700px;
    font-size: clamp(54px, 4.9vw, 74px);
  }

  .hero-visual {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 52%;
    width: auto;
    height: auto;
    margin: 0;
  }

  .doctor-card,
  .doctor-card picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .doctor-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    filter: saturate(1.03) contrast(1.02) brightness(.96);
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(7, 31, 22, .94) 0%, rgba(7, 31, 22, .82) 35%, rgba(7, 31, 22, .16) 52%, rgba(7, 31, 22, 0) 66%),
      linear-gradient(180deg, rgba(7, 31, 22, .02) 0%, rgba(7, 31, 22, .14) 58%, rgba(7, 31, 22, .4) 100%);
  }

  .hero::after {
    display: none;
  }

  .hero-background {
    right: 48%;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 31, 22, .04) 0%, rgba(7, 31, 22, 0) 52%, rgba(7, 31, 22, 0) 100%);
  }
}

.hero-line-text {
  opacity: 0;
  transform: translateY(112%);
  animation: hero-title-rise .82s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-line:nth-child(2) .hero-line-text {
  animation-delay: .16s;
}

.hero-title-mobile {
  animation: hero-mobile-title .78s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes hero-title-rise {
  from {
    opacity: 0;
    transform: translateY(112%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-mobile-title {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero .eyebrow {
    color: #0E3F2E;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(31, 112, 72, .2);
    border-left: 3px solid var(--green-500);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(4, 24, 16, .1);
    padding: 6px 10px;
  }

  body:not(.hero-variant-two) .hero .hero-title {
    font-size: clamp(48px, 12.5vw, 60px);
  }
}
