/* ==========================================================
   Tutoring section styles — self-contained.

   Direction: clean, rigorous, "ledger" feel rather than warm/
   handmade. This section's whole pitch is transparent numbers
   (rates, test-score gains) from a credentialed, multidisciplinary
   tutor — so the type and layout lean toward a rubric/spec-sheet
   register rather than a cozy artisanal one. Defines its own
   tokens rather than pulling from /styles/main.css, since main.css
   is reserved for something else.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

.tutoring-scope {
  --t-paper: #FFFFFF;
  --t-bg: #FAF6EF;
  --t-paper-tint: #F1EAD9;
  --t-ink: #1C2B39;
  --t-ink-soft: #445164;
  --t-rule: #E1D7C0;
  --t-mark: #8C611F;

  --t-font-display: 'Fraunces', serif;
  --t-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --t-font-mono: 'IBM Plex Mono', monospace;

  --t-max-width: 960px;

  background: var(--t-bg);
  color: var(--t-ink);
  font-family: var(--t-font-body);
}

.tutoring-scope h1,
.tutoring-scope h2,
.tutoring-scope h3 {
  font-family: var(--t-font-display);
  font-weight: 600;
  color: var(--t-ink);
  margin: 0 0 0.43em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tutoring-scope h1 { font-size: clamp(1.7rem, 3.4vw, 2.34rem); font-weight: 500; }
.tutoring-scope h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); }
.tutoring-scope h3 { font-size: 1.05rem; }

.tutoring-scope p { margin: 0 0 0.85em; color: var(--t-ink-soft); }

.tutoring-scope .eyebrow {
  font-family: var(--t-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-ink-soft);
  margin: 0 0 0.6em;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 61px 24px 41px;
}

.hero-sub { font-size: 1.05rem; max-width: 46ch; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--t-rule);
  background: var(--t-paper-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.portrait-placeholder {
  font-family: var(--t-font-mono);
  font-size: 0.8rem;
  color: var(--t-ink-soft);
  text-align: center;
  padding: 0 20px;
}

/* ==========================================================
   Sections — hairline rules instead of boxed cards
   ========================================================== */
.section {
  padding: 41px 24px;
  border-top: 1px solid var(--t-rule);
}

.section-tinted {
  background: var(--t-paper-tint);
  border-top: 1px solid var(--t-rule);
  border-bottom: 1px solid var(--t-rule);
}

.section-intro {
  max-width: 60ch;
  font-size: 1.02rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

/* ==========================================================
   Subjects — flat rule-divided list, no tilt, no paper-tag
   shadow. Reads like a course catalog line, not a craft-fair
   sticker.
   ========================================================== */
.subject-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--t-rule);
  border-left: 1px solid var(--t-rule);
}

.subject-tag {
  font-family: var(--t-font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-right: 1px solid var(--t-rule);
  border-bottom: 1px solid var(--t-rule);
  color: var(--t-ink);
  background: var(--t-paper);
}

/* ==========================================================
   Philosophy grid
   ========================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
  margin-top: 8px;
}

.philosophy-item h3 {
  color: var(--t-ink);
}

.philosophy-item h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--t-mark);
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

/* ==========================================================
   CTA section
   ========================================================== */
.cta-section {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 54px;
}

.cta-section h2 { max-width: 40ch; margin-left: auto; margin-right: auto; }
.cta-section .hero-actions { justify-content: center; }

/* ==========================================================
   Buttons — sharp corners, no gradients/shadows
   ========================================================== */
.btn-primary {
  display: inline-block;
  margin-top: 12px;
  background: var(--t-ink);
  color: var(--t-paper);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--t-font-body);
  padding: 13px 26px;
  border: 1px solid var(--t-ink);
}

.btn-primary:hover { background: var(--t-mark); border-color: var(--t-mark); }

.btn-secondary {
  display: inline-block;
  margin-top: 12px;
  background: transparent;
  color: var(--t-ink);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--t-font-body);
  padding: 12px 25px;
  border: 1px solid var(--t-ink);
}

.btn-secondary:hover { background: var(--t-ink); color: var(--t-paper); }

/* ==========================================================
   Pricing accordion — "ledger" rows. Mono-set numbers,
   right-aligned, hairline dividers, a small red mark instead
   of a chevron to indicate the open row (like a grading tick).
   ========================================================== */
.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.price-item {
  border: 1px solid var(--t-rule);
  background: var(--t-paper);
}

.price-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  font-family: var(--t-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--t-ink);
  position: relative;
}

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

.price-item summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--t-ink-soft);
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.price-item[open] summary::before {
  background: var(--t-mark);
  border-color: var(--t-mark);
}

.price-item summary .price-teaser {
  font-family: var(--t-font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--t-ink-soft);
  white-space: nowrap;
  margin-left: auto;
}

