/* ==========================================================================
   V18 — INDUSTRY HERO PHOTOS (v18-industry-photos.css)
   Linked LAST on the 18 industry pages only (industries/index.html + the
   17 industry sub-pages). Placement / sizing / crop ONLY: no img src/alt,
   no copy, no page structure and no Cal.com attribute is changed here.

   ROOT CAUSE (measured 2026-11-09, Playwright headless, 1440/768/390):
   every industry hero photo sits in .page-hero-visual, a cream card
   (background #e8e5df). The inline v13 <style> (first in <head>) forces
   .page-hero-figure{margin:2.75rem 0 0!important} — 44px — so the figure
   sits 44px BELOW the top of its own cream card on every page at every
   width (gapTop = 44px exactly, 17/17 card pages, 3/3 widths). The card
   also had overflow:visible (v16-industry-white) while the figure kept
   border-radius:32px + overflow:hidden, so the static caption below the
   photo was squeezed and its descenders were clipped by the figure's
   bottom edge (visible on real-estate, flooring, salons). The photo
   itself was fine: 16/9 cover, object-position center 35% (22% on the
   two .v13-hero-portrait pages), faces visible — so the ratio and the
   focal points are KEPT, only the card/figure geometry is fixed.
   Flooring has no .page-hero-visual wrapper (standalone figure, no cream
   card, no 44px band) — the caption rule below covers it; its figure
   margin is plain spacing on the dark hero and is left alone.
   Colours are exactly V17: card cream #e8e5df, caption ink #3F434A.
   ========================================================================== */

/* --- 1. The card: keep the V17 cream card, its radius and its shadow.
   overflow:hidden so the photo is clipped to the card's own rounded
   corners (edge to edge). height/aspect back to auto — the card is
   exactly as tall as photo + caption, nothing more. --- */
main#main.v13-ind section.page-hero:not(.home-hero) .page-hero-visual {
  background: #e8e5df !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  align-self: center;
}

/* --- 2. The figure: NO top margin (this was the 44px cream band).
   Square corners + overflow visible inside the card: the card's own
   overflow:hidden supplies the rounding, and the caption below the
   photo can no longer be clipped by the figure's bottom edge. --- */
main#main.v13-ind section.page-hero:not(.home-hero) .page-hero-visual .page-hero-figure,
main#main.v13-ind section.page-hero:not(.home-hero) .page-hero-visual figure.split-fig {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* --- 3. The photo: fills the card edge to edge, top and sides.
   16/9 cover + the V17 focal points are kept (35% default, 22% on
   portrait-source pages) so no face or subject moves. Radius/border/
   shadow removed from the img itself — the card supplies the frame. --- */
main#main.v13-ind section.page-hero:not(.home-hero) .page-hero-visual .page-hero-figure img,
main#main.v13-ind section.page-hero:not(.home-hero) .page-hero-visual figure.split-fig img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center 35% !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
main#main.v13-ind.v13-hero-portrait section.page-hero:not(.home-hero) .page-hero-visual .page-hero-figure img {
  object-position: center 22% !important;
}

/* --- 4. The caption: static strip on the cream, with real bottom
   padding so descenders are never cut by the card's bottom edge.
   Applies to every industry hero, including flooring's standalone
   figure (no visual wrapper there). --- */
main#main.v13-ind section.page-hero:not(.home-hero) .page-hero-caption {
  position: static !important;
  background: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #3f434a !important;
  padding: .65rem 1rem .85rem !important;
  margin: 0 !important;
  font-size: .8rem !important;
  line-height: 1.45 !important;
}

/* Flooring (standalone figure, no card): let the caption breathe
   outside the figure's old overflow:hidden clip. */
main#main.v13-ind section.page-hero:not(.home-hero) > .wrap > figure.page-hero-figure {
  overflow: visible !important;
}

/* --- 5. Left-clip guard (checklist L1b / A4 family). The left clipping
   in owner evidence image-77 did NOT reproduce locally: at 800–1680px
   the hero copy sits 44–272px inside the viewport on every industry
   page, scrollWidth == clientWidth, transform none. The most likely
   cause is the Manus preview presenting the page shifted/cropped, but
   these rules make a shifted/clipped hero impossible from our side:
   the copy block can never carry a negative offset or a transform,
   and the page cannot scroll sideways on industry pages. --- */
main#main.v13-ind section.page-hero:not(.home-hero) .wrap {
  margin-inline: auto !important;
}
main#main.v13-ind section.page-hero:not(.home-hero) .kicker,
main#main.v13-ind section.page-hero:not(.home-hero) h1,
main#main.v13-ind section.page-hero:not(.home-hero) .lede,
main#main.v13-ind section.page-hero:not(.home-hero) .cta-row {
  margin-left: 0 !important;
  transform: none !important;
  text-indent: 0 !important;
}
html, body {
  overflow-x: clip;
}

/* --- 6. Mobile / tablet: the same card rules hold at every width —
   no separate mobile geometry, so mobile matches desktop exactly
   (mobile_desktop_parity: same colours, content and order). --- */
