:root {
  --brand: #c8102e;
  --brand-dark: #8f0b21;
  --brand-deep: #4a0d16;
  --brand-soft: #fdf1f2;

  --ink: #1d1b1c;
  --ink-soft: #57524f;
  --ink-muted: #8a8380;
  --line: #ebe6e3;
  --surface: #ffffff;
  --surface-alt: #f8f5f3;

  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px rgb(29 27 28 / 0.06), 0 1px 3px rgb(29 27 28 / 0.08);
  --shadow: 0 10px 30px -12px rgb(29 27 28 / 0.25);

  --header-h: 4.5rem;
  --container: 72rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--ink);
}

a {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */

/* Sticky on the custom element: a sticky child can't escape its own parent box. */
site-header {
  display: block;
  min-height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.brand-name {
  font-size: 1.75rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--brand);
}

.brand-tagline {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

.site-nav a.nav-cta {
  margin-left: 0.5rem;
  color: #fff;
  background: var(--brand);
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current="page"] {
  color: #fff;
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  margin: auto;
}

.nav-toggle .icon-close,
.site-header.nav-open .nav-toggle .icon-menu {
  display: none;
}

.site-header.nav-open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 68rem) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .site-nav a.nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero,
.page-hero {
  position: relative;
  color: #fff;
  background: radial-gradient(circle at 85% 0%, rgb(200 16 46 / 0.55), transparent 55%),
    linear-gradient(135deg, var(--brand-deep), #2a0a10 70%);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
}

.page-hero .container {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero .container {
  padding-block: clamp(4.5rem, 11vw, 9rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(42 10 16 / 0.95) 0%, rgb(42 10 16 / 0.7) 50%, rgb(42 10 16 / 0.2) 100%);
}

.hero h1,
.page-hero h1 {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  letter-spacing: -0.03em;
}

.page-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}

.hero .lead,
.page-hero .lead {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: rgb(255 255 255 / 0.82);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.75);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--brand);
}

.section-eyebrow {
  color: var(--brand);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.35);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.1);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

@media (max-width: 52rem) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }
}

.media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-alt);
}

.media img,
.media video {
  width: 100%;
}

.media.cover img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media.plain {
  box-shadow: none;
  background: none;
  border-radius: 0;
}

.media figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  background: var(--surface);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1rem;
  margin: 0;
}

@media (min-width: 40rem) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  }
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stat dt {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.stat dd {
  margin: 0 0 0.35rem;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.stat dd small {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.stats-band {
  margin-top: -3rem;
  position: relative;
  z-index: 1;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin-block: 0;
  padding: 0;
}

.card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 0.85rem;
  background: var(--brand-soft);
  color: var(--brand);
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

a.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  color: var(--brand);
}

.card-link::after {
  content: " →";
  transition: margin 0.2s ease;
}

a.card:hover .card-link::after {
  margin-left: 0.25rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.checklist li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 1.6rem;
  height: 1.6rem;
  background: url("../images/check-icon.svg") center / contain no-repeat;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.25rem 1rem 4rem;
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--ink-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.prose-meta {
  margin-top: 3rem;
  font-size: 0.875rem;
}

.callout {
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-soft);
}

.callout p {
  color: var(--ink);
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.badge-card img {
  width: 6.5rem;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.contact-list svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--brand);
}

.contact-list a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--brand);
  text-decoration: underline;
}

address {
  font-style: normal;
  color: var(--ink-soft);
}

.emergency {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background: radial-gradient(circle at 100% 0%, rgb(255 255 255 / 0.15), transparent 50%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow);
}

.emergency h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}

.emergency p {
  color: rgb(255 255 255 / 0.85);
}

.emergency .eyebrow::before {
  background: #fff;
}

.emergency .btn {
  margin-top: 1rem;
  background: #fff;
  color: var(--brand-dark);
  font-size: 1.15rem;
}

.emergency img {
  width: 10rem;
  border-radius: 50%;
  background: #fff;
  padding: 0.75rem;
}

@media (max-width: 40rem) {
  .emergency {
    grid-template-columns: 1fr;
  }

  .emergency img {
    display: none;
  }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  font: inherit;
  cursor: zoom-in;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery button:hover img {
  transform: scale(1.04);
}

.gallery span {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.925rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  position: relative;
  background: var(--surface);
}

.lightbox {
  width: min(100% - 2rem, 64rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #111;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgb(10 5 6 / 0.85);
  backdrop-filter: blur(4px);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  background: #000;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.lightbox figcaption {
  flex: 1;
  font-size: 0.95rem;
}

.lightbox-count {
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.6);
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.icon-btn:hover {
  background: rgb(255 255 255 / 0.22);
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1a1214;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.95rem;
}

.site-footer .container {
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
}

@media (max-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .brand-name {
  font-size: 1.5rem;
}

.site-footer p {
  color: inherit;
  margin-top: 1rem;
  max-width: 34ch;
}

.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.875rem;
}

.partners {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.partners-label {
  margin-right: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
}

.partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  min-width: 7.5rem;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.partners a:hover,
.partners a:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.45);
  text-decoration: none;
}

.partners a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.partners img {
  display: block;
  height: 2.25rem;
  width: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
