/* =============================================
   home.css — Premium homepage-specific styles
   ============================================= */

/* HERO V2 */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #08403f 0%, var(--teal) 45%, var(--teal-mid) 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hbs { position: absolute; border-radius: 50%; }
.hbs-1 { width: 700px; height: 700px; top: -200px; right: -200px; background: radial-gradient(circle, rgba(107,63,160,0.18) 0%, transparent 70%); }
.hbs-2 { width: 500px; height: 500px; bottom: -100px; left: -150px; background: radial-gradient(circle, rgba(61,189,189,0.12) 0%, transparent 70%); }
.hbs-3 { width: 300px; height: 300px; top: 40%; left: 40%; background: radial-gradient(circle, rgba(184,196,224,0.05) 0%, transparent 70%); }

.hero-sunburst {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  opacity: 0.6;
  pointer-events: none;
}
.hero-sunburst svg { width: 100%; height: auto; }

.hero-v2-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  flex: 1;
}

.hero-eyebrow { display: none !important; }
.eyebrow-dot { display: none !important; }

.hero-v2-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: white;
  line-height: 1.05;
  margin-bottom: 24px;
}
.title-accent {
  color: var(--aqua-lt);
  font-style: italic;
}

.hero-v2-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  line-height: 1.85;
  margin-bottom: 44px;
}
.hero-v2-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }

/* Hero visual side */
.hero-v2-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
}
.hero-cross-card {
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.hero-cross-svg { width: 200px; height: 200px; }

.hero-float-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 4s ease-in-out infinite;
}
.hfc-1 { top: 40px; right: -20px; animation-delay: 0s; }
.hfc-2 { bottom: 60px; right: 10px; animation-delay: 1.3s; }
.hfc-3 { top: 50%; left: -30px; transform: translateY(-50%); animation-delay: 0.7s; }
.hfc-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1;
}
.hfc-label { font-size: 0.72rem; color: var(--grey); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hfc-3 { animation: floatMid 4s ease-in-out 0.7s infinite; }
@keyframes floatMid {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}

/* Hero scroll bar */
.hero-scroll-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  position: absolute;
  top: -3.5px;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { left: -8px; }
  100% { left: 60px; }
}

/* MARQUEE */
.marquee-bar {
  background: var(--purple);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  padding-right: 8px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ABOUT SPLIT */
.about-split { background: white; }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.split-content h2 {
  line-height: 1.25;
  padding-top: 0.1em;
  margin-bottom: 1.2rem;
}

.split-visual {
  position: relative;
  height: 500px;
}
/* Crisp vector logo mark (sunburst cross) */
.sv-logo-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  max-width: 100%;
  overflow: visible;
}

.sv-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 32px rgba(26,107,107,0.12);
  border: 1px solid rgba(61,189,189,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  z-index: 2;
}
.sv-card-1 { top: 20px; right: 0; }
.sv-card-2 { bottom: 20px; left: 0; }
.svc-icon { font-size: 1.6rem; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; }
.svc-icon svg { display: block; }
.sv-card strong { font-size: 1.1rem; color: var(--teal-dark); font-family: var(--font-head); }
.sv-card span { font-size: 0.75rem; color: var(--grey); font-weight: 500; }

.sv-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}
.sv-orb-1 { width: 80px; height: 80px; bottom: 80px; right: 20px; background: radial-gradient(circle, rgba(107,63,160,0.2), transparent); }
.sv-orb-2 { width: 50px; height: 50px; top: 60px; left: 20px; background: radial-gradient(circle, rgba(61,189,189,0.25), transparent); }

/* STATS ROW */
.stats-row {
  background: var(--teal-dark);
  padding: 56px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.sr-stat { text-align: center; padding: 0 48px; }
.sr-num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--aqua-lt);
  line-height: 1;
  margin-bottom: 6px;
}
.sr-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 500; letter-spacing: 0.04em; }
.sr-divider { width: 1px; height: 56px; background: rgba(255,255,255,0.1); }

