/*
Theme Name:  Taunton Fire Company
Theme URI:   https://tauntonfire.org
Author:      Taunton Volunteer Fire Company
Author URI:  https://tauntonfire.org
Description: A warm, community-focused theme for the Taunton Volunteer Fire Company serving Medford Township, NJ since 1949.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taunton-fire
Tags:        community, nonprofit, fire-department, custom-colors, custom-logo, featured-images, responsive-layout
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --tf-red:        #C0392B;
  --tf-red-light:  #E74C3C;
  --tf-navy:       #1A2744;
  --tf-navy-light: #243660;
  --tf-cream:      #FAF7F2;
  --tf-warm-white: #FFFDF9;
  --tf-gold:       #D4A843;
  --tf-text:       #2C2C2C;
  --tf-text-light: #6B6B6B;
  --tf-border:     #E8E0D4;

  --tf-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --tf-font-body:    'Source Serif 4', Georgia, serif;

  --tf-radius:   4px;
  --tf-radius-lg: 8px;
  --tf-shadow:   0 2px 12px rgba(0,0,0,.06);
  --tf-shadow-lg: 0 16px 40px rgba(26,39,68,.12);

  --tf-container: 1140px;
  --tf-gap:       40px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--tf-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--tf-text);
  background-color: var(--tf-warm-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--tf-red); transition: color .2s; }
a:hover { color: var(--tf-red-light); }

ul, ol { list-style: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tf-font-display);
  color: var(--tf-navy);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.tf-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tf-red);
  margin-bottom: 10px;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.tf-container {
  max-width: var(--tf-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--tf-gap);
  padding-right: var(--tf-gap);
}

.tf-section { padding: 72px 0; }
.tf-section--sm { padding: 48px 0; }
.tf-section--lg { padding: 96px 0; }

/* =========================================================
   BUTTONS
   ========================================================= */
.tf-btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: var(--tf-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--tf-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  line-height: 1;
}

.tf-btn--primary {
  background: var(--tf-red);
  color: #fff;
  border-color: var(--tf-red);
}
.tf-btn--primary:hover {
  background: var(--tf-red-light);
  border-color: var(--tf-red-light);
  color: #fff;
  transform: translateY(-1px);
}

.tf-btn--gold {
  background: var(--tf-gold);
  color: var(--tf-navy);
  border-color: var(--tf-gold);
}
.tf-btn--gold:hover {
  filter: brightness(1.08);
  color: var(--tf-navy);
  transform: translateY(-1px);
}

.tf-btn--navy {
  background: var(--tf-navy);
  color: #fff;
  border-color: var(--tf-navy);
}
.tf-btn--navy:hover {
  background: var(--tf-navy-light);
  border-color: var(--tf-navy-light);
  color: #fff;
}

.tf-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.tf-btn--outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
}

.tf-btn--outline-red {
  background: transparent;
  color: var(--tf-red);
  border-color: var(--tf-red);
}
.tf-btn--outline-red:hover {
  background: var(--tf-red);
  color: #fff;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.tf-topbar {
  background: var(--tf-navy);
  padding: 8px var(--tf-gap);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
  letter-spacing: .03em;
}

.tf-topbar a {
  color: #aec6e8;
  text-decoration: none;
  transition: color .2s;
}
.tf-topbar a:hover { color: #fff; }

.tf-topbar__sep { opacity: .35; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.tf-header {
  background: var(--tf-warm-white);
  border-bottom: 2px solid var(--tf-border);
  padding: 14px var(--tf-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--tf-shadow);
}

.tf-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.tf-header__mascot {
  height: 54px;
  width: auto;
  flex-shrink: 0;
}

.tf-header__name {
  font-family: var(--tf-font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--tf-navy);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.tf-header__tagline {
  font-size: 11px;
  color: var(--tf-text-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav */
.tf-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-nav a {
  font-family: var(--tf-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--tf-navy);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--tf-radius);
  transition: all .2s;
}
.tf-nav a:hover,
.tf-nav a.current-menu-item { background: var(--tf-cream); color: var(--tf-red); }

.tf-nav .tf-btn--outline-red { padding: 8px 16px; font-size: 13px; }
.tf-nav .tf-btn--primary     { padding: 9px 20px; font-size: 13px; }

/* Hamburger (mobile) */
.tf-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.tf-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tf-navy);
  transition: all .3s;
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.tf-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.tf-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.tf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15,25,51,.90) 0%,
    rgba(15,25,51,.75) 50%,
    rgba(15,25,51,.25) 100%
  );
}

