/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #2d2d2d;
  line-height: 1.7;
  background: #fff;
}

h1, h2, h3 { font-family: 'Merriweather', serif; line-height: 1.25; }

a { text-decoration: none; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

nav.scrolled {
  border-color: #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a4f8a;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  transition: color 0.2s;
}

nav ul a:hover { color: #1a4f8a; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a4f8a 0%, #2d6fc4 60%, #4a90d9 100%);
  color: #fff;
  padding: 7rem 2rem 6rem;
  text-align: center;
}

.hero-content { max-width: 780px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 100px;
  padding: 0.35rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.2rem;
  color: #fff;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 2.2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #fff;
  color: #1a4f8a;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.btn-white {
  background: #fff;
  color: #1a4f8a;
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section-white { background: #fff; }
.section-light  { background: #f5f8fd; }
.section-accent { background: linear-gradient(135deg, #1a4f8a, #2d6fc4); color: #fff; }

.container { max-width: 1100px; margin: 0 auto; }

.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d6fc4;
  margin-bottom: 0.6rem;
}

.label.light { color: rgba(255,255,255,0.75); }
.label.center { text-align: center; }

h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h2.center { text-align: center; }
h2.light { color: #fff; }

.section-sub {
  font-size: 1rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-sub.center { text-align: center; }
.section-sub.light { color: rgba(255,255,255,0.85); }

/* ===== ABOUT TWO-COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.text-block h2 { margin-bottom: 1rem; }
.text-block p { color: #444; margin-bottom: 0.9rem; }
.text-block p:last-child { margin-bottom: 0; }

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.stat-card {
  background: #f5f8fd;
  border: 1px solid #dde8f7;
  border-radius: 12px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-num {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a4f8a;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== SERVICE CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #e2eaf5;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(26,79,138,0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #1a4f8a;
}

.card p { font-size: 0.9rem; color: #555; }

/* ===== GRADES ===== */
.grade-list {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.grade-item {
  background: #1a4f8a;
  color: #fff;
  border-radius: 14px;
  padding: 2rem 2.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 110px;
}

.grade-num {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
}

.grade-item span:nth-child(2) {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.grade-link {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.4rem;
  transition: opacity 0.2s;
}

a.grade-item {
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

a.grade-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(26,79,138,0.25);
  background: #2d6fc4;
}

a.grade-item:hover .grade-link { opacity: 1; }

/* ===== CONTACT FORM ===== */
.contact-inner { max-width: 700px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.65); }

.contact-form select option { color: #2d2d2d; background: #fff; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.2);
}

.contact-form textarea { resize: vertical; }

.contact-form .btn-white { align-self: flex-start; cursor: pointer; border: none; }

.form-note { font-size: 0.9rem; min-height: 1.4em; }

/* ===== FOOTER ===== */
footer {
  background: #0f2f56;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 2rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }
footer p { margin-bottom: 0.3rem; font-size: 0.9rem; }
.footer-note { font-size: 0.8rem; opacity: 0.65; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  nav ul { gap: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grade-list { gap: 1rem; }
}
