/* Doral Family Emergency Fund — vanilla CSS. Tokens first, then components in page order. */

:root {
  --navy: #0B2C5C;
  --navy-2: #12376E;
  --navy-line: #2F4E7E;
  --red: #C8102E;
  --red-2: #A50D26;
  --yellow: #F5C518;
  --yellow-2: #E0B00C;
  --cream: #FBF8F3;
  --ink: #14181F;
  --ink-2: #1E2530;
  --ink-3: #3B4351;
  --ink-4: #4A525F;
  --muted: #5A6473;
  --muted-2: #7A8492;
  --line: #E2DCD1;
  --line-2: #EFEAE1;
  --field-line: #DDD6CA;
  --on-navy: #D6E1F0;
  --on-navy-2: #C9D7EA;
  --on-navy-3: #9FB6D6;
  --pink: #FFFFFF;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: Georgia, 'Times New Roman', serif;

  --container: 1180px;
  --gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
::selection { background: var(--pink); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea, button { font-family: var(--sans); font-size: 15px; color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 760px; }
.section { padding-top: 84px; }
.section--last { padding-bottom: 96px; }

/* Type helpers */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.h-section { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.h-section--onnavy { color: #fff; margin-bottom: 12px; }
.h-card { font-size: 20px; font-weight: 700; }
.section__lede { margin: 8px 0 36px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 74ch; text-wrap: pretty; }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.72; color: var(--ink-2); text-wrap: pretty; }
.prose__lead { font-weight: 600; font-style: italic; color: var(--navy); }
.muted { font-size: 14px; color: var(--muted-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color 120ms, border-color 120ms;
}
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn--block { width: 100%; padding: 15px 22px; font-size: 15px; }
.btn--outline { border-color: #6E8AB5; color: #fff; font-weight: 600; }
.btn--outline:hover { border-color: #fff; background: var(--navy-2); color: #fff; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--yellow-2); color: var(--navy); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #E8EEF7; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { align-items: center; gap: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; border-bottom: 3px solid var(--red); }
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 220px; color: #fff; }
.brand:hover { color: #fff; }
.brand__logo { height: 72px; width: auto; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand__title { font-family: var(--display); font-size: clamp(17px, 2vw, 24px); white-space: nowrap; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase; }
.brand__kicker { font-family: var(--display); font-size: 15px; font-weight: 400; line-height: 1.3; color: var(--on-navy-2); }
.site-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-nav { gap: 24px; }
.site-nav__link { font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--on-navy-2); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.site-nav__link:hover { color: #fff; }
.site-nav__link.is-current { color: #fff; font-weight: 600; border-bottom-color: var(--red); }
.lang-switch { padding: 9px 16px; border: 1px solid var(--navy-line); border-radius: 999px; font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--on-navy-2); }
.lang-switch:hover { border-color: #fff; color: #fff; }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 78px; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--navy); border-top: 1px solid var(--navy-line); padding: 12px 16px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.28);
  }
  .mobile-bar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; font-size: 15px; font-weight: 700; }
  .mobile-bar__btn--white { background: #fff; color: var(--navy); }
  .mobile-bar__btn--red { background: var(--red); color: #fff; }
  .site-nav .btn--red { display: none; }
}

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; }
.hero__copy { padding: 72px 48px 76px 0; display: flex; flex-direction: column; gap: 26px; justify-content: center; align-self: center; }
.hero__title { font-size: clamp(26px, 3.75vw, 51px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; text-wrap: pretty; }
.hero__lede { font-family: var(--serif); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.62; color: var(--on-navy); max-width: 58ch; text-wrap: pretty; }
.hero__note { font-size: 13px; line-height: 1.6; color: var(--on-navy-3); max-width: 46ch; }
.hero__media { position: relative; min-height: 440px; margin: 56px -28px 56px -40px; min-width: 0; }
.hero__photo { width: 100%; height: 100%; min-height: 440px; max-height: 650px; object-fit: cover; border-radius: 18px; }

/* Red band */
.band { background: var(--red); color: #fff; }
.band__inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 6px; }
.band__line1 { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--pink); }
.band__line2 { font-family: var(--display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; text-wrap: pretty; }

/* Letter + need-help */
.letter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 56px; align-items: start; }
.letter__body { max-width: 70ch; display: flex; flex-direction: column; gap: 22px; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.signature__text { display: flex; flex-direction: column; gap: 3px; }
.signature__signoff { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.signature__name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.avatar { border-radius: 50%; background: var(--line-2); border: 1px dashed var(--field-line); flex: none; }
.avatar--lg { width: 100px; height: 100px; }
.avatar--xl { width: 104px; height: 104px; }
.need-help { border: 1px solid var(--line); border-top: 4px solid var(--navy); background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 104px; }
.need-help__body { font-size: 15px; line-height: 1.65; color: var(--muted); }
.dot-list { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.dot-list li { position: relative; padding-left: 15px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.dot-list--onnavy { border-top: 0; padding-top: 0; gap: 12px; }
.dot-list--onnavy li { color: var(--on-navy); line-height: 1.6; }
.dot-list--boxed { border-top: 0; padding: 24px; background: var(--cream); border: 1px solid var(--line-2); gap: 12px; }
.dot-list--boxed li { font-size: 15px; }

/* What your donation does */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px; }
.use { padding-top: 22px; border-top: 2px solid var(--red); display: flex; flex-direction: column; gap: 12px; }
.use__num { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--red); }
.use__title { font-size: 23px; font-weight: 700; line-height: 1.2; }
.use__body { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* How it works */
.how { background: var(--navy); color: #fff; padding: clamp(34px, 4vw, 56px); border-radius: 12px; }
.how__lede { margin-bottom: 42px; font-family: var(--serif); font-size: 18px; line-height: 1.68; color: var(--on-navy); max-width: 72ch; text-wrap: pretty; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 34px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); }
.step__title { font-size: 26px; font-weight: 700; line-height: 1.2; }
.step__body { font-size: 15px; line-height: 1.62; color: var(--on-navy-2); }
.how__limits { margin: 60px 0 29px; padding-top: 30px; border-top: 1px solid var(--navy-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 26px; }
.how__limits-title { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.how__limits-body { font-size: 15px; line-height: 1.62; color: var(--on-navy); max-width: 52ch; }
.how__limits-cta { display: flex; align-items: center; }
.how__limits-cta .btn--yellow { color: var(--ink); }

/* Why this matters */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 52px; align-items: start; }
.why__copy { display: flex; flex-direction: column; gap: 20px; max-width: 64ch; }
.why__cta { align-self: flex-start; margin-top: 8px; }
.why__media { min-height: 420px; border-radius: 12px; background: var(--line-2); border: 1px dashed var(--field-line); }

/* Organizers */
.organizers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 44px; margin-top: 36px; }
.organizer { display: flex; flex-direction: column; gap: 16px; }
.organizer__name { font-size: 20px; font-weight: 700; }
.organizer__body { font-size: 16px; line-height: 1.68; color: var(--ink-4); text-wrap: pretty; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-2); }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 64px var(--gutter) 40px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 22px; }
.site-footer__logo { height: 64px; width: auto; object-fit: contain; }
.site-footer__tagline { font-family: var(--display); font-size: 17px; font-weight: 500; color: #fff; letter-spacing: -0.005em; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 28px; padding-top: 6px; }
.site-footer__links a { font-size: 14px; font-weight: 600; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 2px; }
.site-footer__links a:hover { color: #fff; border-bottom-color: #fff; }
.site-footer__legal { padding-top: 26px; border-top: 1px solid var(--navy-line); width: 100%; font-size: 13px; line-height: 1.7; color: var(--on-navy-3); text-wrap: pretty; }

/* ---------- Application page ---------- */
.app-hero { background: var(--navy); color: #fff; }
.app-hero__inner { padding-top: 60px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; max-width: 1120px; }
.app-hero__title { font-size: clamp(32px, 4vw, 52px); font-weight: 600; line-height: 1.08; max-width: 24ch; }
.app-hero__lede { font-family: var(--serif); font-size: 19px; line-height: 1.68; color: var(--on-navy); max-width: 66ch; text-wrap: pretty; }

.app { max-width: 1120px; padding-top: 56px; padding-bottom: 110px; display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } }
.app-form { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.card { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 26px; margin: 0; min-width: 0; }
.card--submit { border-top: 4px solid var(--red); gap: 18px; }
.card__head { display: flex; flex-direction: column; gap: 8px; padding: 0 0 20px; border-bottom: 1px solid var(--line-2); width: 100%; float: left; }
.card__head + .fields { clear: both; }
.card__title { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); }
.card__body { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.card__note { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 70ch; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 26px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { display: flex; align-items: flex-end; min-height: 40px; font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink-2); }
.field--wide .field__label { min-height: auto; }
.field__hint { font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.field__error { font-size: 13px; font-weight: 600; color: var(--red); }
.field--error .control { border-color: var(--red); }

.control { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--cream); }
.control--area { height: auto; padding: 14px; line-height: 1.55; resize: vertical; }
.control--file { padding: 12px 14px; border-style: dashed; border-color: #BFB6A6; font-size: 14px; }
select.control { padding: 0 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid var(--field-line); border-radius: 999px; background: var(--cream); font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; min-height: 44px; }
.chip:hover { border-color: var(--navy); background: #fff; }
.chip input { width: 17px; height: 17px; accent-color: var(--red); margin: 0; }
.consent { display: flex; flex-direction: column; gap: 14px; margin-top: 2px; }
.consent__item { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-3); cursor: pointer; }
.consent__item input { width: 19px; height: 19px; accent-color: var(--red); margin: 2px 0 0; flex: none; }

.alert { padding: 16px 18px; background: #FDF0F2; border: 1px solid #F2C4CD; color: #8E0C22; font-size: 15px; line-height: 1.55; font-weight: 600; }
.alert--demo { display: grid; gap: 4px; background: #EEF4FC; border-color: #B9CCE8; color: var(--navy); font-weight: 400; }
.alert--demo strong { font-weight: 700; }
.btn:disabled { cursor: not-allowed; opacity: 0.68; }
button.btn { border: 0; }

.app-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-card { background: #fff; border: 1px solid var(--line); padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.side-card--navy { background: var(--navy); color: #fff; border-color: var(--navy); gap: 16px; position: sticky; top: 104px; }
.side-card__title { font-size: 18px; font-weight: 700; }
.side-card__body { font-size: 14px; line-height: 1.65; color: var(--muted); }
.side-card__link { font-size: 14px; font-weight: 700; }

.done { padding-top: 96px; padding-bottom: 120px; }
.done__card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.done__title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.12; }
.done__body { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink-3); text-wrap: pretty; }
.done .dot-list--boxed { width: 100%; }