.tf-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px var(--tf-gap);
  max-width: 640px;
}

.tf-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,57,43,.28);
  border: 1px solid rgba(192,57,43,.55);
  color: #f4a89a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.tf-hero__heading {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}

.tf-hero__heading em {
  font-style: normal;
  color: var(--tf-gold);
}

.tf-hero__sub {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 500px;
}

.tf-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   STAT STRIP
   ========================================================= */
.tf-stats {
  background: var(--tf-red);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tf-stats__item {
  padding: 22px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.2);
}
.tf-stats__item:last-child { border-right: none; }

.tf-stats__number {
  font-family: var(--tf-font-display);
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.tf-stats__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =========================================================
   CARDS SECTION (3-UP)
   ========================================================= */
.tf-cards-section {
  background: var(--tf-cream);
  padding: 72px 0;
}

.tf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tf-card {
  background: var(--tf-warm-white);
  border-radius: var(--tf-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tf-border);
  display: flex;
  flex-direction: column;
  transition: all .3s;
}
.tf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tf-shadow-lg);
  border-color: transparent;
}

.tf-card__photo {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.tf-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,.5) 0%, transparent 60%);
}

.tf-card__body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tf-card__body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tf-card__body p {
  font-size: 14.5px;
  color: var(--tf-text-light);
  flex: 1;
  margin-bottom: 20px;
}

.tf-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tf-red);
  transition: gap .2s;
}
.tf-card__link:hover { gap: 10px; }
.tf-card__link::after { content: '→'; }
.tf-card__link--gold { color: var(--tf-gold); }

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.tf-about {
  background: var(--tf-warm-white);
  padding: 80px 0;
}

.tf-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.tf-about__text h2 { margin-bottom: 20px; }
.tf-about__text p { font-size: 15.5px; color: var(--tf-text-light); }
.tf-about__text p strong { color: var(--tf-text); }

/* Apparatus card */
.tf-apparatus {
  background: var(--tf-navy);
  border-radius: var(--tf-radius-lg);
  overflow: hidden;
}

.tf-apparatus__photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.tf-apparatus__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,.8), transparent);
}

.tf-apparatus__body { padding: 28px 32px 32px; }

.tf-apparatus h3 {
  font-family: var(--tf-font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 4px;
}

.tf-apparatus__sub {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}

.tf-apparatus__list { display: flex; flex-direction: column; }

.tf-apparatus__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,.85);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tf-apparatus__list li:last-child { border-bottom: none; padding-bottom: 0; }

.tf-apparatus__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tf-red);
  flex-shrink: 0;
}

.tf-apparatus__year {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-left: auto;
}

/* =========================================================
   MASCOT / JOIN BAND
   ========================================================= */
.tf-mascot-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  overflow: hidden;
}

.tf-mascot-band__photo {
  background-size: cover;
  background-position: center top;
  min-height: 280px;
}

