/* ============================================================
   Reading Path Assessment Services — shared stylesheet
   Palette: deep teal ink + warm ochre accent on soft paper
   Type: Fraunces (headlines) / Source Sans 3 (body)
   ============================================================ */

:root {
  --ink: #1c332f;
  --ink-soft: #3c534d;
  --teal: #2f4c46;
  --teal-deep: #1c332f;
  --gold: #b9812f;
  --gold-deep: #8f6323;
  --paper: #f7f3ea;
  --paper-raised: #fffdf8;
  --line: #dcd4c2;
  --max-width: 1120px;
  --radius: 4px;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Base size scales down slightly on very small phones, up on larger screens */
  font-size: 17px;
}

@media (min-width: 700px) {
  html { font-size: 18px; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--gold-deep); }
a:hover { color: var(--gold); }

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

h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.1em; max-width: 68ch; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--teal-deep);
}

.brand-icon {
  width: 2.2rem;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  line-height: 1.2;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--teal-deep);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  display: inline-block;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--teal-deep);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--teal-deep);
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--gold-deep); color: #fff !important; }

.main-nav ul li {
  flex-shrink: 0;
}

@media (max-width: 1239px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-wrap { flex-wrap: wrap; }
  .nav-cta { display: inline-block; margin: 1rem 0.2rem; }
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow-note {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.hero-lede {
  font-size: 1.3rem;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 0.9rem 1.6rem;
  min-height: 44px;
  border-radius: var(--radius);
  border: 2px solid var(--teal-deep);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

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

/* Path graphic used on the hero */
.path-graphic { width: 100%; height: auto; }

/* ---------------- Sections ---------------- */
section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--paper-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-teal {
  background: var(--teal-deep);
  color: #f2efe4;
}
.section-teal h2, .section-teal h3 { color: #fff; }
.section-teal p { color: #d9e0dc; }

.lede-band {
  text-align: center;
}
.lede-band h2 { max-width: 32ch; margin-left: auto; margin-right: auto; }

/* Signs / checklist */
.signs-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.2rem;
}
@media (max-width: 700px) { .signs-list { grid-template-columns: 1fr; } }

.signs-list li {
  position: relative;
  padding-left: 1.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.signs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
}

/* Three-up feature / value cards */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2.2rem;
}
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

.trio-item h3 { margin-bottom: 0.4rem; }
.trio-item .step-index {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.3rem;
}

/* Path / process timeline (used on How it Works) */
.path-steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  position: relative;
}
.path-steps::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--line);
}
.path-steps li {
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: 2.4rem;
}
.path-steps li:last-child { margin-bottom: 0; }
.path-steps .marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--gold);
  color: var(--teal-deep);
  font-family: var(--serif);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pricing / evaluation path cards */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
@media (max-width: 960px) { .paths-grid { grid-template-columns: 1fr; } }

.path-card {
  background: var(--paper-raised);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.path-card .price {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-deep);
  margin: 0.3rem 0 1rem;
}
.path-card .audience {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.path-card h3 {
  /* reserves room for two-line titles so prices line up across cards */
  min-height: 3.4rem;
}
.path-card ul {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}
.path-card li { margin-bottom: 0.5rem; }
.path-card .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--teal-deep);
  padding: 1.2rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding-bottom: 1.3rem; color: var(--ink-soft); }

/* Quote / credentials */
.credentials-list {
  columns: 2;
  gap: 2rem;
  padding-left: 1.2rem;
  margin-top: 1rem;
}
@media (max-width: 700px) { .credentials-list { columns: 1; } }
.credentials-list li { margin-bottom: 0.6rem; break-inside: avoid; }

.pull-note {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--teal-deep);
  margin: 2rem 0;
}

/* ---------------- Contact form ---------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
@media (min-width: 861px) {
  .contact-layout > div:first-child { position: sticky; top: 2rem; }
}

.contact-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  font-size: 1rem;
}

.field {
  margin-bottom: 1.3rem;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--teal-deep);
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 0.9rem;
  min-height: 44px;
  border: 1px solid #b9b09a;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}
.field input.invalid,
.field textarea.invalid {
  border-color: #b3261e;
}
.field .error-message {
  display: none;
  color: #b3261e;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.field .error-message.visible { display: block; }
.required-marker {
  color: var(--gold-deep);
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  color: var(--ink);
}
.radio-group input { width: auto; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: #e4efe4; color: #24422a; border: 1px solid #b7d2b8; }
.form-status.error { background: #f6e2df; color: #6b2a20; border: 1px solid #e0b6ae; }
.form-status.info { background: #e8eef3; color: #1c3a4d; border: 1px solid #b9cfdd; }

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.contact-info-list li { margin-bottom: 0.8rem; }
.contact-info-list a { font-weight: 700; }

.confidentiality-note {
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--teal-deep);
  color: #d9e0dc;
  padding: 2.5rem 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer a { color: #f2efe4; }
.footer-tagline { font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-fine { font-size: 0.9rem; margin-top: 1.5rem; color: #a9b6b0; }

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

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
