/* Torrance Firefighters Foundation — soft-opening site
   Colors match the Foundation flyer: deep red #8B1A1A and gold accents. */

:root {
  --red: #8B1A1A;
  --red-hover: #6E1414;
  --red-deep: #4A1010;
  --ink: #1C1512;
  --muted: #5C5148;
  --gold: #C9A44C;
  --gold-bright: #E8C96A;
  --gold-dark: #7A5E20;
  --white: #ffffff;
  --cream: #F5F0E6;
  --paper: #FCFAF6;
  --line: #E2DACB;
  --shadow: 0 12px 32px rgba(28, 21, 18, 0.12);
  --header-h: 4.5rem;
  --max: 70rem;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red-hover);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--red-deep);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

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

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
  min-height: var(--header-h);
}

.header-inner {
  width: min(calc(100% - 1.5rem), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.logo:hover {
  color: var(--gold-bright);
}

.logo img {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red-deep);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
}

.logo-name {
  font-size: 0.78rem;
}

.logo-sub {
  font-size: 0.95rem;
  color: var(--gold-bright);
}

.btn.header-donate {
  display: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gold);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--red-deep);
  color: var(--gold-bright);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--red-deep);
  border-color: var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-bright);
  color: var(--red-deep);
  border-color: var(--gold-bright);
}

.btn-light {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn-donate {
  background: var(--gold);
  color: var(--red-deep);
  border-color: var(--gold);
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.btn-donate:hover,
.btn-donate:focus-visible {
  background: var(--gold-bright);
  color: var(--red-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background-color: var(--red-deep);
  background-image:
    linear-gradient(
      90deg,
      rgba(74, 16, 16, 0.94) 0%,
      rgba(74, 16, 16, 0.78) 42%,
      rgba(74, 16, 16, 0.42) 100%
    ),
    url("../images/slides/tfd-ladders-flag-sunset.jpg");
  background-size: cover;
  background-position: center 40%;
  min-height: min(32rem, 88vh);
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  padding: 3.5rem 0 4rem;
  max-width: 40rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero h1 {
  margin: 0;
  text-shadow: 0 1px 18px rgba(20, 12, 12, 0.35);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.hero .lede {
  margin: 1.15rem 0 0;
  font-size: 1.2rem;
  max-width: 34rem;
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(20, 12, 12, 0.35);
}

.gold-rule {
  width: 4rem;
  height: 3px;
  margin: 0.85rem 0 0;
  background: var(--gold);
  border: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 4rem 0;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.section-intro {
  margin: 1.1rem 0 0;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.prose p {
  margin: 1rem 0 0;
  max-width: 42rem;
}

.prose p:first-child {
  margin-top: 1.15rem;
}

.photos {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.coming-soon {
  background: var(--paper);
}

.coming-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.coming-copy p {
  margin: 1rem 0 0;
  max-width: 38rem;
}

.coming-copy .btn {
  margin-top: 1.5rem;
}

.flyer-card {
  justify-self: start;
  max-width: 18rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}

.flyer-card img {
  width: 100%;
  height: auto;
}

.flyer-card span {
  display: block;
  padding: 0.7rem 0.9rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  text-align: center;
}

.flyer-card:hover span,
.flyer-card:focus-visible span {
  color: var(--red-hover);
}

/* ---------- Slideshow ---------- */

.slideshow {
  margin-top: 1.75rem;
  background: #140c0c;
  border: 1px solid var(--gold);
  position: relative;
}

.swiper-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #140c0c;
}

.photos-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #140c0c;
}

.swiper-slide figure {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #140c0c;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.4rem 1.1rem 0.85rem;
  background: linear-gradient(transparent, rgba(20, 12, 12, 0.88) 55%);
  color: var(--cream);
  font-size: 0.98rem;
  text-align: center;
}

.slide-caption .credit {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-style: italic;
  color: #d9d0c2;
}

.slideshow .swiper-button-prev,
.slideshow .swiper-button-next {
  color: var(--gold-bright);
  --swiper-navigation-size: 1.6rem;
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(20, 12, 12, 0.45);
  border: 1px solid var(--gold);
  border-radius: 0;
}

.slideshow .swiper-button-prev:hover,
.slideshow .swiper-button-next:hover {
  background: rgba(139, 26, 26, 0.7);
}

.slideshow .swiper-pagination-bullet {
  background: var(--cream);
  opacity: 0.45;
}

.slideshow .swiper-pagination-bullet-active {
  background: var(--gold-bright);
  opacity: 1;
}

.slideshow .swiper-pagination {
  position: static;
  padding: 0.65rem 0 0.75rem;
  background: #140c0c;
}

.slide-count {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  z-index: 2;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: rgba(20, 12, 12, 0.55);
  padding: 0.2rem 0.5rem;
  pointer-events: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--red-deep);
  color: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 2.25rem 0 1.75rem;
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
}

.copyright {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-bright);
}

.footer-links svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.footer-links .btn-gold {
  color: var(--red-deep);
}

.footer-links .btn-gold:hover {
  color: var(--red-deep);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .logo-name {
    font-size: 0.68rem;
  }

  .logo-sub {
    font-size: 0.82rem;
  }

  .logo img {
    width: 2.85rem;
    height: 2.85rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red-deep);
    border-bottom: 3px solid var(--gold);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 0.85rem;
  }

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

  .site-nav a {
    padding: 0.7rem 1.25rem;
  }

  .site-nav .btn-donate {
    margin: 0.4rem 1.25rem 0.3rem;
    text-align: center;
  }

  .btn.header-donate {
    display: inline-flex;
    margin-left: auto;
    padding: 0.38rem 0.75rem;
    font-size: 0.82rem;
  }

  .hero {
    background-image:
      linear-gradient(
        180deg,
        rgba(74, 16, 16, 0.62) 8%,
        rgba(74, 16, 16, 0.55) 100%
      ),
      url("../images/slides/wildland-crew-sunset-banner.jpg");
    background-position: center 25%;
    min-height: 0;
  }

  .hero-inner {
    padding: 2.5rem 0 2.75rem;
    margin-left: auto;
  }

  .hero .lede {
    font-size: 1.08rem;
  }

  .section {
    padding: 3rem 0;
  }

  .swiper-frame {
    aspect-ratio: 4 / 3;
  }

  .slideshow .swiper-button-prev,
  .slideshow .swiper-button-next {
    --swiper-navigation-size: 1.2rem;
    width: 2rem;
    height: 2rem;
  }

  .flyer-card {
    max-width: 16rem;
    margin-inline: auto;
    justify-self: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 800px) {
  .coming-grid {
    grid-template-columns: 1fr 18rem;
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  .btn,
  .logo,
  .site-nav a {
    transition: none;
  }
}

/* ---------- Community engagement ---------- */
.community-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.community-photo { margin: 0; }
.community-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  border: 3px solid var(--gold, #C9A24B);
}
.community-photo figcaption {
  font-size: .9rem;
  font-style: italic;
  opacity: .75;
  margin-top: .5rem;
}
@media (max-width: 800px) {
  .community-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
