/* terrywaltz.com — promotional + teacher resource site
   Modern, warm, professional. Serif headings + sans body. */

:root {
  --primary: #2d6e7e;
  --primary-dark: #235967;
  --accent: #d96f5a;
  --accent-dark: #b8543f;
  --sand: #f8f3e7;
  --bg: #fefcf7;
  --surface: #ffffff;
  --border: #e6dfce;
  --text: #2a2a28;
  --text-dim: #5a564f;
  --text-muted: #8c887f;
  --shadow: 0 1px 3px rgba(42, 42, 40, 0.06), 0 4px 12px rgba(42, 42, 40, 0.04);
  --shadow-lg: 0 4px 12px rgba(42, 42, 40, 0.08), 0 12px 32px rgba(42, 42, 40, 0.06);
  --radius: 8px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: 2.6rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; color: var(--text-dim); }
a  { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

/* ── Header / nav ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.brand .accent { color: var(--accent); }
nav.primary { display: flex; gap: 0.4rem; flex-wrap: wrap; }
nav.primary a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: all 0.15s;
}
nav.primary a:hover { color: var(--primary); background: var(--sand); }
nav.primary a.active { color: var(--primary); background: var(--sand); }

/* ── Layout ── */
main { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.container-narrow { max-width: 740px; margin: 0 auto; }

/* ── Hero ── */
.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(135deg, var(--sand) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: 3rem; max-width: 22ch; margin-bottom: 1rem; }
.hero .lead {
  font-size: 1.2rem; max-width: 55ch;
  color: var(--text-dim); margin-bottom: 1.6rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ── Card grid ── */
.cards {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.8rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--sand); color: var(--primary);
  border-radius: var(--radius);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 1rem;
}
.card .read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Pull quote / testimonials ── */
.testimonial {
  background: var(--sand);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6rem 0;
}
.testimonial p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
}

/* ── Forms ── */
form.contact { max-width: 540px; }
form.contact label {
  display: block;
  margin: 0.9rem 0 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}
form.contact input, form.contact textarea, form.contact select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

/* ── Page header ── */
.page-header {
  background: var(--sand);
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header .inner { max-width: 1100px; margin: 0 auto; }
.page-header h1 { font-size: 2.4rem; margin-bottom: 0.4rem; }
.page-header p { color: var(--text-dim); max-width: 60ch; margin: 0; }

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.5rem 1.4rem;
  margin-top: 4rem;
}
.site-footer .inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1.5fr 1fr 1fr;
}
.site-footer h4 { color: #fff; margin-bottom: 0.6rem; font-size: 1rem; font-family: inherit; font-weight: 600; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.3rem; font-size: 0.95rem; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.6rem; padding-top: 1rem;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.6);
  text-align: center;
  grid-column: 1 / -1;
}

/* ── Utility ── */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.muted { color: var(--text-muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-dim); }

/* ── Mobile ── */
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .site-header .inner { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  nav.primary { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .site-footer .inner { grid-template-columns: 1fr; }
}
