/* ============================================================
   Ziptales Hero Component Styles
   Brand: Red #C0392B | Yellow #F5A623 | Navy #1A3A6B | White #FFFFFF
   Font: Nunito (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #f4f4f4;
  color: #333;
}

/* ── Announcement bar ── */
.zt-announce {
  background: #1A3A6B;
  padding: 6px 1.5rem;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.zt-announce a {
  color: #F5A623;
  text-decoration: none;
}
.zt-announce a:hover {
  text-decoration: underline;
}

/* ── Navigation bar ── */
.zt-nav {
  background: #C0392B;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 40px;
  gap: 0;
}

.zt-nav__logo {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.zt-nav__logo img {
  height: 26px;
  width: auto;
  display: block;
  /* logo has transparent/white bg — filter to white for nav */
  filter: brightness(0) invert(1);
}

.zt-nav__links {
  display: flex;
  flex: 1;
  list-style: none;
}

.zt-nav__links li a {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0 11px;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.zt-nav__links li a:hover,
.zt-nav__links li a.active {
  color: #fff;
  border-bottom-color: #F5A623;
}

.zt-nav__cta {
  background: #F5A623;
  color: #1A3A6B !important;
  border-radius: 999px;
  padding: 0 14px !important;
  height: 28px !important;
  margin-left: auto;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  align-self: center;
  border-bottom: none !important;
  flex-shrink: 0;
  transition: opacity 0.15s !important;
}
.zt-nav__cta:hover {
  opacity: 0.9;
}

/* ── Progress bar ── */
.zt-progress {
  height: 3px;
  background: #e8e8e8;
  position: relative;
  overflow: hidden;
}

.zt-progress__bar {
  height: 100%;
  background: #C0392B;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Hero wrapper ── */
.zt-hero {
  position: relative;
  overflow: hidden;
}

/* ── Scenes ── */
.zt-scene {
  display: none;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.zt-scene.active {
  display: flex;
}

/* ── Scene background photos ── */
/* Replace the placeholder paths below with your own images:          */
/*   /img/homepage/hero-schools.jpg  — children in classroom          */
/*   /img/homepage/hero-library.jpg  — children in library            */
/*   /img/homepage/hero-home.jpg     — parent/child reading at home   */

.zt-scene--classroom {
  background-color: #1A3A6B;
  background-size: cover;
  background-position: center 30%;
}

.zt-scene--library {
  background-color: #1a5c3a;
  background-size: cover;
  background-position: center 25%;
}

.zt-scene--home {
  background-color: #6b2d7b;
  background-size: cover;
  background-position: center 25%;
}

/* ── Slideshow slide divs (inside each scene) ── */
.zt-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}
.zt-slide.active {
  opacity: 1;
}

/* ── Slide dot indicators ── */
.zt-slide-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.zt-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}
.zt-slide-dot.active {
  background: #F5A623;
}

/* ── Colour overlay — left strong for text, fades right to show photo ── */
/* Adjust the last two rgba values (0.40 and 0.10) to show more/less photo */
.zt-scene--classroom::before,
.zt-scene--library::before,
.zt-scene--home::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.zt-scene--classroom::before {
  background: linear-gradient(100deg,
    rgba(26, 58, 107, 0.82) 0%,
    rgba(26, 58, 107, 0.65) 45%,
    rgba(26, 58, 107, 0.20) 75%,
    rgba(26, 58, 107, 0.05) 100%);
}

.zt-scene--library::before {
  background: linear-gradient(100deg,
    rgba(26, 92, 58, 0.82) 0%,
    rgba(26, 92, 58, 0.65) 45%,
    rgba(26, 92, 58, 0.20) 75%,
    rgba(26, 92, 58, 0.05) 100%);
}

.zt-scene--home::before {
  background: linear-gradient(100deg,
    rgba(107, 45, 123, 0.82) 0%,
    rgba(107, 45, 123, 0.65) 45%,
    rgba(107, 45, 123, 0.20) 75%,
    rgba(107, 45, 123, 0.05) 100%);
}

.zt-scene__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem;
  padding: 1.25rem 2rem 1.1rem;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Removed decorative circle — photo provides the visual texture now */

/* ── Hero text block ── */
.zt-hero__text {
  z-index: 1;
}

.zt-scene__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.zt-hero__headline {
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 7px;
  letter-spacing: -0.4px;
}

.zt-hero__headline .accent {
  color: #F5A623;
}

.zt-hero__sub {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0 0 10px;
  max-width: 420px;
}

/* Library–school bridge line */
.zt-hero__bridge {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0 0 10px;
  max-width: 420px;
  border-left: 2px solid rgba(245, 166, 35, 0.6);
  padding-left: 8px;
  font-style: italic;
}

/* Trust badges */
.zt-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.zt-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA buttons */
.zt-hero__ctas {
  display: flex;
  gap: 8px;
  align-items: center;
}

.zt-btn--primary {
  background: #F5A623;
  color: #1A3A6B;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.zt-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.zt-btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.zt-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── Trial perks line (below CTAs on Schools scene) ── */
.zt-hero__perks {
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

/* ── Scene illustration ── */
.zt-scene__graphic {
  width: 180px;
  height: 160px;
  flex-shrink: 0;
  z-index: 1;
}

.zt-scene__graphic svg {
  width: 100%;
  height: 100%;
}

/* ── Bottom bar (tabs + testimonial) ── */
.zt-bottom-bar {
  display: flex;
  align-items: stretch;
  border-top: 0.5px solid #e8e8e8;
  background: #fff;
}

/* Tabs */
.zt-tabs {
  display: flex;
  flex-direction: column;
  border-right: 0.5px solid #eee;
  flex-shrink: 0;
}

.zt-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #999;
  border-left: 3px solid transparent;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: 0.5px solid #f0f0f0;
  font-family: 'Nunito', sans-serif;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-align: left;
  white-space: nowrap;
}

.zt-tab:last-child {
  border-bottom: none;
}

.zt-tab:hover {
  color: #C0392B;
  background: #fdf5f5;
}

.zt-tab.active {
  color: #C0392B;
  border-left-color: #C0392B;
  background: #fff5f5;
  font-weight: 800;
}

/* Testimonial */
.zt-testimonial {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 1.25rem;
}

.zt-testimonial__stars {
  color: #F5A623;
  font-size: 12px;
  flex-shrink: 0;
}

.zt-testimonial__quote {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  font-style: italic;
  line-height: 1.4;
  flex: 1;
}

.zt-testimonial__quote strong {
  color: #C0392B;
  font-style: normal;
}

.zt-testimonial__attr {
  font-size: 11px;
  color: #555;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .zt-scene__inner {
    grid-template-columns: 1fr;
    padding: 1.25rem 1.25rem 1rem;
  }

  .zt-scene__graphic {
    display: none;
  }

  .zt-bottom-bar {
    flex-direction: column;
  }

  .zt-tabs {
    flex-direction: row;
    border-right: none;
    border-bottom: 0.5px solid #eee;
  }

  .zt-tab {
    flex: 1;
    justify-content: center;
    height: 40px;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-right: 0.5px solid #f0f0f0;
  }

  .zt-tab:last-child {
    border-right: none;
  }

  .zt-tab.active {
    border-left: none;
    border-bottom-color: #C0392B;
  }

  .zt-testimonial {
    padding: 10px 1rem;
  }

  .zt-nav__links li a {
    padding: 0 8px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .zt-hero__headline {
    font-size: 18px;
  }

  .zt-hero__badges {
    gap: 4px;
  }

  .zt-hero__badge {
    font-size: 10px;
    padding: 2px 7px;
  }

  .zt-btn--primary {
    font-size: 12px;
    padding: 7px 14px;
  }
}
