/* M2 Math Tutoring — site styles */

:root {
  --teal: #2e86a6;
  --teal-dark: #1f6480;
  --teal-deep: #143d4f;
  --ink: #1c2b33;
  --ink-soft: #47606c;
  --paper: #ffffff;
  --mist: #f2f7f9;
  --line: #dbe7ec;
  --amber: #e8a13c;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 61, 79, 0.08), 0 12px 32px rgba(20, 61, 79, 0.07);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

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

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 720px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand img { width: 46px; height: 46px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal-deep);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--teal-deep);
}

.nav-toggle svg { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.site-nav a:hover { color: var(--teal-deep); background: var(--mist); }

.site-nav a.active { color: var(--teal-deep); background: var(--mist); }

.site-nav a.cta {
  background: var(--teal);
  color: #fff;
  margin-left: 0.35rem;
}

.site-nav a.cta:hover { background: var(--teal-dark); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0.75rem; }
  .site-nav a.cta { margin-left: 0; text-align: center; }
}

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

.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(rgba(16, 48, 62, 0.72), rgba(16, 48, 62, 0.72)),
    url("../assets/bg1.jpg") center / cover no-repeat;
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: center;
}

.hero h1 { color: #fff; }

.hero p {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro hero with portrait */

.hero-grid {
  display: grid;
  grid-template-columns: clamp(180px, 22vw, 260px) 1fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  text-align: left;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy .eyebrow.light { color: rgba(255, 255, 255, 0.8); }

.hero-copy p {
  margin: 0 0 1rem;
  max-width: 56ch;
}

.hero-copy p:last-of-type { margin-bottom: 1.75rem; }

.hero-copy .hero-actions { justify-content: flex-start; }

@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hero-photo { max-width: 200px; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-copy .hero-actions { justify-content: center; }
}

/* Page hero (interior pages) */

.page-hero {
  background: linear-gradient(180deg, var(--mist), #fff);
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.page-hero p.lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }

.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--mist); color: var(--teal-deep); }

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: #fff; }

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

.section { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.section.tinted { background: var(--mist); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; }
.section-head p { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--teal);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ---------- Notes / reviews ---------- */

.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.note-card blockquote { margin: 0 0 1rem; flex: 1; }

.note-card.preview blockquote p {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.note-card footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.note-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--teal-deep);
}

.note-card time { color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }

.note-card .read-more { font-size: 0.9rem; font-weight: 600; }

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.4rem;
}

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

.cta-band {
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(20, 61, 79, 0.82), rgba(20, 61, 79, 0.82)),
    url("../assets/bg2.jpg") center / cover no-repeat;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 1.5rem; }

/* ---------- About ---------- */

.badge {
  display: inline-block;
  background: #fdf3e3;
  color: #8a5a12;
  border: 1px solid #f3ddb3;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ---------- Pricing ---------- */

.price-card { text-align: center; }

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--teal-dark);
  line-height: 1;
}

.price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }

.policy-list { padding-left: 1.2rem; margin: 0 0 1em; }
.policy-list li { margin-bottom: 0.4rem; }

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--teal-deep);
}

.hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; margin: 0.25rem 0 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.65rem 0.8rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.field textarea { min-height: 140px; resize: vertical; }

.req { color: #b3261e; }

.form-status { margin-top: 1rem; }

.form-status .ok,
.form-status .err {
  border-radius: 9px;
  padding: 0.9rem 1rem;
  font-weight: 500;
}

.form-status .ok { background: #e8f5ec; color: #1c5f34; border: 1px solid #bfe3cb; }
.form-status .err { background: #fdecea; color: #8c2b23; border: 1px solid #f5c6c0; }

/* Honeypot — visually hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Contact info block ---------- */

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

.contact-lines a { font-weight: 600; text-decoration: none; }

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

.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.75rem 0 2rem;
  margin-top: 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-nav { display: flex; flex-direction: column; gap: 0.3rem; }

.footer-note {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.noscript-note {
  background: #fdf3e3;
  border: 1px solid #f3ddb3;
  border-radius: 9px;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 640px;
}
