/* itbuilder/hero-photographic */

{#
  module.css only supports a very limited subset of HubL (module_asset_url()
  only — no theme.* access), so the {% set %} calls this file used to have
  here never actually resolved. Fixed colours now come from the
  --theme-*-color custom properties published in theme-overrides.css's :root
  (which does have full theme.* access) instead of interpolating theme
  values directly in this file. Per-instance accent colours still come
  through --hero-accent, set inline in module.html.
#}

.hero-photographic {
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* Full-bleed layout (fallback mode — see module.html) */

.hero-photographic--full_bleed .hero-photographic__media {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.hero-photographic--full_bleed .hero-photographic__inner {
  padding: var(--space-8, 80px) var(--grid-gutter, 24px);
  position: relative;
  z-index: 1;
}

.hero-photographic__image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-photographic__image--focal-top { object-position: top; }
.hero-photographic__image--focal-bottom { object-position: bottom; }
.hero-photographic__image--focal-left { object-position: left; }
.hero-photographic__image--focal-right { object-position: right; }
.hero-photographic__image--focal-center { object-position: center; }

/* Conceptual Redesign §8/§9: "deep-navy gradient overlay where text needs to land" */

.hero-photographic--full_bleed .hero-photographic__overlay {
  background: linear-gradient(
    180deg,
    rgba(25, 39, 50, calc(var(--overlay-intensity) / 100 * 0.6)) 0%,
    rgba(25, 39, 50, calc(var(--overlay-intensity) / 100 + 0.25)) 100%
  );
  inset: 0;
  position: absolute;
}

/* Split layout — Aug 2026 Figma mockups (drive-download-20260805T144109Z-1-001):
   photo fills one half, a solid dark panel with the heading/copy/CTAs fills
   the other half. This is now the module's default (module.layout="split"). */

.hero-photographic--split .hero-photographic__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-photographic--split .hero-photographic__media {
  min-height: 280px;
  position: relative;
}

.hero-photographic--split .hero-photographic__media .hero-photographic__image {
  inset: 0;
  position: absolute;
}

.hero-photographic--split .hero-photographic__panel {
  align-items: center;
  background-color: var(--theme-primary-color);
  display: flex;
}

.hero-photographic--split .hero-photographic__inner {
  padding: var(--space-7, 64px) var(--grid-gutter, 24px);
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-photographic--split .hero-photographic__grid {
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
  }

  .hero-photographic--split .hero-photographic__media {
    min-height: 0;
  }

  .hero-photographic--split.hero-photographic--image-right .hero-photographic__media {
    order: 2;
  }

  .hero-photographic--split.hero-photographic--image-right .hero-photographic__panel {
    order: 1;
  }

  .hero-photographic--split .hero-photographic__inner {
    /* Client feedback (Aug 2026): text pane felt tight — bumped both axes
       up to the space-8 token (was 80px/64px) for more breathing room. */
    padding: var(--space-8, 80px);
  }
}

.hero-photographic__eyebrow {
  color: var(--hero-accent, var(--color-pillar-current, var(--theme-accent-color)));
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-photographic__heading,
.hero-photographic__sub-deck {
  color: #fff;
}

/* Split layout only: the mockups tint the heading (and primary button,
   below) with the instance's accent colour instead of plain white — see
   accent_color in fields.json / accent_value_for() in module.html. */

.hero-photographic--split .hero-photographic__heading {
  color: var(--hero-accent, var(--color-pillar-current, var(--theme-accent-color)));
}

.hero-photographic--split .hero-photographic__primary {
  background-color: var(--hero-accent, var(--color-pillar-current, var(--theme-accent-color)));
  border-color: transparent;
  color: #fff;
}

/* Explicit hover/focus override — without this, the sitewide .button:hover
   rule in theme-overrides.css can win on selector-specificity ties
   depending on stylesheet order, and silently drop the accent colour. */

.hero-photographic--split .hero-photographic__primary:hover,
.hero-photographic--split .hero-photographic__primary:focus-visible {
  background-color: var(--hero-accent, var(--color-pillar-current, var(--theme-accent-color)));
  filter: brightness(0.85);
}

.hero-photographic__sub-deck {
  opacity: 0.92;
}

/* Aug 2026 mockups (ITBuilder_HomePage_D03.pdf) show the primary/secondary
   CTAs always stacked vertically, left-aligned, at any viewport width —
   not side-by-side wrapping to a stack only when space runs out. */

.hero-photographic__actions {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 24px);
  margin-top: var(--space-5, 32px);
}

/* Mockups show the secondary CTA as an outlined box button, not an
   underlined text link.

   Sept 2026 fix: squared the corners off (border-radius: 0) to match the
   sitewide no-radius button convention (the primary CTA next to it is
   already square via the sitewide button/.button/.hs-button rule in
   theme-overrides.css — this one just isn't a .button, so it never
   picked that up and kept its own separate rounded-corner value). */

.hero-photographic__secondary {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  text-decoration: none;
  transition: border-color var(--duration-fast, 150ms) var(--ease-standard, ease),
    background-color var(--duration-fast, 150ms) var(--ease-standard, ease);
}

.hero-photographic__secondary:hover,
.hero-photographic__secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* Visual Direction §8: "subtle parallax on hero images" — respects
   prefers-reduced-motion via the zeroed --duration-* tokens, and only
   engages on pointer-capable viewports wide enough that scroll parallax
   reads as intentional rather than as jank on a small screen. */

@media (min-width: 1024px) {
  .hero-photographic__image {
    transition: transform var(--duration-standard, 250ms) var(--ease-standard, ease);
  }
}
