/* v0.9.1 mobile QA pass (360/390/412). Loaded last on every native page.
   "html body" prefix beats WooCommerce's ".woocommerce img { height: auto }" and Hello's layered button reset. */

/* 1. Archive/home hero: background image always covers the whole hero block, however tall the copy gets */
html body .aqa-hero { min-height: clamp(360px, 46vw, 520px); }
html body .aqa-hero > .aqa-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; object-position: center 40%;
}
html body .aqh-range img,
html body .aqa-tile-media img,
html body .aqa-card-media img,
html body .aqa-about-media img,
html body .aq-gallery-thumbs img,
html body .aq-swatch img,
html body .aq-feature-media img { height: 100%; max-height: none; }
@media (max-width: 640px) {
  html body .aqa-hero { min-height: 440px; }
  html body .aqa-hero::after { background: linear-gradient(0deg, rgba(10,20,28,0.92) 0%, rgba(10,20,28,0.68) 55%, rgba(10,20,28,0.35) 100%); }
}

/* 2. Hamburger: real 44x44 tap target with a clearly visible icon */
html body .aq-site-header .aq-nav-toggle {
  width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0 -4px 0 0;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 10px; background: rgba(255,255,255,0.06);
  color: #fff; line-height: 0;
}
html body .aq-site-header .aq-nav-toggle svg { width: 26px; height: 26px; flex: 0 0 26px; stroke-width: 2.2; }
html body .aq-site-header .aq-nav-toggle:focus-visible { outline: 2px solid var(--aq-gold, #E8C25A); outline-offset: 2px; }
html body .aq-mobile-close {
  min-width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; border-radius: 10px; color: #fff; background: transparent;
}
html body .aq-mobile-list a, html body .aq-mobile-list button { min-height: 48px; }
html body .aq-mobile-back { min-height: 44px; padding: 0 0.4rem; }

/* 3. Tap targets */
@media (max-width: 1024px) {
  html body .aqa-tile-sub a { display: inline-flex; align-items: center; min-height: 40px; padding: 0.4rem 0.8rem; font-size: 0.82rem; }
  html body .aqa-tile-sub { gap: 0.45rem; }
  html body .aqa-arrow-link { min-height: 44px; }
  html body .aqa-enquire-links { gap: 0.15rem; }
  html body .aqa-enquire-links a { display: inline-flex; align-items: center; min-height: 44px; }
  html body .aq-hero-links { gap: 0.1rem 1.1rem; }
  html body .aq-hero-links a { display: inline-flex; align-items: center; min-height: 44px; }
  html body .aq-faq summary { display: flex; align-items: center; min-height: 48px; padding: 0.35rem 0; }
  html body .aq-jetmap-hotspot::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
  html body .aq-clear-btn { min-height: 40px; }
  /* Elementor enquiry forms: bigger checkbox and radio targets, full-width fields */
  html body .elementor-field-type-checkbox input[type="checkbox"],
  html body .elementor-field-type-acceptance input[type="checkbox"],
  html body .elementor-field-type-radio input[type="radio"] { width: 22px; height: 22px; margin: 0 0.55rem 0 0; flex: 0 0 22px; accent-color: var(--aq-navy, #2F4858); }
  html body .elementor-field-option { display: inline-flex; align-items: center; min-height: 40px; }
  html body .elementor-field-option label { cursor: pointer; }
  html body .aq-form-embed .e-con,
  html body .aq-form-embed .e-con-inner { --padding-left: 0px; --padding-right: 0px; padding-left: 0; padding-right: 0; }
  html body .aq-form-embed .elementor-widget-container { padding-left: 0; padding-right: 0; }
  html body .aq-form-embed .elementor-button { min-height: 48px; }
}

/* 4. Legacy sauna PDP template: the grid column was sized to its widest child and ran off the right edge */
@media (max-width: 991px) {
  html body .aq-sauna-wrap .aq-hero-grid { grid-template-columns: minmax(0, 1fr); }
  html body .aq-sauna-wrap .aq-hero-grid > * { min-width: 0; }
}
@media (max-width: 640px) {
  html body .aq-sauna-wrap .aq-container { width: 100%; padding: 0 1rem; }
  html body .aq-sauna-wrap .aq-enquiry-card { padding: 1.5rem 1.1rem; }
  html body .aq-sauna-wrap .aq-side-features-card { padding-left: 1rem; padding-right: 1rem; }
}
/* Sauna sticky quote bar: compact two-row layout so it no longer covers a fifth of the screen */
@media (max-width: 599px) {
  html body .aq-sauna-wrap .aq-sticky-bar { padding: 0.55rem 0 calc(0.55rem + env(safe-area-inset-bottom, 0px)); }
  html body .aq-sauna-wrap .aq-sticky-flex { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem 0.75rem; align-items: center; }
  html body .aq-sauna-wrap .aq-sticky-actions { display: contents; }
  html body .aq-sauna-wrap .aq-sticky-config,
  html body .aq-sauna-wrap .aq-sticky-price > span { display: none; }
  html body .aq-sauna-wrap .aq-sticky-meta { min-width: 0; }
  html body .aq-sauna-wrap .aq-sticky-meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body .aq-sauna-wrap .aq-sticky-price { text-align: right; }
  html body .aq-sauna-wrap .aq-sticky-cta { grid-column: 1 / -1; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0.55rem 1rem; }
}

/* Product cards: the whole card is one tap target (title link stretched over the card) */
html body .aqa-card { position: relative; }
html body .aqa-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
html body .aqa-card-cta { position: relative; z-index: 2; min-height: 40px; display: inline-flex; align-items: center; }
