/* ============================================
   EDC Hero — split value-prop + lead form
============================================ */

.edc-hero {
  position: relative;
  overflow: hidden;
  /* Editorial breathing room — enough section padding for the eyebrow
     chip to sit clearly below the fixed nav and for the CTAs to have
     air beneath before the next section. */
  padding: 56px var(--edc-space-gutter) var(--edc-space-xl);
  background-color: var(--edc-warm-white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 1024px) {
  .edc-hero {
    padding-left: var(--edc-section-h);
    padding-right: var(--edc-section-h);
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

.edc-hero__inner {
  max-width: var(--edc-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--edc-space-xl);
  /* Top-align both columns so the copy chip lines up with the form
     card's top edge instead of centring inside the taller form column
     and leaving whitespace above the eyebrow. */
  align-items: start;
  position: relative;
}
@media (min-width: 1024px) {
  .edc-hero__inner { grid-template-columns: 1fr 1fr; }
}

.edc-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;                              /* generous editorial rhythm */
  position: relative;
  z-index: 2;
}

/* Homepage eyebrow now uses the shared .edc-hero-chip utility from
   edc-tokens.css so it visually matches every other page hero. */

.edc-hero__title {
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.15;
  letter-spacing: var(--edc-track-headline);
  color: var(--edc-obsidian);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: 0;
}
.edc-hero__title-line { display: inline; }
.edc-hero__title-emph { color: var(--edc-solar-gold); }

.edc-hero__body {
  font-family: var(--edc-font-body);
  font-size: var(--edc-fs-body-lead);
  line-height: 1.6;
  color: var(--edc-obsidian);
  max-width: 640px;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.edc-hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 20px;
}
.edc-hero__bullets li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--edc-slate);
  font-size: 16px;
  line-height: 1.5;
}
.edc-hero__bullet-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: var(--edc-radius-full);
  background: var(--edc-solar-gold);
  color: var(--edc-obsidian);
}
.edc-hero__bullet-icon .material-symbols-outlined { font-size: 18px !important; font-weight: 700; }

.edc-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  align-items: center;
}

/* ─── Shared button family ─────────────────
   Used across widgets (hero, services bento, faq form).
   Pill-shaped to match the "Talk to us now" header CTA + form submits
   — every prominent action on the site now shares one silhouette.

   Icons inside a button inherit the button's transition — the arrow
   slides 4px on hover (see &__icon rule below), giving the CTA a
   directional pull without extra JS.
============================================ */
.edc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--edc-radius-full);          /* pill — was rounded rect */
  font-family: var(--edc-font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--edc-dur-quick) var(--edc-ease),
              box-shadow var(--edc-dur-medium) var(--edc-ease),
              background-color var(--edc-dur-quick) var(--edc-ease),
              color var(--edc-dur-quick) var(--edc-ease),
              filter var(--edc-dur-quick) var(--edc-ease);
}
.edc-btn .material-symbols-outlined {
  font-size: 20px !important;
  transition: transform var(--edc-dur-quick) var(--edc-ease);
}
.edc-btn:hover .material-symbols-outlined { transform: translateX(4px); }

/* Primary — solid Solar Gold with a gold-tinted lift shadow. */
.edc-btn--primary {
  background: var(--edc-solar-gold);
  color: var(--edc-obsidian);
  box-shadow: 0 8px 20px -8px rgba(242, 184, 27, 0.55),
              0 2px 6px rgba(41, 41, 40, 0.08);
}
.edc-btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  color: var(--edc-obsidian);
  box-shadow: 0 14px 28px -8px rgba(242, 184, 27, 0.7),
              0 4px 10px rgba(41, 41, 40, 0.10);
}
.edc-btn--primary:active { transform: scale(0.97); }

/* Secondary — outline obsidian border, transparent bg. Fills gold-tinted
   on hover for a soft handoff between the two CTA states. */
.edc-btn--outline {
  background: transparent;
  color: var(--edc-obsidian);
  border: 2px solid var(--edc-obsidian);
  font-family: var(--edc-font-heading);
  font-weight: 800;
  letter-spacing: 0.02em;
  /* Sized to match --primary at rest so paired CTAs line up perfectly.
     The 2px border eats into padding so we bump top/bottom by 2px to
     keep the visual height identical. */
  padding: 14px 28px;
}
.edc-btn--outline:hover {
  background: var(--edc-obsidian);
  color: var(--edc-warm-white);
  border-color: var(--edc-obsidian);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(41, 41, 40, 0.35);
}
.edc-btn--outline:active { transform: scale(0.97); }
.edc-btn--full { width: 100%; justify-content: center; }

/* ─── Right column: glassmorphic form card ─── */
.edc-hero__form-wrap { position: relative; z-index: 1; }
.edc-hero__form-card {
  position: relative;                    /* anchor for the ribbon */
  overflow: hidden;                       /* keeps the ribbon corner clipped */
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Card padding sized for comfortable reading — asymmetric so the
     ribbon has room at the top and the trust chips get air at the foot. */
  padding: 40px 36px 32px;
  border-radius: var(--edc-radius-2xl);
  border: 1px solid var(--edc-border);
  box-shadow: var(--edc-shadow-xl);
}

/* Corner ribbon — bottom-left rounded corner tucks behind the card's
   rounded top edge without breaking the card silhouette. */
.edc-hero__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: 1;
}

.edc-hero__form-head {
  text-align: center;
  margin: 0 0 28px 0;
}
.edc-hero__form-head h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--edc-obsidian);
  margin: 0 0 10px 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.edc-hero__form-head p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--edc-slate);
  margin: 0 auto;
  max-width: 42ch;
}

