/* Expert Fire Protection — Corporate Marketing Site */
:root {
  --red: #8B0000;
  --red-dark: #5c0000;
  --red-bright: #b71c1c;
  --charcoal: #1a1a1a;
  --charcoal-soft: #2d2d2d;
  --slate: #3a3a3a;
  --muted: #6b6b6b;
  --border: #e5e5e5;
  --bg-soft: #f7f5f4;
  --white: #ffffff;
  --gold: #c9a227;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --max: 1120px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  background-color: #f7f9fc;
  background-image:
    linear-gradient(180deg, rgba(247,249,252,0.92) 0%, rgba(247,249,252,0.96) 40%, rgba(247,249,252,0.98) 100%),
    url("hero-backdrop.jpg?v=3");
  background-size: cover;
  background-position: center right;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: var(--font);
  color: var(--charcoal);
  background: rgba(255,255,255,0.92);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--red);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--white); }

.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--red);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-text span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav-list a {
  color: rgba(255,255,255,0.88);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  text-decoration: none;
}
.nav-list a.nav-cta {
  background: var(--red);
  color: var(--white);
  margin-left: 0.35rem;
  padding: 0.55rem 1rem;
}
.nav-list a.nav-cta:hover {
  background: var(--red-bright);
}

/* —— Hero —— */
.hero {
  position: relative;
  background-color: #eaf2fb;
  background-image:
    linear-gradient(100deg, rgba(234,242,251,0.88) 0%, rgba(234,242,251,0.55) 45%, rgba(255,255,255,0.2) 100%),
    url("hero-backdrop.jpg?v=3");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #1a1a1a;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.18), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B0000;
  background: rgba(139,0,0,0.08);
  border: 1px solid rgba(139,0,0,0.18);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.25);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: normal;
  color: #ffb4b4;
}

.hero-lead {
  font-size: 1.1rem;
  color: #4a4a4a;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: rgba(255,255,255,0.92);
  color: var(--red-dark);
}
.btn-primary:hover { background: #f0f0f0; color: var(--red-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--white);
}
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-bright); color: var(--white); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  width: fit-content;
}
.hero-stats dt {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.hero-stats dd {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
}

.hero-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(139,0,0,0.08);
  color: #1a1a1a;
}
.hero-card h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-card ul { display: grid; gap: 0.65rem; }
.hero-card li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
}
.hero-card li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* —— Sections shared —— */
section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-dark .eyebrow { color: #ff8a8a; }
.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}
.section-dark .section-head p { color: rgba(255,255,255,0.7); }

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-copy p { margin-bottom: 1rem; color: var(--slate); }
.about-copy p:last-child { margin-bottom: 0; }

.vm-grid {
  display: grid;
  gap: 1rem;
}
.vm-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.vm-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.vm-card p { font-size: 0.95rem; color: var(--slate); }

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.meta-item {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  text-align: center;
}
.meta-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.meta-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* —— Services —— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  height: 100%;
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: #d4b0b0;
  transform: translateY(-3px);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Systems —— */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.system-item {
  display: flex;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: background 0.15s;
}
.system-item:hover { background: rgba(255,255,255,0.09); }
.system-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.system-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.system-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

/* —— Clients —— */
.clients-sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sector-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.sector-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-soft);
}
.sector-card ul { display: grid; gap: 0.45rem; }
.sector-card li {
  font-size: 0.92rem;
  color: var(--slate);
  padding-left: 1rem;
  position: relative;
}
.sector-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* —— Projects —— */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.project-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  transition: box-shadow 0.2s;
}
.project-card:hover { box-shadow: var(--shadow); }
.project-id {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--red);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.project-card ul { display: grid; gap: 0.35rem; }
.project-card li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 0.9rem;
  position: relative;
}
.project-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--red);
}

/* —— Certifications —— */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cert-card {
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.cert-badge {
  width: 72px; height: 72px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 3px solid var(--red);
}
.cert-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.cert-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-soft);
}
.contact-list { display: grid; gap: 1.1rem; }
.contact-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact-list dd {
  font-size: 0.98rem;
  color: var(--charcoal);
}
.contact-list a {
  color: var(--red);
  font-weight: 600;
}
.contact-list a:hover { text-decoration: underline; }

.locations { display: grid; gap: 1.25rem; }
.loc-block h4 {
  font-size: 0.85rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.loc-block p { font-size: 0.95rem; color: var(--slate); }

.contact-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Footer —— */
.site-footer {
  background: rgba(26,26,26,0.94);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { margin-bottom: 0.85rem; }
.footer-brand p { font-size: 0.9rem; max-width: 22rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}
.footer-col ul { display: grid; gap: 0.4rem; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.footer-bottom span { color: rgba(255,255,255,0.45); }

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .clients-sectors,
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .systems-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .meta-strip { grid-template-columns: 1fr 1fr; }
  .hero-card { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--charcoal);
    border-bottom: 3px solid var(--red);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.15rem;
  }
  .nav-list a {
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
  }
  .nav-list a.nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.35rem;
  }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid,
  .clients-sectors,
  .certs-grid,
  .meta-strip {
    grid-template-columns: 1fr;
  }
  .project-card { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .service-card:hover { transform: none; }
}


.hero .btn-outline {
  color: #8B0000;
  border-color: rgba(139,0,0,0.45);
}
.hero .btn-outline:hover {
  background: rgba(139,0,0,0.06);
}
.hero-stats dt { color: #8B0000; }
.hero-stats dd { color: #5a5a5a; }
.hero-card h2 { color: #1a1a1a; }
.hero-card li { color: #333; }
