/* ============================================================
   Micah DenBraber — College Admissions & Fellowship Advising
   Plain CSS, no build step. Mobile-first.
   Colors and spacing live in the :root variables below.
   ============================================================ */

/* Self-hosted font (SIL Open Font License, no external requests):
   Hanken Grotesk everywhere — headings, body, and buttons. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1c2733;        /* body text */
  --muted: #55606c;      /* secondary text */
  --bg: #efece3;         /* page background — eggshell */
  --paper: #faf8f1;      /* card / band background */
  --line: #dcd7c9;       /* hairline borders */
  --brand: #1d3557;      /* theme color, college mode: dark grey-blue */
  --brand-dark: #142640; /* button hover */
  --wash: #e9edf4;       /* light theme tint (toggle bar) */
  --accent: #9a5b13;     /* warm gold — text-safe accent */
  --accent-2: #c9922e;   /* warm gold — decorative rules & stripes */
  --accent-bg: #f7ede0;  /* badge background */
  --radius: 10px;
  --wrap: 1100px;
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
          "Segoe UI Emoji";
  --font-display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Fellowship mode swaps the theme to the Carrd's cherry burgundy.
   (Sampled from the old Carrd: #7A1C17.) Everything that uses
   var(--brand) — buttons, links, prices, steps, footer — follows. */
body:has(#aud-fellowship:checked) {
  --brand: #7a1c17;
  --brand-dark: #5e1512;
  --wash: #f3e6e2;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* keep anchored headings clear of sticky header */
}

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.1rem; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: 1.55rem; letter-spacing: -0.01em; }
/* Short gold rule under section headings */
main h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-2);
  margin-top: 0.4rem;
}
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 720px; }

/* Screen-reader-only text (e.g. "(opens in new tab)" on external links) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--brand); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 6px 6px;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================================ Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
}

/* "Bloop": a springy press-down on anything clickable */
.btn, .chip, .audience-toggle label, .chooser-reset {
  transition:
    transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.16s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(28, 39, 51, 0.14); }
.btn:active,
.chip:active,
.audience-toggle label:active,
.chooser-reset:active {
  transform: scale(0.94);
  box-shadow: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.95rem; }

/* ============================================================ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 236, 227, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  white-space: nowrap;
}
.brand:hover { color: var(--brand); }
.site-nav { display: none; gap: 1.1rem; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--brand); }

@media (min-width: 760px) {
  .site-nav { display: flex; }
}

/* ============================================================ Hero */
.hero { padding: 3rem 0 2.5rem; }
.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.tagline {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.8em;
  text-wrap: balance;
}
.hero-quote {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34em;
}
.seasonal-note {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.hero-photo img {
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(201, 146, 46, 0.3);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 60% 20%;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero-inner { grid-template-columns: 1.3fr 1fr; }
  h1 { font-size: 2.7rem; }
  .hero-photo img { margin: 0 0 0 auto; }
}

/* ============================================================ Logo band
   Infinite horizontal marquee: two identical tracks slide left; when the
   first has fully scrolled out, the second is exactly where the first
   began. Speed = the animation duration below. */
.logo-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.3rem;
}
.logo-band-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  padding: 0 1.25rem;
}
.marquee {
  display: flex;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.25rem;
  padding: 0;
  padding-inline-start: 3.25rem;
  margin: 0;
  list-style: none;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 34px;
  width: auto;
  max-width: none;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.25s ease;
}
.marquee-track li:hover img { filter: none; }
@keyframes marquee {
  to { transform: translateX(-100%); }
}
@media (max-width: 640px) {
  .marquee-track { gap: 2.25rem; padding-inline-start: 2.25rem; }
  .marquee-track img { height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ============================================================
   Audience toggle — pure CSS via the two hidden radios.
   #aud-college / #aud-fellowship are siblings of every section,
   so :checked can show/hide any [data-aud] element below them. */
.aud-radio {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}

.audience-toggle-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
  padding: 1rem 0;
  transition: background-color 0.35s ease;
}
.audience-toggle-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}
.toggle-label {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
}
.audience-toggle {
  display: inline-flex;
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  overflow: hidden;
}
.audience-toggle label {
  padding: 0.45rem 1.05rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  user-select: none;
}
.audience-toggle label:hover { background: rgba(255, 255, 255, 0.65); }

