/* ─────────────────────────────────────────
   MS Tutoring — style.css
   No JavaScript required. Dropdowns are
   CSS-only via :hover and :focus-within.
───────────────────────────────────────── */

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

/* ── VARIABLES ── */
:root {
  --green:       #2d5a24;
  --green-mid:   #3e7a32;
  --green-light: #eef4ec;
  --brick:       #8b2e1a;
  --cream:       #faf8f5;
  --parchment:   #f0ece4;
  --ink:         #1a1a16;
  --mid:         #4a4a3a;
  --muted:       #888878;
  --border:      #e2ddd4;
  --white:       #ffffff;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --nav-h: 68px;
  --max-w: 1100px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ─────────────────────────────
   NAVBAR
───────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img-wrap {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--green); /* shows while logo.png loads or if missing */
  flex-shrink: 0;
}

.logo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.logo-name em {
  font-style: normal;
  color: var(--brick);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  padding: 8px 15px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-item:hover  { color: var(--ink);   background: var(--green-light); }
.nav-item.active { color: var(--green); background: var(--green-light); }

/* Dropdown — CSS only, no JavaScript */
.dropdown {
  position: relative;
}

.dropdown > .nav-item::after {
  content: ' ▾';
  font-size: 0.6rem;
  opacity: 0.5;
  vertical-align: middle;
}

.drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  min-width: 196px;
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.dropdown:hover       .drop-menu,
.dropdown:focus-within .drop-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.drop-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: var(--mid);
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.drop-menu a:hover {
  background: var(--green-light);
  color: var(--green);
  border-left-color: var(--green);
}

/* ─────────────────────────────
   HERO
───────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px 88px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid rgba(45, 90, 36, 0.15);
  padding: 5px 13px;
  border-radius: 99px;
  margin-bottom: 22px;
}

.hero-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--brick);
}

.hero-sub {
  font-size: 0.975rem;
  color: var(--mid);
  line-height: 1.78;
  max-width: 420px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-solid {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 26px;
  border-radius: 7px;
  letter-spacing: 0.02em;
  transition: background 0.18s;
}

.btn-solid:hover { background: var(--green-mid); }

.btn-ghost {
  display: inline-block;
  color: var(--mid);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 12px 18px;
  border-radius: 7px;
  transition: color 0.18s, background 0.18s;
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--parchment);
}

/* Hero stats panel */
.hero-stats {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.stat:first-child { padding-top: 0; }
.stat:last-child  { border-bottom: none; padding-bottom: 0; }

.stat-icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 2px;
}

.stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─────────────────────────────
   SUBJECTS STRIP
───────────────────────────── */
.strip {
  background: var(--green);
  padding: 12px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.strip-track {
  display: flex;
  gap: 10px;
  animation: ticker 34s linear infinite;
  width: max-content;
}

.strip:hover .strip-track {
  animation-play-state: paused;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.77rem;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ─────────────────────────────
   PROGRAMS
───────────────────────────── */
.programs {
  padding: 80px 32px;
  background: var(--cream);
}

.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 40px;
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.prog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

/* Animated bottom bar on hover */
.prog-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.prog-card:hover {
  border-color: transparent;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}

.prog-card:hover::after { transform: scaleX(1); }

.prog-card.featured::after {
  background: var(--brick);
  transform: scaleX(1);
}

.prog-badge {
  display: inline-block;
  background: var(--brick);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.prog-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.prog-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
  line-height: 1.2;
}

.prog-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.prog-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

/* ─────────────────────────────
   WHY MS TUTORING
───────────────────────────── */
.why {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 80px 32px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.why-left > p {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 400px;
}

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

.feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 8px;
}

.feat p        { font-size: 0.88rem; color: var(--mid); line-height: 1.65; }
.feat strong   { color: var(--ink); font-weight: 600; }

.why-right {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 30px;
}

.why-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.why-row:first-child { padding-top: 0; }
.why-row:last-child  { border-bottom: none; padding-bottom: 0; }

.why-label { font-size: 0.86rem; color: var(--mid); }

.why-val {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green);
}

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
.footer { background: var(--ink); }

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-wrap {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--green); /* fallback until logo.png loads */
  flex-shrink: 0;
}

.footer-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-row span {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #faf8f5;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.38);
  line-height: 1.65;
  max-width: 200px;
}

.footer-col h4 {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.28);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.55);
  margin-bottom: 9px;
  transition: color 0.15s;
}

.footer-col a:hover { color: #faf8f5; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.28);
}

.footer-bottom a:hover { color: rgba(245, 240, 232, 0.65); }

/* ─────────────────────────────
   RESPONSIVE
───────────────────────────── */
@media (max-width: 960px) {
  .hero-inner   { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats   { display: none; }
  .prog-grid    { grid-template-columns: 1fr 1fr; }
  .why-grid     { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .hero         { padding: 56px 20px 60px; }
  .programs,
  .why          { padding: 60px 20px; }
  .prog-grid    { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .nav-inner    { padding: 0 20px; }
}
