/* ==========================================================================
   Tutor Me Too — stylesheet
   ========================================================================== */

:root {
  --color-bg: #F8F7F3;
  --color-bg-deep: #EFEDE5;
  --color-white: #FFFFFF;

  --color-navy: #0B1B42;
  --color-navy-dark: #060F26;
  --color-navy-tint: #E7E9EF;

  --color-purple: #6D4C97;
  --color-purple-dark: #523971;
  --color-purple-tint: #EFEAF6;

  --color-gold: #E2BE38;
  --color-gold-dark: #C0A130;
  --color-gold-tint: #FBF3DC;

  --color-text: #262B3D;
  --color-text-soft: #5B6079;
  --color-border: #E1DEE8;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px -12px rgba(29, 41, 81, 0.22);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-purple);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

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

h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1.1em; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------- Brand divider ---------------------------------- */

.brand-divider {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 22px;
}

.brand-divider .line {
  width: 52px;
  height: 2px;
  background: var(--color-gold);
  display: block;
}

.brand-divider svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.brand-divider svg path {
  fill: var(--color-gold);
}

/* ---------------------------------- Header / Nav ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 243, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { color: inherit; }

.logo-icon {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .logo-icon {
    height: 54px;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 14px 20px 18px;
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.nav-list.is-open {
  display: flex;
}

.nav-list a {
  display: block;
  padding: 12px 4px;
  color: var(--color-text-soft);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-purple);
}

.site-header .nav-cta {
  display: none;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }

  .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-list a {
    border-bottom: none;
    padding: 6px 2px;
    position: relative;
    white-space: nowrap;
  }

  .site-header .nav-cta {
    flex-shrink: 0;
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--color-gold);
    transition: right 0.2s ease;
  }

  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after {
    right: 0;
  }

  .site-header .nav-cta {
    display: inline-flex;
  }
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-dark);
}
.btn-primary:hover { background: var(--color-gold-dark); color: var(--color-navy-dark); }

.btn-secondary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-secondary:hover { background: var(--color-navy-dark); color: var(--color-white); }

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(90,62,133,0.16), rgba(90,62,133,0) 70%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, rgba(198,160,40,0.16), rgba(198,160,40,0) 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-purple);
  background: var(--color-purple-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  max-width: 46ch;
}

.hero-body {
  max-width: 60ch;
  font-size: 1.05rem;
}

/* ---------------------------------- Page header (non-home) ---------------------------------- */

.page-hero {
  padding: 44px 0 40px;
  background: var(--color-bg-deep);
  border-bottom: 1px solid var(--color-border);
}

.page-hero p {
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--color-text-soft);
}

/* ---------------------------------- Sections ---------------------------------- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-deep {
  background: var(--color-bg-deep);
}

.section-head {
  max-width: 68ch;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

/* ---------------------------------- Lists ---------------------------------- */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--color-text-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-navy);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.55em;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  transform: rotate(45deg);
}

@media (min-width: 640px) {
  .check-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
  }
}

.plain-list {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  color: var(--color-text-soft);
}

.plain-list li {
  margin-bottom: 8px;
}

/* ---------------------------------- Cards ---------------------------------- */

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-navy-tint);
  color: var(--color-navy);
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.card p:last-child { margin-bottom: 0; }

.card a.card-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------------------------------- Quote / pull quote ---------------------------------- */

.pull-quote {
  border-left: 4px solid var(--color-gold);
  background: var(--color-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 26px 26px 26px 24px;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--color-navy);
  margin: 0;
}

/* ---------------------------------- Testimonials ---------------------------------- */

.testimonial-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--color-purple-tint);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial blockquote {
  margin: 0 0 14px;
  font-style: italic;
  color: var(--color-navy);
}

.testimonial blockquote + blockquote {
  margin-top: -6px;
}

.testimonial cite {
  margin-top: auto;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* ---------------------------------- Callout ---------------------------------- */

.callout {
  background: var(--color-gold-tint);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 28px 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 8px;
}

.note {
  background: var(--color-bg-deep);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ---------------------------------- Badge ---------------------------------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* ---------------------------------- Fees ---------------------------------- */

.fee-grid,
.stat-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .fee-grid,
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fee-card,
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  text-align: left;
}

.fee-amount,
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--color-gold-dark);
  margin-bottom: 6px;
  display: block;
}

.fee-label,
.stat-label {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  display: block;
}

.fee-card p:last-child,
.stat-card p:last-child { margin-bottom: 0; color: var(--color-text-soft); font-size: 0.95rem; }

/* ---------------------------------- CTA band ---------------------------------- */

.cta-band {
  background: var(--color-navy);
  color: var(--color-bg);
  padding: 52px 0;
  text-align: center;
}

.cta-band h2 { color: var(--color-white); }

.cta-band p {
  color: #C9CCDC;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-group {
  justify-content: center;
}

/* ---------------------------------- Contact ---------------------------------- */

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  min-width: 0;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--color-purple);
  margin: 10px 0 4px;
  overflow-wrap: anywhere;
}

/* ---------------------------------- Contact form ---------------------------------- */

.contact-form {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-text);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px var(--color-purple-tint);
}

.contact-form .btn {
  justify-self: start;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success {
  color: var(--color-purple);
  font-weight: 600;
}

.form-status.error {
  color: #B3261E;
  font-weight: 600;
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border);
  padding: 44px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--color-text-soft);
  font-size: 0.95rem;
  max-width: 34ch;
}

.footer-heading {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--color-navy);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover { color: var(--color-purple); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* ---------------------------------- FAQ ---------------------------------- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 68ch;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--color-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--color-gold);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--color-text-soft);
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------- Utilities ---------------------------------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-prose { max-width: 68ch; }
