/* ==========================================================================
   LEGACY UNITED — OFFICIAL WARM INSTITUTIONAL DESIGN SYSTEM
   Domain: legacyunited.io | Central Support: support@legacyunited.io
   Theme: Warm White / Ivory Editorial (Eye-Friendly in the Dark)
   Aesthetic: Prestigious Ivy League Pedigree & Sovereign EdTech Scale
   ========================================================================== */

/* --- Custom Properties & Warm Design Tokens --- */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Cinzel', Georgia, 'Times New Roman', serif;

  /* Warm White & Ivory Canvas (Non-glaring, eye-friendly in any lighting) */
  --bg-canvas: #FAF8F5;          /* Warm linen / alabaster base */
  --bg-surface: #F3EFE8;         /* Soft warm stone / secondary section */
  --bg-surface-soft: #F7F4EE;    /* Gentle alternating tint */
  --bg-card: #FFFFFF;            /* Elevated pure white card surfaces */
  --bg-card-warm: #FFFDF9;       /* Warm tinted cards */
  --bg-glass: rgba(250, 248, 245, 0.92);

  /* Prestigious Academic Authority (Navy & Deep Blue) */
  --navy-deep: #0B2545;          /* Oxford / Harvard imperial navy */
  --navy-mid: #133E87;           /* Authoritative institutional blue */
  --navy-light: #1D4ED8;         /* Vibrant digital tech blue */
  --navy-subtle: #EEF4FF;        /* Soft navy tint for pills */

  /* Sovereign Heritage Gold & Bronze */
  --gold-primary: #C59B27;       /* Classical noble gold */
  --gold-deep: #92400E;          /* Rich academic bronze */
  --gold-accent: #B45309;        /* Warm amber */
  --gold-tint: #FEF3C7;          /* Soft warm gold background */
  --gold-border: #FDE68A;        /* Delicate gold border */
  --gold-glow: rgba(197, 155, 39, 0.18);

  /* Deep Ink & Charcoal Typography (High contrast, zero harsh pure black) */
  --text-ink: #141824;           /* Deep midnight ink */
  --text-body: #2C3444;          /* Warm readable slate */
  --text-muted: #556277;         /* Secondary muted text */
  --text-dim: #7B879C;           /* Subtle metadata / footnotes */

  /* Hairline Borders & Dividers */
  --border-subtle: #E8E2D6;      /* Warm hairline separator */
  --border-card: #DFD8CB;        /* Defined warm card border */
  --border-focus: #133E87;       /* Input & focus border */
  --border-gold: rgba(197, 155, 39, 0.45);

  /* Status Colors */
  --success-color: #059669;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  --danger-color: #DC2626;

  /* Corner Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Soft Ambient Shadows (Warm diffuse, no harsh black drop-shadows) */
  --shadow-sm: 0 2px 8px rgba(45, 35, 25, 0.04);
  --shadow-card: 0 4px 20px rgba(45, 35, 25, 0.05), 0 1px 3px rgba(45, 35, 25, 0.03);
  --shadow-card-hover: 0 12px 32px rgba(45, 35, 25, 0.09), 0 2px 6px rgba(45, 35, 25, 0.04);
  --shadow-header: 0 4px 24px rgba(35, 25, 15, 0.04);
  --shadow-modal: 0 24px 60px rgba(15, 25, 45, 0.18);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Container & Layout Helpers --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

.bg-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.text-center {
  text-align: center;
}

