/* ============================================
   EDC Hero — Dark + Form
   Alt homepage hero for A/B against `edc_hero`.
   Dark image background (obsidian wash) · warm-white flipped copy on
   the left · white lead-form card on the right. BEM-namespaced under
   `.edc-hdf__*` so it can coexist with every other hero on the site.
   Top padding for nav clearance is owned by edc-tokens.css.
============================================ */

/* ─── Section shell ─────────────────────────────────────────── */
.edc-hdf {
  position: relative;
  padding: 56px var(--edc-space-gutter) var(--edc-space-xl);
  background: #1c1c1a;                    /* fallback if image fails */
  color: var(--edc-warm-white);
  overflow: hidden;
  isolation: isolate;                     /* keep bg/wash in the section's stacking context */
}
@media (min-width: 1024px) {
  .edc-hdf {
    padding-left: var(--edc-section-h);
    padding-right: var(--edc-section-h);
    padding-top: 64px;
    padding-bottom: 88px;
  }
}

/* ─── Background layers ─────────────────────────────────────── */
.edc-hdf__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #1c1c1a;
  filter: saturate(1.05) brightness(1.0) contrast(1.03);
  z-index: 0;
}
@media (max-width: 1023px) {
  .edc-hdf__bg {
    background-position: center center;
    filter: saturate(1.0) brightness(0.75) contrast(1.05);
  }
}

/* Copy area darker (~0.55) so flipped-white reads, form area lighter
   (~0.20) so photo peeks through around the white form card. */
.edc-hdf__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(28, 28, 26, 0.62) 0%,
      rgba(28, 28, 26, 0.55) 32%,
      rgba(28, 28, 26, 0.40) 58%,
      rgba(28, 28, 26, 0.24) 80%,
      rgba(28, 28, 26, 0.16) 100%),
    radial-gradient(60% 80% at 12% 82%,
      rgba(242, 184, 27, 0.16) 0%,
      rgba(242, 184, 27, 0)   70%),
    linear-gradient(180deg,
      rgba(28, 28, 26, 0.10) 0%,
      rgba(28, 28, 26, 0)   28%,
      rgba(28, 28, 26, 0)   72%,
      rgba(28, 28, 26, 0.28) 100%);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 1023px) {
  /* Stacked layout — uniformly darker so both columns stay legible over
     the photo. */
  .edc-hdf__wash {
    background:
      linear-gradient(180deg,
        rgba(28, 28, 26, 0.80) 0%,
        rgba(28, 28, 26, 0.72) 50%,
        rgba(28, 28, 26, 0.58) 100%),
      radial-gradient(70% 60% at 18% 88%,
        rgba(242, 184, 27, 0.14) 0%,
        rgba(242, 184, 27, 0)   70%);
  }
}

/* Defensive pseudo-wash so dark tint still applies if the .edc-hdf__wash
   div is missing (e.g. stale Elementor cache). Suppressed when the
   real wash div is present. */
.edc-hdf.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(28, 28, 26, 0.55) 0%,
    rgba(28, 28, 26, 0.42) 60%,
    rgba(28, 28, 26, 0.22) 100%);
}
.edc-hdf.has-bg:has(.edc-hdf__wash)::before { display: none; }

/* ─── Inner grid ────────────────────────────────────────────── */
.edc-hdf__inner {
  position: relative;
  z-index: 1;
  max-width: var(--edc-container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 1024px) {
  .edc-hdf__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: start;   /* chip aligns with form card top */
  }
}

/* ─── Copy column ───────────────────────────────────────────── */
.edc-hdf__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-inline-size: 0;
}

/* Chip override — frosted glass on dark image */
.edc-hdf .edc-hero-chip {
  background: rgba(250, 248, 244, 0.08);
  border-color: var(--edc-gold-ring);
  color: var(--edc-warm-white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.edc-hdf .edc-hero-chip .material-symbols-outlined { color: var(--edc-solar-gold); }
.edc-hdf .edc-hero-chip span { color: var(--edc-warm-white); }

.edc-hdf__title {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  /* Match the current homepage hero (.edc-hero__title) exactly so the
     A/B comparison is a fair test of just the dark-image treatment. */
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: var(--edc-lh-tight);
  letter-spacing: var(--edc-track-tight);
  color: var(--edc-warm-white);
  margin: 0;
  text-wrap: balance;
  max-width: 620px;
}
.edc-hdf__title-line,
.edc-hdf__title-suf {
  display: inline;
}
.edc-hdf__title-emph {
  display: inline;
  color: var(--edc-solar-gold);
}
/* Preserve breaks between segments when both plain + emph are present */
.edc-hdf__title-line + .edc-hdf__title-emph,
.edc-hdf__title-emph + .edc-hdf__title-suf { margin-left: 0.35ch; }

.edc-hdf__body {
  font-family: var(--edc-font-body);
  font-size: var(--edc-fs-body-lead);
  line-height: var(--edc-lh-body);
  color: rgba(250, 248, 244, 0.85);
  max-width: 560px;
  margin: 0;
}

.edc-hdf__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edc-hdf__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--edc-font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(250, 248, 244, 0.92);
}
.edc-hdf__bullet-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--edc-gold-tint);
  border: 1px solid var(--edc-gold-ring);
  margin-top: 2px;
}
.edc-hdf__bullet-icon .material-symbols-outlined {
  font-size: 14px !important;
  color: var(--edc-solar-gold);
}