/* QUOTE SECTION */
.quote-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background: var(--purple);
}
.qs-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(61,189,189,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(26,107,107,0.2) 0%, transparent 50%);
}
.qs-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.qs-cross { margin: 0 auto 28px; }
.qs-quote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: white;
  line-height: 1.65;
  margin-bottom: 24px;
  border-left: none;
  padding-left: 0;
}
.qs-cite {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-style: normal;
}

/* SCHOOLS HEX GRID */
.schools-hex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.shg-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26,107,107,0.08);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  position: relative;
}
.shg-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 60px rgba(26,107,107,0.18);
  border-color: var(--card-accent, var(--aqua));
}
.shg-top {
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.shg-top::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -10%;
  width: 120%;
  height: 40px;
  background: white;
  border-radius: 50%;
}
.shg-init {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.shg-body {
  padding: 24px 24px 16px;
  flex: 1;
}
.shg-body h3 { font-size: 1.1rem; color: var(--teal-dark); margin-bottom: 4px; }
.shg-body p { font-size: 0.82rem; color: var(--grey); margin: 0 0 10px; }
.shg-loc { font-size: 0.8rem; color: var(--grey); }
.shg-hover-bar {
  padding: 14px 24px;
  background: var(--off-white);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  text-align: right;
  transition: all 0.3s;
}
.shg-card:hover .shg-hover-bar {
  background: var(--card-accent, var(--teal));
  color: white;
}

/* VALUES V2 */
.values-v2 { position: relative; overflow: hidden; padding: 96px 0; }
.vv2-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-mid) 45%, var(--purple) 100%);
}
.vv2-inner { position: relative; z-index: 1; }
.vv2-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.vv2-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.vv2-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.vv2-card:hover::before { transform: scaleX(1); }
.vv2-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-6px); }
.vv2-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: -8px;
}
.vv2-icon { font-size: 2rem; margin-bottom: 14px; }
.vv2-card h3 { color: white; margin-bottom: 10px; font-size: 1.2rem; }
.vv2-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; line-height: 1.7; }
.vv2-line { width: 32px; height: 2px; background: var(--aqua); margin-top: 20px; border-radius: 2px; transition: width 0.3s ease; }
.vv2-card:hover .vv2-line { width: 64px; }

/* CEO V2 */
.ceo-v2-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: center;
}
.ceo-v2-image { position: relative; display: flex; align-items: center; justify-content: center; }
.ceo-v2-avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 4px solid white;
  box-shadow: 0 20px 60px rgba(26,107,107,0.2);
}

.ceo-v2-quote {
  background: var(--off-white);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 20px 0 24px;
  position: relative;
}
.ceo-v2-openquote {
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--aqua);
  opacity: 0.3;
  margin-bottom: 8px;
}
.ceo-v2-quote p {
  font-family: var(--font-head);
  font-size: 1rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 12px;
}
.ceo-v2-sig { display: flex; align-items: center; gap: 16px; }
.ceo-v2-sig-line { width: 40px; height: 2px; background: var(--aqua); flex-shrink: 0; }
.ceo-v2-sig strong { display: block; color: var(--teal-dark); font-size: 1rem; }
.ceo-v2-sig span { font-size: 0.82rem; color: var(--grey); }