/* Active state + focus ring for the toggle */
#aud-college:checked ~ .audience-toggle-bar label[for="aud-college"],
#aud-fellowship:checked ~ .audience-toggle-bar label[for="aud-fellowship"] {
  background: var(--brand);
  color: #fff;
}
/* Two-tone inset ring stays visible on both the navy (checked) and white
   (unchecked) label fills, and follows the pill's rounded clipping. */
#aud-college:focus-visible ~ .audience-toggle-bar label[for="aud-college"],
#aud-fellowship:focus-visible ~ .audience-toggle-bar label[for="aud-fellowship"] {
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--brand);
}

/* Copy variants: hide the audience that isn't selected */
#aud-college:checked ~ * [data-aud="fellowship"] { display: none; }
#aud-fellowship:checked ~ * [data-aud="college"] { display: none; }

/* Service emphasis: card order flips with the audience.
   DOM order is the college order; fellowship promotes the strategy session. */
.cards .card--intro    { order: 0; }
.cards .card--essay    { order: 1; }
.cards .card--strategy { order: 2; }
.cards .card--mock     { order: 3; }
.cards .card--retainer { order: 4; }
#aud-fellowship:checked ~ .services .card--strategy { order: 1; }
#aud-fellowship:checked ~ .services .card--essay    { order: 2; }

/* ============================================================ Sections */
section { padding: 2.75rem 0; }
.pitch h2 { margin-top: 1.6em; }
.lede { font-size: 1.15rem; }

/* ============================================================ Services */
.services { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-note {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 52em;
  margin-bottom: 2rem;
}
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
/* Gold top stripe on every card; the featured intro card's is theme-colored */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-2);
}
.card--intro::before { background: var(--brand); }
.card h3 { margin-bottom: 0.35em; }
.card p { font-size: 0.97rem; }
/* These three re-assert their sizes over the .card p rule above */
.card .price { font-size: 1.05rem; }
.card .card-badge { font-size: 0.78rem; }
.card .hours { font-size: 0.88rem; }
.card-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.7rem;
}
.card--intro { border-color: var(--brand); border-width: 1.5px; }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: 1.05rem;
  margin-bottom: 0.7em;
}
.price-note { font-weight: 500; color: var(--muted); font-size: 0.92rem; }
.hours {
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.7rem;
  margin-top: auto;
}
.card-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.card-ctas .btn { font-size: 0.95rem; }

/* ============================================================ Process */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.75rem 3.4rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  position: absolute;
  left: 0; top: 0;
  width: 2.3rem; height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem; top: 2.6rem; bottom: 0.3rem;
  width: 2px;
  background: var(--line);
}
.process-intro { font-style: italic; color: var(--muted); }

/* ============================================================ Chooser */
.chooser { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chooser-intro { color: var(--muted); }
.chooser-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}
.chooser-q { font-weight: 700; font-size: 1.05rem; }
.chooser-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  font: inherit;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chooser-result:not(:empty) { margin-top: 0.5rem; }
.chooser-result h3 { margin-bottom: 0.2em; }
.chooser-result .price { margin-bottom: 0.8em; }
.chooser-result .btn { margin-right: 0.6rem; margin-bottom: 0.6rem; }
.chooser-reset {
  font: inherit;
  font-size: 0.92rem;
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.3rem 0;
}
.chooser-reset:hover { color: var(--brand); }
.chooser-fallback {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* ============================================================ About */
.about-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-photo img {
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(201, 146, 46, 0.3);
}
.background-list {
  margin: 0;
  padding-left: 1.2rem;
}
.background-list li { margin-bottom: 0.45em; }

@media (min-width: 860px) {
  .about-inner { grid-template-columns: 1fr 1.1fr; }
}

/* ============================================================ Footer */
.site-footer {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.87);
  padding: 2.75rem 0 2rem;
  margin-top: 0;
  transition: background-color 0.35s ease;
}
.footer-inner { text-align: center; }
.footer-cta p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8em;
}
.footer-cta .btn-primary {
  background: #fff;
  color: var(--brand);
}
.footer-cta .btn-primary:hover { background: var(--accent-bg); color: var(--brand-dark); }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}
.footer-links a { color: rgba(255, 255, 255, 0.87); }
.footer-links a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-fine {
  margin: 1.6rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================ Scroll reveal
   Applied only when JS is running (js adds .reveal); disabled for
   users who prefer reduced motion. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .chip, .audience-toggle label, .chooser-reset { transition: none; }
  .btn:hover, .btn:active, .chip:active,
  .audience-toggle label:active, .chooser-reset:active { transform: none; }
}