/* Elegant Text Gradient for Warm Theme */
.text-gradient {
  background: linear-gradient(135deg, var(--navy-deep) 15%, var(--navy-mid) 60%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

a {
  color: var(--navy-mid);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--navy-light);
}

/* ==========================================================================
   TOP INSTITUTIONAL BAR & REDESIGNED NAVIGATION
   ========================================================================== */

/* Top Utility Strip */
.top-bar {
  background-color: #EFE9DF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: 0.82rem;
  color: #554A3E;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heritage-badge {
  background-color: var(--navy-deep);
  color: #FAF8F5;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.top-bar-text {
  font-weight: 500;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.top-support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.top-support-link:hover {
  color: var(--navy-light);
  background-color: rgba(11, 37, 69, 0.06);
}

.top-icon {
  width: 14px;
  height: 14px;
  color: var(--gold-primary);
}

/* Main Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.is-scrolled {
  background-color: rgba(250, 248, 245, 0.98);
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--border-card);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Brand Logo & Academic Crest */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-crest {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
  border-radius: 10px;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-crest {
  transform: translateY(-1px) scale(1.03);
}

.brand-crest svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy-deep);
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--navy-deep);
  background-color: rgba(11, 37, 69, 0.06);
}

.nav-item.active {
  color: var(--navy-deep);
  background-color: #EAE3D6;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Primary Button: Noble Navy with Gold/White touch */
.btn-primary {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #10315C 100%);
  color: #FFFFFF;
  border-color: rgba(11, 37, 69, 0.2);
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #133E87 0%, var(--navy-deep) 100%);
  box-shadow: 0 6px 18px rgba(11, 37, 69, 0.28);
  transform: translateY(-1px);
  color: #FFFFFF;
}

/* Secondary Button: Warm Alabaster Card */
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--navy-deep);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-soft);
  border-color: var(--navy-mid);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--navy-deep);
  border-color: var(--border-card);
}

.btn-outline:hover {
  background-color: rgba(11, 37, 69, 0.05);
  border-color: var(--navy-deep);
  color: var(--navy-deep);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--navy-deep);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.mobile-toggle.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Dropdown Navigation */
.mobile-nav {
  display: none;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-card);
  padding: 20px 0 28px;
  position: absolute;
  top: 76px;
  left: 0;
  width: 100%;
  box-shadow: var(--shadow-modal);
}

.mobile-nav.is-open {
  display: block;
  animation: slideDown 0.22s ease-out forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-item {
  color: var(--text-ink);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-item:hover {
  color: var(--navy-mid);
  padding-left: 6px;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

/* ==========================================================================
   BADGES & SECTION HEADERS
   ========================================================================== */

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--gold-tint);
  color: var(--gold-deep);
  border: 1px solid var(--gold-border);
}

.badge-gold {
  background-color: #FEF3C7;
  color: #92400E;
  border-color: #FCD34D;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background-color: var(--navy-subtle);
  color: var(--navy-mid);
  border: 1px solid #D0E1FD;
  margin-bottom: 16px;
}

.section-header {
  max-width: 820px;
  margin: 0 auto 54px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(197, 155, 39, 0.09) 0%, rgba(19, 62, 135, 0.06) 45%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 920px;
  margin: 0 auto 54px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(197, 155, 39, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-headline {
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: var(--text-ink);
  text-wrap: balance;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 auto 34px;
  max-width: 820px;
}

.hero-description strong {
  color: var(--navy-deep);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-support-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
}

.support-label {
  color: var(--text-muted);
}

.support-email {
  color: var(--navy-mid);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-email:hover {
  color: var(--navy-light);
  text-decoration: underline;
}

.icon-mail {
  width: 16px;
  height: 16px;
  color: var(--gold-primary);
}

/* Hero Metrics Deck */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-deep), var(--navy-mid));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--navy-mid);
}

.metric-card:hover::before {
  opacity: 1;
}

.highlight-metric {
  background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 100%);
  border-color: var(--gold-primary);
}

.highlight-metric::before {
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-accent));
  opacity: 1;
}

.metric-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.highlight-metric .metric-value {
  color: var(--gold-deep);
}

.metric-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 8px;
}

.metric-detail {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ABOUT LEGACY UNITED
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--navy-mid);
}

.about-card.gold-border {
  border-color: var(--gold-primary);
  background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.blue-icon {
  background-color: var(--navy-subtle);
  color: var(--navy-mid);
  border: 1px solid #D0E1FD;
}

.gold-icon {
  background-color: var(--gold-tint);
  color: var(--gold-deep);
  border: 1px solid var(--gold-border);
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 14px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-body);
  font-size: 0.94rem;
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy-mid);
  font-weight: 800;
}

