﻿/* ==========================================================================
   Gagner â€” Gagner for Schools product page (schools.php)
   Extends css/styles.css: load that first for tokens, header, footer, buttons.
   ========================================================================== */

/* ---------- hero ---------- */
.schools-hero {
  position: relative;
  background:
    radial-gradient(80% 100% at 50% -10%, rgba(69,54,224,0.1), transparent 60%),
    var(--surface);
  padding: calc(var(--nav-height) + 68px) 0 0;
  text-align: center;
  overflow: hidden;
}
.schools-hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }

/* ambient animated background */
.schools-hero-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.hero-orb-a {
  width: 440px; height: 440px; top: -140px; left: -90px;
  background: radial-gradient(circle, #6d4fe0, transparent 70%);
  animation: heroOrbA 24s ease-in-out infinite;
}
.hero-orb-b {
  width: 380px; height: 380px; top: -60px; right: -120px;
  background: radial-gradient(circle, #3457e0, transparent 70%);
  animation: heroOrbB 28s ease-in-out infinite;
}
.hero-orb-c {
  width: 320px; height: 320px; bottom: -160px; left: 32%;
  background: radial-gradient(circle, #9c8bff, transparent 70%);
  animation: heroOrbC 32s ease-in-out infinite;
}
.hero-orb-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--border);
  opacity: 0.12;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
}

@keyframes heroOrbA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.1); }
}
@keyframes heroOrbB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(0.92); }
}
@keyframes heroOrbC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -45px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

/* floating feature icons around the hero headline */
.schools-hero-floaters { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-float {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(20,16,60,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  animation: heroFloat 8s ease-in-out infinite;
}
.hero-float svg { width: 22px; height: 22px; }
.hero-float-a { top: 92px; left: 7%; animation-duration: 7.5s; }
.hero-float-b { top: 54px; right: 8%; animation-duration: 8.5s; animation-delay: -2.5s; }
.hero-float-c { top: 300px; left: 4%; animation-duration: 9s; animation-delay: -4s; }
.hero-float-d { top: 254px; right: 5%; animation-duration: 7s; animation-delay: -1s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-4deg); }
}
@media (max-width: 760px) {
  .hero-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float { animation: none; }
}

/* arc highlight under "Your School" */
.highlight-underline { position: relative; display: inline-block; }
.highlight-underline-arc {
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 0.34em;
  overflow: visible;
}
.highlight-underline-arc path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: arcDraw 0.9s 0.5s ease-out forwards;
}
@keyframes arcDraw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .highlight-underline-arc path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- final cta panel ---------- */
.schools-final-cta {
  /* position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-2); */
  padding: 90px clamp(24px, 6vw, 64px);
  text-align: center;
}
.schools-final-cta-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0.5; }
.schools-final-cta-orbs .hero-orb-a { top: -160px; left: -80px; }
.schools-final-cta-orbs .hero-orb-b { bottom: -160px; right: -80px; top: auto; }
.schools-final-cta-content { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.schools-final-cta-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 28px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.schools-final-cta-icon svg { width: 24px; height: 24px; fill: var(--brand-deep); }
.schools-final-cta-content h2 { color: var(--text); font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.schools-final-cta-content p { color: var(--text-soft); font-size: 16.5px; line-height: 1.65; margin: 0 0 32px; }
.schools-final-cta-content .schools-final-cta-note { margin: 18px 0 0; font-size: 13px; color: var(--text-softer); }
.schools-hero-title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}
.schools-hero-sub {
  margin: 24px auto 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
}
.schools-hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- tilting dashboard preview ---------- */
.schools-preview-stage {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  padding: 0 var(--side-pad) 0;
  perspective: 1600px;
}
.schools-preview {
  max-width: 1040px;
  margin: 0 auto;
  transform-origin: 50% 0%;
  transform: perspective(1600px) rotateX(0deg);
  will-change: transform;
  transition: transform .12s linear;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: none;
  box-shadow: 0 40px 90px rgba(20,16,60,0.16);
}
.schools-preview-image { width: 100%; height: auto; display: block; }

.mock-window-bar {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 10px 16px;
  display: flex;
  gap: 6px;
}
.mock-window-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }

