/* Vesmir Chrani Veterans: shared stylesheet
   Brand colors are locked. Change them only in :root. */

/* Self-hosted fonts (SIL Open Font License). No requests go to Google. */
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mellow-white: #F5F2EA;
  --space-black: #1D1D1F;
  --burnt-orange: #CF3600;
  --card-white: #FBF9F4;
  --white: #FFFFFF;
  --field-border: #6B6B70;   /* 4.6:1 on card white, for input borders */
  --soft-rule: #D9D4C7;      /* decorative hairlines only */
  --error: #A32100;          /* 7:1 on card white, always paired with an icon and the word "Error" */

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 72rem;
  --gutter: 1rem;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--mellow-white);
  color: var(--space-black);
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18px minimum body size */
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: inherit;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.1875rem; }

p, ul, ol, dl { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

em, i, cite, address, dfn, var { font-style: normal; }

a { color: var(--space-black); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }

strong { font-weight: 700; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--space-black);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
  border-radius: 2px;
}
.dark :focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 3px var(--space-black);
}
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.error-summary[tabindex="-1"]:focus { outline: 3px solid var(--space-black); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 46rem; }

.skip-link {
  position: absolute;
  left: 0.5rem; top: -6rem;
  z-index: 200;
  background: var(--white);
  color: var(--space-black);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border: 3px solid var(--space-black);
}
.skip-link:focus { top: 0.5rem; }

/* Small uppercase label above section headings (14px minimum, bold) */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  padding-top: 0.875rem;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3px;
  background: var(--burnt-orange);
}
.center .eyebrow::before { left: 50%; transform: translateX(-50%); }
.center { text-align: center; }

.rule {
  border: 0;
  height: 2px;
  background: var(--burnt-orange);
  margin: 2rem 0;
}

.lead { font-size: 1.25rem; line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  min-width: 2.75rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--burnt-orange); color: var(--white); border-color: var(--burnt-orange); }
.btn-primary:hover { background: #A82C00; border-color: #A82C00; }
.btn-outline { background: transparent; color: var(--space-black); border-color: var(--space-black); }
.btn-outline:hover { background: var(--space-black); color: var(--white); }
.dark .btn-outline { color: var(--white); border-color: var(--white); }
.dark .btn-outline:hover { background: var(--white); color: var(--space-black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--space-black);
  color: var(--white);
  border-bottom: 3px solid var(--burnt-orange);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-block: 0.625rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-right: auto;
  text-decoration: none;
}
.logo img { height: 2.25rem; width: auto; }
.header-donate { display: none; min-height: 2.75rem; padding-inline: 1rem; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.375rem 0.75rem;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 2px;
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}
.menu-toggle svg { width: 1.25rem; height: 1.25rem; flex: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { flex-basis: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.25rem;
}
.site-nav li { margin: 0; }
.site-nav a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--white); font-weight: 700; }
.site-nav .nav-donate .btn { min-height: 2.75rem; margin-left: 0.5rem; }

/* With JavaScript on small screens: collapsible menu, Donate stays in the bar */
@media (max-width: 74.99em) {
  .js .header-donate { display: inline-flex; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; max-height: calc(100vh - 5rem); overflow-y: auto; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { display: block; padding-block: 0.5rem; }
  .js .site-nav a:not(.btn) { min-height: 3rem; border-bottom: 1px solid #55555A; border-left: 4px solid transparent; }
  .js .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: #55555A; border-left-color: var(--white); }
  .js .site-nav .nav-donate { display: none; }
}
@media (max-width: 23.74em) {
  .menu-toggle .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 75em) {
  .header-inner { flex-wrap: nowrap; }
  .logo img { height: 3rem; }
  .site-nav { flex-basis: auto; }
  .site-nav ul { flex-wrap: nowrap; justify-content: flex-end; }
  .site-nav a:not(.btn) { white-space: nowrap; }
}
/* When the window is very short (for example at 400% zoom) do not let the header cover the page */
@media (max-height: 30em) {
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: 3.5rem; }
.section-tight { padding-block: 2.5rem; }
.band-card { background: var(--card-white); border-block: 1px solid var(--soft-rule); }
.dark { background: var(--space-black); color: var(--white); }
.dark a { color: var(--white); }
.dark .eyebrow { color: var(--white); }

.page-head { padding-block: 3rem 2rem; border-bottom: 2px solid var(--burnt-orange); }
.page-head p:last-child { margin-bottom: 0; }

/* Hero */
.hero { padding-block: 3.5rem 4rem; }
.hero h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 1.25rem; max-width: 18ch; }
.hero .accent { color: var(--burnt-orange); }   /* large text only: 4.49:1 on mellow white */
.hero .lead { max-width: 38rem; margin-bottom: 2rem; }

/* Cards */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 2rem 0 0; }
.card-grid > li { margin: 0; }
.card {
  height: 100%;
  background: var(--card-white);
  border: 1px solid var(--soft-rule);
  border-top: 3px solid var(--burnt-orange);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.card p { flex: 1; }
.card .card-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 2.75rem; align-self: flex-start; }
.icon { width: 3rem; height: 3rem; color: var(--burnt-orange); margin-bottom: 1rem; flex: none; }
.icon * { vector-effect: non-scaling-stroke; }

