/* ─────────────────────────────────────────────────────────────
   DOCTOR PAGE — #sec-branch (מרכז גלילות), ALIGNED TO THE DESIGN FILE

   Figma: desktop 460:47021 in frame 460:44760 (1920)
          mobile  460:75269 in frame 460:75121 (390)

   DESKTOP — one row, image left, content right, together 1460 wide
     image     230,7756  803x452  radius 20
     content  1060,7756  630x452  — 27 from the image
       title            331x72   Polin Bold 62 / 72, right
       subtitle         630x50   Polin Semibold 36, right
       desc             603x100  Polin Regular 18, right
       info row         503x59   two blocks, 36 either side of the rule
       buttons          192x57 and 265x57, 15 apart, appointment first
     gaps: title → subtitle 16, → desc 26, → info 26, → buttons 46

   MOBILE — stacked, content above the image
     title     131,7041  224x72   Bold 42 / 72, right
     subtitle  138,7112  217x50   Semibold 25 / 25, right, two lines
     desc       35,7195  320x156  Regular 16, right
     info row            320x116  stacked, 10 apart, no rule
     buttons    87,7515  268x134  stacked, 20 apart, both flush right,
                                  APPOINTMENT ON TOP
     image      35,7689  320x250  radius 20
     gaps: subtitle → desc 33, → info 15, → buttons 33, → image 40

   The buttons were the visible problem on a phone: the appointment button
   carries order:4 and the WhatsApp one order:0, so WhatsApp jumped above
   it — the reverse of the design, and of the DOM.

   Not touched, and worth knowing: this whole section is hardcoded to
   Glilot in the template for every doctor, and its subtitle reads
   "מרפאת מומחים" where the design has "מרפאת Dental MC במרכז גלילות".
   Both are content questions — see the 2026-09-08 audit.
   ───────────────────────────────────────────────────────────── */


/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 1025px) {

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__two-cols {
    gap: 27px !important;              /* was 54 */
    align-items: center !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__image-wrap {
    flex: 0 0 803px !important;        /* was 779 */
    max-width: 803px !important;
    width: 803px !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__content {
    flex: 0 0 630px !important;        /* was 587 */
    max-width: 630px !important;
    width: 630px !important;
  }

  /* Was 72 / 79.2 — ten pixels over the design, and out of step with every
     other section heading on the page, which are all 62 / 72. */
  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__title {
    font-size: 62px !important;
    line-height: 72px !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__subtitle {
    margin-top: 16px !important;       /* was 14 */
  }

  /* 603 inside the 630 column, flush right. */
  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__desc {
    max-width: 603px !important;
    margin-right: 0 !important;
    margin-left: auto !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__info-row {
    gap: 36px !important;              /* was 30 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__cta-row {
    gap: 15px !important;              /* was 16 */
    margin-top: 46px !important;       /* was 40 */
  }
}

/* The row is the full 1460 container in the design and the container keeps
   20px of side padding, so the columns were 40px short between them. Only
   dropped where the viewport can still afford a gutter. */
@media (min-width: 1500px) {
  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 767px) {

  /* content → image */
  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__two-cols {
    gap: 40px !important;              /* was 30 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__title {
    margin-bottom: 0 !important;       /* was 10 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__desc {
    margin-top: 33px !important;       /* was 20 */
    margin-bottom: 0 !important;       /* was 25; the info row carries it */
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__info-row {
    gap: 10px !important;              /* was 15 */
    margin-top: 15px !important;       /* was 20 */
    margin-bottom: 33px !important;    /* was 30 */
  }

  /* The order properties put WhatsApp above the appointment button, which
     is the reverse of both the design and the markup. */
  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__cta-row {
    gap: 20px !important;              /* was 15 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__cta-row .dmc-treatment-stack-card__btn {
    order: 1 !important;               /* was 4 */
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__cta-row .dmc-new-hero__btn--whatsapp {
    order: 2 !important;               /* was 0 */
  }

  /* Both buttons sit flush right in the design (87,7515 268x134). The
     mobile block in team-member.css pinned them with margin-left:auto —
     an auto margin on the cross axis of a column flex box, the one case
     engines resolve differently, and on iOS Safari it dropped the
     appointment button against the left edge instead. align-items:
     flex-start already reads as "right" in RTL, so the margins only have
     to stay out of its way. */
  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__cta-row {
    align-items: flex-start !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__cta-row .dmc-treatment-stack-card__btn,
  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__cta-row .dmc-new-hero__btn--whatsapp {
    margin-inline: 0 !important;
  }

  /* The frame crops this to 320x250 rather than letting it keep the
     asset's 16:9. object-fit is already cover, so only the box changes. */
  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__image-wrap {
    aspect-ratio: 320 / 250 !important;
    height: auto !important;
  }

  .dmc-dr-page-wrapper.dmc-dr-story #sec-branch .dmc-new-hero__image {
    height: 100% !important;
    object-fit: cover !important;
  }
}
