/* ============================================================
   Urbana Math & Physics Tutor
   Design system: a warm study-lamp palette, a soft serif for
   headlines paired with a rounded, comfortable sans for body
   text. Built around the studio's real strength — 200+ five
   star reviews and two decades in the classroom.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Nunito+Sans:opsz,wght@6..12,400;6..12,500;6..12,600;6..12,700;6..12,800&display=swap');

:root{
  /* -- palette -------------------------------------------------- */
  --paper: #F6F1E4;        /* warm notebook paper background */
  --paper-soft: #FBF8F0;   /* lighter panel surface */
  --ink: #2E3D3F;          /* soft chalkboard ink for body text */
  --ink-deep: #1F2B2D;     /* headings */
  --slate: #3E5C5A;        /* deep sage-teal, primary brand color */
  --slate-dim: #587572;
  --sage: #8FAE9C;         /* muted sage accent */
  --gold: #C7963E;         /* warm amber for stars & highlights */
  --gold-soft: #E9D2A4;
  --blush: #D98F73;        /* soft clay, used sparingly */
  --line: #DFD6BF;         /* hairline separators on paper */
  --shadow: 30 26 14;      /* warm shadow tint, used with rgb() */

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --maxw: 1120px;
}

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

html{
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: var(--slate); text-decoration: none; }
a:hover{ color: var(--blush); }

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1em; max-width: 62ch; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Top banner (register CTA strip)
   ============================================================ */
