/* ============================================================
   assets/css/hero-slider.css  ── NEW
   Hero Slider + Floating Form + School Type Cards
   Import this in header.php after style.css
   ============================================================ */

/* ── HERO SLIDER WRAP ─────────────────────────────────────── */
.hs-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  margin-top: var(--nav-height);
  background: #0d0d0d;
}

/* ── SLIDES ───────────────────────────────────────────────── */
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  display: flex;
  align-items: center;
  /* Dark gradient — accent color bleeds in via --slide-accent */
  background: radial-gradient(ellipse 60% 80% at 30% 50%, color-mix(in srgb, var(--slide-accent) 30%, transparent), transparent),
              linear-gradient(135deg, #0d0505 0%, #1a0808 60%, #0d0d0d 100%);
}
.hs-slide.hs-active { opacity: 1; z-index: 2; }

/* Decorative ambient glow */
.hs-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--slide-accent) 20%, transparent) 0%, transparent 70%);
  top: -100px; left: -80px;
  pointer-events: none;
}

/* Floating shapes for depth */
.hs-shapes { position: absolute; inset: 0; pointer-events: none; }
.hs-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
}
.s1 { width:300px;height:300px; background:#fff; top:-80px; right:520px; }
.s2 { width:180px;height:180px; background:#fff; bottom:-40px; right:580px; }
.s3 { width:80px; height:80px;  background:var(--slide-accent); top:60px; right:480px; opacity:.3; }

/* Slide text */
.hs-text {
  position: relative;
  z-index: 3;
  max-width: 520px;
  padding: 0 60px;
  color: #fff;
}
.hs-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #FFD700;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hs-text h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: .85rem;
}
.hs-text h1 em {
  font-style: normal;
  color: #FFD700;
}
.hs-text p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.hs-btns { display: flex; gap: .85rem; flex-wrap: wrap; }
.hs-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.5rem;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.hs-btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

/* Slider arrows */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}
.hs-arrow:hover { background: rgba(255,255,255,.3); }
.hs-prev { left: 14px; }
.hs-next { right: 14px; }

/* Slider dots */
.hs-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.hs-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hs-dot.hs-dot-active {
  background: #fff;
  transform: scale(1.25);
}

/* ── FLOATING FORM CARD ───────────────────────────────────── */
.hf-card {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 20;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 1.1rem 1.2rem 1rem;
  width: 360px;
  max-height: calc(100% - 20px);
  overflow-y: auto;
}

.hf-title {
  color: #9B1C1C;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  margin-bottom: .9rem;
  font-family: var(--font-head);
}
.hf-title i { margin-right: .3rem; font-size: .75rem; }

.hf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: .55rem;
}
.hf-row-last { margin-bottom: 0; }

.hf-g { display: flex; flex-direction: column; }
.hf-g label {
  font-size: .72rem;
  font-weight: 600;
  color: #555;
  margin-bottom: .2rem;
}
.hf-req { color: #9B1C1C; }

.hf-input {
  width: 100%;
  padding: .48rem .6rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
}
.hf-input:focus { outline: none; border-color: #9B1C1C; }
.hf-sel { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .5rem center; padding-right: 1.6rem; }

/* Phone field with country code */
.hf-phone { display: flex; gap: .3rem; }
.hf-cc {
  width: 58px;
  flex-shrink: 0;
  padding: .48rem .25rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: .78rem;
  color: var(--text);
  background: #f9f9f9;
}
.hf-phone-n { flex: 1; }

/* Submit button */
.hf-submit {
  width: 100%;
  padding: .6rem;
  background: #9B1C1C;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .02em;
}
.hf-submit:hover { background: #7C1111; }

/* Need Help tab */
.hs-help-tab {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  background: #9B1C1C;
  color: #fff;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
  padding: .85rem .4rem;
  border-radius: 0 6px 6px 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  transition: background .2s;
}
.hs-help-tab:hover { background: #7C1111; color: #fff; }
.hs-help-tab i { font-size: .9rem; }

/* ── SCHOOL TYPE CARDS ────────────────────────────────────── */
.stype-section {
  background: #f3f4f6;
  padding: 0;
}
.stype-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stype-card {
  padding: 2rem 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: filter .25s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}
.stype-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.stype-card:hover { filter: brightness(1.12); }
.stype-card h3 { font-size: 1.25rem; color: #fff; margin-bottom: .3rem; }
.stype-card p  { color: rgba(255,255,255,.75); font-size: .88rem; margin: 0 0 1.25rem; }
.stype-links   { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.stype-link {
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.stype-link:hover { color: #FFD700; }
.stype-cta {
  color: #FFD700;
}
.stype-cta:hover { color: #fff; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hf-card { width: 320px; }
}
@media (max-width: 900px) {
  /* Stack form below slider on medium screens */
  .hs-wrap { height: auto; display: flex; flex-direction: column; }
  .hs-slide { position: relative; height: 360px; opacity: 1; display: none; }
  .hs-slide.hs-active { display: flex; }
  .hf-card {
    position: static;
    transform: none;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border-top: 3px solid #9B1C1C;
    max-height: none;
  }
  .hs-help-tab { display: none; }
  .stype-grid { grid-template-columns: repeat(2,1fr); }
  .hs-text { padding: 0 30px; }
}
@media (max-width: 600px) {
  .hs-slide { height: 300px; }
  .hs-text h1 { font-size: 1.8rem; }
  .hf-row { grid-template-columns: 1fr; }
  .stype-grid { grid-template-columns: 1fr; }
  .hs-arrows { display: none; }
}

/* ── Mobile overrides for hero slider ────────────────────── */
@media (max-width: 900px) {
  .hs-wrap { flex-direction: column; height: auto; margin-top: var(--nav-height); }

  .hs-slide {
    position: relative;
    height: 300px;
    display: none;
    align-items: center;
  }
  .hs-slide.hs-active { display: flex; }

  .hs-text {
    padding: 0 1.25rem;
    max-width: 100%;
  }
  .hs-text h1    { font-size: 1.7rem; line-height: 1.2; }
  .hs-text p     { font-size: .88rem; }
  .hs-btns       { gap: .5rem; flex-wrap: wrap; }
  .hs-btns a     { width: 100%; justify-content: center; }
  .hs-btn-ghost  { width: 100%; justify-content: center; }
  .hs-arrow      { display: none; }

  /* Form goes below slider */
  .hf-card {
    position: static;
    transform: none;
    width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    border-top: 3px solid #9B1C1C;
    padding: 1.1rem 1rem .9rem;
  }

  /* Type radio buttons row */
  .hf-row { grid-template-columns: 1fr 1fr; }

  .hs-help-tab { display: none; }
  .hs-dots { bottom: 6px; }
}

@media (max-width: 480px) {
  .hs-slide  { height: 240px; }
  .hs-text h1 { font-size: 1.35rem; }
  .hs-badge   { font-size: .7rem; padding: .25rem .65rem; margin-bottom: .85rem; }
  .hf-row    { grid-template-columns: 1fr; }
  .hf-row-last { grid-template-columns: 1fr; }
  .hf-submit { margin-top: .35rem; }

  /* School type cards */
  .stype-grid { grid-template-columns: 1fr 1fr; }
  .stype-card { padding: 1.1rem 1rem; min-height: 130px; }
  .stype-card h3 { font-size: .95rem; margin-bottom: .2rem; }
  .stype-card p  { font-size: .78rem; margin-bottom: .75rem; }
  .stype-links   { gap: .85rem; }
  .stype-link    { font-size: .8rem; }
}

@media (max-width: 360px) {
  .stype-grid { grid-template-columns: 1fr; }
}
