/* Community Autism Project (CAP) — Sensory-Calm Architectural Layout
 * Palette: Pure White (#FFFFFF), Warm Limestone (#F5F3EE), Warm Stone Footer (#EFECE6),
 * Deep Yorkshire Cobalt (#16324F), Sunlit Ochre (#C96A24), Moss Teal (#2B6E63), Hairline (#DCD8D0)
 * Rules: Flat solid colors only, no gradients, no glassmorphism, no emoji.
 */

:root {
  --white: #FFFFFF;
  --limestone: #F5F3EE;
  --stone-footer: #EFECE6;
  --cobalt: #16324F;
  --cobalt-deep: #0F243A;
  --ochre: #C96A24;
  --ochre-dark: #A55317;
  --ochre-soft: #FDF5EC;
  --moss: #2B6E63;
  --moss-soft: #EDF5F3;
  --ink: #19232D;
  --muted: #52606D;
  --line: #DCD8D0;
  --line-strong: #C4BEB3;

  --radius-lg: 12px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow-subtle: 0 1px 2px rgba(22, 50, 79, 0.05);

  --max: 1180px;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--cobalt);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1.05rem;
}

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

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

.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--cobalt);
  color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* 1. Two-tier Utility Bar + Light Pill Masthead */
.utility-bar {
  background-color: var(--cobalt);
  color: #E3EAF1;
  font-size: 0.8125rem;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 9px 0;
}

.utility-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.utility-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-bar a {
  color: #FFFFFF;
  text-decoration: none;
}

.utility-bar a:hover {
  color: #F6CFA9;
  text-decoration: underline;
}

.masthead {
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.cap-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.cap-brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}

.cap-brand-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cap-brand-title strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--cobalt);
  line-height: 1.15;
}

.cap-brand-title span {
  font-size: 0.78rem;
  color: var(--muted);
}

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pill-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.pill-nav a:hover {
  background-color: var(--limestone);
  color: var(--cobalt);
}

.pill-nav a[aria-current="page"] {
  background-color: var(--ochre-soft);
  border-color: #ECCAA7;
  color: var(--ochre-dark);
  font-weight: 600;
}

/* 2. Architectural Typographic Panoramic Hero */
.cap-hero {
  background-color: var(--white);
  padding: 56px 0 68px;
  border-bottom: 1px solid var(--line);
}

.hero-top {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 36px;
}

.hero-top > * {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moss);
  margin-bottom: 14px;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--ochre);
  display: inline-block;
}

.hero-intro p {
  font-size: 1.04rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.btn-flat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--cobalt);
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
}

.btn-flat:hover {
  background-color: var(--cobalt-deep);
  color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ochre);
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--ochre-dark);
}

.panoramic-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--limestone);
}

.panoramic-wrap img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.ledger-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background-color: var(--limestone);
}

.ledger-cell {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.ledger-cell:last-child {
  border-right: none;
}

.ledger-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 4px;
}

.ledger-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cobalt);
}

/* Sections */
.band {
  padding: 76px 0;
}

.band-limestone {
  background-color: var(--limestone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-moss {
  background-color: var(--moss-soft);
  border-top: 1px solid #CFE1DC;
  border-bottom: 1px solid #CFE1DC;
}

.band-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}

.band-head > * {
  min-width: 0;
}

.band-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* 3. Numbered Horizontal Index Rows (Replaces generic 3-card row) */
.index-list {
  border-top: 1.5px solid var(--cobalt);
}

.index-row {
  display: grid;
  grid-template-columns: 76px 0.95fr 1.25fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.index-row > * {
  min-width: 0;
}

.index-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ochre);
  line-height: 1;
}

.index-title h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.index-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--moss);
  background-color: var(--moss-soft);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.index-body p {
  color: var(--muted);
  margin-bottom: 14px;
}

/* 4. Asymmetric Bento Collage */
.bento-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-grid > * {
  min-width: 0;
}

.bento-tall {
  grid-row: span 2;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
}

.bento-tall img {
  width: 100%;
  flex: 1;
  min-height: 360px;
  object-fit: cover;
}

.bento-photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--white);
}

.bento-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 11px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background-color: var(--white);
}

.bento-statement {
  background-color: var(--cobalt);
  color: #E7EEF5;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.bento-statement .kicker {
  color: #F4C89B;
  margin-bottom: 6px;
}

.bento-statement h3 {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.bento-statement p {
  color: #D7E2ED;
  font-size: 0.95rem;
}

.bento-statement a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ochre);
  align-self: flex-start;
  padding-bottom: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-statement a:hover {
  color: #F4C89B;
}

/* 5. First-Visit Parent Q&A Band */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 36px;
}

