/* ===== Design tokens ===== */
:root {
  --teal:        #2bba29;  /* brand green */
  --teal-dark:   #1f8f1e;
  --teal-soft:   #e7f6e6;
  --coral:       #178a2a;  /* deeper green used for CTAs/accents */
  --coral-dark:  #0f6b20;
  --sun:         #ffc857;
  --cream:       #fbf8f0;
  --ink:         #223528;
  --ink-soft:    #4f6154;
  --white:       #ffffff;
  --radius:      20px;
  --radius-sm:   12px;
  --shadow:      0 18px 40px -18px rgba(23, 138, 42, 0.35);
  --shadow-sm:   0 8px 20px -10px rgba(34, 53, 40, 0.25);
  --max:         1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 600; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.highlight { color: var(--coral); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 140, 140, 0.12);
}
.nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand-logo { height: 40px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.main-nav { display: flex; gap: 30px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.main-nav a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover { color: var(--teal); }
.nav-cta { padding: 11px 24px; }

/* ===== Hero ===== */
.hero { position: relative; background: linear-gradient(160deg, var(--teal-soft) 0%, var(--cream) 78%); padding: 72px 0 120px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero-text .lead { font-size: 1.22rem; color: var(--ink-soft); margin: 22px 0 30px; max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.92rem; font-weight: 700; color: var(--teal-dark); }

.hero-media { position: relative; }
.hero-media > img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center 30%;
  aspect-ratio: 4 / 3.4;
  transform: rotate(1.5deg);
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: 18px;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-badge strong { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--teal); }
.hero-badge-text { display: flex; flex-direction: column; gap: 5px; }
.hero-stars { font-size: 0.8rem; color: #f5a623; letter-spacing: 1px; line-height: 1; }
.hero-badge-logos { display: flex; align-items: center; gap: 9px; }
.hero-badge-logos svg { display: block; height: 17px; width: auto; }
.hero-badge-logos .logo-google { height: 15px; }

.wave-divider {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(75% 100% at 50% 100%);
}

/* ===== Intro strip ===== */
.intro { background: var(--teal); color: var(--white); }
.intro-inner { padding: 44px 24px; display: flex; align-items: center; justify-content: center; gap: 36px; }
.intro-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  display: block;
}
.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.7);
}
.intro p { font-size: 1.22rem; font-weight: 600; max-width: 60ch; }
.intro strong { color: var(--ink); }

@media (max-width: 620px) {
  .intro-inner { flex-direction: column; text-align: center; gap: 18px; }
}

/* ===== Section head ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; margin-top: 10px; }

/* ===== Services ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 140, 140, 0.08);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--teal-soft);
  border-radius: 16px;
  margin-bottom: 18px;
}
.service-card p { color: var(--ink-soft); margin-top: 8px; }

/* ===== About ===== */
.about { background: var(--white); }
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-media img { border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 4/4.4; object-fit: cover; object-position: top; }
.about-affiliations { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; align-items: center; justify-items: center; margin-top: 24px; }
.about-affiliations img { height: 80px; width: auto; max-width: 100%; border-radius: 0; box-shadow: none; aspect-ratio: auto; object-fit: contain; }
.about-text p { color: var(--ink-soft); margin-top: 16px; }
.cred-list { list-style: none; margin: 24px 0 26px; display: grid; gap: 10px; }
.cred-list li { position: relative; padding-left: 30px; font-weight: 600; }
.cred-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--teal); color: #fff;
  border-radius: 50%;
  font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ===== Research ===== */
.research { background: linear-gradient(160deg, var(--cream), var(--teal-soft)); }
.research-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.research-text .quote {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--teal-dark);
  margin: 18px 0;
  line-height: 1.35;
}
.research-text p { color: var(--ink-soft); }
.research-media img { border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 4/3.6; object-fit: cover; }

/* ===== Testimonials ===== */
.testimonials { background: var(--white); }
.stars { color: var(--sun); font-size: 1.4rem; letter-spacing: 3px; margin-top: 10px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
  border-left: 5px solid var(--coral);
  box-shadow: var(--shadow-sm);
}
.testimonial p { font-size: 1.05rem; color: var(--ink); }
.testimonial cite { display: block; margin-top: 16px; font-style: normal; font-weight: 800; color: var(--teal); }
.testimonial.wide { grid-column: span 3; text-align: center; border-left: none; border-top: 5px solid var(--coral); background: var(--teal-soft); }
.testimonial.wide p { font-family: 'Fraunces', serif; font-size: 1.5rem; font-style: italic; }

/* ===== Ways to work together ===== */
.ways { background: linear-gradient(160deg, var(--cream), var(--teal-soft)); }
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 0 auto; }
.way-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 140, 140, 0.08);
}
.way-card .icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--teal-soft);
  border-radius: 16px;
  margin-bottom: 18px;
}
.way-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.way-card p { color: var(--ink-soft); margin-top: 12px; }
.way-card .way-zips-label { font-weight: 700; color: var(--teal-dark); margin-top: 20px; }
.way-card .way-zips { font-weight: 800; color: var(--teal-dark); letter-spacing: 0.5px; margin-top: 6px; }
.ways-sub { font-size: 1.5rem; font-weight: 700; color: var(--ink); max-width: 40ch; margin-left: auto; margin-right: auto; }

/* ===== Contact ===== */
.contact { background: var(--teal); color: var(--white); text-align: center; }
.contact h2 { color: var(--white); }
.contact .btn-primary { background: var(--white); color: var(--coral-dark); }
.contact .btn-primary:hover { background: var(--sun); color: var(--ink); }
.contact p { max-width: 52ch; margin: 16px auto 30px; font-size: 1.15rem; opacity: 0.95; }
.contact-email { margin-top: 24px; font-weight: 700; opacity: 0.9; font-size: 1rem; }
.contact-email a { color: var(--white); text-decoration: underline; }

