/* =========================================================
   Ishaan Thakur — Office Hours
   Single-page marketing site
   ========================================================= */

:root {
  --maroon: #800000;        /* UChicago maroon accent */
  --maroon-dark: #5e0000;
  --maroon-tint: #f6eceb;   /* very light maroon wash */
  --ink: #1c1a19;           /* near-black text */
  --ink-soft: #514c49;      /* secondary text */
  --bg: #fbfaf8;            /* warm off-white */
  --surface: #ffffff;
  --line: #ece8e3;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28,26,25,.04), 0 8px 28px rgba(28,26,25,.06);
  --container: 1080px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--maroon); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 84px 0;
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  line-height: 1.15;
}

.section__title--center {
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  line-height: 1;
}

.btn--primary {
  background: var(--maroon);
  color: #fff;
  box-shadow: 0 6px 18px rgba(128,0,0,.22);
}
.btn--primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(128,0,0,.28);
}

.btn--outline {
  background: transparent;
  color: var(--maroon);
  border: 1.5px solid var(--maroon);
}
.btn--outline:hover {
  background: var(--maroon-tint);
  color: var(--maroon-dark);
  border-color: var(--maroon-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(128,0,0,.14);
}

/* ---------- Sticky top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(251,250,248,.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.topbar.is-visible { transform: translateY(0); }

.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__name {
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -0.01em;
}
.topbar__sub { color: var(--ink-soft); font-weight: 500; }

.topbar__cta {
  background: var(--maroon);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.topbar__cta:hover { background: var(--maroon-dark); }

/* ---------- Header ---------- */
.header {
  padding: 130px 0 90px;
  text-align: center;
  background:
    radial-gradient(1200px 400px at 50% -10%, var(--maroon-tint), transparent 70%);
}
.wordmark {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1;
  color: var(--ink);
}
.sublabel {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
}
.tagline {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--ink-soft);
}
.header__btn { margin-top: 34px; }

/* ---------- Story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.story__text p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.story__text p:first-of-type {
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 500;
}
.story__photo { position: sticky; top: 90px; }

/* ---------- Photo placeholders ---------- */
.photo {
  position: relative;
  margin: 0;
  background: linear-gradient(135deg, #efe9e7, #e4ddd9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo__label {
  text-align: center;
  color: #a99f99;
  font-weight: 600;
  font-size: .95rem;
  padding: 16px;
}
.photo__label small { font-weight: 500; font-size: .78rem; opacity: .8; }
.photo--portrait { aspect-ratio: 4 / 5; }
/* Nudge the crop down so the belt shows rather than just the face/torso */
.photo--portrait img { object-position: center 78%; }

/* ---------- Mid-page quote + TEDx photo ---------- */
.quote-band { padding-top: 0; }
.quote-band__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.photo--tedx { aspect-ratio: 4 / 5; }
.photo--tedx img { object-position: center 28%; }
.quote-band__quote { margin: 0; }
.quote-band__quote::before {
  content: "\201C";
  display: block;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: .5;
  color: var(--maroon);
  margin-bottom: 14px;
}
.quote-band__quote p {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Logo wall ---------- */
.logos { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px 44px;
}
/* Borderless logos floating on plain white — no card, no box, no shadow */
.logo {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .25s ease, opacity .25s ease;
}
.logo:hover {
  transform: translateY(-2px);
  opacity: .85;
}
.logo span { display: none; }   /* placeholder text no longer needed — real logos load */
/* Logos are tightly trimmed, so a single consistent cap on height + width
   gives every logo a similar visual size, centered on white with even
   breathing room. object-fit:contain never stretches or distorts. */
.logo img {
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 42%;
  object-fit: contain;
}
/* The two boldest, most compact marks read oversized — rein them in slightly */
.logo--rein img { max-height: 34%; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--maroon);
  color: #fff;
  text-align: center;
}
.cta-band__title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta-band__sub {
  margin: 0 0 30px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
}
.cta-band .btn--primary {
  background: #fff;
  color: var(--maroon);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.cta-band .btn--primary:hover { background: #f3eded; }

/* ---------- What I help with ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--maroon);
}
.card p { margin: 0; color: var(--ink-soft); }
.help__note {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- How it works ---------- */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 22px;
}
.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.step__num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; }
.step__body p { margin: 0; color: var(--ink-soft); }

/* ---------- What it costs ---------- */
.cost__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cost__lead {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 18px;
}
.cost__detail { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

/* ---------- Credit packs ---------- */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.pack {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: var(--shadow);
}
.pack--popular {
  border: 2px solid var(--maroon);
  box-shadow: 0 10px 34px rgba(128,0,0,.16);
}
.pack__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--maroon);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pack__credits { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; }
.pack__price { font-size: 2rem; font-weight: 800; color: var(--maroon); margin: 0 0 14px; letter-spacing: -0.02em; }
.pack__desc { color: var(--ink-soft); margin: 0 0 24px; flex: 1; }
.pack__btn { width: 100%; }

.packs__note {
  max-width: 640px;
  margin: 34px auto 0;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta__inner { max-width: 640px; margin: 0 auto; }
.final-cta__title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.final-cta__sub { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 30px; }
.final-cta__contact { margin: 26px 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 40px 0;
}
.footer__name { font-weight: 700; margin: 0 0 6px; }
.footer__tag { margin: 0; color: rgba(255,255,255,.65); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; gap: 36px; }
  .story__photo { position: static; max-width: 420px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .quote-band__grid { grid-template-columns: 1fr; gap: 32px; }
  .photo--tedx { max-width: 420px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .header { padding: 110px 0 70px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
  .cards-4 { grid-template-columns: 1fr; }
  .pack--popular { order: -1; }
  .topbar__sub { display: none; }
}

/* =========================================================
   Scroll reveal
   Sections are fully visible by default. The hidden-start state
   only applies once JS adds .js-anim to <html> (so no-JS users
   see everything), and only when motion is allowed.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
  }
  .js-anim .section.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Reduced motion — show everything static, no movement
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section { opacity: 1 !important; transform: none !important; }
  .btn, .logo, .topbar { transition: none !important; }
  .btn:hover, .logo:hover { transform: none !important; }
}