/* CTA V2 */
.cta-v2 {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.cta-v2-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal-dark) 100%);
}
.cta-v2-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,189,189,0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}
.cta-v2-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-v2-text h2 { color: white; font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 10px; }
.cta-v2-text p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 480px; margin: 0; }
.cta-v2-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* RESPONSIVE HOME */
@media (max-width: 1100px) {
  .hero-v2-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; }
  .hero-v2-visual { display: none; }
  .vv2-grid { grid-template-columns: repeat(2, 1fr); }
  .schools-hex-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-visual { height: 280px; }
  .sv-logo-mark { width: 240px; height: 240px; }
  .sv-card-1, .sv-card-2 { display: none; }
  .stats-inner { flex-wrap: wrap; gap: 32px; }
  .sr-stat { padding: 0 24px; }
  .sr-divider { display: none; }
  .vv2-grid { grid-template-columns: 1fr 1fr; }
  .schools-hex-grid { grid-template-columns: 1fr; }
  .ceo-v2-grid { grid-template-columns: 1fr; gap: 40px; }
  .ceo-v2-avatar { width: 180px; height: 180px; }
  .cta-v2-inner { flex-direction: column; text-align: center; }
  .cta-v2-text p { max-width: 100%; }
}
@media (max-width: 480px) {
  .vv2-grid { grid-template-columns: 1fr; }
  .hero-v2-title { font-size: 2.4rem; }
}

/* School card logo styles */
.shg-top-logo { padding: 24px 20px !important; min-height: 120px; display:flex; align-items:center; justify-content:center; }
.shg-top-logo::after { display:none !important; }
.shg-logo-img { max-height: 80px; max-width: 90%; object-fit: contain; position:relative; z-index:1; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08)); }

/* CEO photo fills homepage avatar */
.ceo-v2-avatar { overflow: hidden; }
.ceo-v2-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* =============================================================
   HOMEPAGE MOBILE HARDENING
   ============================================================= */
@media (max-width: 1100px) {
  /* Center the hero content when it stacks */
  .hero-v2-inner { text-align: center; }
  .hero-v2-sub { margin-left: auto; margin-right: auto; }
  .hero-v2-actions { justify-content: center; }
}

@media (max-width: 768px) {
  /* Hero: comfortable spacing, contained decorative art */
  .hero-v2 { min-height: auto; }
  .hero-v2-inner { padding: 104px 0 40px; gap: 32px; }
  .hero-v2-content { padding: 0; }
  .hero-v2-title { font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.12; }
  .hero-v2-sub { font-size: 1rem; margin-bottom: 28px; max-width: 440px; }
  .hero-scroll-bar { display: none; }

  /* Bring the emblem back on mobile: show a clean centred version,
     hide the absolutely-positioned floating cards (they'd overlap) */
  .hero-v2-visual { display: flex; height: auto; margin-top: 4px; align-items: center; justify-content: center; position: static; }
  .hero-cross-card { width: 180px; height: 180px; }
  .hero-cross-svg { width: 128px; height: 128px; }
  .hero-float-card { display: none; }

  /* A tidy inline stat strip under the emblem (see markup note) */
  .hero-mini-stats {
    display: flex; justify-content: center; gap: 0;
    margin-top: 28px;
  }

  /* Marquee: slightly smaller, still readable */
  .marquee-track span { font-size: 0.72rem; }

  /* Stats row: 2x2 grid instead of a cramped single row */
  .stats-inner { gap: 8px 16px; }
  .sr-stat { flex: 1 1 40%; padding: 12px; }
  .sr-num { font-size: 2.4rem; }

  /* Quote section: tighter padding */
  .quote-section { padding: 56px 0; }
  .qs-quote { font-size: 1.2rem; }

  /* CEO quote block padding */
  .ceo-v2-quote { padding: 22px 24px; }
  .ceo-v2-openquote { font-size: 4rem; }
}

@media (max-width: 480px) {
  .hero-v2-title { font-size: 2.1rem; }
  .hero-v2-actions { flex-direction: column; }
  .hero-v2-actions .btn { width: 100%; justify-content: center; }
  .hero-cross-card { width: 150px; height: 150px; }
  .hero-cross-svg { width: 108px; height: 108px; }
  .sr-stat { flex: 1 1 100%; }              /* stats fully stacked */
  .sr-num { font-size: 2.2rem; }
  .schools-hex-grid { gap: 20px; }
  .split-visual { height: 240px; }
  .sv-logo-mark { width: 200px; height: 200px; }
}
