/* CBA Orlando — design system (Family Hub direction).
   Warm, family-first: serif display headings over clean sans body, a blue-teal +
   copper palette, photo-rich heroes with an overlapping floating panel, and a
   quick-grid of "doors" that bridges the hero into the page. Single source of
   truth — every page is generated against these class names (_build/). */

:root {
  --ink: #17211d;
  --muted: #5f6c66;
  --line: rgba(20, 31, 26, 0.13);
  --paper: #fffdf8;
  --white: #ffffff;
  --soft: #f6f3eb;

  --forest: #1b3a2d;   /* brand mark */
  --deep: #173246;     /* hero + dark sections + page heroes */
  --deep-2: #102536;
  --accent: #477b96;   /* primary, sky blue */
  --accent-strong: #3a6781;
  --accent-2: #c08347; /* copper — eyebrows, kickers, warm CTAs */
  --copper-strong: #a96e34;
  --coral: #a4463e;    /* urgent / emergency */
  --sky: #e9f0f3;      /* light tint band */
  --gold: #c08347;     /* legacy alias of copper */

  --shadow: 0 18px 50px rgba(23, 33, 29, 0.14);
  --shadow-sm: 0 12px 28px rgba(23, 33, 29, 0.08);
  --radius: 10px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--deep);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--forest);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: #31413a;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--deep);
}

.main-nav .nav-urgent {
  background: var(--coral);
  color: var(--white);
}

.main-nav .nav-urgent:hover,
.main-nav .nav-urgent:focus {
  background: #8c3a33;
  color: var(--white);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: 0.4rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--line);
}

.lang-switch a,
.lang-switch .on {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.42rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
}

.lang-switch a:hover,
.lang-switch a:focus {
  background: var(--soft);
  color: var(--deep);
}

.lang-switch .on {
  background: var(--deep);
  color: var(--white);
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.74rem 1.1rem;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
}