.service-detail { display: grid; gap: 0.5rem 1.5rem; padding-block: 2.25rem; border-bottom: 1px solid var(--soft-rule); }
.service-detail:last-of-type { border-bottom: 0; }

.two-col { display: grid; gap: 2rem; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.25rem; }
.contact-list a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

.amounts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.amounts li {
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: var(--card-white);
  border: 2px solid var(--space-black);
  font-weight: 700;
  font-size: 1.25rem;
}

.panel { background: var(--card-white); border: 1px solid var(--soft-rule); border-left: 4px solid var(--burnt-orange); padding: 1.5rem; margin-bottom: 1.5rem; }
.panel > :last-child { margin-bottom: 0; }
.disclosure { font-size: 1.125rem; margin-top: 1.25rem; max-width: 40rem; }

.placeholder-note { border: 2px dashed var(--field-border); padding: 1rem 1.25rem; background: var(--card-white); }

dl.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 1.5rem; }
dl.facts dt { font-weight: 700; padding-top: 0.875rem; }
dl.facts dd { margin: 0; padding-bottom: 0.875rem; border-bottom: 1px solid var(--soft-rule); }

.spaced-top { margin-top: 2rem; }
dl.facts.stacked { grid-template-columns: 1fr; }
dl.facts.stacked dt { border-bottom: 0; padding-bottom: 0; }
dl.facts.stacked dd { padding-top: 0; }

.founder { display: grid; gap: 1.5rem; align-items: start; }
.founder img { width: 100%; max-width: 20rem; border: 1px solid var(--soft-rule); }

.lang-switch { margin: 0 0 1.5rem; }
.lang-switch a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 700; }

/* ---------- Crisis banner ---------- */
.crisis {
  background: var(--space-black);
  color: var(--white);
  padding-block: 1.25rem;
  border-bottom: 3px solid var(--burnt-orange);
}
.crisis p { margin: 0; font-size: 1.1875rem; font-weight: 600; }
.crisis a { color: var(--white); font-weight: 700; padding-block: 0.5rem; }

/* ---------- Forms ---------- */
.form { max-width: 44rem; }
.field { margin-bottom: 1.5rem; }
label, legend { font-weight: 700; }
label { display: block; margin-bottom: 0.375rem; }
.req { font-weight: 400; }
.hint { display: block; margin: 0 0 0.5rem; font-size: 1.125rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: var(--space-black);
  background: var(--card-white);
  border: 2px solid var(--field-border);
  border-radius: 2px;
}
textarea { min-height: 10rem; resize: vertical; }
select { appearance: auto; }
input:hover, select:hover, textarea:hover { border-color: var(--space-black); }
.field-short { max-width: 14rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { padding: 0; margin-bottom: 0.5rem; font-size: 1.125rem; }
fieldset.boxed { border: 1px solid var(--soft-rule); border-left: 4px solid var(--burnt-orange); background: var(--card-white); padding: 1.25rem; }
fieldset.boxed legend { float: left; width: 100%; }
fieldset.boxed legend + * { clear: both; }
fieldset.boxed .field:last-child { margin-bottom: 0; }

.choice { display: flex; align-items: flex-start; gap: 0.75rem; min-height: 2.75rem; padding-block: 0.375rem; }
.choice input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--space-black); }
.choice label { margin: 0; font-weight: 400; flex: 1; padding-block: 0.1rem; }

.char-count { margin: 0.375rem 0 0; font-size: 1.125rem; }

.field-error { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.5rem 0 0; color: var(--error); font-weight: 700; }
.field-error::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--error); color: var(--white); font-size: 1rem; line-height: 1; }
[aria-invalid="true"]:not(fieldset) { border-color: var(--error); border-width: 3px; }
fieldset[aria-invalid="true"] { border-left: 4px solid var(--error); padding-left: 1rem; }

