/* ==========================================================================
   Hera Hospital — Responsive Rules
   Breakpoints: 1080 | 960 | 768 | 640 | 480 | 375
   ========================================================================== */

/* ============================================================
   1080px — Large tablet / small desktop
   ============================================================ */
@media (max-width: 1080px) {
  .speciality-grid   { grid-template-columns: repeat(4, 1fr); }
  .card-grid         { grid-template-columns: repeat(2, 1fr); }
  .cta-points        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .timeline          { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h1      { font-size: 46px; }
}

/* ============================================================
   960px — Tablet landscape / mobile nav breakpoint
   ============================================================ */
@media (max-width: 960px) {

  /* --- Navigation --- */
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px 28px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.15);
    border-top: 1px solid var(--line);
    z-index: 999;
  }
  .nav-links.mobile-open a {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.mobile-open a:last-child { border-bottom: none; }
  .nav-links.mobile-open a.active,
  .nav-links.mobile-open a:hover  { background: var(--bg-soft); color: var(--red); }
  .nav-links.mobile-open a.active::after { display: none; }
  .nav-toggle { display: flex; }

  /* --- Hero --- */
  .hero               { padding: 50px 0 120px; background-image: linear-gradient(180deg, rgba(24,18,17,.78), rgba(24,18,17,.78)), url("../images/hera-home-building-cashless-247.png"); background-position: center 43%; background-repeat: no-repeat; background-size: cover; }
  .hero-grid          { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy          { text-align: center; transform: none; min-width: 0; width: 100%; }
  .hero-copy > .eyebrow { max-width: 100%; white-space: normal; }
  .hero-copy h1       { font-size: 40px; color:#fff; }
  .hero-copy p        { margin: 0 auto 28px; color:#fff; }
  .hero-actions       { justify-content: center; }
  .hero-insurance-heading {
    margin:24px auto 0;
    color:#fff;
    font-size:20px;
    max-width:600px;
  }
  .hero-visual        { display: none; }

  /* --- Stats bar --- */
  .stats-bar          { margin-top: -60px; }
  .stats-card         { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 28px 20px; }
  .stat               { border-right: none; justify-content: flex-start; padding: 0 8px; }

  /* --- About --- */
  .about-grid         { grid-template-columns: 1fr; gap: 40px; }
  .about-badge        { bottom: -16px; right: 12px; }
  .mv-grid            { grid-template-columns: 1fr 1fr; }

  /* --- Facilities --- */
  .facility-row,
  .facility-row.reverse               { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
  .facility-row.reverse .facility-visual { order: 1; }
  .facility-row.reverse .facility-copy   { order: 2; }
  .facility-visual    { aspect-ratio: 16 / 7; font-size: 60px; }

  /* --- Contact --- */
  .contact-wrap       { grid-template-columns: 1fr; }
  .contact-form       { padding: 30px 24px; }

  /* --- CTA banner --- */
  .cta-banner         { grid-template-columns: 1fr; padding: 40px 32px; gap: 28px; }
  .cta-banner h2      { font-size: 26px; }

  /* --- Footer --- */
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom      { flex-direction: column; text-align: center; }

  /* --- Timeline --- */
  .timeline           { grid-template-columns: repeat(2, 1fr); }

  /* --- Section head row --- */
  .section-head-row   { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   768px — Tablet portrait
   ============================================================ */
@media (max-width: 768px) {

  /* --- Typography scale --- */
  .hero-copy h1       { font-size: 36px; }
  .page-hero h1       { font-size: 30px; }
  .page-hero          { padding: 54px 0 44px; }
  .page-hero p        { font-size: 14px; }
  .section            { padding: 72px 0; }

  /* --- Logo --- */
  .logo-badge         { width: 200px; height: auto; object-position: center; }

  /* --- Speciality grid --- */
  .speciality-grid    { grid-template-columns: repeat(3, 1fr); gap: 14px; }

  /* --- Doctor filter --- */
  .doctor-filter      { gap: 8px; }
  .doctor-filter button { padding: 8px 14px; font-size: 12.5px; }

  /* --- Cards --- */
  .card-grid          { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .feature-card       { padding: 26px 20px; }
  .feature-card h3    { font-size: 17px; }

  /* --- Doctor listing card mobile alignment --- */
  .doctor-info .meta { flex-direction: column; gap: 6px; align-items: flex-start; }
  .doctor-info .meta span { flex-wrap: wrap; word-break: break-word; }
  .doctor-info h3 { font-size: 16px; }
  .doctor-info .role { font-size: 12px; }
  .doctor-card .doctor-actions { gap: 6px; }

  /* --- Footer --- */
  .footer-grid        { grid-template-columns: 1fr; gap: 28px; }
  .footer-about p     { max-width: 100%; }
  .site-footer        { padding: 50px 0 0; }

  /* --- Contact --- */
  .contact-info-card  { padding: 30px 22px; }
  .map-embed          { height: 280px; margin-top: 36px; }

  /* --- About badge --- */
  .about-badge        { position: static; margin-top: 24px; align-self: flex-start; }

  /* --- Timeline --- */
  .timeline           { grid-template-columns: 1fr 1fr; }

  /* --- CTA --- */
  .cta-banner         { padding: 34px 24px; border-radius: 20px; }
  .cta-points         { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ============================================================
   640px — Mobile landscape / large phone
   ============================================================ */
@media (max-width: 640px) {

  /* --- Container padding --- */
  .container          { padding: 0 16px; }

  /* --- Typography --- */
  .hero-copy h1       { font-size: 30px; line-height: 1.25; }
  .page-hero h1       { font-size: 26px; }
  .page-hero          { padding: 46px 0 36px; }
  .section            { padding: 60px 0; }
  .section-head       { margin-bottom: 36px; }
  .section-head h2    { font-size: 24px; }

  /* --- Hero --- */
  .hero               { padding: 40px 0 110px; background-image: linear-gradient(180deg, rgba(24,18,17,.48), rgba(24,18,17,.72)), url("../images/hera-home-building-cashless-247.png"); background-position: center, center top; background-repeat: no-repeat; background-size: auto, 100% auto; background-color:#181211; }
  .hero-copy p        { font-size: 15px; }
  .hero-actions       { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn  { width: 100%; max-width: 340px; justify-content: center; }
  .hero-visual        { max-width: 260px; }

  /* --- Stats bar --- */
  .stats-bar          { margin-top: -50px; }
  .stats-card         { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px; border-radius: 16px; }
  .stat               { padding: 14px 0; border-bottom: 1px solid var(--line); border-right: none; }
  .stat:last-child    { border-bottom: none; }

  /* --- Grids — all to 1 column --- */
  .speciality-grid                        { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-grid, .card-grid.cols-3,
  .card-grid.cols-2                       { grid-template-columns: 1fr; gap: 16px; }
  .cta-points                             { grid-template-columns: 1fr; gap: 12px; }
  .mv-grid                                { grid-template-columns: 1fr; }
  .timeline                               { grid-template-columns: 1fr; }
  .form-grid                              { grid-template-columns: 1fr; }

  /* --- Feature cards --- */
  .feature-card       { padding: 24px 18px; }
  .feature-icon       { width: 52px; height: 52px; font-size: 20px; }

  /* --- Doctor cards --- */
  .doctor-filter      { gap: 6px; }
  .doctor-filter button { padding: 8px 12px; font-size: 12px; }
  .doctor-photo       { height: 160px; font-size: 52px; }
  .doctor-info        { padding: 18px 16px; }
  .doctor-info h3     { font-size: 16px; }

  /* --- Facilities --- */
  .facility-visual    { aspect-ratio: 16 / 6; font-size: 48px; border-radius: 18px; }
  .facility-copy h2   { font-size: 22px; }

  /* --- CTA banner --- */
  .cta-banner         { padding: 28px 20px; border-radius: 18px; }
  .cta-banner h2      { font-size: 22px; }
  .cta-help           { padding: 20px 18px; }
  .cta-help .phone    { font-size: 16px; }

  /* --- Contact --- */
  .contact-info-card  { padding: 26px 18px; border-radius: 20px; }
  .contact-form       { padding: 24px 16px; border-radius: 20px; }
  .map-embed          { height: 240px; margin-top: 28px; border-radius: 16px; }

  /* --- Footer --- */
  .footer-grid        { grid-template-columns: 1fr; gap: 24px; }
  .site-footer        { padding: 40px 0 0; }
  .footer-bottom      { flex-direction: column; text-align: center; font-size: 12px; padding: 20px 0; }

  /* --- Nav --- */
  .nav-wrap           { padding: 12px 16px; }
  .logo-badge         { content: normal; width: 225px; height: auto; object-position: center; }
  .nav-right .btn-primary { display: none; } /* hide "Book Appointment" pill on small screens */

  /* --- Section head row --- */
  .section-head-row   { flex-direction: column; align-items: flex-start; }

  /* --- About visual --- */
  .about-visual       { padding: 24px; border-radius: 20px; }
  .mv-card            { padding: 20px 16px; }

  /* --- Buttons --- */
  .btn                { padding: 13px 22px; font-size: 14px; }
  .btn-sm             { padding: 10px 18px; font-size: 13px; }
}

/* ============================================================
   480px — Small / medium phones
   ============================================================ */
@media (max-width: 480px) {

  .container          { padding: 0 14px; }

  /* --- Typography --- */
  .hero-copy .hero-title { font-size: 28px; line-height: 1.15; }
  .hero-copy h1       { font-size: 26px; }
  .page-hero h1       { font-size: 23px; }
  .section-head h2    { font-size: 22px; }
  .section-head p     { font-size: 14px; }

  /* --- Hero visual --- */
  .hero-visual        { max-width: 220px; }

  /* --- Speciality grid — 2 columns still OK --- */
  .speciality-grid    { gap: 10px; }
  .speciality-card    { padding: 18px 8px 14px; }
  .speciality-card h3 { font-size: 12.5px; }
  .speciality-icon    { width: 48px; height: 48px; font-size: 18px; }

  /* --- Doctor filter --- */
  .doctor-filter      { flex-wrap: wrap; justify-content: center; }
  .doctor-filter button { font-size: 11.5px; padding: 7px 10px; }

  /* --- Doctor cards --- */
  .doctor-photo       { height: 140px; font-size: 44px; }

  /* --- Nav logo --- */
  .logo-badge         { width: 225px; height: auto; object-position: center; }

  /* --- Stats --- */
  .stat-num           { font-size: 19px; }
  .stat-label         { font-size: 11.5px; }
  .stat-icon          { width: 44px; height: 44px; font-size: 17px; }

  /* --- CTA banner --- */
  .cta-banner h2      { font-size: 20px; }
  .cta-help .phone    { font-size: 15px; }

  /* --- Contact form --- */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 14px; padding: 11px 14px; }

  /* --- Facilities --- */
  .facility-copy h2   { font-size: 20px; }
  .facility-copy .check-list li { font-size: 13.5px; }

  /* --- Footer --- */
  .footer-col h4      { font-size: 14px; }
  .footer-col a       { font-size: 13px; }
  .footer-about p     { font-size: 13px; }

  /* --- Map --- */
  .map-embed          { height: 210px; }

  /* --- Page hero --- */
  .page-hero          { padding: 40px 0 30px; }
}

/* ============================================================
   375px — Small phones (iPhone SE, older Android)
   ============================================================ */
@media (max-width: 375px) {

  .container          { padding: 0 12px; }
  .hero-copy h1       { font-size: 23px; }
  .page-hero h1       { font-size: 21px; }
  .section            { padding: 48px 0; }
  .section-head h2    { font-size: 20px; }

  /* --- Keep speciality at 2 cols but tighten --- */
  .speciality-grid    { gap: 8px; }
  .speciality-card    { padding: 14px 6px 12px; }
  .speciality-card h3 { font-size: 11.5px; }

  /* --- Doctor filter wrap --- */
  .doctor-filter      { gap: 5px; }
  .doctor-filter button { font-size: 11px; padding: 6px 9px; }

  /* --- Buttons --- */
  .btn                { padding: 12px 18px; font-size: 13.5px; }
  .btn-sm             { padding: 9px 14px; font-size: 12.5px; }

  /* --- Feature card --- */
  .feature-card       { padding: 20px 14px; }
  .feature-card h3    { font-size: 16px; }

  /* --- Footer --- */
  .site-footer        { padding: 36px 0 0; }

  /* --- Stats --- */
  .stats-card         { padding: 20px 14px; }

  /* --- Contact --- */
  .contact-form       { padding: 20px 12px; }
  .contact-info-card  { padding: 22px 14px; }


/* ---------- Reviews section responsive ---------- */
@media (max-width: 980px){
  .reviews-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 640px){
  .reviews-grid{ grid-template-columns:1fr; }
  .google-rating-badge{ flex-wrap:wrap; justify-content:center; }
}

}

/* ============================================================
   COMPREHENSIVE MOBILE FIXES — applied to ALL pages
   Ensures the entire site works cleanly on mobile phones
   ============================================================ */

/* --- 1. Prevent horizontal scroll on the whole page --- */
html, body { overflow-x: hidden; }

/* --- 2. Container padding on tiny phones --- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
}

/* --- 3. Universal mobile menu (navbar) — show hamburger, hide nav links --- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px 28px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,.15);
    border-top: 1px solid var(--line);
    z-index: 999;
  }
  .nav-links.mobile-open a {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.mobile-open a:last-child { border-bottom: none; }
  .nav-links.mobile-open a.active,
  .nav-links.mobile-open a:hover  { background: var(--bg-soft); color: var(--red); }
  .nav-links.mobile-open a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn-primary { display: none; }
  .site-header { position: relative; }
}

/* --- 4. Hero section mobile --- */
@media (max-width: 960px) {
  .hero { padding: 50px 0 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { text-align: center; min-width: 0; width: 100%; }
  .hero-copy > .eyebrow { max-width: 100%; white-space: normal; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy p { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 110px; }
  .hero-copy .hero-title { font-size: 32px; line-height: 1.15; }
  .hero-copy h1 { font-size: 30px; line-height: 1.25; }
  .hero-copy p { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; max-width: 340px; margin: 0 auto; justify-content: center; }
  .hero-visual { max-width: 260px; }
  .hero-diamond .diamond-tile { font-size: 32px; }
  .accent-diamond { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 30px 0 100px; }
  .hero-copy h1 { font-size: 26px; }
  .hero-copy p { font-size: 14px; }
  .hero-visual { max-width: 200px; }
}

/* --- 5. Stats bar mobile --- */
@media (max-width: 960px) {
  .stats-bar { margin-top: -60px; }
  .stats-card { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 28px 20px; }
  .stat { border-right: none; justify-content: flex-start; padding: 0 8px; }
}

@media (max-width: 640px) {
  .stats-bar { margin-top: -50px; }
  .stats-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px; border-radius: 16px; }
  .stat { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .stat-num { font-size: 24px; }
}

/* --- 6. Specialities grid mobile --- */
@media (max-width: 1080px) {
  .speciality-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .speciality-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .speciality-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .speciality-card { padding: 18px 8px 14px; }
  .speciality-card h3 { font-size: 12.5px; }
  .speciality-icon { width: 48px; height: 48px; font-size: 18px; }
}

/* --- 7. Card grids (services, etc) mobile --- */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .card-grid, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px 18px; }
  .feature-icon { width: 52px; height: 52px; font-size: 20px; }
}

/* --- 8. Section padding mobile --- */
@media (max-width: 960px) {
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 14px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 14px; }
}

/* --- 9. Why Choose Us, Reviews, CTAs mobile --- */
@media (max-width: 1080px) {
  .cta-points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .cta-banner { grid-template-columns: 1fr; padding: 40px 32px; gap: 28px; }
  .cta-banner h2 { font-size: 26px; }
}

@media (max-width: 640px) {
  .cta-points { grid-template-columns: 1fr; gap: 12px; }
  .cta-banner { padding: 28px 20px; border-radius: 18px; }
  .cta-banner h2 { font-size: 22px; }
  .cta-help { padding: 20px 18px; }
  .cta-help .phone { font-size: 16px; }
}

/* --- 10. Reviews grid mobile --- */
@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .google-rating-badge { flex-wrap: wrap; justify-content: center; }
}

/* --- 11. Footer mobile --- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 40px 0 0; }
  .footer-bottom { flex-direction: column; text-align: center; font-size: 12px; padding: 20px 0; }
}

@media (max-width: 480px) {
  .footer-about p { max-width: 100%; }
}

/* --- 12. About page mobile --- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { bottom: -16px; right: 12px; }
  .mv-grid { grid-template-columns: 1fr 1fr; }
  .about-visual { padding: 24px; border-radius: 20px; }
  .mv-card { padding: 20px 16px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mv-grid, .timeline { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }
}

/* --- 13. Facilities page mobile --- */
@media (max-width: 960px) {
  .facility-row, .facility-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
  }
  .facility-row.reverse .facility-visual { order: 1; }
  .facility-row.reverse .facility-copy { order: 2; }
  .facility-visual { aspect-ratio: 16 / 7; font-size: 60px; }
}

@media (max-width: 640px) {
  .facility-visual { aspect-ratio: 16 / 6; font-size: 48px; border-radius: 18px; }
  .facility-copy h2 { font-size: 22px; }
}

@media (max-width: 480px) {
  .facility-visual { aspect-ratio: 4 / 3; font-size: 40px; }
}

/* --- 14. Contact page mobile --- */
@media (max-width: 960px) {
  .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .contact-wrap > * { min-width: 0; }
  .contact-form { padding: 30px 24px; }
}

@media (max-width: 640px) {
  .contact-info-card { padding: 26px 18px; border-radius: 20px; min-width: 0; width: 100%; }
  .contact-item > div:last-child { min-width: 0; flex: 1; }
  .contact-item .v { font-size: 13px; line-height: 1.5; }
  .contact-item .v, .contact-item .v a { overflow-wrap: anywhere; word-break: break-word; }
  .contact-form { padding: 24px 16px; border-radius: 20px; }
  .map-embed { height: 240px; margin-top: 28px; border-radius: 16px; }
}

/* --- 15. Doctors page mobile (filter + cards) --- */
@media (max-width: 640px) {
  .doctor-filter { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .doctor-filter button { padding: 8px 12px; font-size: 12px; }
  .doctor-photo { height: 160px; font-size: 52px; }
  .doctor-info { padding: 18px 16px; }
  .doctor-info h3 { font-size: 16px; }
}

@media (max-width: 480px) {
  .doctor-filter button { font-size: 11.5px; padding: 7px 10px; }
  .doctor-photo { height: 140px; font-size: 44px; }
}

/* --- 16. Buttons and form inputs mobile --- */
@media (max-width: 640px) {
  .btn { padding: 13px 22px; font-size: 14px; }
  .btn-sm { padding: 10px 18px; font-size: 13px; }
}

/* --- 17. Page hero mobile --- */
@media (max-width: 960px) {
  .page-hero { padding: 54px 0 44px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero p { font-size: 14px; }
}

@media (max-width: 640px) {
  .page-hero { padding: 46px 0 36px; }
  .page-hero h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 23px; }
}

/* --- 18. Container padding (universal) --- */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .specialty-list{ grid-template-columns:1fr; }
  .specialty-doctor-card{ grid-template-columns:1fr; }
  .specialty-doctor-card img{ max-height:300px; min-height:0; }
  .specialty-doctor-copy{ padding:22px 18px; }
}

/* Specialty detail pages: preserve the existing stacked phone/tablet flow. */
@media (max-width: 960px) {
  .specialty-overview-layout{ display:block; }
  .specialty-desktop-doctor{ display:none; }
  .specialty-mobile-doctors{ display:block; }
  /* Replace service/condition cards with the relevant doctor on phones and tablets. */
  .specialty-overview-section + .section-soft{ display:none; }
  .specialty-mobile-doctors .specialty-doctor-card{ grid-template-columns:1fr; }
  .specialty-mobile-doctors .specialty-doctor-card img{ width:100%; height:auto; min-height:0; max-height:none; aspect-ratio:3 / 4; object-fit:cover; object-position:center top; }
  .specialty-mobile-doctors .specialty-doctor-copy{ padding:24px 20px 28px; }
}

@media (max-width: 960px) {
  .gallery-photo-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
}
@media (max-width: 560px) {
  .gallery-photo-grid{ grid-template-columns:minmax(0,1fr); gap:16px; }
  .gallery-photo-card figcaption{ padding:11px 13px; }
}

@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .hero-grid{ position:relative; z-index:2; }
  html.hero-intro-pending .hero-copy > .eyebrow,
  html.hero-intro-pending .hero-title-line,
  html.hero-intro-pending .hero-copy > p,
  html.hero-intro-pending .hero-copy > .hero-actions,
  html.hero-intro-pending .hero-copy > .hero-insurance-heading{
    opacity:0;
    transform:translateY(16px);
    pointer-events:none;
  }
  html.hero-intro-playing .hero-copy > .eyebrow{ animation:hero-copy-rise .28s ease-out .05s both; }
  html.hero-intro-playing .hero-title-line:nth-child(1){ animation:hero-copy-rise .3s ease-out .32s both; }
  html.hero-intro-playing .hero-title-line:nth-child(2){ animation:hero-copy-rise .3s ease-out .59s both; }
  html.hero-intro-playing .hero-title-line:nth-child(3){ animation:hero-copy-rise .32s ease-out .86s both; }
  html.hero-intro-playing .hero-copy > p{ animation:hero-copy-rise .32s ease-out 1.2s both; }
  html.hero-intro-playing .hero-copy > .hero-actions{ animation:hero-copy-rise .3s ease-out 1.55s both; }
  html.hero-intro-playing .hero-copy > .hero-insurance-heading{ animation:hero-copy-rise .32s ease-out 1.9s both; }
}
