/*
Theme Name: Firefighter Foundation
Theme URI: https://www.facebook.com/profile.php?id=61590657561817
Author: Firefighter Foundation
Author URI: https://www.facebook.com/profile.php?id=61590657561817
Description: A bold, single-page theme for the Firefighter Foundation non-profit, supporting Maine's first responders and their families injured in the line of duty. Black/red/silver brand styling with a Gravity Forms "Get Involved" section. Built to be edited easily by non-developers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: firefighter-foundation
*/

/* ==========================================================================
   1. Design tokens (brand colors pulled from the foundation logo)
   ========================================================================== */
:root {
  --fff-black:      #0d0d0d;
  --fff-charcoal:   #161616;
  --fff-slate:      #1f1f1f;
  --fff-red:        #c1121f;
  --fff-red-bright: #e11d2a;
  --fff-red-deep:   #8d0d17;
  --fff-silver:     #c9ccce;
  --fff-gray:       #6f7174;
  --fff-light:      #f5f5f6;
  --fff-white:      #ffffff;
  --fff-ems-blue:   #1f4fa3;

  --fff-maxw: 1140px;
  --fff-radius: 10px;
  --fff-shadow: 0 18px 40px rgba(0,0,0,.18);
  --fff-shadow-sm: 0 6px 18px rgba(0,0,0,.12);

  --fff-font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --fff-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. Base / reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fff-font-body);
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  background: var(--fff-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fff-red); text-decoration: none; }
a:hover, a:focus { color: var(--fff-red-bright); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--fff-font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--fff-black);
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; letter-spacing: .4px; }
p { margin: 0 0 1.1em; }