/* ─── CTAs ──────────────────────────────────────────────────── */
.edc-hdf__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.edc-hdf__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--edc-radius-full);
  font-family: var(--edc-font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform var(--edc-dur-quick) var(--edc-ease),
    filter    var(--edc-dur-quick) var(--edc-ease),
    box-shadow var(--edc-dur-quick) var(--edc-ease),
    background var(--edc-dur-quick) var(--edc-ease),
    color     var(--edc-dur-quick) var(--edc-ease),
    border-color var(--edc-dur-quick) var(--edc-ease);
}
.edc-hdf__btn .material-symbols-outlined { font-size: 18px !important; }

.edc-hdf__btn--primary {
  background: var(--edc-solar-gold);
  color: var(--edc-obsidian);
  border-color: var(--edc-solar-gold);
  box-shadow: 0 12px 24px -12px rgba(242, 184, 27, 0.55);
}
.edc-hdf__btn--primary:hover {
  filter: brightness(1.05);
  color: var(--edc-obsidian);
  box-shadow: 0 16px 32px -14px rgba(242, 184, 27, 0.65);
}

.edc-hdf__btn--ghost {
  background: transparent;
  color: var(--edc-warm-white);
  border-color: rgba(250, 248, 244, 0.35);
}
.edc-hdf__btn--ghost:hover {
  background: var(--edc-warm-white);
  color: var(--edc-obsidian);
  border-color: var(--edc-warm-white);
}

@media (prefers-reduced-motion: no-preference) {
  .edc-hdf__btn:active { transform: translateY(1px); }
}

/* ─── Form card ─────────────────────────────────────────────── */
.edc-hdf__form-wrap { min-inline-size: 0; }
.edc-hdf__form-card {
  position: relative;
  overflow: hidden;         /* keep ribbon within the rounded card */
  background: #fff;
  border: 1px solid var(--edc-border);
  border-radius: var(--edc-radius-xl);
  padding: 28px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.45);
}
@media (min-width: 1024px) {
  .edc-hdf__form-card { padding: 36px; }
}

/* "Free Consultation" ribbon — mirrors Option A (.edc-hero__ribbon) */
.edc-hdf__form-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 14px;
  background: var(--edc-solar-gold);
  color: var(--edc-obsidian);
  border-bottom-left-radius: 12px;
  font-family: var(--edc-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 2;
}

/* Center-aligned form head — matches Option A rhythm */
.edc-hdf__form-head {
  text-align: center;
  margin: 0 0 28px;
}
.edc-hdf__form-title {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--edc-obsidian);
  margin: 0 0 10px;
}
.edc-hdf__form-sub {
  font-family: var(--edc-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--edc-slate);
  margin: 0 auto;
  max-width: 42ch;
}

.edc-hdf__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-inline-size: 0;
}
.edc-hdf__form-row {
  display: grid;
  gap: 14px;
  min-inline-size: 0;
}
.edc-hdf__form-row--2 { grid-template-columns: 1fr; }
@media (min-width: 520px) {
  .edc-hdf__form-row--2 { grid-template-columns: 1fr 1fr; }
}

.edc-hdf__form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-inline-size: 0;
}
.edc-hdf__form-label {
  font-family: var(--edc-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--edc-obsidian);
}
.edc-hdf__form-field input[type="text"],
.edc-hdf__form-field input[type="email"],
.edc-hdf__form-field select {
  font-family: var(--edc-font-body);
  font-size: 14.5px;
  color: var(--edc-obsidian);
  background: var(--edc-warm-white);
  border: 1px solid var(--edc-border);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
  width: 100%;
  transition:
    border-color var(--edc-dur-quick) var(--edc-ease),
    box-shadow var(--edc-dur-quick) var(--edc-ease),
    background var(--edc-dur-quick) var(--edc-ease);
}
.edc-hdf__form-field input:focus,
.edc-hdf__form-field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--edc-solar-gold);
  box-shadow: 0 0 0 3px rgba(242, 184, 27, 0.20);
}
.edc-hdf__form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%235A5956' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.edc-hdf__form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--edc-obsidian);
  background: var(--edc-solar-gold);
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 12px 24px -12px rgba(242, 184, 27, 0.55);
  transition:
    transform var(--edc-dur-quick) var(--edc-ease),
    box-shadow var(--edc-dur-quick) var(--edc-ease),
    filter    var(--edc-dur-quick) var(--edc-ease);
}
.edc-hdf__form-submit .material-symbols-outlined { font-size: 18px !important; }
.edc-hdf__form-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 32px -14px rgba(242, 184, 27, 0.65);
}
@media (prefers-reduced-motion: no-preference) {
  .edc-hdf__form-submit:active { transform: translateY(1px); }
}

.edc-hdf__form-trust {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.edc-hdf__form-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--edc-font-body);
  font-size: 12px;
  color: var(--edc-slate);
}
.edc-hdf__form-trust .material-symbols-outlined {
  font-size: 14px !important;
  color: var(--edc-solar-gold);
}