.gold-border .feature-list li::before {
  color: var(--gold-deep);
}

/* ==========================================================================
   DUAL-PILLAR INTERACTIVE TAB MODEL
   ========================================================================== */

.tab-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.tab-icon {
  width: 20px;
  height: 20px;
}

.tab-btn:hover {
  color: var(--navy-deep);
  border-color: var(--navy-mid);
  background-color: var(--bg-surface-soft);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #15396C 100%);
  color: #FFFFFF;
  border-color: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(11, 37, 69, 0.22);
}

#tabPhysicalBtn.active {
  background: linear-gradient(135deg, #854D0E 0%, #A16207 100%);
  border-color: #854D0E;
  box-shadow: 0 6px 20px rgba(133, 77, 14, 0.22);
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}

.panel-info {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.panel-kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 12px;
}

#panelPhysical .panel-kicker {
  color: var(--gold-deep);
}

.panel-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 16px;
  line-height: 1.25;
}

.panel-info > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.capability-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.capability-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.cap-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--navy-subtle);
  color: var(--navy-mid);
  border: 1px solid #D0E1FD;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#panelPhysical .cap-number {
  background-color: var(--gold-tint);
  color: var(--gold-deep);
  border-color: var(--gold-border);
}

.capability-item h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.capability-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Showcase Cards */
.panel-showcase {
  display: flex;
  flex-direction: column;
}

.showcase-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.showcase-header {
  background-color: #F7F4EE;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.showcase-title {
  margin-left: 12px;
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-dim);
  font-weight: 600;
}

.showcase-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background-color: #FAF8F5;
}

.code-preview {
  font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #F1F5F9;
  background-color: #141C2E; /* Elegant dark slate editor for legible syntax contrast */
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cm-comment { color: #8292A9; font-style: italic; }
.cm-keyword { color: #F43F5E; font-weight: 600; }
.cm-string { color: #38BDF8; }
.cm-number { color: #FBBF24; }

.app-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.highlight-badge {
  padding: 10px 16px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-mid);
  box-shadow: var(--shadow-sm);
}

/* Physical Panel Showcase Stat Grid */
.physical-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.p-stat {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.p-val {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.p-lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

.physical-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-body);
  border-left: 3px solid var(--gold-primary);
  padding-left: 18px;
  margin-top: auto;
}

/* ==========================================================================
   FEATURES GRID (EDTECH SUITE)
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--navy-mid);
  box-shadow: var(--shadow-card-hover);
}

.f-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--navy-subtle);
  border: 1px solid #D0E1FD;
  color: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.f-icon svg {
  width: 24px;
  height: 24px;
}

.feature-box h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 12px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ==========================================================================
   CAMPUSES & FOOTPRINT
   ========================================================================== */

.campus-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.campus-text .lead-text {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.7;
  margin-bottom: 16px;
}

.campus-text .body-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.campus-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 500;
}

.perk-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--success-bg);
  color: var(--success-color);
  border: 1px solid var(--success-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.campus-card {
  background: linear-gradient(145deg, #FFFDF8 0%, #FAF6EE 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-xl);
  padding: 40px 34px;
  box-shadow: var(--shadow-card-hover);
  position: relative;
}

.campus-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--gold-deep);
  background-color: var(--gold-tint);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.campus-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 24px;
}

.campus-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.meta-title {
  color: var(--text-dim);
}

.meta-value {
  color: var(--text-ink);
  font-weight: 600;
  text-align: right;
}

.meta-value a {
  color: var(--navy-mid);
}

.meta-value a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */

.timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 90px;
  width: 2px;
  background: linear-gradient(180deg, var(--border-card) 0%, var(--navy-mid) 70%, var(--gold-primary) 100%);
}

.timeline-item {
  display: flex;
  gap: 40px;
  position: relative;
  margin-bottom: 44px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  width: 90px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dim);
  text-align: right;
  flex-shrink: 0;
  padding-top: 4px;
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  flex-grow: 1;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-canvas);
  border: 3px solid var(--navy-mid);
}