/* Accessibility helpers */
.fff-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--fff-red); color: #fff; padding: 12px 18px; border-radius: 0 0 6px 0;
}
.fff-skip-link:focus { left: 0; color: #fff; text-decoration: none; }
:focus-visible { outline: 3px solid var(--fff-red-bright); outline-offset: 2px; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.fff-container { width: 100%; max-width: var(--fff-maxw); margin: 0 auto; padding: 0 22px; }
.fff-section { padding: 84px 0; }
.fff-section--tight { padding: 60px 0; }
.fff-section--dark { background: var(--fff-charcoal); color: var(--fff-silver); }
.fff-section--dark h2 { color: #fff; }
.fff-section--light { background: var(--fff-light); }
.fff-eyebrow {
  display: inline-block;
  font-family: var(--fff-font-head);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--fff-red);
  margin-bottom: 10px;
}
.fff-section--dark .fff-eyebrow { color: var(--fff-red-bright); }
.fff-section-head { max-width: 760px; margin-bottom: 46px; }
.fff-section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.fff-lead { font-size: 1.15rem; color: #444; }
.fff-section--dark .fff-lead { color: var(--fff-silver); }
.fff-rule { width: 64px; height: 4px; background: var(--fff-red); border: 0; margin: 0 0 22px; }
.is-center .fff-rule { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.fff-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fff-font-head);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: var(--fff-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.fff-btn:hover, .fff-btn:focus { text-decoration: none; transform: translateY(-2px); }
.fff-btn--primary { background: var(--fff-red); color: #fff; }
.fff-btn--primary:hover, .fff-btn--primary:focus { background: var(--fff-red-bright); color: #fff; }
.fff-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.fff-btn--ghost:hover, .fff-btn--ghost:focus { border-color: #fff; background: rgba(255,255,255,.08); color:#fff; }
.fff-btn--dark { background: var(--fff-black); color:#fff; }
.fff-btn--dark:hover, .fff-btn--dark:focus { background: var(--fff-slate); color:#fff; }
.fff-btn--sm { padding: 11px 20px; font-size: .9rem; }

/* ==========================================================================
   5. Site header / navigation
   ========================================================================== */
.fff-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 3px solid var(--fff-red);
}
.fff-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 10px 22px; max-width: var(--fff-maxw); margin: 0 auto;
}
.fff-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.fff-brand:hover { text-decoration: none; }
.fff-brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(201,204,206,.35); }
.fff-brand__text { display: flex; flex-direction: column; line-height: 1; }
.fff-brand__name {
  font-family: var(--fff-font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #fff; font-size: 1.18rem;
}
.fff-brand__tag { font-size: .66rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--fff-red-bright); font-weight: 600; }

.fff-nav { display: flex; align-items: center; gap: 26px; }
.fff-nav__menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.fff-nav__menu a {
  color: var(--fff-silver); font-family: var(--fff-font-head); text-transform: uppercase;
  letter-spacing: 1px; font-size: .92rem; font-weight: 500; text-decoration: none; padding: 6px 2px;
  white-space: nowrap;
}
.fff-nav__menu a:hover, .fff-nav__menu a:focus { color: #fff; }
.fff-nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; color:#fff;
}
.fff-nav__toggle span { display:block; width: 26px; height: 3px; background:#fff; margin: 5px 0; transition: .25s; }

@media (max-width: 900px) {
  .fff-nav__toggle { display: block; }
  .fff-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    background: var(--fff-black); flex-direction: column; align-items: stretch;
    padding: 90px 26px 30px; transform: translateX(100%); transition: transform .28s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.5); }
  .fff-nav.is-open { transform: translateX(0); }
  .fff-nav__menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .fff-nav__menu a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  body.fff-nav-open { overflow: hidden; }
  .fff-nav__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.fff-hero {
  position: relative; color: #fff; text-align: left;
  background: radial-gradient(1100px 620px at 12% 15%, rgba(141,13,23,.38) 0%, rgba(13,13,13,0) 62%), #0d0d0d;
  overflow: hidden;
}
.fff-hero__inner {
  position: relative; z-index: 1; max-width: var(--fff-maxw); margin: 0 auto;
  padding: 88px 22px 84px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 52px; align-items: center;
}
.fff-hero__content { max-width: 640px; }
.fff-hero__media { position: relative; }
.fff-hero__media img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
}
.fff-hero h1 {
  color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .98; margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.fff-hero h1 .accent { color: var(--fff-red-bright); display: block; }
.fff-hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: #eee; max-width: 600px; margin-bottom: 30px; }
.fff-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.fff-hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  background: rgba(193,18,31,.18); border: 1px solid rgba(225,29,42,.5);
  padding: 7px 16px; border-radius: 999px; font-family: var(--fff-font-head);
  text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color:#fff;
}
.fff-hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fff-red-bright);
  box-shadow: 0 0 0 4px rgba(225,29,42,.25); }

/* ==========================================================================
   7. Stat strip
   ========================================================================== */
.fff-stats { background: var(--fff-red); }
.fff-stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  max-width: var(--fff-maxw); margin: 0 auto;
}
.fff-stat { padding: 38px 26px; text-align: center; color:#fff; border-right: 1px solid rgba(255,255,255,.18); }
.fff-stat:last-child { border-right: 0; }
.fff-stat__num { font-family: var(--fff-font-head); font-size: 2.1rem; font-weight: 700; line-height: 1; margin-bottom: 18px; }
.fff-stat__label { font-size: .95rem; letter-spacing: .4px; line-height: 1.55; opacity: .92; max-width: 260px; margin: 0 auto; text-wrap: balance; }

/* ==========================================================================
   8. Mission / about
   ========================================================================== */
.fff-about__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 54px; align-items: center; }
.fff-about__card {
  background: var(--fff-black); color: var(--fff-silver); border-radius: var(--fff-radius);
  padding: 34px; box-shadow: var(--fff-shadow); border-top: 4px solid var(--fff-red);
}
.fff-about__card h3 { color:#fff; }
.fff-about__card p:last-child { margin-bottom: 0; }

/* ==========================================================================
   9. Who we help grid
   ========================================================================== */
.fff-who__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px;
}
.fff-who__item {
  background: #fff; border: 1px solid #e7e7e9; border-radius: var(--fff-radius);
  padding: 26px 18px; text-align: center; transition: transform .15s ease, box-shadow .2s ease, border-color .2s;
}
.fff-who__item:hover { transform: translateY(-4px); box-shadow: var(--fff-shadow-sm); border-color: var(--fff-red); }
.fff-who__icon {
  width: 56px; height: 56px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  background: var(--fff-black); border-radius: 50%; color: var(--fff-red-bright);
}
.fff-who__icon svg { width: 28px; height: 28px; }
.fff-who__item h3 { font-size: 1.05rem; margin: 0; letter-spacing: .3px; }

/* ==========================================================================
   10. Causes We've Helped (blog section — uses the dark .fff-appeal look)
   ========================================================================== */
.fff-appeal .fff-lead { color: var(--fff-silver); }
.fff-causes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fff-cause-card {
  background: #fff; border: 1px solid #e7e7e9; border-radius: var(--fff-radius);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--fff-shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.fff-cause-card:hover { transform: translateY(-4px); box-shadow: var(--fff-shadow); }
.fff-cause-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.fff-cause-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.fff-cause-card:hover .fff-cause-card__img img { transform: scale(1.04); }
.fff-cause-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.fff-cause-card__body .fff-btn { margin-top: auto; align-self: flex-start; }
.fff-cause-card__date { font-size: .74rem; letter-spacing: 1px; text-transform: uppercase; color: #888; margin-bottom: 8px; }
.fff-cause-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.fff-cause-card h3 a { color: var(--fff-black); text-decoration: none; }
.fff-cause-card h3 a:hover { color: var(--fff-red); }
.fff-cause-card p { color: #555; font-size: .94rem; margin-bottom: 16px; }
.fff-causes__more { margin: 30px 0 0; text-align: center; }

/* Single cause / post page */
.fff-single { max-width: 820px; }
.fff-single__title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.fff-entry-content p { font-size: 1.06rem; }
.fff-single__footer { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   10b. Appeal banner (kept for future campaign content)
   ========================================================================== */
.fff-appeal { position: relative; background: var(--fff-black); color: var(--fff-silver); overflow: hidden; }
.fff-appeal::before {
  content:""; position:absolute; top:0; left:0; width: 6px; height:100%; background: var(--fff-red);
}
.fff-appeal__inner { max-width: 880px; }
.fff-appeal h2 { color:#fff; }
.fff-appeal__quote {
  background: var(--fff-slate); border-left: 4px solid var(--fff-red); border-radius: 8px;
  padding: 26px 28px; font-size: 1.08rem; color:#eaeaea; font-style: italic;
}
.fff-appeal__quote cite { display:block; margin-top: 14px; font-style: normal; font-size:.92rem; color: var(--fff-gray); letter-spacing:1px; text-transform: uppercase; }

/* ==========================================================================
   11. Ways to give
   ========================================================================== */
.fff-give__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fff-venmo__qr {
  width: 160px; height: 160px; margin: 0 auto 18px; display: block;
  border: 1px solid #e7e7e9; border-radius: 12px; padding: 8px; background: #fff;
}
.fff-give__card--venmo .fff-btn { align-self: center; }
.fff-give__card {
  background:#fff; border-radius: var(--fff-radius); padding: 32px 28px; border: 1px solid #e7e7e9;
  display: flex; flex-direction: column; box-shadow: var(--fff-shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.fff-give__card:hover { transform: translateY(-5px); box-shadow: var(--fff-shadow); }
.fff-give__icon {
  width: 60px; height: 60px; border-radius: 14px; background: var(--fff-black);
  color: var(--fff-red-bright); display:flex; align-items:center; justify-content:center; margin-bottom: 18px;
}
.fff-give__icon svg { width: 30px; height: 30px; }
.fff-give__card h3 { margin-bottom: 10px; }
.fff-give__card p { color:#555; font-size: 1rem; }
.fff-give__card .fff-btn { margin-top: auto; align-self: flex-start; }

.fff-dropoff {
  margin-top: 34px; background: var(--fff-light); border: 1px dashed #cfcfd2; border-radius: var(--fff-radius);
  padding: 26px 30px;
}
.fff-dropoff h3 { font-size: 1.15rem; margin-bottom: 14px; }
.fff-dropoff__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.fff-dropoff__list li { display:flex; gap: 12px; align-items: flex-start; font-size: 1rem; color:#333; }
.fff-dropoff__list .pin { color: var(--fff-red); flex: 0 0 auto; margin-top: 3px; }
.fff-dropoff strong { color: var(--fff-black); }

/* ==========================================================================
   12. Get involved / form
   ========================================================================== */
.fff-form__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.fff-form__intro p { color: var(--fff-silver); }
.fff-form__contacts { list-style:none; padding:0; margin: 26px 0 0; }
.fff-form__contacts li { display:flex; gap: 14px; align-items:center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.fff-form__contacts li:last-child { border-bottom: 0; }
.fff-form__contacts .ic { width: 42px; height: 42px; flex:0 0 auto; border-radius: 10px; background: var(--fff-red);
  display:flex; align-items:center; justify-content:center; color:#fff; }
.fff-form__contacts .ic svg { width: 20px; height: 20px; }
.fff-form__contacts a { color:#fff; }
.fff-form__contacts span small { display:block; color: var(--fff-gray); text-transform: uppercase; letter-spacing:1px; font-size:.72rem; }

.fff-form__panel { background:#fff; border-radius: var(--fff-radius); padding: 36px; box-shadow: var(--fff-shadow); border-top: 5px solid var(--fff-red); }
.fff-form__panel h3 { color: var(--fff-black); }
.fff-form-fallback { background: var(--fff-light); border: 1px solid #e0e0e3; border-radius: 8px; padding: 22px; color:#333; }

/* --- Gravity Forms look & feel to match brand --- */
.fff-form__panel .gform_wrapper { margin: 0; }
.fff-form__panel .gform_wrapper .gform_title { font-family: var(--fff-font-head); text-transform: uppercase; }
.fff-form__panel .gfield_label { font-family: var(--fff-font-head); text-transform: uppercase; letter-spacing:.5px; font-size: .92rem; color: var(--fff-black); }
.fff-form__panel input[type=text],
.fff-form__panel input[type=email],
.fff-form__panel input[type=tel],
.fff-form__panel input[type=url],
.fff-form__panel textarea,
.fff-form__panel select {
  border: 1px solid #cfd0d3 !important; border-radius: 8px !important; padding: 12px 14px !important;
  font-size: 1rem !important; width: 100% !important; background:#fff;
}
.fff-form__panel input:focus, .fff-form__panel textarea:focus, .fff-form__panel select:focus {
  border-color: var(--fff-red) !important; outline: none !important; box-shadow: 0 0 0 3px rgba(193,18,31,.15) !important;
}
.fff-form__panel .gform_button, .fff-form__panel .gform_footer input[type=submit] {
  background: var(--fff-red) !important; color:#fff !important; border:0 !important;
  font-family: var(--fff-font-head) !important; text-transform: uppercase !important; letter-spacing:1px !important;
  padding: 14px 30px !important; border-radius: 10px !important; font-size: 1rem !important; cursor:pointer;
  transition: background .2s ease;
}
.fff-form__panel .gform_button:hover, .fff-form__panel .gform_footer input[type=submit]:hover { background: var(--fff-red-bright) !important; }
.fff-form__panel .gfield_required { color: var(--fff-red); }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.fff-footer { background: #000; color: var(--fff-silver); }
.fff-footer__top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.fff-footer__brand { display:flex; gap:16px; align-items:flex-start; }
.fff-footer__brand img { width: 64px; height:64px; border-radius:50%; box-shadow: 0 0 0 2px rgba(201,204,206,.3); }
.fff-footer h4 { color:#fff; font-family: var(--fff-font-head); text-transform: uppercase; letter-spacing:1px; font-size:1.05rem; margin: 0 0 16px; }
.fff-footer a { color: var(--fff-silver); }
.fff-footer a:hover { color:#fff; }
.fff-footer__list { list-style:none; padding:0; margin:0; }
.fff-footer__list li { margin-bottom: 10px; display:flex; gap:10px; align-items:flex-start; }
.fff-footer__list .ic { color: var(--fff-red-bright); flex:0 0 auto; margin-top:3px; }
.fff-footer__bottom { border-top:1px solid rgba(255,255,255,.12); padding: 22px 0; font-size:.86rem; color: var(--fff-gray);
  display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; align-items:center; }
.fff-footer__bottom a { color: var(--fff-gray); }
.fff-disclaimer { font-size:.8rem; color: var(--fff-gray); max-width: 720px; margin-top: 6px; }

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .fff-give__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .fff-about__grid, .fff-form__grid { grid-template-columns: 1fr; gap: 36px; }
  .fff-causes__grid { grid-template-columns: 1fr 1fr; }
  .fff-footer__top { grid-template-columns: 1fr 1fr; }
  .fff-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .fff-hero__content { max-width: 720px; }
  .fff-hero__media { max-width: 620px; }
}
@media (max-width: 680px) {
  .fff-section { padding: 60px 0; }
  .fff-stats__grid { grid-template-columns: 1fr; }
  .fff-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .fff-stat:last-child { border-bottom: 0; }
  .fff-give__grid { grid-template-columns: 1fr; }
  .fff-causes__grid { grid-template-columns: 1fr; }
  .fff-footer__top { grid-template-columns: 1fr; }
  .fff-hero__inner { padding: 80px 22px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
