/* ============================================================
   Nicole Peterson Tutoring — warm, personal design system
   Part of Anthos Adaptive Learning
   Self-contained: system font stacks, no external assets.
   ============================================================ */

:root {
  --bg:            #FBF7F1;
  --surface:       #FFFFFF;
  --surface-warm:  #F6EDE1;
  --surface-sage:  #EEF1EA;

  --terracotta:    #B85C38;
  --terracotta-dk: #8F4428;
  --honey:         #E0A458;
  --honey-soft:    #F5D9AE;
  --sage:          #6E8267;
  --sage-dk:       #566B50;

  --ink:           #37291F;
  --muted:         #7C6E62;
  --line:          #E8DCCB;

  --anthos-green:  #2D6A4F;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(55,41,31,.08);
  --shadow-md: 0 6px 24px rgba(55,41,31,.10);
  --shadow-lg: 0 18px 48px rgba(55,41,31,.14);

  --radius:    16px;
  --radius-sm: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--terracotta-dk); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 .6rem;
}

.lead { font-size: 1.18rem; color: #4a3b30; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-dk); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--terracotta-dk); border-color: var(--honey); }
.btn-ghost:hover { background: var(--surface-warm); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,241,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand .name { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; color: var(--ink); line-height: 1.05; }
.brand .sub  { font-family: var(--sans); font-size: .72rem; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 550; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--terracotta-dk); border-bottom-color: var(--honey); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--honey-soft), transparent 60%),
    linear-gradient(180deg, var(--surface-warm), var(--bg));
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 84px 0 72px; }
.hero h1 span { color: var(--terracotta); }
.hero .lead { max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }

.portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  background:
    linear-gradient(160deg, var(--sage) 0%, var(--sage-dk) 55%, #40513f 100%);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .ph-label { color: rgba(255,255,255,.85); font-size: .85rem; padding: 18px; text-align: center; }

/* feature (image + text) rows */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.feature-grid.reverse .media { order: 2; }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--surface-warm); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero { background: linear-gradient(180deg, var(--surface-warm), var(--bg)); padding: 64px 0 40px; text-align: center; }
.page-hero .lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } .feature-grid.reverse .media { order: 0; } }
.portrait .quote-chip {
  position: absolute; top: 20px; left: -14px;
  background: #fff; color: var(--ink); font-family: var(--serif); font-style: italic;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-md); font-size: 1rem;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-warm { background: var(--surface-warm); }
.section-sage { background: var(--surface-sage); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ico { font-size: 1.7rem; line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--sage-dk); font-weight: 800; background: var(--surface-sage); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; flex: none; font-size: .85rem; }

/* subject columns */
.subject-col h3 { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--honey); }
.subject-col ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.subject-col li { padding-left: 18px; position: relative; color: #4a3b30; }
.subject-col li::before { content: "•"; color: var(--terracotta); position: absolute; left: 0; }

/* pill row */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .92rem; font-weight: 550; box-shadow: var(--shadow-sm); }

/* quote / philosophy */
.pull {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4;
  color: var(--ink); font-style: italic; text-align: center; max-width: 780px; margin: 0 auto;
}
.pull .accent { color: var(--terracotta); font-style: normal; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step); flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--terracotta); color: #fff; font-family: var(--serif); font-weight: 700; display: grid; place-items: center; font-size: 1.15rem; }
.step h3 { margin: 2px 0 4px; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font-size: 1.05rem; font-weight: 600; font-family: var(--sans); color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .chev { transition: transform .2s ease; color: var(--terracotta); font-size: 1.3rem; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dk)); color: #fff; text-align: center; border-radius: var(--radius); padding: 56px 28px; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 44ch; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--terracotta-dk); }
.cta-band .btn-primary:hover { background: var(--surface-warm); }

/* ---------- Booking + contact flow ---------- */
.flow { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.flow-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.flow-step .kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terracotta); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.flow-step .num { width: 26px; height: 26px; border-radius: 50%; background: var(--honey-soft); color: var(--terracotta-dk); display: grid; place-items: center; font-size: .85rem; }
.cal-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); min-height: 620px; background: var(--surface-warm); }
.cal-embed iframe { width: 100%; min-height: 620px; border: 0; }
.cal-placeholder { padding: 40px; text-align: center; color: var(--muted); }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--honey); border-color: var(--honey); }
.field textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--sage-dk); }
.form-status.err { color: #b23a2e; }

/* ---------- Footer ---------- */
.site-footer { background: #2b2019; color: #e9ddcf; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.site-footer a { color: #e9ddcf; text-decoration: none; }
.site-footer a:hover { color: var(--honey); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand p { color: #c9bba d; color: #c9bbad; max-width: 34ch; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #b0a294; }
.anthos-tie { display: inline-flex; align-items: center; gap: 8px; }
.anthos-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--anthos-green); display: inline-block; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.stack-lg { display: grid; gap: 20px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 48px; }
  .portrait { max-width: 380px; margin: 0 auto; width: 100%; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 14px;
  }
  .site-header.open .nav-links a { padding: 6px 0; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
