/* ==========================================================================
   HM Salon — responsive fixes (review of 28 Nov 2026)
   Loaded after site.css. Each block is numbered to match the plan.
   ========================================================================== */

/* #2  Sideways scroll on 320–360px phones.
   The 12-column grids keep 11 × 32px column gaps even when every child spans
   the full row, which needs 352px. Below 900px all children span 1 / -1, so
   drop the column gaps. */
@media (max-width: 900px) {
  .hero-grid, .intro-grid, .private-grid, .ba { column-gap: 0; }
}
.ba-frame.ba-portrait { max-width: min(420px, 100%); }

/* #1  320–359px: the header can't fit logo + "Book Appointment" + menu.
   Show a short "Book" label; the full label stays in the bottom bar. */
.btn-label-short { display: none; }
@media (max-width: 359px) {
  .header-actions .btn-label-long { display: none; }
  .header-actions .btn-label-short { display: inline; }
  .header-inner { gap: .75rem; }
  .header-actions { gap: .25rem; }
  .menu-toggle { margin-right: -6px; }
}

/* Long button labels wrap on small phones instead of pushing the page sideways. */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}

/* #3 / #5  Phone and email links: 44px tap height on touch screens. */
@media (pointer: coarse) and (min-width: 1181px) {
  .header-phone { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (pointer: coarse) {
  .footer-contact a,
  .visit-rows a,
  .contact-list a,
  .mobile-menu-foot a:not(.btn),
  .legal a,
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* #4  Checkboxes: 24px box, whole label row tappable. */
input[type="checkbox"], input[type="radio"] { width: 24px; height: 24px; flex: none; accent-color: var(--rose-deep); }
.check, label.check { display: flex; align-items: flex-start; gap: .75rem; min-height: 44px; padding-block: .6rem; cursor: pointer; }

/* Form fields: 16px minimum so iOS never zooms on focus. */
input, select, textarea { font-size: max(16px, 1em); }

/* #6  Large monitors: slightly wider content, larger base size. */
@media (min-width: 1800px) {
  :root { --wrap: 1440px; }
}
@media (min-width: 2400px) {
  :root { --wrap: 1600px; }
  html { font-size: 106.25%; }
}

/* Phones held sideways: shorter hero. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-block: 1.5rem 3rem; }
  .hero-media { display: none; }
  .mobile-menu { padding-top: 1rem; }
}

/* Elementor: HM widgets control their own width and spacing. */
.elementor-widget[data-widget_type^="hm-"] { width: 100%; margin: 0 !important; }
.e-con:has(> .elementor-widget[data-widget_type^="hm-"]),
.e-con:has(> .e-con-inner > .elementor-widget[data-widget_type^="hm-"]) {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px; --margin-top: 0px; --margin-bottom: 0px;
}
.hm-elementor-page .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--wrap); }
/* In the Elementor editor, show everything (no scroll-reveal animations). */
.elementor-editor-active .reveal, .elementor-editor-active .anim-up, .elementor-editor-active .reveal-img,
.elementor-editor-active .reveal-img img { opacity: 1 !important; transform: none !important; animation: none !important; clip-path: none !important; }

/* Elementor's frontend sets img { height: auto } with the same specificity as the theme;
   restore the theme's image sizing inside Elementor pages. (Generated from site.css.) */
.elementor .logo-plate img { width: 74%; height: auto; }
.elementor .hero-img img, .elementor .hero-inset img { width: 100%; height: 100%; object-fit: cover; }
.elementor .hero-img picture { height: 100%; }
.elementor .intro-media img { width: 100%; height: 100%; object-fit: cover; }
.elementor .svc-card-media picture, .elementor .svc-card-media img { width: 100%; height: 100%; }
.elementor .g-open picture, .elementor .g-open img { width: 100%; height: 100%; }
.elementor .ba-layer img, .elementor .ba-layer picture { width: 100%; height: 100%; object-fit: cover; }
.elementor .team-media img { width: 100%; height: 100%; object-fit: cover; }
.elementor .footer-logo img { width: 120px; height: auto; }
.elementor .page-hero-aside img { width: 100%; height: 100%; object-fit: cover; }
.elementor .menu-cat-img picture, .elementor .menu-cat-img img { width: 100%; height: 100%; object-fit: cover; }

/* Accessibility: the rose accent is 4.37:1 on the blush tint; use a deeper rose there (5.3:1). */
.section-tint .eyebrow, .aside-plain .eyebrow { color: #7E4F4B; }
.team-row:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 4px; }