/* ---------- section chrome shared on this page ---------- */
.schools-section { padding: 100px 0; }
/* .schools-section-muted { background: var(--surface-2); } */
.schools-section-head { max-width: 62ch; }
.schools-section-head.center {margin: 0 auto; text-align: center; }
.schools-section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* infrastructure explainer */
.infra-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .infra-layout { grid-template-columns: 1.3fr 1fr; gap: 72px; }
}
.schools-section-head + .infra-layout { margin-top: 48px; }
.infra-copy p { font-size: 16px; line-height: 1.75; color: var(--text-soft); margin: 0 0 18px; }
.infra-copy p:last-child { margin-bottom: 0; }
.infra-diagram {
  border-radius: var(--radius-xl);
  background: var(--contrast-bg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
}
.infra-diagram-layer {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.infra-diagram-layer:last-child { margin-bottom: 0; }
.infra-diagram-layer.is-top { background: var(--brand); border-color: transparent; }
.infra-diagram-layer span { display: block; font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,0.55); margin-top: 3px; }
.infra-diagram-layer.is-top span { color: rgba(255,255,255,0.75); }

/* The AI card showcase, feature grid, capability pills, and the "coming
   soon" tag have moved to css/solutions.css, used by the dedicated
   ai-infrastructure.php, curriculum.php, school-management.php, and
   parent-portal.php pages. */

/* safety band */
.safety-band {
  position: relative;
  overflow: hidden;
  background: var(--contrast-bg);
  color: #fff;
  padding: 100px 0;

  /* Add-ons */
  min-height: 800px;
  display: grid;
  place-content: center;
}

/* floating safety icons drifting in the background */
.safety-floaters { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.safety-float {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: heroFloat 8s ease-in-out infinite;
}
.safety-float svg { width: 20px; height: 20px; }
.safety-float-a { top: 8%; left: 5%; animation-duration: 7.5s; }
.safety-float-b { top: 76%; left: 10%; animation-duration: 8.5s; animation-delay: -2.5s; }
.safety-float-c { top: 12%; right: 7%; animation-duration: 9s; animation-delay: -4s; }
.safety-float-d { top: 78%; right: 5%; animation-duration: 7s; animation-delay: -1s; }
@media (max-width: 760px) {
  .safety-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .safety-float { animation: none; }
}

.safety-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .safety-layout { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
}
.safety-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.safety-icon svg { width: 26px; height: 26px; fill: #fff; }
.safety-copy h2 { color: #fff; }
.safety-list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.safety-item { display: flex; gap: 14px; }
.safety-item-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6d8bff;
  margin-top: 8px;
}
.safety-item p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.72); }
.safety-item strong { color: #fff; }
.safety-body p { font-size: 16.5px; line-height: 1.75; color: rgba(255,255,255,0.75); margin: 0 0 18px; }

/* solutions hub: four large clickable cards linking out to their own pages */
.solutions-hub {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .solutions-hub { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.solutions-hub-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.solutions-hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-ambient); border-color: transparent; }
.solutions-hub-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.solutions-hub-icon svg { width: 21px; height: 21px; color: var(--brand-deep); }
.solutions-hub-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.solutions-hub-card p { font-size: 14.5px; line-height: 1.65; color: var(--text-soft); }
.solutions-hub-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--brand-deep);
}
.solutions-hub-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.solutions-hub-card:hover .solutions-hub-link svg { transform: translateX(3px); }

/* academy teaser */
.academy-band {
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, #241a6b, #150f45);
  color: #fff;
  padding: 56px clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.academy-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.14);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.academy-band h2 { color: #fff; max-width: 22ch; }
.academy-band-sub { margin: 18px 0 32px; max-width: 62ch; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.72); }
.academy-tracks { display: flex; flex-wrap: wrap; gap: 10px; }
.academy-track {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}

@media (prefers-reduced-motion: reduce) {
  .schools-preview { transition: none; transform: none !important; }
}
