/* =========================================================
   Educational Support Services — shared styles
   Used by every page (index.html, contact.html).
   Colors and fonts are set once here as variables.
   ========================================================= */

:root {
  /* Colors: lighter versions of the logo colors (owner: "not too bold").
     Logo originals: blue #29a6df, red #e72828, green #3fb54c,
     purple #703393, black #231f20. */
  --sky: #d4edf9;        /* logo blue, light — page background */
  --sky-deep: #9fd7f1;   /* logo blue, medium — accents */
  --rose: #f8bebe;       /* logo red, light */
  --leaf: #c5e9c9;       /* logo green, light */
  --plum: #d4c2df;       /* logo purple, light */
  --paper: #ffffff;      /* white sections */
  --ink: #231f20;        /* logo black — all text */

  /* Fonts
     Main: Avenir (owner's brand font). Macs/iPhones have Avenir built in;
     other devices get Nunito Sans (free, similar look) from Google Fonts.
     Quote: Caveat, a friendly handwritten style. */
  --font-main: "Avenir Next", "Avenir", "Nunito Sans", Helvetica, Arial, sans-serif;
  --font-quote: "Caveat", "Comic Sans MS", cursive;

  /* Layout */
  --page-width: 1120px;
  --text-width: 64ch;
  --radius: 16px;       /* rounded, but not too soft */
  --radius-small: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.6;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  padding: 20px 0;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.logo img {
  height: 74px;
  width: auto;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.site-nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.6); }
.site-nav a[aria-current="page"] { background: var(--paper); }

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

.button {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  background: var(--rose);
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.button.secondary { background: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

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

.hero {
  padding: 40px 0 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
}
.hero { padding-bottom: 64px; }
.tagline {
  margin: 0 0 32px;
  font-family: var(--font-quote);
  font-weight: 600;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.95;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}


/* ---------- Wave dividers ---------- */

.wave {
  display: block;
  width: 100%;
  height: 48px;
}

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

.section { padding: 72px 0; }
.section.paper { background: var(--paper); }
.section h2 {
  margin: 0 0 28px;
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
}
.section .lead {
  margin: 0 0 32px;
  font-family: var(--font-quote);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}
.prose p {
  max-width: var(--text-width);
  margin: 0 0 18px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

/* Placeholder photos (swap for real photos later — see docs/README.md) */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 2px dashed var(--sky-deep);
  text-align: center;
  font-size: 16px;
}
.photo-placeholder.tinted { background: var(--leaf); border-color: var(--ink); }
.photo-placeholder svg { width: 84px; height: auto; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: var(--paper);
}
.service:nth-child(6n+1) { background: var(--rose); }
.service:nth-child(6n+2) { background: var(--leaf); }
.service:nth-child(6n+3) { background: var(--plum); }
.service:nth-child(6n+4) { background: var(--sky-deep); }
.service:nth-child(6n+5) { background: var(--rose); }
.service:nth-child(6n+6) { background: var(--leaf); }
.service svg {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}
.service h3 {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}
.service p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

/* Testimonials (placeholder until real quotes arrive) */
.placeholder-note {
  max-width: var(--text-width);
  padding: 22px 26px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial {
  margin: 0;
  padding: 36px 32px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  position: relative;
}
.testimonial:nth-child(2) { background: var(--leaf); }
.testimonial blockquote { margin: 0 0 18px; }
.testimonial blockquote p {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
}
.testimonial blockquote p::before {
  content: "\201C";
  display: block;
  height: 44px;
  font-family: var(--font-quote);
  font-size: 96px;
  line-height: 1;
  color: var(--sky-deep);
}
.testimonial:nth-child(2) blockquote p::before { color: var(--paper); }
.testimonial figcaption {
  font-family: var(--font-quote);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
}
.sample-tag { /* marks made-up example content */
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border: 1.5px dashed var(--ink);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
}

/* Closing call to action */
.cta {
  background: var(--plum);
  padding: 72px 0;
  text-align: center;
}
.cta p {
  max-width: 60ch;
  margin: 0 auto 16px;
  font-size: 20px;
}
.cta .pleasure {
  margin: 0 auto 28px;
  font-family: var(--font-quote);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 42px);
}

/* Contact page */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
}
.contact-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
}
.contact-card:nth-child(2) { background: var(--leaf); }
.contact-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}
.contact-card a {
  font-size: 22px;
  font-weight: 500;
  word-break: break-word;
}
.todo { /* visible marker for details the owner still needs to send */
  background: var(--rose);
  padding: 0 6px;
  border-radius: 6px;
}

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

.site-footer {
  padding: 36px 0 44px;
  font-size: 16px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.site-footer p { margin: 0; }

/* ---------- Phones and small tablets ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .logo img { height: 56px; }
  .services, .contact-cards, .testimonials { grid-template-columns: 1fr; }
  .section, .cta { padding: 56px 0; }
  .wave { height: 32px; }
}

/* A quote-font line directly under a heading sits close to it */
.section h2 + .lead { margin-top: -20px; }
