/* Autism Works — shared stylesheet
   Palette and typography carried over from the original site:
   Inter, white background, teal #3D7B8F, grey #575757, warm off-white sections. */

:root {
  --teal: #3D7B8F;
  --teal-dark: #2E6275;      /* darker teal for link text (AA contrast on white) */
  --text: #575757;
  --text-strong: #3f3f3f;
  --sage: #525957;
  --sage-light: #8B9491;
  --warm-white: rgb(250, 247, 240);
  --white: #FFFFFF;
  --max-line: 46em;          /* comfortable reading measure */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--white);
  word-wrap: break-word;
  min-width: 320px;
}

/* ---------- Skip link (keyboard accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header & navigation ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(125, 125, 125, 0.2);
  padding: 1em;
  text-align: center;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em 0.5em;
}

.site-nav a {
  display: inline-block;
  padding: 0.5em 0.9em;
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--warm-white);
  color: var(--teal-dark);
}

.site-nav a[aria-current="page"] {
  background: var(--teal);
  color: #fff;
}

/* ---------- Hero (home page) ---------- */
.hero {
  background-image: linear-gradient(rgba(32, 32, 32, 0.55), rgba(32, 32, 32, 0.55)), url("../assets/images/bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 5em 1.5em;
}

.hero h1 {
  font-size: 2.5em;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

.hero .tagline {
  font-size: 1.25em;
  font-weight: 600;
  margin: 0 auto;
  max-width: 30em;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--warm-white);
  text-align: center;
  padding: 3em 1.5em 2.5em;
}

.page-hero h1 {
  font-size: 2em;
  font-weight: 900;
  color: var(--sage);
  line-height: 1.3;
  margin: 0;
}

/* ---------- Main content ---------- */
main {
  display: block;
}

.section {
  padding: 3em 1.5em;
}

.section.alt {
  background: var(--warm-white);
}

.section-inner {
  max-width: var(--max-line);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.4;
  margin: 0 0 0.75em;
}

.section h3 {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--sage);
  margin: 1.5em 0 0.5em;
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

ul.content-list {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

ul.content-list li {
  margin-bottom: 0.6em;
  padding-left: 0.3em;
}

ul.content-list li::marker {
  color: var(--teal);
}

a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--teal); }

a:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

strong { font-weight: 700; color: var(--text-strong); }

/* ---------- Images ---------- */
.photo {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 1.5em;
}

.photo-portrait {
  max-width: 20em;
}

/* ---------- Buttons / calls to action ---------- */
.button {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85em 1.75em;
  border-radius: 8px;
  margin-top: 0.5em;
}

.button:hover,
.button:focus-visible {
  background: var(--teal-dark);
  color: #fff;
}

.cta {
  text-align: center;
}

.email-highlight {
  font-size: 1.15em;
  text-align: center;
  margin-top: 1em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage);
  color: rgba(250, 247, 240, 0.941);
  text-align: center;
  padding: 2em 1.5em;
  font-size: 0.9em;
}

.site-footer a {
  color: rgba(250, 247, 240, 0.941);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding: 3.5em 1.25em; }
  .hero h1 { font-size: 1.9em; }
  .page-hero h1 { font-size: 1.6em; }
  .section { padding: 2.25em 1.25em; }
}

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