@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid #2980b9;
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --navy: #1e3a5f;
  --navy-deep: #152a46;
  --navy-light: #2c5282;
  --gold: #f0a500;
  --gold-dark: #d99400;
  --blue: #2980b9;
  --text: #2a2f3a;
  --text-light: #525766;
  --text-muted: #8790a3;
  --bg-light: #f7f8fb;
  --bg-accent: #eef4fc;
  --border: #e6e9ef;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

.display-serif, .hero h1, .page-hero h1 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1, h2, h3, h4 { letter-spacing: -0.018em; }

/* ── Navigation ── */
nav {
  background: var(--navy-deep);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 2px 16px rgba(0,0,0,0.18);
}
.nav-logo {
  color: white;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: white; background: rgba(255,255,255,0.12); }
.nav-links .nav-apply {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  margin-left: 0.5rem;
}
.nav-links .nav-apply:hover { background: var(--gold-dark); color: var(--navy); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  border: none;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(240,165,0,0.25), 0 4px 14px rgba(240,165,0,0.18);
}
.btn:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(240,165,0,0.3), 0 8px 20px rgba(240,165,0,0.22); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.85);
  color: white;
  box-shadow: none;
}
.btn-outline:hover { background: white; color: var(--navy); box-shadow: 0 4px 14px rgba(255,255,255,0.18); }
.btn-white {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover { background: #f4f5f9; box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.15); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { display: block; text-align: center; }

/* ── Layout ── */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-weight: 800;
}
.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 4.5rem 2rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.page-hero p {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  background: white;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover {
  box-shadow: 0 10px 32px rgba(30,58,95,0.08), 0 2px 6px rgba(30,58,95,0.04);
  transform: translateY(-4px);
  border-color: #d6dce6;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef4fc 0%, #dbe6f5 100%);
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.08rem; font-weight: 700; }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}
.cta-banner h2 { color: white; margin-bottom: 0.75rem; }
.cta-banner p {
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Forms ── */
.form-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.form-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  color: var(--text);
  background: var(--bg-light);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  margin-bottom: 0;
  transition: border-color 0.2s, background 0.2s;
}
.form-group .checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.form-group .checkbox-label:has(input:checked) { background: #eef6ff; border-color: var(--blue); color: var(--navy); }
.form-note { font-size: 0.85rem; color: #888; margin-top: 0.35rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { color: var(--navy); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-light); }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-block h3 { color: var(--navy); margin-bottom: 2rem; font-size: 1.2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #eef4fc 0%, #dbe6f5 100%);
  color: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-item-text strong {
  display: block;
  color: #888;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
}
.contact-item-text a {
  color: var(--navy);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}
.contact-item-text a:hover { color: var(--blue); }
.contact-item-text p { color: var(--text-light); font-size: 0.9rem; margin-top: 0.2rem; }
.contact-aside {
  background: var(--navy);
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
}
.contact-aside h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.contact-aside p { opacity: 0.85; margin-bottom: 1.5rem; line-height: 1.75; }
.contact-aside .btn { display: block; text-align: center; }

/* ── FAQ ── */
.faq-list { max-width: 750px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 { color: var(--navy); font-size: 1rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-light); font-size: 0.97rem; line-height: 1.75; }

/* ── Footer ── */
footer {
  background: #111827;
  color: rgba(255,255,255,0.5);
  padding: 3.5rem 2rem 2rem;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand strong { color: white; font-size: 1.1rem; display: block; margin-bottom: 0.6rem; }
.footer-brand p { line-height: 1.75; max-width: 280px; }
.footer-col h4 {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  section { padding: 3.5rem 1.25rem; }
  .form-wrap { padding: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
