/* Hurley Volunteer Fire Company No. 1 — shared styles */

:root {
  --red: #8b1518;
  --red-dark: #5c0e10;
  --red-deep: #3a0a0c;
  --charcoal: #1b1c1e;
  --charcoal-2: #262729;
  --ink: #1b1c1e;
  --muted: #5c5d60;
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --white: #ffffff;
  --gold: #c9922a;
  --gold-light: #e8c56b;
  --line: #ddd6cb;
  --shadow: 0 8px 24px rgba(27, 28, 30, 0.12);
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --wrap: 68rem;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  z-index: 200;
  font-weight: 600;
}

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

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

/* Emergency notice */
.emergency-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.emergency-bar a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-light);
  padding: 0 0.15rem;
}

.emergency-bar a:hover {
  color: var(--gold-light);
}

/* Header */
.site-header {
  background: var(--charcoal);
  color: var(--white);
  border-bottom: 4px solid var(--red);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand img {
  width: 4.25rem;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.8rem;
  color: #c8c4bc;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--white);
  border: 1px solid #5a5b5e;
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 2.75rem;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold-light);
}

.site-nav {
  flex-basis: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav.is-open ul,
.site-nav.no-js ul {
  display: flex;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  min-height: 2.75rem;
}

.site-nav a:hover {
  background: #333438;
  color: var(--gold-light);
}

.site-nav a[aria-current="page"] {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--gold);
}

/* Main */
main {
  flex: 1;
}

.hero {
  background:
    linear-gradient(165deg, var(--charcoal) 0%, #2a1616 55%, var(--red-deep) 100%);
  color: var(--white);
  padding: 2.25rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

.hero-copy .lede {
  margin: 0 0 1.1rem;
  font-size: 1.1rem;
  color: #ddd8d0;
  max-width: 38rem;
}

.hero-banner {
  justify-self: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 33.5rem;
  width: 100%;
}

.hero-banner img {
  width: 100%;
  aspect-ratio: 536 / 256;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  min-height: 2.75rem;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #a31c20;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 1rem;
  color: var(--charcoal);
}

.mission {
  background: var(--white);
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.mission-card h2 {
  margin-top: 0;
}

.mission-card p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: #2c2c2c;
}

.quick-cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0 0 1rem;
  color: #3a3a3a;
}

.card p:last-child {
  margin-bottom: 0;
}

.photos {
  background: var(--paper-2);
}

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

.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111;
}

.photo-card figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.9rem;
  color: #3f3f3f;
}

.photo-card figcaption strong {
  display: block;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
}

.photo-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* About / contact content */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 1.75rem 0;
  border-bottom: 4px solid var(--red);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin: 0 0 0.4rem;
}

.page-hero p {
  margin: 0;
  color: #d5d1c9;
  max-width: 40rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

.prose p {
  margin: 0 0 1rem;
}

.address-block {
  margin: 0 0 1.25rem;
}

.address-block h2,
.info-list h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.address-block address {
  font-style: normal;
  line-height: 1.55;
}

.charity-id {
  font-weight: 700;
  margin: 1rem 0 0;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 20rem;
  background: var(--paper-2);
}

.map-wrap iframe {
  width: 100%;
  height: 22rem;
  border: 0;
  display: block;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-list .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-list a {
  font-weight: 600;
}


/* Latest News / Curator feed */
.news-feed {
  background: var(--paper-2);
}

#curator-feed-default-feed-layout {
  width: 100%;
}

.fb-fallback {
  text-align: center;
  margin: 0.9rem 0 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.footer-social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #d8d5cf;
  padding: 2rem 0 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--red);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #3a3b3e;
  font-size: 0.85rem;
  color: #9b9892;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-cards {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .site-header .wrap {
    flex-wrap: nowrap;
  }

  .site-nav {
    flex-basis: auto;
  }

  .site-nav ul,
  .site-nav.is-open ul,
  .site-nav.no-js ul {
    display: flex;
    flex-direction: row;
    padding: 0;
    gap: 0.2rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
  }

  .quick-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.mt-1 { margin-top: 0.75rem; }
.photo-grid-single { grid-template-columns: minmax(0, 28rem); }
