/* =========================================================
   EDC Hero — Immersive (3 light theme variants)

   Base: full-bleed background photo with a wash overlay. The
   photo, chip, headline, body, CTA and form card are shared.
   Each variant overrides the overlay + text colors to lighten
   the composition:
     · edc-hero-immersive--light-wash    — warm-white gradient wash, dark text
     · edc-hero-immersive--diagonal      — solid cream on left, photo on right (diagonal clip)
     · edc-hero-immersive--frosted-panel — no dark overlay; copy floats in a frosted white panel
========================================================= */
.edc-hero-immersive {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 96px var(--edc-space-gutter);
  isolation: isolate;
  color: var(--edc-obsidian);   /* light-forward default */
}
@media (min-width: 1024px) { .edc-hero-immersive { padding: 120px var(--edc-section-h); min-height: 720px; } }

/* Layer 1 — the photo */
.edc-hero-immersive__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform-origin: center;
  will-change: transform;
}

/* Layer 2 — wash overlay (per-variant paint) */
.edc-hero-immersive__wash {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ─── Variant A: Light Wash ───
   Warm-white gradient overlay left→right so copy sits on a
   readable soft surface while the photo still peeks through. */
.edc-hero-immersive--light-wash .edc-hero-immersive__wash {
  background: linear-gradient(
    90deg,
    rgba(250, 248, 244, 0.96) 0%,
    rgba(250, 248, 244, 0.72) 45%,
    rgba(250, 248, 244, 0.20) 100%
  );
}

/* ─── Variant B: Diagonal Split ───
   Solid cream fills the left half, cutting off diagonally to
   reveal the photo cleanly on the right. Copy sits on the cream. */
.edc-hero-immersive--diagonal .edc-hero-immersive__wash {
  background: #F7F3EB;
  clip-path: polygon(0 0, 62% 0, 48% 100%, 0 100%);
}
@media (max-width: 1023px) {
  /* On mobile the diagonal doesn't make sense — fall back to full wash */
  .edc-hero-immersive--diagonal .edc-hero-immersive__wash {
    clip-path: none;
    background: linear-gradient(180deg, rgba(247, 243, 235, 0.95) 0%, rgba(247, 243, 235, 0.75) 100%);
  }
}

/* ─── Variant C: Frosted Panel ───
   No large overlay — photo is fully visible. Copy floats in
   a frosted glass panel on the left, form on the right. */
.edc-hero-immersive--frosted-panel .edc-hero-immersive__wash {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.14) 100%);
  /* subtle darken so ANY photo has minimum contrast for the panels below */
}

/* ─── Variant D: Dark Wash (original) ───
   Heavy obsidian gradient overlay left→right. Light text on
   the dark side, form card is glassmorphic-on-dark. Included
   for direct comparison against the lighter variants above. */
