/* ============================================================
   The Student Advantage — design tokens
   Blackboard pine + chalk + brass. Archivo (wide) / Source Serif 4.
   ============================================================ */
:root {
  --pine: #14342B;
  --pine-deep: #0E241E;
  --ink: #12271F;
  --paper: #FAF9F5;
  --chalk: #F1EEE3;
  --brass: #C19A3D;
  --brass-deep: #9A7A2A;
  --sage: #DFE7DD;
  --line: rgba(20, 52, 43, 0.16);
  --line-light: rgba(241, 238, 227, 0.22);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn, .eyebrow {
  font-family: var(--font-display);
  font-stretch: 115%;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark { width: 40px; height: 47px; flex: none; }

.brand-name { display: flex; flex-direction: column; line-height: 1.15; }

.brand-title {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--pine);
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.site-nav { display: flex; gap: 1.6rem; }

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--brass); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--pine);
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-solid { background: var(--pine); color: var(--chalk); }
.btn-solid:hover { background: var(--pine-deep); border-color: var(--pine-deep); }

.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--sage); }

.btn-brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--pine-deep);
}
.btn-brass:hover { background: var(--chalk); border-color: var(--chalk); }

.header-cta { padding: 0.6rem 1.1rem; font-size: 0.78rem; }

/* ---------- Eyebrows & headlines ---------- */
.eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 1.1rem;
}

.eyebrow-light { color: var(--brass); }

.section-headline {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: inherit;
  max-width: 48rem;
}

.section-lead {
  max-width: 44rem;
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3rem) 4.5rem;
}

.hero-headline {
  font-weight: 800;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--pine);
  max-width: 23ch;
}

.accent-underline {
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-size: 100% 0.14em;
  background-position: 0 96%;
}

.hero-lead {
  max-width: 40rem;
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* Mini calendar strip */
.hero-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-top: 3.5rem;
  max-width: 46rem;
}

.strip-cell {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.55rem 0;
  color: var(--chalk);
}

.hero-strip-caption {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 0.7rem;
}

/* Phase colors — one hue family, stepped */
.phase-movein { background: var(--brass); color: var(--pine-deep); }
.phase-fall   { background: #1C4A3C; }
.phase-peak   { background: var(--pine); }
.phase-close  { background: #2E5B4B; }
.phase-turn   { background: #4A7263; }

/* ---------- Commitments strip ---------- */
.commitments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 4rem;
  gap: 1px;
  background: transparent;
}

.commitment {
  border-top: 3px solid var(--pine);
  padding: 1.1rem 1.25rem 0 0;
}

.commitment-figure {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--pine);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.commitment-label {
  font-size: 0.95rem;
  margin-top: 0.35rem;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* Headline and lead keep a readable measure, left-aligned to the content column */
.section > .section-headline,
.section > .section-lead,
.section > .eyebrow {
  margin-left: max(calc((100% - var(--max-w)) / 2), 0px);
  margin-right: 0;
}

.section > .section-headline { max-width: 48rem; }
.section > .section-lead { max-width: 44rem; }

.section-dark {
  background: var(--pine);
  color: var(--chalk);
}

.section-dark .section-lead { color: color-mix(in srgb, var(--chalk) 88%, transparent); }

.section-tint { background: var(--sage); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--pine);
  padding: 1.5rem 1.4rem 1.6rem;
}

.service-card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.6rem;
}

.service-card p { font-size: 0.98rem; }

/* ---------- Leasing year band ---------- */
.year-band {
  display: grid;
  grid-template-columns: 1.7fr 3fr 3fr 3fr 2.7fr;
  gap: 6px;
  margin-top: 3rem;
}

.year-phase {
  padding: 1.3rem 1.1rem 1.5rem;
  border-top: 4px solid var(--brass);
  background: rgba(241, 238, 227, 0.06);
}

.year-phase.phase-movein { background: var(--brass); border-top-color: var(--chalk); }
.year-phase.phase-movein .phase-months,
.year-phase.phase-movein .phase-name,
.year-phase.phase-movein .phase-desc { color: var(--pine-deep); }

.year-phase.phase-fall,
.year-phase.phase-peak,
.year-phase.phase-close,
.year-phase.phase-turn { background: rgba(241, 238, 227, 0.07); }

.phase-months {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.phase-name {
  font-weight: 800;
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0.55rem;
  color: var(--chalk);
}

.phase-desc { font-size: 0.94rem; color: color-mix(in srgb, var(--chalk) 85%, transparent); }

/* ---------- Advantage list ---------- */
.advantage-list { margin-top: 2.5rem; }

.advantage-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 2fr;
  gap: 1rem 3rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.advantage-row:last-child { border-bottom: 1px solid var(--line); }

.advantage-row h3 {
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pine);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.25rem; }

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pine);
  padding: 1.15rem 2.5rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brass-deep);
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  max-width: 44rem;
  padding: 0 0 1.4rem;
  font-size: 1rem;
}

/* ---------- Contact / proposal form ---------- */
.proposal-form { margin-top: 2.5rem; max-width: 46rem; }

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

.form-field { display: flex; flex-direction: column; gap: 0.45rem; }

.form-field-full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk);
}

.form-field .optional {
  font-weight: 500;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--chalk) 55%, transparent);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--chalk);
  background: rgba(241, 238, 227, 0.07);
  border: 1px solid var(--line-light);
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: color-mix(in srgb, var(--chalk) 40%, transparent);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(241, 238, 227, 0.11);
}

.form-field textarea { resize: vertical; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.form-actions .btn:disabled { opacity: 0.55; cursor: default; }

.form-status {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brass);
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

.contact-line {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 1.4rem;
  color: color-mix(in srgb, var(--chalk) 85%, transparent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-deep);
  color: var(--chalk);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}

.footer-mark { width: 46px; height: 54px; margin-bottom: 1.1rem; }

.footer-name {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-line {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.4rem;
}

.footer-copy {
  font-size: 0.85rem;
  margin-top: 1.5rem;
  color: color-mix(in srgb, var(--chalk) 60%, transparent);
}

/* ---------- Reveal animation ---------- */
.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.will-reveal.revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .will-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .year-band { grid-template-columns: 1fr 1fr; }
  .year-phase.phase-movein { grid-column: 1 / -1; }
  .advantage-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .commitments { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .year-band { grid-template-columns: 1fr; }
  .commitments { grid-template-columns: 1fr 1fr; }
  .hero-strip { max-width: 100%; }
  .strip-cell { font-size: 0.5rem; padding: 0.4rem 0; }
  .header-cta { display: none; }
}
