/* ================================
   Page-specific & new premium sections
   (loaded last — overrides components.css where needed)
================================ */

/* ==== Trust bar (schools served, orders delivered, on-time) ==== */
.trust-bar {
  background: var(--white);
  padding-block: 3rem;
  border-bottom: 1px solid var(--blue-100);
  position: relative;
}
.trust-bar .trust-head {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2rem;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  position: relative;
}
.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: 0; top: 20%;
  width: 1px; height: 60%;
  background: linear-gradient(180deg, transparent, var(--blue-200), transparent);
}
@media (max-width: 639px) { .trust-item + .trust-item::before { display: none; } }
.trust-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-100), var(--blue-150));
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}
.trust-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.trust-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.trust-num span { color: var(--navy-500); }
.trust-lbl {
  font-size: 0.825rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ==== Testimonials ==== */
.testimonials {
  background:
    radial-gradient(at 10% 0%, rgba(42,82,128,0.04) 0px, transparent 50%),
    radial-gradient(at 90% 100%, rgba(42,82,128,0.03) 0px, transparent 50%),
    var(--white);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}
.tst {
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 1px 2px rgba(20,47,73,0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tst:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(20,47,73,0.06), 0 24px 50px -16px rgba(20,47,73,0.22);
}
.tst-quote-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-500), var(--navy));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 0;
  padding-top: 0.4em;
}
.tst-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--navy-500);
}
.tst-stars svg { width: 16px; height: 16px; fill: currentColor; }
.tst p {
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}
.tst-foot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--blue-100);
}
.tst-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.tst-who { display: flex; flex-direction: column; min-width: 0; }
.tst-name { font-weight: 700; color: var(--navy); font-size: 0.925rem; }
.tst-role { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.sample-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 1rem;
}
.sample-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}

/* ==== Bento feature grid ==== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
  }
  .bento > :nth-child(1) { grid-column: span 4; }
  .bento > :nth-child(2) { grid-column: span 2; }
  .bento > :nth-child(3) { grid-column: span 2; }
  .bento > :nth-child(4) { grid-column: span 2; }
  .bento > :nth-child(5) { grid-column: span 2; }
}

.bento-cell {
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  box-shadow: 0 1px 2px rgba(20,47,73,0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 230px;
}
.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(20,47,73,0.06), 0 24px 50px -16px rgba(20,47,73,0.22);
  border-color: var(--navy-500);
}
.bento-cell.feature {
  background:
    radial-gradient(at 100% 0%, rgba(74,123,176,0.3) 0px, transparent 55%),
    linear-gradient(145deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--white);
  border-color: rgba(255,255,255,0.14);
  min-height: 280px;
}
.bento-cell.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-url);
  background-size: 140px;
  opacity: 0.4;
  pointer-events: none;
}
.bento-cell.feature > * { position: relative; z-index: 1; }
.bento-cell.feature h3, .bento-cell.feature .bento-eyebrow { color: var(--white); }
.bento-cell.feature p { color: rgba(255,255,255,0.78); }
.bento-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy-500);
}
.bento-cell h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.bento-cell p {
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.8;
  line-height: 1.55;
}
.bento-visual {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  min-height: 80px;
}
.bento-visual svg { width: 100%; max-width: 220px; height: auto; }

/* Big floating stat chip inside feature cell */
.bento-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(10px);
  width: fit-content;
}
.bento-chip .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

/* ==== Logo marquee (trusted institutions) ==== */
.marquee {
  padding-block: 2.5rem;
  overflow: hidden;
  background: var(--white);
  border-block: 1px solid var(--blue-100);
}
.marquee-head {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  animation: marquee 32s linear infinite;
  width: max-content;
  align-items: center;
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; justify-content: center; flex-wrap: wrap; width: 100%; } }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  color: var(--navy);
  opacity: 0.4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity var(--dur) var(--ease);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item:hover { opacity: 1; }
.marquee-item svg {
  width: 22px; height: 22px;
  color: var(--navy-500);
}

/* ==== Section separator (gradient hairline) ==== */
.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-200), transparent);
  border: 0;
  margin: 0;
}

/* ==== Enhanced button polish (shine on hover) ==== */
.btn-primary, .btn-light {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .btn-light::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 700ms var(--ease);
  pointer-events: none;
}
.btn-primary:hover::before, .btn-light:hover::before { left: 100%; }

/* ==== Modernised form inputs (icon-left variant) ==== */
.field-wrap {
  position: relative;
}
.field-wrap .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.field-wrap .field-icon svg { width: 18px; height: 18px; }
.field-wrap input, .field-wrap textarea {
  padding-left: 44px;
}

/* ==== Pulse badge for live indicators ==== */
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}
.pulse-badge .p {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}
.pulse-badge .p::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ==== Updated hero-stage: cleaner, more modern ==== */
.hero-stage {
  background:
    radial-gradient(at 20% 20%, rgba(74,123,176,0.35) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(42,82,128,0.4) 0px, transparent 50%),
    linear-gradient(145deg, #1a3a5a 0%, #0a1a2b 100%);
}
.hero-floating {
  box-shadow:
    0 10px 30px -8px rgba(0,0,0,0.3),
    0 20px 48px -12px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.8);
  animation: float 6s ease-in-out infinite;
}
.hero-chip-br {
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { .hero-floating { animation: none; } }

/* ==== Updated nav links with underline highlight ==== */
.primary-nav a::after {
  background: var(--white);
  height: 2px;
  border-radius: 2px;
  bottom: -8px;
}

/* ==== Updated final-cta: more premium with gradient card ==== */
.final-cta {
  background: var(--white);
  padding-block: clamp(4rem, 7vw, 6rem);
  border-top: 1px solid var(--blue-100);
}
.final-cta .inner {
  background:
    radial-gradient(at 20% 20%, rgba(74,123,176,0.3) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(42,82,128,0.35) 0px, transparent 50%),
    linear-gradient(145deg, #1a3a5a 0%, #0a1a2b 100%);
  color: var(--white);
  padding: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px -24px rgba(20,47,73,0.4);
}
.final-cta .inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise-url);
  background-size: 180px;
  opacity: 0.35;
  pointer-events: none;
}
.final-cta .inner > * { position: relative; z-index: 1; }
.final-cta h2 { color: var(--white); }
.final-cta .lead { color: rgba(255,255,255,0.82); }
.final-cta .eyebrow {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
}
.final-cta .eyebrow::before { background: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }

/* ==== Reset pillar visual size on mobile ==== */
@media (max-width: 719px) {
  .pillar-visual { width: 120px; height: 120px; }
  .pillar-visual svg { width: 48px; height: 48px; }
  .pillar-visual .num { width: 36px; height: 36px; font-size: 0.85rem; }
}
