:root {
  --ink: #1f2522;
  --muted: #63706a;
  --paper: #fbfaf7;
  --sand: #e8decc;
  --copper: #b96337;
  --sage: #60745f;
  --charcoal: #28302d;
  --white: #ffffff;
  --line: rgba(31, 37, 34, 0.16);
  --shadow: 0 24px 70px rgba(35, 38, 34, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { text-decoration: none; display: grid; gap: 2px; }
.brand span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.brand strong { font-size: 1rem; letter-spacing: 0; }
.nav { display: flex; gap: 18px; font-size: 0.92rem; }
.nav a, .footer-links a { text-decoration: none; color: var(--charcoal); }
.header-cta, .button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}
.button { cursor: pointer; }
.primary { background: var(--copper); color: var(--white); border-color: var(--copper); }
.secondary { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.tertiary { background: var(--white); color: var(--charcoal); border-color: var(--line); }
.ghost { background: rgba(255,255,255,0.16); color: var(--white); border-color: rgba(255,255,255,0.42); }

.hero {
  min-height: 88vh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 72px) 72px;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,13,0.16), rgba(10,14,13,0.68)),
    url("https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?auto=format&fit=crop&w=2200&q=90") center/cover;
}
.hero-content { position: relative; max-width: 820px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 800; color: var(--copper); }
.hero .eyebrow { color: #f2c3a4; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.8rem); line-height: 0.95; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: 0; }
h3 { margin: 0; font-size: 1.2rem; letter-spacing: 0; }
.hero p { max-width: 720px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding: 84px clamp(18px, 5vw, 72px); }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading p { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
}
.filter-button.active { background: var(--sage); color: var(--white); border-color: var(--sage); }

.community-grid, .video-grid, .review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.community-card, .video-card, .review-card, .school-card, .comparison-card, .contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(40, 48, 45, 0.08);
}
.community-image, .video-thumb { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.community-body, .video-body, .review-card, .school-card, .comparison-card, .contact-panel { padding: 20px; }
.community-body p, .video-body p, .review-card p, .school-card p { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { border-radius: 999px; background: #eef1ec; color: var(--charcoal); padding: 5px 9px; font-size: 0.78rem; font-weight: 700; }
.rating-links { display: grid; gap: 8px; margin: 16px 0; font-size: 0.92rem; }
.rating-links a, .school-card a { color: var(--copper); font-weight: 800; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.comparison-section, .reviews-section { background: #f2f0ea; }
.comparison-grid, .school-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.comparison-card dl { margin: 14px 0 0; display: grid; gap: 8px; }
.comparison-card div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.comparison-card dt { color: var(--muted); text-transform: capitalize; }
.comparison-card dd { margin: 0; font-weight: 800; text-align: right; }
.school-card { display: grid; gap: 8px; }
.school-card span, .review-card span { color: var(--muted); font-size: 0.92rem; }

.video-card button {
  width: 100%;
  margin-top: 14px;
  cursor: pointer;
}
.video-file-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--copper);
  font-weight: 800;
}
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 14, 13, 0.76);
  z-index: 50;
}
.video-modal.open { display: flex; }
.video-modal-content { width: min(920px, 100%); background: var(--charcoal); border-radius: 8px; padding: 14px; }
.modal-close { float: right; border: 0; background: var(--white); border-radius: 999px; width: 36px; height: 36px; font-size: 1.3rem; cursor: pointer; }
.video-frame { clear: both; aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--white); border: 1px solid rgba(255,255,255,0.24); margin-top: 52px; padding: 24px; text-align: center; }
.video-frame .eyebrow { color: #f2c3a4; }
.video-player {
  width: min(100%, 760px);
  max-height: 52vh;
  margin-top: 16px;
  background: #000000;
}
.video-file-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.video-file-links a {
  color: #f2c3a4;
  font-weight: 800;
}

.search-band, .consultation-section {
  margin: 0 clamp(18px, 5vw, 72px) 84px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--charcoal);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.search-band p { max-width: 680px; }
.consultation-section { background: var(--white); color: var(--ink); align-items: stretch; }
.consultation-copy { max-width: 760px; }
.consultation-copy p { color: var(--muted); }
.contact-panel { display: grid; gap: 8px; min-width: min(340px, 100%); }
.contact-panel a { color: inherit; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 6px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .community-grid, .video-grid, .review-grid, .comparison-grid, .school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-band, .consultation-section, .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .header-cta { display: none; }
  .hero { min-height: 82vh; padding-top: 96px; }
  h1 { font-size: 3.25rem; }
  .hero-actions, .card-actions { flex-direction: column; align-items: stretch; }
  .community-grid, .video-grid, .review-grid, .comparison-grid, .school-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 18px; }
  .search-band, .consultation-section { margin: 0 18px 64px; }
}