.faq-item {
  border-left: 3px solid var(--moss);
  padding: 4px 0 4px 20px;
  min-width: 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Inner Page Header (Clean Architectural Title Strip) */
.inner-head {
  background-color: var(--limestone);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 44px;
}

.inner-head-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: end;
}

.inner-head-grid > * {
  min-width: 0;
}

.inner-head h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
}

.inner-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Inner Page Layout A: Left Anchor Rail + Right Editorial Column */
.rail-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 56px;
  align-items: start;
}

.rail-layout > * {
  min-width: 0;
}

.anchor-rail {
  position: sticky;
  top: 24px;
  border-top: 2px solid var(--cobalt);
  padding-top: 16px;
}

.anchor-rail-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.anchor-rail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.anchor-rail a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink);
  display: block;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.anchor-rail a:hover {
  color: var(--ochre-dark);
}

.reading-col {
  max-width: 72ch;
}

.reading-col h2 {
  margin-top: 40px;
  margin-bottom: 14px;
}

.reading-col h2:first-child {
  margin-top: 0;
}

.objects-quote {
  background-color: var(--ochre-soft);
  border-left: 4px solid var(--ochre);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 24px 0;
  font-size: 0.96rem;
  color: var(--ink);
}

.objects-quote ol {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

/* Inner Page Layout B: Color-coded Service Directory + 4-Step Session Timeline */
.service-stack {
  display: grid;
  gap: 24px;
}

.service-block {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.service-block > * {
  min-width: 0;
}

.service-block.border-cobalt { border-left-color: var(--cobalt); }
.service-block.border-ochre { border-left-color: var(--ochre); }
.service-block.border-moss { border-left-color: var(--moss); }

.service-block h2 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.service-block > div > p {
  color: var(--muted);
}

.service-block .bento-statement p {
  color: #D7E2ED;
}

.bullet-clean {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
}

.bullet-clean li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
}

.bullet-clean .icon {
  color: var(--moss);
  margin-top: 3px;
}

.timeline-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-box {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--cobalt);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-box h3 {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.step-box p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Inner Page Layout C: Data Tables, Trustee Directory & Policy Matrix */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  text-align: left;
}

.data-table th {
  background-color: var(--limestone);
  color: var(--cobalt);
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 18px;
  border-bottom: 1.5px solid var(--line-strong);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--moss);
  background-color: var(--moss-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.policy-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.policy-col {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  border-radius: var(--radius-sm);
  padding: 20px;
  min-width: 0;
}

.policy-col h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.policy-col ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Contact Two-Channel Grid */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.channel-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cobalt);
  border-radius: var(--radius);
  padding: 28px 30px;
  min-width: 0;
}

.channel-card.accent-ochre {
  border-top-color: var(--ochre);
}

.channel-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.channel-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.channel-detail {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 0.96rem;
}

.channel-detail div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-detail .icon {
  color: var(--ochre);
}

/* 6. Light Warm-Stone 4-Column Architectural Footer */
.cap-footer {
  background-color: var(--stone-footer);
  border-top: 3px solid var(--cobalt);
  color: var(--ink);
  padding: 56px 0 32px;
}

.cap-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-strong);
}

.cap-footer-grid > * {
  min-width: 0;
}

.cap-footer h2 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  margin-bottom: 14px;
}

.cap-footer p {
  font-size: 0.9rem;
  color: var(--muted);
}

.cap-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.cap-footer a {
  color: var(--ink);
  text-decoration: none;
}

.cap-footer a:hover {
  color: var(--ochre-dark);
  text-decoration: underline;
}

.cap-footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-top,
  .band-head,
  .inner-head-grid,
  .bento-grid,
  .rail-layout,
  .service-block,
  .channel-grid,
  .cap-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bento-tall {
    grid-row: auto;
  }

  .anchor-rail {
    position: static;
  }

  .ledger-bar,
  .timeline-4,
  .policy-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-row {
    grid-template-columns: 52px 1fr;
    gap: 14px 20px;
  }

  .index-body {
    grid-column: 1 / -1;
  }
}

@media (max-width: 660px) {
  .wrap {
    padding: 0 18px;
  }

  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pill-nav a {
    padding: 6px 12px;
    font-size: 0.86rem;
  }

  .cap-hero {
    padding: 36px 0 48px;
  }

  .band {
    padding: 52px 0;
  }

  .panoramic-wrap img {
    aspect-ratio: 16 / 10;
  }

  .ledger-bar,
  .faq-grid,
  .timeline-4,
  .policy-matrix {
    grid-template-columns: 1fr;
  }

  .ledger-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .ledger-cell:last-child {
    border-bottom: none;
  }

  .service-block {
    padding: 22px 20px;
  }
}
