@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

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

:root {
  --bg: #faf9f7;
  --ink: #111111;
  --mid: #555555;
  --faint: #cccccc;
  --rule: #e0dedd;
  --max: 680px;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.75;
  padding: 0 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ── */
nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

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

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  padding: 6rem 0 4rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ── Buttons / CTAs ── */
.btn {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.75rem 2rem;
  transition: background 0.2s, color 0.2s;
}

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

.btn-ghost {
  border-color: var(--faint);
  color: var(--mid);
}

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

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Section structure ── */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}

section:first-of-type {
  border-top: none;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 2rem;
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--ink);
}

p:last-child {
  margin-bottom: 0;
}

/* ── Results / Admits ── */
.admits {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
}

.admit-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.admit-item:first-child {
  border-top: 1px solid var(--rule);
}

.admit-school {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.admit-type {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Services ── */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.service-item p {
  color: var(--mid);
  font-size: 0.95rem;
}

/* ── Pricing ── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.pricing-table tr {
  border-bottom: 1px solid var(--rule);
}

.pricing-table tr:first-child {
  border-top: 1px solid var(--rule);
}

.pricing-table td {
  padding: 1rem 0;
  vertical-align: top;
}

.pricing-table td:last-child {
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  white-space: nowrap;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--mid);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ── Testimonial ── */
blockquote {
  border-left: 1px solid var(--ink);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Blog index ── */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.2s;
}

.post-item:first-child {
  border-top: 1px solid var(--rule);
}

.post-item:hover {
  opacity: 0.65;
}

.post-date {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--mid);
  padding-top: 0.2rem;
  line-height: 1.4;
}

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.post-excerpt {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── Blog post ── */
.post-header {
  padding: 5rem 0 3rem;
}

.post-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.post-meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}

.post-body {
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 6rem;
}

.post-body h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.post-body li {
  margin-bottom: 0.4rem;
}

.post-body strong {
  font-weight: 500;
}

/* ── Footer ── */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 1.2rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .admit-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .post-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  footer {
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
  }
}

/* ── Review link on results ── */
.review-link {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  margin-left: 0.75rem;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.review-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ── Review modal / lightbox ── */
.review-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.82);
  z-index: 1000;
  padding: 2rem 1rem;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.review-modal.open {
  display: flex;
}

.review-modal-inner {
  position: relative;
  max-width: 720px;
  width: 100%;
  background: var(--bg);
  padding: 2.5rem 1.25rem 1.25rem;
  margin: 2rem auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.review-modal-inner img {
  display: block;
  width: 100%;
  height: auto;
}

.review-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--mid);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  transition: color 0.2s;
}

.review-modal-close:hover {
  color: var(--ink);
}

/* ── Pricing: Why link + collapsible row ── */
.why-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
  padding-bottom: 1px;
  margin-left: 0.4rem;
  transition: color 0.2s, border-color 0.2s;
}

.why-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.why-row td {
  padding: 0 !important;
  border-bottom: none !important;
}

.why-row .why-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
  background: #f3f1ee;
  border-left: 2px solid var(--ink);
}

.why-row.open .why-content {
  max-height: 600px;
  padding: 1.1rem 1.25rem;
  margin: 0.4rem 0 0.6rem;
}

.why-row .why-content p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.why-row .why-content p:last-child {
  margin-bottom: 0;
}

.why-row .why-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem !important;
  color: var(--ink);
}
