/* ============================================================
 * VCX Image Hero — universal hero for all pages except home
 * ------------------------------------------------------------
 * Replaces the legacy "hero hero-premium" sky-cloud video block
 * and all page-specific *-hero patterns (prt-hero, pcp-hero,
 * pet-hero, adr-hero, ipr-hero, scd-hero, …) with one
 * consistent dramatic-image hero using the Tampa palm-sunset
 * shot at /assets/img/hero-bg.avif.
 *
 * Structure (HTML):
 *   <section class="vcx-image-hero">
 *     <div class="vcx-image-hero__bg" aria-hidden="true"></div>
 *     <div class="vcx-image-hero__overlay" aria-hidden="true"></div>
 *     <div class="vcx-image-hero__container">
 *       <p  class="vcx-image-hero__eyebrow">…</p>
 *       <h1 class="vcx-image-hero__title">…</h1>
 *       <p  class="vcx-image-hero__lead">…</p>
 *       <div class="vcx-image-hero__ctas">
 *         <a class="vcx-image-hero__cta vcx-image-hero__cta--primary">…</a>
 *         <a class="vcx-image-hero__cta vcx-image-hero__cta--ghost">…</a>
 *       </div>
 *     </div>
 *   </section>
 *
 * Palette: site-wide dark teal (#0C2D2A) tints over the warm
 * sunset photo. Image keeps its mood; teal vignette ties the
 * hero to the rest of the layout so it doesn't read as an
 * out-of-place stock image. Text always white at high contrast.
 * ============================================================ */

.vcx-image-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 62vh, 640px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #FFFFFF !important;
  overflow: hidden;
  font-family: 'Practice', 'Cormorant Garamond', Georgia, serif;
}

/* Background photo. Separate layer so its filter doesn't bleed
 * onto the text. background-image set inline by the section so
 * the URL can be customized per-page later if needed. */
.vcx-image-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/img/hero-bg.avif");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  /* Slightly desaturate + lift contrast so the warm sunset
   * doesn't fight the cool teal site palette. */
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.02); /* hide any rendering edges */
}

/* Tinted veil for legibility — radial darken centred on text,
 * plus a teal wash so the photo cools toward the brand colour. */
.vcx-image-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(6, 24, 28, 0.20) 0%,
      rgba(6, 24, 28, 0.45) 55%,
      rgba(6, 24, 28, 0.78) 100%),
    linear-gradient(90deg,
      rgba(12, 45, 42, 0.55) 0%,
      rgba(12, 45, 42, 0.10) 55%,
      rgba(12, 45, 42, 0.10) 100%),
    radial-gradient(ellipse at 30% 60%, rgba(0,0,0,0.40), transparent 70%);
}

.vcx-image-hero__container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) 32px clamp(48px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  /* Constrain text column for readability over the image */
  text-align: left;
}

.vcx-image-hero__eyebrow {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FD8CE !important;
  font-weight: 600;
  line-height: 1.3;
  max-width: 720px;
}

.vcx-image-hero__title {
  margin: 0;
  font-family: 'Practice', 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  max-width: 22ch;
}

.vcx-image-hero__lead {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  max-width: 60ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.vcx-image-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 12px;
}

.vcx-image-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.vcx-image-hero__cta--primary {
  background: #2BB3C0;
  color: #06181C !important;
  -webkit-text-fill-color: #06181C;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 30px rgba(43, 179, 192, 0.35);
}

.vcx-image-hero__cta--primary:hover,
.vcx-image-hero__cta--primary:focus-visible {
  transform: translateY(-1px);
  background: #4DC8D4;
  outline: none;
  box-shadow: 0 18px 38px rgba(43, 179, 192, 0.45);
}

.vcx-image-hero__cta--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.vcx-image-hero__cta--ghost:hover,
.vcx-image-hero__cta--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
  transform: translateY(-1px);
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .vcx-image-hero { min-height: clamp(380px, 56vh, 520px); }
  .vcx-image-hero__container {
    padding: clamp(48px, 8vh, 72px) 24px clamp(40px, 6vh, 56px);
  }
  .vcx-image-hero__title { max-width: 26ch; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .vcx-image-hero { min-height: 380px; }
  .vcx-image-hero__container {
    padding: 56px 20px 40px;
    gap: 14px;
  }
  .vcx-image-hero__eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; }
  .vcx-image-hero__title   { font-size: 2.05rem; line-height: 1.12; }
  .vcx-image-hero__lead    { font-size: 0.98rem; line-height: 1.5; }
  .vcx-image-hero__cta     { padding: 12px 20px; font-size: 0.92rem; width: 100%; justify-content: center; }
  .vcx-image-hero__bg      { background-position: center 50%; }
}

/* Reduced motion — stop the subtle scale on the bg */
@media (prefers-reduced-motion: reduce) {
  .vcx-image-hero__bg { transform: none; }
}