.tf-mascot-band__content {
  background: var(--tf-navy);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tf-mascot-band__content .tf-section-label { color: var(--tf-gold); }

.tf-mascot-band__content h2 {
  color: #fff;
  margin: 12px 0 16px;
}

.tf-mascot-band__content p {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 28px;
  font-weight: 300;
}

.tf-mascot-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   DONATE CTA BANNER
   ========================================================= */
.tf-donate-banner {
  background: linear-gradient(135deg, var(--tf-red) 0%, #8B1A1A 100%);
  padding: 68px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tf-donate-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.tf-donate-banner__inner { position: relative; }

.tf-donate-banner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.tf-donate-banner p {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  font-weight: 300;
}

.tf-donate-banner__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.tf-footer {
  background: var(--tf-navy);
  color: rgba(255,255,255,.6);
  padding: 52px 0 24px;
}

.tf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.tf-footer__mascot {
  width: 48px;
  height: auto;
  opacity: .7;
  margin-bottom: 12px;
}

.tf-footer__brand h3 {
  font-family: var(--tf-font-display);
  font-size: 19px;
  color: #fff;
  margin-bottom: 8px;
}

.tf-footer__brand p {
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 290px;
  margin-bottom: 16px;
}

.tf-footer__contact-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 6px;
}

.tf-footer__contact a,
.tf-footer__contact span {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  margin-bottom: 3px;
}
.tf-footer__contact a:hover { color: #fff; }

.tf-footer__nav h4 {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
  font-family: var(--tf-font-body);
  font-weight: 600;
}

.tf-footer__nav ul { display: flex; flex-direction: column; gap: 8px; }

.tf-footer__nav ul a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.tf-footer__nav ul a:hover { color: #fff; }

.tf-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================================
   INNER PAGE HERO
   ========================================================= */
.tf-page-hero {
  background: var(--tf-navy);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.tf-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.tf-page-hero__inner {
  position: relative;
  z-index: 1;
}

.tf-page-hero h1 { color: #fff; margin-bottom: 8px; }
.tf-page-hero p  { color: rgba(255,255,255,.7); font-size: 17px; font-weight: 300; }

/* =========================================================
   CONTENT AREA (pages / posts)
   ========================================================= */
.tf-content-area {
  padding: 64px 0;
}

.tf-content-area .entry-content {
  max-width: 780px;
}

.tf-content-area .entry-content h2,
.tf-content-area .entry-content h3 { margin: 1.5em 0 .6em; }

.tf-content-area .entry-content p  { margin-bottom: 1em; color: var(--tf-text-light); font-size: 16px; }

.tf-content-area .entry-content ul,
.tf-content-area .entry-content ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
  color: var(--tf-text-light);
}

/* =========================================================
   OFFICERS PAGE
   ========================================================= */
.tf-officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.tf-officer-card {
  background: var(--tf-warm-white);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.tf-officer-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--tf-navy);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tf-font-display);
  font-size: 28px;
  color: var(--tf-gold);
  font-weight: 900;
}

.tf-officer-card h3 { font-size: 1rem; color: var(--tf-navy); margin-bottom: 4px; }
.tf-officer-card p  { font-size: 12.5px; color: var(--tf-red); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* =========================================================
   JOIN PAGE
   ========================================================= */
.tf-join-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.tf-join-benefit {
  background: var(--tf-cream);
  border-radius: var(--tf-radius-lg);
  padding: 24px;
  border-left: 4px solid var(--tf-red);
}

.tf-join-benefit h4 { margin-bottom: 6px; font-size: 1rem; }
.tf-join-benefit p  { font-size: 14px; color: var(--tf-text-light); margin: 0; }

/* =========================================================
   DONATE PAGE
   ========================================================= */
.tf-donate-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.tf-donate-impact__item {
  background: var(--tf-cream);
  border-radius: var(--tf-radius-lg);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--tf-border);
}

.tf-donate-impact__amount {
  font-family: var(--tf-font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--tf-red);
  display: block;
  margin-bottom: 8px;
}

.tf-donate-impact__desc { font-size: 14px; color: var(--tf-text-light); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  :root { --tf-gap: 24px; }

  .tf-cards         { grid-template-columns: 1fr; }
  .tf-about__grid   { grid-template-columns: 1fr; gap: 40px; }
  .tf-mascot-band   { grid-template-columns: 1fr; }
  .tf-mascot-band__photo { min-height: 240px; }
  .tf-footer__grid  { grid-template-columns: 1fr 1fr; }
  .tf-stats         { grid-template-columns: repeat(3,1fr); }
  .tf-donate-impact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tf-topbar        { display: none; }
  .tf-nav           { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--tf-warm-white); padding: 16px; border-bottom: 2px solid var(--tf-border); box-shadow: var(--tf-shadow); }
  .tf-nav.is-open   { display: flex; }
  .tf-nav-toggle    { display: flex; }
  .tf-header        { flex-wrap: wrap; position: relative; }
  .tf-hero__content { padding: 48px 24px; }
  .tf-hero__heading { font-size: 2rem; }
  .tf-stats         { grid-template-columns: 1fr; }
  .tf-stats__item   { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
  .tf-stats__item:last-child { border-bottom: none; }
  .tf-footer__grid  { grid-template-columns: 1fr; }
  .tf-footer__bottom { flex-direction: column; text-align: center; }
  .tf-mascot-band__content { padding: 36px 24px; }
  .tf-donate-banner { padding: 48px 0; }
}
