/* ==========================================================================
   Hero Section
   ========================================================================== */

/* ── Section shell ────────────────────────────────────────────────────── */

.iwd-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 75vh;
  background-color: #f9f7f4; /* safe default */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ── Background layers ────────────────────────────────────────────────── */

.iwd-hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.iwd-hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iwd-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0.45);
}

/* ── Inner / content ──────────────────────────────────────────────────── */

.iwd-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  justify-content: center;
}

.iwd-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  gap: 20px;
}

/* ── Colour variants for text on dark backgrounds ─────────────────────── */

.iwd-hero--bg-image .iwd-hero__content,
.iwd-hero--bg-video .iwd-hero__content {
  color: #ffffff;
}

/* ── Eyebrow ──────────────────────────────────────────────────────────── */

.iwd-hero__eyebrow {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D97706;
  line-height: 1.4;
}

.iwd-hero--bg-image .iwd-hero__eyebrow,
.iwd-hero--bg-video .iwd-hero__eyebrow {
  color: #ffc84a;
}

/* ── Heading ──────────────────────────────────────────────────────────── */

.iwd-hero__heading {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.iwd-hero--bg-image .iwd-hero__heading,
.iwd-hero--bg-video .iwd-hero__heading {
  color: #ffffff;
}

/* ── Supporting text ──────────────────────────────────────────────────── */

.iwd-hero__subtext {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #444;
  line-height: 1.7;
  max-width: 620px;
}

.iwd-hero--bg-image .iwd-hero__subtext,
.iwd-hero--bg-video .iwd-hero__subtext {
  color: rgba(255, 255, 255, 0.85);
}

.iwd-hero__accent {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #D97706;
  line-height: 1.4;
}

/* ── Dark mode (Light Text on Dark Background) ────────────────────────── */
.iwd-hero--dark .iwd-hero__eyebrow  { color: rgba(255, 255, 255, 0.65); }
.iwd-hero--dark .iwd-hero__heading  { color: #ffffff; }
.iwd-hero--dark .iwd-hero__subtext  { color: rgba(255, 255, 255, 0.7); }
.iwd-hero--dark .iwd-hero__accent   { color: #D97706; } /* stays orange */
.iwd-hero--dark .iwd-hero__microcopy { color: rgba(255, 255, 255, 0.5); }
.iwd-hero--dark .iwd-hero__trust-item { color: rgba(255, 255, 255, 0.75); }

/* Bottom glow overlay — only shown in dark mode */
.iwd-hero__dark-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(217, 119, 6, 0.10));
  pointer-events: none;
}

/* ── Trust builder ────────────────────────────────────────────────────── */

.iwd-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.iwd-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Lato", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.iwd-hero__trust-item i {
  font-size: 13px;
  color: #D97706;
}

a.iwd-hero__trust-item:hover,
a.iwd-hero__trust-item:focus {
  border-color: #D97706;
  background: rgba(217, 119, 6, 0.08);
  text-decoration: none;
}

.iwd-hero--bg-image .iwd-hero__trust-item,
.iwd-hero--bg-video .iwd-hero__trust-item {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.iwd-hero--bg-image .iwd-hero__trust-item i,
.iwd-hero--bg-video .iwd-hero__trust-item i {
  color: #ffc84a;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.iwd-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.iwd-hero__btn {
  display: inline-block;
  font-family: "Lato", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  border-radius: 8px;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.iwd-hero__btn--primary {
  padding: 14px 28px;
  background: #D97706;
  color: #ffffff;
  border: 2px solid #D97706;
}

.iwd-hero__btn--primary:hover,
.iwd-hero__btn--primary:focus {
  opacity: 0.88;
  color: #ffffff;
  text-decoration: none;
}

.iwd-hero__btn--secondary {
  padding: 14px 28px;
  background: transparent;
  color: #0a0a0a;
  border: 2px solid rgba(10, 10, 10, 0.25);
}

.iwd-hero__btn--secondary:hover,
.iwd-hero__btn--secondary:focus {
  border-color: #0a0a0a;
  color: #0a0a0a;
  text-decoration: none;
}

.iwd-hero--bg-image .iwd-hero__btn--secondary,
.iwd-hero--bg-video .iwd-hero__btn--secondary,
.iwd-hero--dark .iwd-hero__btn--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.iwd-hero--bg-image .iwd-hero__btn--secondary:hover,
.iwd-hero--bg-video .iwd-hero__btn--secondary:hover,
.iwd-hero--dark .iwd-hero__btn--secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* ── Micro-copy ───────────────────────────────────────────────────────── */

.iwd-hero__microcopy {
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  color: #787474;
  line-height: 1.5;
}

.iwd-hero--bg-image .iwd-hero__microcopy,
.iwd-hero--bg-video .iwd-hero__microcopy {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Responsive: tablet (≤ 991px) ────────────────────────────────────── */

@media (max-width: 991px) {
  .iwd-hero {
    min-height: 60vh;
  }

  .iwd-hero__inner {
    padding: 60px 20px;
  }

  .iwd-hero__content {
    gap: 16px;
  }

  .iwd-hero__subtext {
    font-size: 16px;
  }
}

/* ── Responsive: mobile (≤ 767px) — always fall back to solid ─────────── */

@media (max-width: 767px) {
  .iwd-hero {
    min-height: 50vh;
    /* Override image/video backgrounds with the safe fallback colour */
    background-image: none !important;
  }

  /* Hide the video element entirely on mobile */
  .iwd-hero__video-bg {
    display: none;
  }

  /* Remove overlay (no longer needed without image/video) */
  .iwd-hero--bg-image .iwd-hero__overlay,
  .iwd-hero--bg-video .iwd-hero__overlay {
    display: none;
  }

  /* Reset all text colours to default dark on mobile */
  .iwd-hero--bg-image .iwd-hero__heading,
  .iwd-hero--bg-video .iwd-hero__heading {
    color: #0a0a0a;
  }

  .iwd-hero--bg-image .iwd-hero__eyebrow,
  .iwd-hero--bg-video .iwd-hero__eyebrow {
    color: #D97706;
  }

  .iwd-hero--bg-image .iwd-hero__subtext,
  .iwd-hero--bg-video .iwd-hero__subtext {
    color: #444;
  }

  .iwd-hero--bg-image .iwd-hero__trust-item,
  .iwd-hero--bg-video .iwd-hero__trust-item {
    color: #0a0a0a;
    border-color: rgba(10, 10, 10, 0.12);
    background: rgba(255, 255, 255, 0.55);
  }

  .iwd-hero--bg-image .iwd-hero__trust-item i,
  .iwd-hero--bg-video .iwd-hero__trust-item i {
    color: #D97706;
  }

  .iwd-hero--bg-image .iwd-hero__btn--secondary,
  .iwd-hero--bg-video .iwd-hero__btn--secondary {
    color: #0a0a0a;
    border-color: rgba(10, 10, 10, 0.25);
  }

  .iwd-hero--bg-image .iwd-hero__microcopy,
  .iwd-hero--bg-video .iwd-hero__microcopy {
    color: #787474;
  }

  .iwd-hero__inner {
    padding: 48px 16px;
  }

  .iwd-hero__content {
    gap: 14px;
    max-width: 100%;
  }

  .iwd-hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .iwd-hero__btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .iwd-hero__trust {
    gap: 8px 12px;
  }
}