.edc-hero-immersive--dark-wash .edc-hero-immersive__wash {
  background:
    linear-gradient(90deg, rgba(20, 20, 19, 0.85) 0%, rgba(20, 20, 19, 0.55) 45%, rgba(20, 20, 19, 0.20) 100%),
    linear-gradient(180deg, rgba(20, 20, 19, 0.20) 0%, transparent 40%, rgba(20, 20, 19, 0.35) 100%);
}
.edc-hero-immersive--dark-wash { color: var(--edc-warm-white); }
.edc-hero-immersive--dark-wash .edc-hero-immersive__chip {
  background: rgba(250, 248, 244, 0.12);
  border: 1px solid rgba(250, 248, 244, 0.20);
  color: var(--edc-warm-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.edc-hero-immersive--dark-wash .edc-hero-immersive__title {
  color: var(--edc-warm-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.30);
}
.edc-hero-immersive--dark-wash .edc-hero-immersive__body {
  color: rgba(250, 248, 244, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
/* Dark form card override */
.edc-hero-immersive--dark-wash .edc-hero-immersive__form-card {
  background: rgba(20, 20, 19, 0.55);
  border-color: rgba(250, 248, 244, 0.12);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.55);
  color: var(--edc-warm-white);
}
.edc-hero-immersive--dark-wash .edc-hero-immersive__form-card h3 { color: var(--edc-warm-white); }
.edc-hero-immersive--dark-wash .edc-hero-immersive__form-card p  { color: rgba(250, 248, 244, 0.65); }
.edc-hero-immersive--dark-wash .edc-hero-immersive__form-card label span { color: rgba(250, 248, 244, 0.55); }
.edc-hero-immersive--dark-wash .edc-hero-immersive__form-card input {
  background: rgba(250, 248, 244, 0.06);
  border-color: rgba(250, 248, 244, 0.14);
  color: var(--edc-warm-white);
}
.edc-hero-immersive--dark-wash .edc-hero-immersive__form-card input::placeholder { color: rgba(250, 248, 244, 0.35); }

/* Inner grid */
.edc-hero-immersive__inner {
  position: relative;
  z-index: 2;
  max-width: var(--edc-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .edc-hero-immersive__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
  }
  .edc-hero-immersive__copy      { grid-column: span 7; }
  .edc-hero-immersive__form-wrap { grid-column: 9 / span 4; }
}

/* Copy column */
.edc-hero-immersive__copy { display: flex; flex-direction: column; gap: 32px; }

/* ── Chip — variant paints ── */
.edc-hero-immersive__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: var(--edc-radius-full);
  font-family: var(--edc-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.edc-hero-immersive--light-wash .edc-hero-immersive__chip,
.edc-hero-immersive--diagonal   .edc-hero-immersive__chip {
  background: rgba(242, 184, 27, 0.10);
  border: 1px solid rgba(242, 184, 27, 0.30);
  color: #7a5900;
}
.edc-hero-immersive--frosted-panel .edc-hero-immersive__chip {
  background: rgba(250, 248, 244, 0.90);
  border: 1px solid rgba(224, 221, 216, 0.7);
  color: var(--edc-obsidian);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.edc-hero-immersive__chip .material-symbols-outlined { font-size: 16px !important; color: var(--edc-solar-gold); }

/* ── Title / body — variant paints ── */
.edc-hero-immersive__title {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--edc-obsidian);
  margin: 0;
}
.edc-hero-immersive__accent {
  display: block;
  color: var(--edc-solar-gold);
}
.edc-hero-immersive__body {
  font-family: var(--edc-font-body);
  font-size: var(--edc-fs-body-lead);
  line-height: 1.75;
  color: var(--edc-slate);
  max-width: 560px;
  margin: 0;
}

/* Frosted variant wraps the copy in a translucent panel so text is
   legible on any photo — no dark wash needed. */
.edc-hero-immersive--frosted-panel .edc-hero-immersive__title,
.edc-hero-immersive--frosted-panel .edc-hero-immersive__body {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.25);
  align-self: flex-start;
}
.edc-hero-immersive--frosted-panel .edc-hero-immersive__body { max-width: 560px; }

.edc-hero-immersive__cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: var(--edc-radius-full);
  background: var(--edc-solar-gold);
  color: var(--edc-obsidian);
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(242, 184, 27, 0.55), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform var(--edc-dur-quick), filter var(--edc-dur-quick), box-shadow var(--edc-dur-medium);
}
.edc-hero-immersive__cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  color: var(--edc-obsidian);
  box-shadow: 0 20px 40px -8px rgba(242, 184, 27, 0.70), 0 4px 12px rgba(0,0,0,0.2);
}
.edc-hero-immersive__cta .material-symbols-outlined { font-size: 20px !important; transition: transform var(--edc-dur-quick); }
.edc-hero-immersive__cta:hover .material-symbols-outlined { transform: translateX(4px); }

/* ── Form card — light variant paints ── */
.edc-hero-immersive__form-card {
  padding: 32px;
  border-radius: 20px;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.20);
  display: flex; flex-direction: column; gap: 12px;
  color: var(--edc-obsidian);
}
.edc-hero-immersive__form-card h3 {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 20px;
  margin: 0;
  text-align: center;
  color: var(--edc-obsidian);
}
.edc-hero-immersive__form-card p {
  font-family: var(--edc-font-body);
  font-size: 13px;
  color: var(--edc-slate);
  text-align: center;
  margin: 0 0 12px 0;
}
.edc-hero-immersive__form-card form { display: flex; flex-direction: column; gap: 12px; }
.edc-hero-immersive__form-card label { display: flex; flex-direction: column; gap: 4px; }
.edc-hero-immersive__form-card label span {
  font-family: var(--edc-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(41, 41, 40, 0.6);
}
.edc-hero-immersive__form-card input {
  padding: 10px 12px;
  border: 1px solid rgba(90, 89, 86, 0.20);
  border-radius: 8px;
  background: #ffffff;
  color: var(--edc-obsidian);
  font-family: var(--edc-font-body);
  font-size: 14px;
  outline: none;
}
.edc-hero-immersive__form-card input::placeholder { color: rgba(90, 89, 86, 0.4); }
.edc-hero-immersive__form-card input:focus {
  border-color: var(--edc-solar-gold);
  box-shadow: 0 0 0 3px rgba(242, 184, 27, 0.20);
}
.edc-hero-immersive__form-card button {
  padding: 14px 24px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--edc-radius-full);
  background: var(--edc-solar-gold);
  color: var(--edc-obsidian);
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: filter var(--edc-dur-quick), transform var(--edc-dur-quick);
}
.edc-hero-immersive__form-card button:hover { filter: brightness(1.06); transform: translateY(-2px); }

/* Motion — Ken Burns on the bg + entrance stagger */
@media (prefers-reduced-motion: no-preference) {
  .edc-hero-immersive__bg {
    animation: edc-immersive-kenburns 24s ease-in-out infinite;
  }
  @keyframes edc-immersive-kenburns {
    0%, 100% { transform: scale(1.05) translate(0, 0); }
    50%      { transform: scale(1.15) translate(-1.5%, -1%); }
  }
  .edc-hero-immersive__chip,
  .edc-hero-immersive__title,
  .edc-hero-immersive__body,
  .edc-hero-immersive__cta,
  .edc-hero-immersive__form-wrap {
    opacity: 0;
    transform: translateY(20px);
    animation: edc-immersive-rise 800ms var(--edc-ease-out) forwards;
  }
  .edc-hero-immersive__chip       { animation-delay:   0ms; }
  .edc-hero-immersive__title      { animation-delay: 120ms; }
  .edc-hero-immersive__body       { animation-delay: 280ms; }
  .edc-hero-immersive__cta        { animation-delay: 440ms; }
  .edc-hero-immersive__form-wrap  { animation-delay: 200ms; }
  @keyframes edc-immersive-rise { to { opacity: 1; transform: translateY(0); } }
}
