:root {
  --bg: #06080d;
  --panel: rgba(10, 15, 24, 0.92);
  --panel-strong: #111722;
  --text: #f5f7fb;
  --muted: #9aa6bd;
  --accent: #ff5a1f;
  --accent-2: #ffb347;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 60px rgba(0,0,0,0.28);
  --success: #10b981;
  --warning: #f59e0b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, #05070b 0%, #121826 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER / NAVIGATION */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  margin: 0;
  backdrop-filter: blur(16px);
  background: rgba(6, 8, 13, 0.82);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.16);
  background: #fff;
  padding: 3px;
}

.brand .eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 2px;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.burn-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.22), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(255, 179, 71, 0.42);
  box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.45);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffe2b4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.burn-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd166;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.burn-status-link:hover,
.burn-status-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px rgba(255, 179, 71, 0.14);
}

.burn-status-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.burn-status-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffdca8;
}

.burn-status-value {
  font-size: 0.9rem;
  color: #fff4de;
}

.mobile-burn-banner {
  display: none;
  margin: 10px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 179, 71, 0.46);
  background: linear-gradient(145deg, rgba(255, 90, 31, 0.24), rgba(245, 158, 11, 0.14));
  color: #fff3d9;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  margin: 0;
  list-style: none;
}

.nav-links a {
  transition: color 0.2s ease;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7b33 100%);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(255, 90, 31, 0.32);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.2s ease;
}

/* HERO SECTION - FULL WIDTH */
.hero-full {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.1) 0%, rgba(18, 24, 38, 0.4) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,90,31,0.15);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(18,24,38,0.2);stop-opacity:1" /></linearGradient></linearGradient></defs><rect width="1200" height="600" fill="url(%23grad)"/></svg>');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 60px 24px;
}

.hero-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 90, 31, 0.2), transparent 50%);
  pointer-events: none;
}

.hero-full-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-full h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero-full-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent-2);
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-full-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6f32 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(255, 90, 31, 0.28);
}

.button.primary:hover {
  box-shadow: 0 16px 48px rgba(255, 90, 31, 0.36);
}

.button.secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 2px solid var(--border);
}

.button.secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--text);
}

/* SECTIONS */
section {
  width: 100%;
  padding: 60px 24px;
}

.section-shell {
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.section-heading p.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 12px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
  font-weight: 800;
}

/* CHIEF MESSAGE */
section.chief-message {
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.08) 0%, rgba(18, 24, 38, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.chief-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.chief-image {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 90, 31, 0.1);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.chief-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.chief-message h3 {
  font-size: 2.2rem;
  margin: 0 0 8px;
}

.chief-title {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 16px;
}

.chief-message p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 14px;
  font-size: 1.05rem;
}

/* FIREFIGHTERS GRID */
.firefighters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.firefighter-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.firefighter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(255, 90, 31, 0.15);
}

.firefighter-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.15), rgba(18, 24, 38, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 3rem;
  overflow: hidden;
}

.firefighter-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.firefighter-info {
  padding: 18px;
}

.firefighter-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.firefighter-role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.firefighter-info p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* VOLUNTEERS SECTION */
section.volunteers-hero {
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.12) 0%, rgba(18, 24, 38, 0.08) 100%);
  border-bottom: 1px solid var(--border);
}

.volunteers-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.volunteers-copy h3 {
  font-size: 2rem;
  margin: 0 0 14px;
}

.volunteers-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.volunteers-image {
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.2), rgba(18, 24, 38, 0.1));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.volunteers-photo {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
}

.stat-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

/* CONTACT FORM */
.contact-form-section {
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.06) 0%, rgba(18, 24, 38, 0.03) 100%);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.application-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(8, 12, 19, 0.76));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.field-full {
  grid-column: 1 / -1;
}

.form-section-title {
  margin: 10px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.input-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.inline-checkbox {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.inline-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
}

.form-group select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-2) 50%), linear-gradient(135deg, var(--accent-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.consent-group {
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.is-hidden {
  display: none !important;
}

.is-submitting {
  opacity: 0.9;
}

#submitApplicationButton:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.form-message {
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  display: none;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

.completion-panel {
  position: relative;
  overflow: hidden;
  display: none;
  padding: 30px;
  margin-top: 14px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 179, 71, 0.26), transparent 38%),
    linear-gradient(165deg, rgba(255, 90, 31, 0.14), rgba(7, 10, 16, 0.9));
  border: 1px solid rgba(255, 179, 71, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  transform: translateY(14px);
  opacity: 0;
}

.completion-panel.visible {
  display: block;
  animation: completion-rise 0.5s ease forwards;
}

.completion-eyebrow {
  margin: 0;
  color: var(--accent-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
}

.completion-panel h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.completion-panel p {
  margin: 0;
  color: #e4ecff;
  line-height: 1.6;
}

.completion-meta {
  margin: 20px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.completion-meta div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
}

.completion-meta span {
  display: block;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  margin-bottom: 5px;
}

.completion-meta strong {
  display: block;
  color: var(--text);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.completion-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.completion-spark {
  --spark-angle: calc(var(--spark-index) * 15deg);
  --spark-distance: calc(90px + (var(--spark-index) % 5) * 12px);
  position: absolute;
  left: 50%;
  top: 48%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe18a, #ff7b33);
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.8);
  animation: completion-spark 0.85s ease-out forwards;
  transform: rotate(var(--spark-angle)) translate(0);
}

@keyframes completion-rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes completion-spark {
  from {
    opacity: 0.95;
    transform: rotate(var(--spark-angle)) translate(0) scale(1);
  }
  to {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translate(var(--spark-distance)) scale(0.15);
  }
}

/* BOARD PAGE */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.board-member {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.board-member-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.2), rgba(18, 24, 38, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 2px solid var(--border);
}

.board-member h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.board-member-position {
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.board-member p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* FOOTER */
.site-footer {
  padding: 0;
  border-top: 1px solid var(--border);
  background: rgba(7, 10, 16, 0.9);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-facebook {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-facebook svg {
  width: 18px;
  height: 18px;
  fill: #8bb6ff;
}

/* PAGE WRAPPER */
.page-heading {
  padding: 40px 24px 20px;
  text-align: center;
}

.page-heading h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 8px;
  font-weight: 800;
}

.page-heading p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .chief-container,
  .volunteers-content {
    grid-template-columns: 1fr;
  }

  .topbar-center {
    display: none;
  }

  .mobile-burn-banner {
    display: block;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-shell {
    padding: 0 16px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(9, 11, 17, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    list-style: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .hero-full {
    min-height: 500px;
  }

  .hero-full h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 40px 16px;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .footer-shell {
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 10px 14px;
  }

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

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

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .application-card {
    padding: 20px;
  }

  .completion-panel {
    padding: 22px;
  }

  .completion-meta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .topbar {
    padding: 10px 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span:not(.eyebrow) {
    font-size: 0.95rem;
  }

  .mobile-burn-banner {
    margin: 8px 12px 0;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .hero-full {
    min-height: 420px;
    padding: 40px 16px;
  }

  .hero-full h1 {
    font-size: 1.6rem;
  }

  .hero-full-subtitle {
    font-size: 0.95rem;
  }

  .hero-full-desc {
    font-size: 0.95rem;
  }

  .button {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

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

  .stat-number {
    font-size: 2.2rem;
  }
}
