/* ============================================================
   MENDOVA — Global Stylesheet
   "A new light on learning."
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B2A4A;
  --navy-dark: #111d33;
  --navy-light: #243660;
  --gold:   #F2A818;
  --gold-light: #F7C05A;
  --gold-dark: #d4910f;
  --cream:  #FDF6E3;
  --cream-dark: #F5EDD0;
  --teal:   #1A8C8C;
  --teal-light: #22AAAA;
  --white:  #FFFFFF;
  --text-primary: #1B2A4A;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: rgba(27,42,74,0.1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 4px 24px rgba(27,42,74,0.08);
  --shadow-md: 0 8px 48px rgba(27,42,74,0.12);
  --shadow-lg: 0 24px 80px rgba(27,42,74,0.16);

  --max-w: 1200px;
  --section-pad: 120px 24px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
.display-xl {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display-md {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.headline {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.subheadline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

.label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-xs {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad); }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(27,42,74,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 24px rgba(27,42,74,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(242,168,24,0.35) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 24px rgba(242,168,24,0.3);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(242,168,24,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 20px 44px;
  font-size: 1.1rem;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(242,168,24,0.12);
  color: var(--gold-dark);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-label.teal {
  background: rgba(26,140,140,0.12);
  color: var(--teal);
}

.section-label.navy {
  background: rgba(27,42,74,0.08);
  color: var(--navy);
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 20px 0 32px;
}

.divider.center { margin: 20px auto 32px; }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.scale-in { opacity: 0; transform: scale(0.94); transition: opacity 0.6s ease, transform 0.6s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* ── Footer ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 24px 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo {
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s ease;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── Utility ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.bg-white { background: var(--white); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.gap-8 { gap: 32px; }

/* ── Input ── */
.input-group {
  display: flex;
  gap: 12px;
  max-width: 500px;
}

.input-group input,
.form-input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus,
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(242,168,24,0.12);
}

.form-input.dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.form-input.dark::placeholder { color: rgba(255,255,255,0.4); }
.form-input.dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(242,168,24,0.15);
}

/* ── Mobile Nav ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(27,42,74,0.1);
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-cta {
  text-align: center;
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--navy) !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --section-pad: 96px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px 20px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .mobile-menu.open { display: flex; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .btn-lg { padding: 16px 32px; font-size: 1rem; }

  .input-group { flex-direction: column; }
  .input-group input { border-radius: var(--radius); }
  .input-group .btn { border-radius: var(--radius); width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --section-pad: 60px 16px; }
  .container, .container-sm, .container-xs { padding: 0 16px; }
  nav { padding: 0 16px; }
}