.timeline-content h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-item.highlight-item .timeline-year {
  color: var(--navy-mid);
}

.timeline-item.highlight-item .timeline-content {
  border-color: var(--navy-mid);
}

.timeline-item.current-item .timeline-year {
  color: var(--gold-deep);
}

.timeline-item.current-item .timeline-content {
  border-color: var(--gold-primary);
  background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
}

.timeline-item.current-item .timeline-content::before {
  border-color: var(--gold-primary);
  background-color: #FEF3C7;
}

.timeline-content .badge-pill {
  margin-bottom: 10px;
}

/* ==========================================================================
   COMPLIANCE BANNER
   ========================================================================== */

.compliance-banner {
  background: linear-gradient(135deg, #F9F6F0 0%, #F3EFE7 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  box-shadow: var(--shadow-card);
}

.compliance-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
}

.shield-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shield-icon svg {
  width: 32px;
  height: 32px;
}

.compliance-header h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.compliance-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.compliance-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.compliance-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.compliance-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.compliance-card strong {
  color: var(--navy-mid);
}

/* ==========================================================================
   CONTACT & INQUIRIES SECTION
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--navy-subtle);
  border: 1px solid #D0E1FD;
  color: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-card h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-mid);
}

.contact-link:hover {
  text-decoration: underline;
  color: var(--navy-light);
}

.contact-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-top: 4px;
}

/* Contact Form */
.contact-form-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card-hover);
}

.form-title {
  margin-bottom: 28px;
}

.form-title h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.form-title p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: #FAF8F5;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-ink);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(19, 62, 135, 0.15);
  background-color: #FFFFFF;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group select {
  cursor: pointer;
}

.form-feedback {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}

.form-feedback.is-visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-feedback.success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-color);
}

.form-feedback.error {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--danger-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SITE FOOTER (Executive Midnight Navy Bookend Anchor)
   ========================================================================== */

.site-footer {
  background-color: #08162B; /* Deep midnight navy creates authoritative contrast without harshness */
  color: #E2E8F0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 80px;
  padding-bottom: 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-logo .brand-title {
  font-size: 1.15rem;
  color: #FFFFFF;
}

.small-icon {
  width: 32px;
  height: 32px;
}

.footer-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 360px;
}

.footer-contact-highlight {
  font-size: 0.9rem;
  color: #F8FAFC;
  font-weight: 500;
}

.footer-contact-highlight a {
  color: #F3CF65;
  font-weight: 600;
}

.footer-contact-highlight a:hover {
  text-decoration: underline;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a,
.modal-trigger-btn {
  color: #94A3B8;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.footer-links-col a:hover,
.modal-trigger-btn:hover {
  color: #38BDF8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748B;
}

.footer-legal-notice {
  font-style: italic;
}

/* ==========================================================================
   MODALS (PRIVACY POLICY & TERMS OF SERVICE)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(14, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-backdrop:not([hidden]) .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #F9F6F0;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--navy-deep);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
}

.modal-body h4 {
  color: var(--navy-deep);
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.modal-body h4:first-of-type {
  margin-top: 10px;
}

.modal-body p {
  margin-bottom: 14px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-body strong {
  color: var(--navy-deep);
}

.modal-date {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  background-color: #F9F6F0;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .about-grid,
  .panel-grid,
  .campus-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 12px;
    padding-left: 48px;
  }

  .timeline-year {
    width: auto;
    text-align: left;
    padding-top: 0;
  }

  .timeline-content::before {
    left: -35px;
    top: -24px;
  }
}

@media (max-width: 600px) {
  .hero-metrics,
  .features-grid,
  .compliance-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 2.1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .section-padding {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .compliance-header {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