.top-banner{
  background: var(--ink-deep);
  color: var(--paper-soft);
  text-align: center;
  font-size: 0.92rem;
  padding: 9px 20px;
}
.top-banner a{
  color: var(--gold-soft);
  font-weight: 700;
}
.top-banner a:hover{ color: #fff; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 20px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  color: var(--ink-deep);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand:hover{ color: var(--ink-deep); }
.brand-mark{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--paper-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.brand small{
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--slate-dim);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 6px 8px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover{ color: var(--slate); border-bottom-color: var(--gold); }
.nav-links a[aria-current="page"]{
  color: var(--slate);
  border-bottom-color: var(--slate);
}

.nav-cta{
  background: var(--slate);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-cta:hover{ background: var(--blush); color: #fff !important; }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg{ width: 26px; height: 26px; }

@media (max-width: 860px){
  .nav-toggle{ display: block; }
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 28px 20px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta{ margin-top: 8px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-dim);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.hero-eyebrow .stars{ color: var(--gold); letter-spacing: 1px; }
.hero h1{ margin-bottom: 20px; }
.hero h1 em{
  font-style: italic;
  color: var(--slate);
}
.hero-lede{
  font-size: 1.15rem;
  color: var(--slate-dim);
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-contact{
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--ink);
}
.hero-contact a{ font-weight: 700; }

.hero-portrait{
  position: relative;
}
.hero-portrait .frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -20px rgba(var(--shadow), 0.35);
}
.hero-portrait img{ width: 100%; height: 100%; object-fit: cover; }
.hero-badge{
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 16px 30px -16px rgba(var(--shadow), 0.4);
  max-width: 210px;
}
.hero-badge .num{
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--slate);
  display: block;
  line-height: 1;
}
.hero-badge .label{
  font-size: 0.82rem;
  color: var(--slate-dim);
  font-weight: 600;
}

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-portrait{ order: -1; max-width: 420px; }
  .hero-badge{ left: 16px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary{
  background: var(--slate);
  color: #fff;
}
.btn-primary:hover{ background: var(--blush); color: #fff; }
.btn-ghost{
  background: transparent;
  color: var(--ink-deep);
  border-color: var(--ink-deep);
}
.btn-ghost:hover{ border-color: var(--slate); color: var(--slate); background: rgba(63,92,90,0.06); }

/* ============================================================
   Stat strip
   ============================================================ */
.stat-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}
.stat-strip .container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 34px 28px;
}
.stat{
  text-align: center;
}
.stat .num{
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--slate);
  display: block;
}
.stat .label{
  font-size: 0.88rem;
  color: var(--slate-dim);
  font-weight: 600;
}
@media (max-width: 720px){
  .stat-strip .container{ grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Sections
   ============================================================ */
section{ padding: 68px 0; }
.section-head{
  max-width: 62ch;
  margin-bottom: 42px;
}
.section-head .kicker{
  color: var(--slate);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
  display: block;
}
.section-head p{ color: var(--slate-dim); }

.alt{ background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============================================================
   Subject / curriculum cards
   ============================================================ */
.subject-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.subject-card{
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}
.subject-card .icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--slate);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.subject-card h3{ margin-bottom: 8px; }
.subject-card > p{ color: var(--slate-dim); font-size: 0.96rem; margin-bottom: 14px; }
.subject-card ul{
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.subject-card li{
  font-size: 0.94rem;
  padding-left: 20px;
  position: relative;
  color: var(--ink);
}
.subject-card li::before{
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.subject-card li .note{ color: var(--slate-dim); display: block; font-size: 0.87rem; }

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

/* ============================================================
   Why-choose list
   ============================================================ */
.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card{
  padding: 24px 4px;
  border-top: 3px solid var(--gold);
}
.why-card h3{ font-size: 1.08rem; margin-bottom: 8px; }
.why-card p{ color: var(--slate-dim); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px){ .why-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .why-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   Review cards
   ============================================================ */
.review-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card{
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.review-card .stars{ color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }
.review-card p{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-deep);
  font-size: 1.02rem;
  flex: 1;
}
.review-card .who{
  font-size: 0.86rem;
  color: var(--slate-dim);
  font-weight: 700;
  margin-top: 8px;
}
@media (max-width: 900px){ .review-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .review-grid{ grid-template-columns: 1fr; } }

.review-source-links{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* rotating review strip used on the home page */
.review-carousel{
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.carousel-track{
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease;
}
.carousel-track .review-card{ min-width: 320px; max-width: 320px; }
.carousel-controls{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.carousel-controls button{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-deep);
}
.carousel-controls button:hover{ background: var(--gold-soft); }

/* ============================================================
   Video cards
   ============================================================ */
.video-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card{
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-thumb{
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dim) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--paper-soft);
}
.video-thumb svg{ width: 46px; height: 46px; }
.video-card .video-info{ padding: 18px 20px; }
.video-card h3{ font-size: 1.02rem; margin-bottom: 4px; }
.video-card p{ color: var(--slate-dim); font-size: 0.9rem; margin: 0; }
@media (max-width: 900px){ .video-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .video-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   Philosophy / about long-form content
   ============================================================ */
.prose{
  max-width: 68ch;
}
.prose p{ color: var(--ink); }
.prose h2{ margin-top: 1.4em; }

.pull-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--slate);
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 34px 0;
  max-width: 56ch;
}

.principle-list{
  list-style: none;
  margin: 24px 0; padding: 0;
  display: grid;
  gap: 14px;
}
.principle-list li{
  padding-left: 30px;
  position: relative;
  max-width: 60ch;
}
.principle-list li::before{
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
}

.about-layout{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.about-side{ position: sticky; top: 96px; }
.about-side img{
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.about-side .credentials{
  margin-top: 22px;
  padding: 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.about-side .credentials h4{ font-size: 0.95rem; margin-bottom: 10px; }
.about-side .credentials ul{ margin: 0; padding-left: 18px; font-size: 0.92rem; color: var(--slate-dim); }
.about-side .credentials li{ margin-bottom: 6px; }

@media (max-width: 900px){
  .about-layout{ grid-template-columns: 1fr; }
  .about-side{ position: static; max-width: 320px; }
}

/* ============================================================
   Resources
   ============================================================ */
.resource-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.resource-card{
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.resource-card .r-name{ font-weight: 700; color: var(--ink-deep); font-family: var(--font-display); font-size: 1.08rem; }
.resource-card .r-level{ color: var(--slate-dim); font-size: 0.88rem; }
.resource-card a.visit{
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate);
  border: 1px solid var(--slate);
  border-radius: 100px;
  padding: 8px 16px;
}
.resource-card a.visit:hover{ background: var(--slate); color: #fff; }
@media (max-width: 720px){ .resource-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.contact-card{
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-row{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child{ border-bottom: none; }
.contact-row .icon{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--slate);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .icon svg{ width: 20px; height: 20px; }
.contact-row .label{ font-size: 0.82rem; color: var(--slate-dim); font-weight: 700; text-transform: none; }
.contact-row .value{ font-size: 1.02rem; color: var(--ink-deep); font-weight: 600; }

.contact-form{
  display: grid;
  gap: 16px;
}
.contact-form label{
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-deep);
  display: block;
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select{
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.contact-form textarea{ min-height: 120px; resize: vertical; }
.form-note{
  font-size: 0.86rem;
  color: var(--slate-dim);
  margin-top: 4px;
}
.form-success{
  display: none;
  background: var(--paper);
  border: 1px solid var(--sage);
  color: var(--slate);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
  margin-top: 14px;
}
.form-success.show{ display: block; }

@media (max-width: 860px){ .contact-layout{ grid-template-columns: 1fr; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band{
  background: var(--slate);
  color: var(--paper-soft);
  border-radius: var(--radius-lg);
  padding: 50px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2{ color: #fff; margin-bottom: 8px; }
.cta-band p{ color: var(--gold-soft); margin: 0; max-width: 44ch; }
.cta-band .btn-primary{ background: var(--gold); color: var(--ink-deep); }
.cta-band .btn-primary:hover{ background: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  background: var(--ink-deep);
  color: #D8D2C2;
  padding: 54px 0 30px;
  margin-top: 40px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4{
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-grid ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a{ color: #D8D2C2; font-size: 0.92rem; }
.footer-grid a:hover{ color: var(--gold-soft); }
.footer-about p{ color: #B7AF98; font-size: 0.92rem; max-width: 34ch; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.85rem;
  color: #98917D;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row{ display: flex; gap: 12px; }
.social-row a{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #D8D2C2;
}
.social-row a:hover{ border-color: var(--gold); color: var(--gold-soft); }
.social-row svg{ width: 17px; height: 17px; }

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

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero{
  padding: 54px 0 44px;
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker{
  color: var(--slate);
  font-weight: 700;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 10px;
}
.page-hero p{ color: var(--slate-dim); font-size: 1.08rem; max-width: 58ch; }

.breadcrumb{
  font-size: 0.86rem;
  color: var(--slate-dim);
  margin-bottom: 14px;
}
.breadcrumb a{ color: var(--slate-dim); }
.breadcrumb a:hover{ color: var(--slate); }