/* Pill-rounded submit — matches the "Talk to us now" header CTA family
   and reads as the primary action inside the card. */
.edc-hero__submit {
  width: 100%;
  padding: 16px 24px;
  margin-top: 8px;
  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: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--edc-shadow-md);
  transition: filter var(--edc-dur-quick) var(--edc-ease),
              transform var(--edc-dur-quick) var(--edc-ease);
}
.edc-hero__submit:hover  { filter: brightness(1.06); transform: translateY(-2px); }
.edc-hero__submit:active { transform: scale(0.98); }

/* Trust row — icon+text chips flow evenly across the card foot. On
   narrow screens they wrap; on desktop they stay on one line. */
.edc-hero__trust {
  list-style: none;
  padding: 20px 0 0 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
}
.edc-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--edc-font-body);
  font-size: 12px;
  color: var(--edc-slate);
}
.edc-hero__trust .material-symbols-outlined {
  color: var(--edc-solar-gold);
  font-size: 16px !important;
  font-weight: 700;
}

/* Reusable form controls (used by hero + inquiry widgets)
   Comfortable spacing — inputs breathe, labels sit clearly above,
   rows have real gutters instead of feeling packed. */
.edc-form { display: flex; flex-direction: column; gap: 18px; }
.edc-form label { display: flex; flex-direction: column; gap: 8px; }
.edc-form__label {
  font-family: var(--edc-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(41, 41, 40, 0.65);
}
.edc-form input,
.edc-form select,
.edc-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--edc-font-body);
  font-size: 14px;
  color: var(--edc-obsidian);
  background: #fff;
  border: 1px solid rgba(90, 89, 86, 0.20);
  border-radius: var(--edc-radius);
  outline: none;
  transition: border-color var(--edc-dur-quick), box-shadow var(--edc-dur-quick);
}
.edc-form select { appearance: none; -webkit-appearance: none; }
.edc-form input:focus,
.edc-form select:focus,
.edc-form textarea:focus {
  border-color: var(--edc-solar-gold);
  box-shadow: 0 0 0 3px var(--edc-gold-tint);
}
.edc-form input::placeholder,
.edc-form textarea::placeholder { color: rgba(90, 89, 86, 0.4); }
.edc-form__row { display: grid; gap: 16px; }
.edc-form__row--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .edc-form__row--2 { grid-template-columns: 1fr 1fr; } }
.edc-form .edc-btn--primary {
  padding: 14px 24px;
  font-size: 16px;
  margin-top: 4px;
}
.edc-form__fine {
  font-size: 12px;
  color: var(--edc-slate);
  text-align: center;
  margin: 8px 0 0 0;
  line-height: 1.5;
}

/* ============================================
   Hero motion — background drift + entrance stagger
   ────────────────────────────────────────────
   Two subtle Solar Gold "orbs" drift slowly behind the copy column, and
   every foreground element fades + rises 16px in sequence on page load.
   Everything is gated behind prefers-reduced-motion: no-preference so
   visitors who ask for reduced motion see the static hero as-is (no
   orbs moving, no stagger, everything at its final position instantly).

   The .edc-hero section already declares overflow: hidden, so the orbs
   never bleed past the section frame despite their negative offsets.
   The copy column is z-index: 2 in the base styles above, so the orbs
   (z-index: 0) sit behind it without covering readable content.
============================================ */
@media (prefers-reduced-motion: no-preference) {

  /* ── Drifting Solar Gold orbs ── */
  .edc-hero__orb {
    position: absolute;
    border-radius: var(--edc-radius-full);
    background: var(--edc-solar-gold);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
  }
  .edc-hero__orb--a {
    top: -80px; left: -60px;
    width: 420px; height: 420px;
    opacity: 0.14;
    animation: edc-hero-drift-a 22s ease-in-out infinite;
  }
  .edc-hero__orb--b {
    top: 40%; right: -80px;
    width: 320px; height: 320px;
    opacity: 0.10;
    animation: edc-hero-drift-b 28s ease-in-out infinite;
  }
  @keyframes edc-hero-drift-a {
    0%, 100% { transform: translate(0, 0)     scale(1);    }
    50%      { transform: translate(60px, 40px) scale(1.08); }
  }
  @keyframes edc-hero-drift-b {
    0%, 100% { transform: translate(0, 0)      scale(1);    }
    50%      { transform: translate(-40px, -30px) scale(1.05); }
  }

  /* ── Entrance stagger ──
     Each element starts at opacity 0 + 16px down, then eases to its
     natural position. `forwards` locks the final frame so the state
     persists after the animation ends. */
  .edc-hero-chip,
  .edc-hero__title,
  .edc-hero__body,
  .edc-hero__bullets li,
  .edc-hero__ctas,
  .edc-hero__form-wrap {
    opacity: 0;
    transform: translateY(16px);
    animation: edc-hero-rise 700ms var(--edc-ease-out) forwards;
  }
  .edc-hero-chip                       { animation-delay:   0ms; }
  .edc-hero__title                     { animation-delay: 100ms; }
  .edc-hero__body                      { animation-delay: 250ms; }
  .edc-hero__bullets li:nth-child(1)   { animation-delay: 400ms; }
  .edc-hero__bullets li:nth-child(2)   { animation-delay: 480ms; }
  .edc-hero__bullets li:nth-child(3)   { animation-delay: 560ms; }
  .edc-hero__ctas                      { animation-delay: 700ms; }
  .edc-hero__form-wrap                 { animation-delay: 150ms; }

  @keyframes edc-hero-rise {
    to { opacity: 1; transform: translateY(0); }
  }
}
