/* ══════════════════════════════════════
   HERO — Device-Compatible CSS
   ══════════════════════════════════════ */

/* ── Wrapper ── */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* mobile browser address-bar fix */
  overflow: hidden;
}

/* ── Background Slides ── */
.bg-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s ease;
}

.bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-slide.hidden  { opacity: 0; }
.bg-slide.visible { opacity: 1; }

/* ── Overlay ──
   background-attachment: fixed is removed — it breaks on iOS Safari.
   The image is kept via background-image but attachment set to scroll. */
.overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to left bottom,
      rgba(5, 25, 55, 0.95),
      rgba(0, 77, 122, 0.95),
      rgba(0, 135, 147, 0.9),
      rgba(0, 191, 114, 0.9),
      rgba(168, 235, 18, 0.35)
    ),
    url("../Assets/image/Home Help.jpg");
  background-size: cover;
  background-attachment: scroll; /* was: fixed — broken on iOS */
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* ── Hero Inner ──
   Uses clamp() on the column widths so the layout scales
   fluidly rather than jumping at hard breakpoints. */
.hero-inner {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 70px 8%;
  display: grid;
  grid-template-columns: 1fr clamp(320px, 28vw, 480px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

.hero-left { color: #fff; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: #F5A623;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ── Stars ── */
.stars-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.stars     { display: flex; gap: 2px; }
.stars svg { fill: #F5A623; }

.stars-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Slide Container ── */
.slide-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  padding-top: 7%;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.68, 0, 1.15);
  pointer-events: none;
}

.slide-item.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide-item.out {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.55, 0, 1, 0.45);
}

/* ── Heading ──
   clamp() gives a smooth fluid scale from 30px (small desktop)
   up to 60px (large desktop), replacing the hard 1600px jump. */
.heading-line {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 60px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  display: block;
}

.heading-accent {
  color: #F5A623;
  font-style: italic;
}

.subtext {
  font-size: clamp(14px, 1.1vw, 16.5px);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin-top: 4px;
}

.subtext b { color: #fff; font-weight: 600; }

/* ── Trust Row ── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.t-icon {
  width: clamp(25px, 2vw, 32px);
  height: clamp(25px, 2vw, 32px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-title {
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 600;
  color: #fff;
}

.t-sub {
  font-size: clamp(11px, 0.85vw, 13px);
  color: rgba(255, 255, 255, 0.6);
}

/* ── Buttons ── */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btnP {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(11px, 0.9vw, 14.5px);
  font-weight: 600;
  padding: clamp(8px, 0.7vw, 12px) 26px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  touch-action: manipulation;
  min-height: 46px;
  box-sizing: border-box;
}

.btnG {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(11px, 0.9vw, 14.5px);
  font-weight: 500;
  padding: clamp(8px, 0.7vw, 12px) 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  touch-action: manipulation;
  min-height: 46px;
  box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
  .btnP:hover          { transform: translateY(-2px); transition: 0.5s ease-in-out; color: white; }
  .btnP:hover i        { color: black; transition: 0.5s ease-in-out; }
  .btnG:hover          { background: var(--secondary); transform: translateY(-2px); color: var(--text-mid); transition: 0.5s ease-in-out; }
  .qtag:hover          { background: rgba(255, 255, 255, 0.15); color: white; }
  .form-btn:hover      { opacity: 0.9; transform: translateY(-1px); }
}

.btnP:active { transform: scale(0.97); }
.btnG:active { transform: scale(0.97); }

/* ── Quick Tags ── */
.qtags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
}

.ql { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.qtag {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  touch-action: manipulation;
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-n {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 700;
  color: #fff;
}

.stat-l {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* ── Dots ── */
.slide-dots { display: flex; gap: 8px; margin-top: 16px; }

.dot {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.dot.active {
  background: var(--accent);
  width: 36px;
  border-radius: 45px;
}

/* ── Form Card ── */
.form-card {
  background: #fff;
  margin-top: 45px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.form-top {
  padding: clamp(16px, 1.5vw, 22px) clamp(16px, 1.8vw, 24px) 18px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-radius: 16px 16px 0 0;
}

.form-top-icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ft-title {
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 700;
  line-height: 1.2;
}

.ft-sub {
  font-size: clamp(11px, 0.85vw, 12px);
  margin-top: 3px;
}

.chips {
  display: flex;
  gap: 8px;
  padding: 9px clamp(16px, 1.8vw, 24px);
  background: #eef4ff;
  border-bottom: 1px solid #d8e6f8;
  flex-wrap: wrap;
}

.chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1A4FA0;
}

.form-body {
  padding: clamp(16px, 1.5vw, 20px) clamp(16px, 1.8vw, 24px) 18px;
}

.field { margin-bottom: 13px; }

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  padding: clamp(10px, 0.9vw, 14px) 12px;
  border: 1.5px solid var(--themeColorRGBA04);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: clamp(11px, 0.85vw, 13.5px);
  color: #1a202c;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  min-height: 46px;
}

.field input:focus,
.field select:focus {
  border-color: #1A4FA0;
  box-shadow: 0 0 0 3px rgba(26, 79, 160, 0.1);
}

.field input::placeholder { color: #a0aec0; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
}

.form-row      { display: flex; gap: 10px; }
.form-row .field { flex: 1; }

.form-btn {
  width: 100%;
  padding: clamp(11px, 0.9vw, 14px);
  background: var(--secondary);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: clamp(12px, 0.95vw, 14.5px);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 0.2s, transform 0.15s;
  touch-action: manipulation;
  min-height: 48px;
  box-sizing: border-box;
}

.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: #718096;
  margin-top: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* ══════════════════════════════════════
   BREAKPOINTS — mobile-first cascade
   (ordered small → large so later rules
    correctly override earlier ones)
   ══════════════════════════════════════ */

/* ── Small Mobile (≤ 400px) ── */
@media (max-width: 400px) {
  .hero-inner {
    padding: 120px 16px 32px;
  }

  .heading-line {
    font-size: 26px;
    line-height: 1.4;
  }

  .subtext { font-size: 14px; }

  .stats-bar { gap: 10px; }

  .form-body    { padding: 16px; }
  .form-top     { padding: 16px 16px 14px; }
  .chips        { padding: 8px 16px; }
}

/* ══════════════════════════════════════
   LIGHT MODE — small devices (≤ 768px)
   ══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Kill the dark overlay */
  .overlay { opacity: 0; }

  /* White page background */
  .hero-wrap,
  .hero-inner { background: #f5f7f2; }

  /* Hide background slideshow images */
  .bg-slide { opacity: 0 !important; }

  /* ── Text goes dark ── */
  .hero-left    { color: #1a2e0a; }
  .heading-line { color: #1a2e0a; font-size: clamp(26px, 7vw, 38px); line-height: 1.2; }
  .subtext      { color: #4a5568; font-size: 15px; }
  .subtext b    { color: #1a2e0a; }
  .t-title      { color: #1a2e0a; }
  .t-sub        { color: #6b8060; }
  .stat-n       { color: #1a2e0a; }
  .stat-l       { color: #6b8060; }
  .stars-text   { color: #4a5568; }
  .ql           { color: #6b8060; }

  /* ── Badge ── */
  .badge {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.5);
  }

  /* ── Stats bar ── */
  .stats-bar {
    border-top-color: rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ── Buttons ── */
  .btnP { background: var(--primary); color: #fff; }
  .btnG { background: #fff; color: #1a2e0a; border-color: rgba(0, 0, 0, 0.18); }

  /* ── Quick tags ── */
  .qtag {
    color: #3a5020;
    border-color: rgba(83, 183, 0, 0.35);
    background: rgba(83, 183, 0, 0.07);
  }

  /* ── Dots ── */
  .dot { background: rgba(0, 0, 0, 0.18); }

  /* ── Form card ── */
  .form-card { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); }

  /* ── Slide container ── */
  .slide-container { padding-top: 0; }

  /* ── Form row stacks ── */
  .form-row { flex-direction: column; gap: 0; }
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 120px 20px 40px;
    gap: 30px;
  }

  .hero-right { order: 1; }

  .stats-bar { gap: 16px; }

  .form-card { margin-top: 0; }
}