:root {
  --bg-color: #0b0b0b;
  --ui-grey: #1a1a1a;
  --fire-red: #ff3c00;
  --orange: #ff6a00;
  --yellow: #ffea00;
  --text-main: #f0f0f0;
  --text-muted: #aaaaaa;
  --max-width: 1200px;
  --section-pad-desk: 80px;
  --section-pad-mob: 50px;
  --border-radius: 8px;
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: var(--orange);
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-size: 3rem;
  color: var(--text-main);
}

h2 {
  font-size: 2.2rem;
  color: var(--orange);
  border-bottom: 2px solid var(--ui-grey);
  padding-bottom: 10px;
}

h3 {
  font-size: 1.5rem;
  color: var(--yellow);
}

p {
  margin-bottom: 24px;
}

/* Layout Utilities */
.section {
  padding: var(--section-pad-desk) 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .section { padding: var(--section-pad-mob) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* Header & Nav */
.header {
  background-color: rgba(11, 11, 11, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--fire-red);
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--fire-red);
  text-shadow: 0 0 10px var(--fire-red);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fire-red);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 80px;
    left: -100%;
    width: 100%;
    background-color: var(--ui-grey);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
    transition: var(--transition);
    border-bottom: 2px solid var(--fire-red);
  }
  .nav-links.active {
    left: 0;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(45deg, var(--fire-red), var(--orange));
  color: #fff !important;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 60, 0, 0.3);
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: linear-gradient(45deg, var(--orange), var(--yellow));
  box-shadow: 0 4px 20px rgba(255, 234, 0, 0.5);
  transform: translateY(-2px);
}

/* Effects */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; text-shadow: 0 0 10px var(--fire-red), 0 0 20px var(--orange); }
}

.flame-text {
  animation: flicker 3s infinite alternate;
}

@keyframes smokeFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: smokeFade 1s ease-out forwards;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(rgba(11,11,11,0.8), rgba(11,11,11,0.9)), url('images/fire-rescue-hero-bg.jpg') center/cover no-repeat;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--ui-grey);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Legal Notice Blocks */
.legal-banner {
  background-color: var(--ui-grey);
  border-left: 4px solid var(--yellow);
  padding: 20px;
  margin: 30px 0;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-banner strong {
  color: var(--yellow);
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.warning-text {
  color: var(--fire-red);
  font-weight: bold;
}

/* Cards */
.card {
  background-color: var(--ui-grey);
  padding: 30px;
  border-radius: var(--border-radius);
  border-top: 3px solid var(--orange);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
  transform: translateY(-5px);
}

/* Iframe Container */
.game-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px;
  aspect-ratio: 16/9;
  background-color: #000;
  border: 4px solid var(--ui-grey);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 60, 0, 0.2);
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 15px;
  background-color: var(--bg-color);
  border: 1px solid var(--ui-grey);
  color: var(--text-main);
  border-radius: var(--border-radius);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--fire-red);
  box-shadow: 0 0 8px rgba(255, 60, 0, 0.3);
}

/* Footer */
.footer {
  background-color: var(--ui-grey);
  padding: 60px 0 20px;
  border-top: 4px solid var(--fire-red);
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--yellow);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-legal-box {
  background-color: var(--bg-color);
  padding: 20px;
  border: 1px solid #333;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 30px;
}

.footer-legal-box p {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* FAQ Accordion */
.faq-item {
  background-color: var(--ui-grey);
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-q {
  padding: 20px;
  font-weight: bold;
  color: var(--orange);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.faq-a {
  padding: 0 20px 20px;
  display: none;
  color: var(--text-muted);
}

/* Specific Content Pages */
.content-page {
  padding-top: 140px;
}

.legal-content h2 { margin-top: 40px; }
.legal-content h3 { margin-top: 30px; color: var(--orange); }
.legal-content ul { margin-left: 20px; margin-bottom: 24px; color: var(--text-muted); }
.legal-content li { margin-bottom: 10px; }
.legal-content p { color: var(--text-muted); }

/* Step List */
.step-list {
  list-style: none;
  counter-reset: my-awesome-counter;
}
.step-list li {
  counter-increment: my-awesome-counter;
  margin-bottom: 20px;
  padding-left: 60px;
  position: relative;
}
.step-list li::before {
  content: counter(my-awesome-counter);
  position: absolute;
  left: 0;
  top: -5px;
  width: 40px;
  height: 40px;
  background-color: var(--fire-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}