.button.primary {
  background: var(--accent);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus {
  background: var(--accent-strong);
}

.button.warm {
  background: var(--accent-2);
  color: #1f1305;
}

.button.warm:hover,
.button.warm:focus {
  background: var(--copper-strong);
  color: var(--white);
}

.button.dark {
  background: var(--deep);
  color: var(--white);
}

.button.dark:hover,
.button.dark:focus {
  background: var(--deep-2);
}

.button.light {
  background: var(--white);
  color: var(--deep);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button.ghost:hover,
.button.ghost:focus {
  background: rgba(255, 255, 255, 0.12);
}

.button.outline {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: transparent;
}

.button.outline:hover,
.button.outline:focus {
  background: var(--sky);
}

/* ---- Shared layout ---- */
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

main section {
  padding: 5rem 0;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 0.7rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
  max-width: 820px;
}

.section-head .section-kicker {
  margin-bottom: 0;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p,
.muted {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---- Hero (home, two-column Family Hub) ---- */
.hero {
  position: relative;
  padding: 0;
  background: var(--deep);
  color: var(--white);
}

.hero-inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 3rem;
  min-height: 640px;
  padding: 4.5rem 0 4rem;
}

.hero-content {
  max-width: 640px;
}

.hero .eyebrow {
  color: var(--accent-2);
}

.hero h1 {
  color: var(--white);
  max-width: 14ch;
}

.hero-lede {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero-note {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-note span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
}

.language-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.language-row span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-photo {
  position: relative;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.floating-panel {
  position: absolute;
  left: -1.6rem;
  bottom: 1.6rem;
  width: min(330px, 84%);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}

.floating-panel h3 {
  margin-bottom: 0.4rem;
}

.floating-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Quick grid (the four doors, bridging hero into page) ---- */
.quick-grid {
  width: min(1180px, calc(100% - 2.5rem));
  margin: -3.25rem auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.quick-card strong {
  font-size: 1.05rem;
}

.quick-card span {
  color: var(--muted);
  font-size: 0.93rem;
}

.quick-card a {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.quick-card a:hover {
  text-decoration: underline;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--deep);
  color: var(--white);
  padding: 4.5rem 0 3.75rem;
}

.page-hero .eyebrow {
  color: var(--accent-2);
}

.page-hero h1 {
  color: var(--white);
  max-width: 18ch;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.page-hero .actions {
  margin-top: 1.4rem;
}

/* ---- Emergency strip ---- */
.urgent-strip {
  background: var(--deep-2);
  color: var(--white);
}

.urgent-strip .section-inner {
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.urgent-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.urgent-strip strong {
  color: var(--accent-2);
}

.urgent-strip a:not(.button) {
  color: var(--white);
  font-weight: 700;
}

/* ---- Grids + cards ---- */
.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.card p:last-child,
.split-copy p:last-child,
.resource-note p:last-child {
  margin-bottom: 0;
}

.card.is-urgent {
  border-left: 4px solid var(--coral);
}

.number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.9rem;
  border-radius: 9px;
  background: var(--sky);
  color: var(--deep);
  font-weight: 900;
}

.status {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status.planned {
  background: color-mix(in srgb, var(--accent-2) 16%, white);
  color: var(--copper-strong);
}

/* ---- Split sections ---- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  object-fit: cover;
}

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.check-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

/* ---- Bands ---- */
.band {
  background: var(--soft);
}

.sky-band {
  background: var(--sky);
}

.gold {
  color: var(--accent-2);
}

/* ---- Leadership ---- */
.leader-card strong {
  display: block;
  color: var(--deep);
  font-size: 1.1rem;
}

.leader-card span {
  display: block;
  color: var(--muted);
}

/* ---- Schedule ---- */
.schedule {
  display: grid;
  gap: 0.5rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row strong {
  color: var(--accent-strong);
}

/* ---- Dark callout card ---- */
.resource-note {
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.resource-note h3 {
  color: var(--white);
}

.resource-note p,
.resource-note .muted {
  color: rgba(255, 255, 255, 0.84);
}

/* ---- Directory ---- */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.directory-card {
  display: grid;
  gap: 0.55rem;
}

.directory-card a {
  color: var(--accent-strong);
  font-weight: 800;
}

/* ---- Article (resources) ---- */
.article {
  display: grid;
  gap: 2rem;
  max-width: 760px;
}

.prose > h2 {
  margin: 2.3rem 0 0.6rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin: 1.7rem 0 0.4rem;
}

.prose p {
  margin: 0 0 1rem;
  line-height: 1.78;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.prose li {
  line-height: 1.7;
}

.prose li::marker {
  color: var(--accent-2);
}

.prose a {
  color: var(--accent-strong);
  font-weight: 700;
}

.article-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.article-related a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--deep);
}

.article-related a:hover,
.article-related a:focus {
  background: var(--soft);
}

/* ---- Forms (help / serve / start intake) ---- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  max-width: 780px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field.wide,
.choices,
.form-grid > .seg-field {
  grid-column: 1 / -1;
}

.field > span {
  font-weight: 800;
  color: var(--deep);
  font-size: 0.95rem;
}

.field i {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  background: var(--paper);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--sky);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.choice span {
  font-weight: 700;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.seg label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.seg label:has(input:checked) {
  border-color: var(--accent);
  background: var(--sky);
  color: var(--deep);
}

.seg input {
  accent-color: var(--accent);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.urgent-note {
  margin: 0 0 0.4rem;
  grid-column: 1 / -1;
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  background: #f7e6df;
  color: #7a2f1c;
  border: 1px solid #e6c3b6;
  font-weight: 650;
}

.urgent-note strong {
  color: #7a2f1c;
}

.form .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-status {
  margin: 0.6rem 0 0;
  font-weight: 750;
  color: var(--muted);
}

.form-status.ok {
  color: var(--accent-strong);
}

.form-status.err {
  color: var(--coral);
}

.form-privacy {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Footer ---- */
.site-footer {
  background: #111915;
  color: var(--white);
}

.footer-inner {
  padding: 3.25rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(150px, 0.6fr));
  gap: 1.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--white);
  text-decoration: underline;
}

.site-footer h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.site-footer h3 {
  font-size: 0.95rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.legal-line {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus {
  color: var(--white);
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + 0.5rem);
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    color: var(--ink);
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 0.35rem;
    padding-left: 0;
    padding-top: 0.5rem;
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
  }

  .hero-grid,
  .split,
  .grid.three,
  .grid.four,
  .footer-inner,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 2rem;
    padding-bottom: 3.25rem;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .urgent-strip .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  main section {
    padding: 3.6rem 0;
  }

  .hero-grid {
    padding-top: 3.25rem;
  }

  .floating-panel {
    position: static;
    width: 100%;
    margin-top: 0.9rem;
    left: 0;
  }

  .quick-grid,
  .grid.two,
  .form-grid,
  .choices {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    margin-top: 1.5rem;
  }

  .actions,
  .language-row {
    flex-direction: column;
  }

  .button,
  .language-row span {
    width: 100%;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