.contact-form {
  max-width: 620px;
  margin: 34px auto 0;
  text-align: left;
  display: grid;
  gap: 18px;
}
.hidden-field { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 8px; }
.form-field span { font-weight: 700; font-size: 0.95rem; color: var(--white); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa79e; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form button { justify-self: start; margin-top: 4px; border: none; cursor: pointer; }
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form button { justify-self: stretch; }
}

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); padding: 50px 0; text-align: center; }
.footer-logo { height: 42px; margin: 0 auto 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tag { font-weight: 700; color: var(--sun); }
.footer-copy { margin-top: 10px; font-size: 0.88rem; opacity: 0.6; }

/* ===== Thanks page ===== */
.thanks-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--teal-soft) 0%, var(--cream) 78%); padding: 40px 0; }
.thanks-inner { text-align: center; max-width: 560px; }
.thanks-logo { height: 60px; width: auto; margin: 0 auto 26px; }
.thanks-inner h1 { font-size: 2.6rem; }
.thanks-inner p { color: var(--ink-soft); font-size: 1.15rem; margin: 18px auto 30px; max-width: 44ch; }

/* ===== Subpage hero ===== */
.page-hero { background: linear-gradient(160deg, var(--teal-soft) 0%, var(--cream) 78%); padding: 60px 0 66px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.page-hero p { max-width: 60ch; margin: 16px auto 0; color: var(--ink-soft); font-size: 1.15rem; }
.page-hero-media { max-width: 940px; margin: 40px auto 0; padding: 0 24px; }
.page-hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 6.5; object-fit: cover; }

/* ===== Feature rows (students / about) ===== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 54px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-text h2 { font-size: 1.9rem; }
.feature-text p { color: var(--ink-soft); margin-top: 14px; }

/* ===== Prose (resources / about) ===== */
.prose { max-width: 780px; margin: 0 auto; }
.prose-block { margin-bottom: 56px; }
.prose-block:last-child { margin-bottom: 0; }
.prose-block > h2 { margin-bottom: 4px; }
.prose p { color: var(--ink-soft); margin-top: 16px; }
.prose h3 { margin-top: 28px; color: var(--ink); font-size: 1.15rem; }
.prose strong { color: var(--ink); }
.resource-links { list-style: none; display: grid; gap: 10px; margin: 18px 0 4px; }
.resource-links a {
  display: block;
  background: var(--white);
  border: 1px solid rgba(44, 140, 140, 0.15);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.resource-links a:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.figure { margin: 26px 0 4px; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; border: 1px solid rgba(44, 140, 140, 0.1); }
.figure figcaption { font-size: 0.92rem; color: var(--ink-soft); margin-top: 12px; font-style: italic; }
.prose-inline-link { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }

/* ===== Sub-page CTA ===== */
.page-cta { text-align: center; margin-top: 54px; }
.page-cta h2 { margin-bottom: 20px; }

/* ===== Blog index ===== */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 960px; margin: 0 auto; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(44, 140, 140, 0.08); transition: transform 0.18s ease, box-shadow 0.2s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.post-card .post-date { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.5px; color: var(--teal-dark); text-transform: uppercase; }
.post-card h2 { font-size: 1.3rem; line-height: 1.2; }
.post-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ===== Blog post (article) ===== */
.post { max-width: 760px; margin: 0 auto; }
.post-header { text-align: center; margin-bottom: 32px; }
.post-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.post-meta { margin-top: 14px; font-weight: 700; color: var(--teal-dark); font-size: 0.95rem; }
.post-body p { color: var(--ink-soft); margin-top: 16px; }
.post-body h2 { margin-top: 36px; font-size: 1.5rem; }
.post-body h3 { margin-top: 28px; font-size: 1.2rem; color: var(--ink); }
.post-body ul { margin: 14px 0 14px 1.2rem; color: var(--ink-soft); display: grid; gap: 8px; }
.post-body ul ul { margin: 8px 0 4px 1.2rem; }
.post-body li { padding-left: 4px; }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
.post-body a.btn { color: var(--white); text-decoration: none; }
.post-body .figure { margin: 28px 0; }
.post-author { margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(44, 140, 140, 0.15); display: flex; gap: 18px; align-items: center; }
.post-author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-author p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.post-author strong { color: var(--ink); }
.post-back { text-align: center; margin-top: 40px; }
.post-back a { font-weight: 800; color: var(--teal-dark); }
.post-citations { margin: 14px 0 0 1.2rem; color: var(--ink-soft); display: grid; gap: 10px; font-size: 0.95rem; }
.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.post-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
@media (max-width: 620px) { .post-gallery { grid-template-columns: 1fr 1fr; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 24px 22px;
    background: rgba(251, 247, 240, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 140, 140, 0.14);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid rgba(44, 140, 140, 0.12); font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .hero-inner, .about-inner, .research-inner { grid-template-columns: 1fr; gap: 42px; }
  .about-media { order: -1; }
  .card-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial.wide { grid-column: span 2; }
  .section { padding: 70px 0; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media { order: -1; }
}
@media (max-width: 620px) {
  .card-grid, .testimonial-grid, .ways-grid, .blog-grid { grid-template-columns: 1fr; }
  .testimonial.wide { grid-column: span 1; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-badge { left: 50%; transform: translateX(-50%); }
  .page-hero-media img { aspect-ratio: 4 / 3; }
}
