:root {
  --rust: #b5553a;
  --rust-deep: #95452f;
  --rust-dark: #6f3322;
  --cream: #fbf6f1;
  --sand: #f3e7dc;
  --gray: #f7f7f7;
  --ink: #2b1d18;
  --ink-soft: #5a4740;
  --gold: #e8a23b;
  --line: #e6d6c9;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 29, 24, 0.1);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

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

a { color: var(--rust-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--rust-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rust);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  order: 1;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav { order: 2; }
.lang-switch { order: 3; }
.nav-toggle { order: 4; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); color: #fff; }
.site-nav .nav-help { background: #fff; color: var(--rust-deep); font-weight: 700; }
.site-nav .nav-help:hover { background: var(--sand); color: var(--rust-dark); }

/* ---------- Language toggle ---------- */
html[data-lang="en"] [data-t="es"],
html[data-lang="es"] [data-t="en"] { display: none !important; }

.lang-switch {
  display: inline-flex;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: #fff;
  border: 0;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}
.lang-switch button:hover { background: rgba(255, 255, 255, 0.18); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--rust-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust-deep); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); color: #fff; }
.btn-light { background: #fff; color: var(--rust-deep); }
.btn-light:hover { background: var(--sand); color: var(--rust-dark); }
.btn-outline { border-color: var(--rust-deep); color: var(--rust-deep); background: transparent; }
.btn-outline:hover { background: var(--rust-deep); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--rust-deep); }

/* ---------- Hero ---------- */
/* A wide photo across the top, with the headline underneath on the header's orange. */
.hero { background: var(--rust); color: #fff; }
.hero img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 560px);
  object-fit: cover;
  object-position: 40% 22%;
}
.hero-inner { padding: 2rem 0 3rem; }
.hero h1 {
  max-width: 18em;
  margin: 0 0 1.2rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sand { background: var(--cream); }
.section-rust { background: var(--rust); color: #fff; }
.section-rust a:not(.btn) { color: #fff; }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
}
.section-rust .eyebrow { color: #ffe3d3; }

h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 1rem; text-wrap: balance; }
h3 { font-size: 1.3rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1.1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.section-rust .lead { color: #fff; }

.two-col {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
}
.photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.support { text-align: center; }
.support .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
.support p { font-size: 1.2rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: 0.7rem; display: block; }
.card .kicker { color: var(--rust-deep); font-weight: 700; margin: 0 0 0.6rem; }

.resources-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}
.resources-photo { height: 100%; min-height: 340px; }
.resources-content { display: flex; flex-direction: column; gap: 1.2rem; }
.resources-content h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 0; }
.resource-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.resource-item p { margin: 0 0 0.9rem; }
.resource-item .btn { margin-top: 0.3rem; }
.resource-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.resource-link:hover { transform: translateY(-2px); color: var(--ink); }
.resource-link .icon { font-size: 2rem; line-height: 1; }
.resource-link strong { color: var(--rust-deep); text-decoration: underline; text-underline-offset: 0.18em; }
.callout {
  background: var(--cream);
  border-left: 5px solid var(--rust);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Help ---------- */
.help-text { width: min(760px, 100%); margin-inline: auto; text-align: center; }
.help-text p { margin-bottom: 1.1rem; }
.phone-big {
  display: inline-block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--rust-deep);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  margin-top: 2.5rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 2px solid #cdb9aa;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus { border-color: var(--rust); outline: none; box-shadow: 0 0 0 3px rgba(181, 85, 58, 0.25); }
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a12424; }

/* ---------- Lists / cards of links ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); color: inherit; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .body { padding: 1.2rem 1.4rem 1.4rem; }
.post-card h3 { color: var(--rust-deep); font-size: 1.15rem; }
.meta { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.story-links { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: 0.6rem; }
.story-links a {
  display: block;
  padding: 0.9rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.story-links a:hover { background: var(--sand); }

/* ---------- Article pages ---------- */
.page-title {
  background: var(--rust);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-title h1 { margin: 0 0 0.6rem; font-size: clamp(1.9rem, 5vw, 3rem); text-wrap: balance; }
.page-title p { margin: 0; font-size: 1.15rem; max-width: 46rem; }
.page-title .meta { color: #fff; margin-top: 0.8rem; }

.article { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.article h2 { margin-top: 2.5rem; }
.article h3 { margin-top: 1.8rem; }
.article ul { padding-left: 1.3rem; }
.article li { margin-bottom: 0.6rem; }
.article blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 5px solid var(--gold);
  color: var(--ink);
}
.article blockquote p { font-size: 1.08rem; }
.story { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.story:last-of-type { border-bottom: 0; }
.story-photo { margin: 0 0 2.5rem; }
.story-photo img { border-radius: var(--radius); width: 100%; max-height: 420px; object-fit: cover; }
figcaption, .caption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.jump { display: inline-block; margin-bottom: 1.2rem; font-weight: 600; }
.lang-block { border-top: 4px solid var(--gold); margin-top: 3rem; padding-top: 0.5rem; }
.link-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.link-list a {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.link-list a:hover { background: var(--sand); }
.link-list a::after { content: " \2197"; font-weight: 400; }
.link-list a.internal::after { content: none; }

/* ---------- PDF page ---------- */
.pdf-actions { display: flex; justify-content: center; margin-bottom: 2rem; }
.pdf-pages img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--rust-dark); color: #f5e6dc; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.footer-logo { width: 150px; background: #fff; border-radius: var(--radius); padding: 0.4rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 0.4rem; }
.footer-name { font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer-address { font-style: normal; margin: 0 0 0.8rem; line-height: 1.5; }
.social { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; font-weight: 600; }
.social svg { width: 22px; height: 22px; }
.legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; order: 3; }
  .lang-switch { order: 2; margin-left: auto; }
  .site-nav { display: none; width: 100%; order: 4; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; padding: 0.7rem 0; gap: 0.6rem; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 0.8rem; }
  .site-nav a { padding: 0.8rem; }
}

@media (max-width: 860px) {
  .two-col,
  .resources-layout,
  .form-grid { grid-template-columns: 1fr; }
  .resources-photo { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post-card { transition: none; }
}