.price-item .price-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--t-rule);
  margin-top: 4px;
  padding-top: 14px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
}

.price-row .price-format {
  color: var(--t-ink-soft);
}

.price-row .price-amount {
  font-family: var(--t-font-mono);
  font-weight: 600;
  color: var(--t-ink);
}

.price-body p {
  margin: 0;
  font-size: 0.9rem;
}

.price-body p + p { margin-top: 0.6em; }

.price-body .package-amount {
  display: block;
  font-family: var(--t-font-mono);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--t-mark);
  margin-bottom: 6px;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .hero-portrait { max-width: 260px; }
  .two-col,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .price-item summary {
    flex-wrap: wrap;
  }
  .price-list {
    grid-template-columns: 1fr;
  }
  .subject-grid {
    border-left: none;
  }
}

/* ==========================================================
   Header / footer overrides — scoped to tutoring pages only.
   main.css still styles these classes generically for the hub
   page; these rules win here (more specific selector) so the
   tutoring section's header/footer match the ledger aesthetic
   instead of the old cream/serif/ochre chrome.
   ========================================================== */
.tutoring-scope .site-header {
  border-bottom: 1px solid var(--t-rule);
  background: var(--t-bg);
}

.tutoring-scope .brand {
  font-family: var(--t-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t-ink);
  letter-spacing: -0.01em;
}

.tutoring-scope .site-nav a {
  font-family: var(--t-font-body);
  color: var(--t-ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.tutoring-scope .site-nav a:hover,
.tutoring-scope .site-nav a.active {
  color: var(--t-ink);
}

.tutoring-scope .nav-cta {
  background: var(--t-ink);
  color: var(--t-bg) !important;
  border: 1px solid var(--t-ink);
  border-radius: 0;
}

.tutoring-scope .nav-cta:hover {
  background: var(--t-mark);
  border-color: var(--t-mark);
}

.tutoring-scope .site-footer {
  border-top: 1px solid var(--t-rule);
  background: transparent;
}

.tutoring-scope .footer-inner p {
  font-family: var(--t-font-body);
  color: var(--t-ink-soft);
  font-size: 0.8rem;
}

.tutoring-scope .footer-nav a {
  font-family: var(--t-font-body);
  color: var(--t-ink-soft);
  font-size: 0.8rem;
}

.tutoring-scope .footer-nav a:hover {
  color: var(--t-ink);
}

/* ==========================================================
   Contact form
   ========================================================== */
.contact-form {
  max-width: 520px;
  margin-top: 24px;
}

.form-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-row label {
  font-family: var(--t-font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--t-ink);
  margin-bottom: 6px;
}

.form-optional {
  font-weight: 400;
  color: var(--t-ink-soft);
  font-size: 0.85rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--t-font-body);
  font-size: 0.95rem;
  color: var(--t-ink);
  background: var(--t-paper);
  border: 1px solid var(--t-rule);
  padding: 11px 14px;
  border-radius: 0;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--t-mark);
  outline-offset: -1px;
  border-color: var(--t-mark);
}

.form-row textarea {
  resize: vertical;
  font-family: var(--t-font-body);
}

.contact-form button[type="submit"] {
  margin-top: 4px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-family: var(--t-font-body);
  min-height: 1.2em;
}

.form-status--success {
  color: #2E6B4F;
}

.form-status--error {
  color: var(--t-mark);
}

/* ==========================================================
   Availability slot picker (book.html)
   ========================================================== */
#slot-picker {
  margin-top: 6px;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--t-rule);
  background: var(--t-paper);
  padding: 14px;
}

.slot-group {
  margin-bottom: 16px;
}

.slot-group:last-child {
  margin-bottom: 0;
}

.slot-day {
  font-family: var(--t-font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--t-ink-soft);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-btn {
  font-family: var(--t-font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 14px;
  border: 1px solid var(--t-ink-soft);
  background: var(--t-paper-tint);
  color: var(--t-ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(20, 22, 26, 0.15);
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.slot-btn:hover {
  border-color: var(--t-ink);
  background: var(--t-paper);
  box-shadow: 0 2px 6px rgba(20, 22, 26, 0.22);
  transform: translateY(-1px);
}

.slot-btn.selected,
.slot-btn.selected:hover {
  background: var(--t-ink);
  color: var(--t-paper);
  border-color: var(--t-ink);
  box-shadow: 0 0 0 2px var(--t-mark);
  transform: none;
}

.slot-hint {
  font-family: var(--t-font-body);
  font-size: 0.85rem;
  color: var(--t-ink-soft);
  margin: 0 0 8px;
}

.slot-selected-summary {
  font-family: var(--t-font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t-mark);
  margin: 10px 0 0;
  min-height: 1.2em;
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--t-ink-soft);
  margin-top: 8px;
}