.error-summary {
  border: 3px solid var(--error);
  background: var(--card-white);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.error-summary h2 { font-size: 1.375rem; }
.error-summary ul { margin-bottom: 0; }
.error-summary a { color: var(--error); font-weight: 700; display: inline-block; padding-block: 0.25rem; }

.form-status { min-height: 1.5rem; font-weight: 700; margin-top: 1rem; }
.form-note { border-left: 4px solid var(--space-black); padding: 0.25rem 0 0.25rem 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--space-black); color: var(--white); border-top: 3px solid var(--burnt-orange); padding-block: 3rem 2rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-grid p { margin-bottom: 0.375rem; }
.footer-logo { height: 3rem; width: auto; margin-bottom: 1rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #55555A; }
.footer-bottom p { margin: 0 0 0.5rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.125rem; }
  .hero h1 { font-size: 3.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
  dl.facts { grid-template-columns: 16rem 1fr; }
  dl.facts dt { padding-block: 0.875rem; border-bottom: 1px solid var(--soft-rule); }
  dl.facts dd { padding-block: 0.875rem; }
  .founder { grid-template-columns: 16rem 1fr; }
}
@media (min-width: 60em) {
  .section { padding-block: 5rem; }
  .hero { padding-block: 5.5rem 6rem; }
  .hero h1 { font-size: 4.25rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.five > li { grid-column: span 2; }
  .card-grid.five { grid-template-columns: repeat(6, 1fr); }
  .card-grid.five > li:nth-child(4) { grid-column: 2 / span 2; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .service-detail { grid-template-columns: 4.5rem 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- User preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn, .menu-toggle, .card, .panel, .amounts li, .error-summary, input, select, textarea { border-color: CanvasText; }
  .btn-primary { border: 2px solid ButtonText; }
  .eyebrow::before, .rule { background: CanvasText; }
  .site-header, .site-footer, .crisis, .page-head { border-color: CanvasText; }
  .icon { color: CanvasText; }
  /* Keep the white logo readable on any system background */
  .logo, .footer-logo { forced-color-adjust: none; background: #1D1D1F; padding: 0.25rem 0.5rem; }
  .site-nav a[aria-current="page"]:not(.btn) { border-color: Highlight; }
  .field-error::before { forced-color-adjust: none; }
  :focus-visible { outline-color: Highlight; }
}

@media print {
  .site-header, .skip-link, .menu-toggle { position: static; }
  .site-nav, .btn, .menu-toggle { display: none !important; }
}

/* Touch target fixes */
.logo { min-width: 2.75rem; }
.standalone, dl.facts dd a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { border-bottom: 1px solid var(--soft-rule); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb li { margin: 0; display: flex; align-items: center; min-height: 2.75rem; }
.breadcrumb li + li::before { content: "/"; content: "/" / ""; margin-inline: 0.625rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; }
.breadcrumb [aria-current="page"] { font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--soft-rule); }
.faq summary { cursor: pointer; font-weight: 700; padding: 0.75rem 0.25rem; min-height: 2.75rem; }
.faq p { margin: 0.25rem 0 1.25rem; }

/* ---------- Related page link ---------- */
.related { padding-block: 2rem; border-top: 2px solid var(--burnt-orange); }
.related p { margin: 0; }

/* ---------- Calls to action ---------- */
.head-cta { margin: 1.25rem 0; }
.page-head .disclosure { border-left: 4px solid var(--burnt-orange); padding-left: 1rem; margin-top: 0; }
.sticky-cta { display: none; }
@media (max-width: 47.99em) and (min-height: 30.01em) {
  body.has-cta { padding-bottom: 4.75rem; }
  html { scroll-padding-bottom: 5.5rem; }
  .sticky-cta {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: var(--space-black);
    border-top: 3px solid var(--burnt-orange);
    padding: 0.625rem var(--gutter);
  }
  .sticky-cta { display: flex; gap: 0.75rem; }
  .sticky-cta .btn { flex: 1 1 0; min-width: 0; padding-inline: 0.75rem; }
  .head-cta:not(.keep) { display: none; }
  .page-head { padding-block: 1rem 1.25rem; }
  .page-head .eyebrow { margin-bottom: 0.5rem; }
  .page-head h1 { margin-bottom: 0.5rem; }
  .page-head .disclosure { margin-bottom: 0.75rem; }
  .page-head .head-cta { margin: 0.75rem 0; }
  /* Get out of the way while someone is typing (on-screen keyboard open) */
  body:has(input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus) .sticky-cta,
  .keyboard-open .sticky-cta { display: none; }
}
@media (forced-colors: active) { .sticky-cta { border-top-color: CanvasText; } }
@media print { .sticky-cta, .breadcrumb, .related { display: none !important; } }

/* ---------- Monthly gift buttons ---------- */
.monthly-label { margin: 1.5rem 0 0.75rem; }
.monthly-row { margin-bottom: 1.5rem; }
.monthly-row .btn { min-width: 8.5rem; }

/* ---------- Language strip (phones and tablets) ----------
   Sits above the header bar and scrolls away; the header bar itself stays sticky. */
.lang-strip { box-sizing: content-box; height: 2.75rem; border-bottom: 1px solid #55555A; }
.lang-strip .wrap { display: flex; justify-content: flex-end; height: 100%; }
.lang-strip a { display: inline-flex; align-items: center; min-width: 2.75rem; padding-inline: 0.5rem; color: var(--white); font-weight: 700; }
@media (max-width: 74.99em) {
  .site-header { top: calc(-2.75rem - 1px); }
  .nav-lang { display: none; }
}
@media (min-width: 75em) { .lang-strip { display: none; } }
@media print { .lang-strip { display: none !important; } }
