/* VANGUARD FIRE PROTECTION — static stylesheet
   Generated from the React CSS modules. Sections are in the same order as the components. */

/* ─── Geist Sans — variable font (self-hosted in /fonts) ─────────────────── */
@font-face {
  font-family: 'Geist Sans';
  src: url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Sans';
  src: url('../fonts/Geist-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/**
 * @file global.css
 * @description
 *   Global design tokens and base resets for VANGUARD FIRE PROTECTION.
 *
 *   ─── HOW TO EDIT ────────────────────────────────────────────────
 *   • Change brand colours  → update the --color-* custom properties below.
 *   • Change typography     → update --font-* and --text-* properties.
 *   • Change site width     → update --site-width.
 *   • Service card colours  → .sc_* classes at the bottom of this file.
 *   ────────────────────────────────────────────────────────────────
 */

/* ─── 1. Design Tokens (CSS Custom Properties) ──────────────────────────── */
:root {
  /* Colours — matched from original desktop_mini.css */
  --color-header-bg:   #414a4d;
  --color-header-dark: #293032;
  --color-text-dark:   #3f4a4c;
  --color-text-mid:    #414a4d;
  --color-brand:       #007fff;
  --color-brand-light: #bfefff;
  --color-tint:        #dff7ff;
  --color-border:      #dedede;
  --color-bg-white:    #ffffff;
  --color-bg-light:    #f9f9f9;
  --color-footer-text: #ededed;
  --color-footer-link: #cccccc;

  /* Typography */
  --font-body:    'Geist Sans', 'GeistSans', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Geist Sans', 'GeistSans', ui-sans-serif, system-ui, sans-serif;

  /* Font sizes */
  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   26px;
  --text-2xl:  32px;
  --text-hero: 38px;

  /* Layout */
  --site-width:     1000px;
  --header-height:  240px;

  /* Spacing scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  60px;
  --space-3xl:  80px;

  /* Borders */
  --radius-sm:  2px;
  --radius-md:  4px;
  --border-std: 1px solid var(--color-border);

  /* Transitions */
  --transition: all 0.3s ease-in-out;
}

/* ─── 2. Reset ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

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

a:hover {
  text-decoration: underline;
}

img {
  border: 0;
  vertical-align: middle;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

/* ─── 3. Utility classes ─────────────────────────────────────────────────── */

/**
 * .site-container — constrains content to --site-width and centres it.
 * Used by every section.
 */
.site-container {
  max-width: var(--site-width);
  width: 100%;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  margin-left: auto;
  margin-right: auto;
}

/**
 * .clearfix — clears float-based layouts (used for service grids).
 */
.clearfix::after {
  display: block;
  height: 0;
  clear: both;
  content: '';
  visibility: hidden;
}

/* ─── 4. Service card accent colours ────────────────────────────────────── */
/*
 * Each service card hero area uses one of these background colours.
 * The `colorClass` field in services.js references these class names.
 * To add a new colour: add a new .sc_* class here and reference it in services.js.
 */
/* Muted, professional tones — no bright flat-design palette */
.sc_fire    { background-color: #5c2020; }
.sc_light   { background-color: #3d4f5c; }
.sc_ext     { background-color: #6b2828; }
.sc_kitchen { background-color: #4a3020; }
.sc_custom  { background-color: #253040; }
.sc_pump    { background-color: #1e3a52; }
.sc_gen     { background-color: #1e3a38; }
.sc_plan    { background-color: #323c3e; }
.sc_cam     { background-color: #2a3540; }
.sc_access  { background-color: #1e2628; }

/*
 * Open Sans  — body text
 * Montserrat — headings and nav
 * Both are loaded via <link> in index.html. No @import needed here.
 */


/* ═══ Layout (page shell) ═════════════════════════════════════════ */
.layout-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-main {
  flex: 1;
}


/* ═══ Header & navigation ═════════════════════════════════════════ */
.site-header {
  background-color: var(--color-header-bg);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 150px;
}

.site-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 0;
}

.site-header-logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-header-logo-img {
  width: 275px;
  height: auto;
  display: block;
  transform: translateX(-120px);

}

.site-header-logo-icon {
  color: var(--color-brand);
  flex-shrink: 0;
}

.site-header-logo-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-header-logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.site-header-logo-tagline {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-brand-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-header-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-primary-list {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
}

.nav-primary-item {
  position: relative; 
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-primary-item:hover .nav-dropdown-menu {
  display: block;
}

.nav-primary-link {
  display: flex;
  align-items: center;
  height: auto;
  padding: 10px var(--space-md) 12px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #cccccc;
  text-decoration: none;
  position: relative;
  border-bottom: none;
  transition: var(--transition);
}

.nav-primary-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-md);
  right: var(--space-md);
  height: 3px;
  background-color: var(--color-brand);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-primary-link:hover::after,
.nav-primary-link-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-primary-link:hover,
.nav-primary-link-active {
  color: #ffffff;
  border-bottom: none;
  text-decoration: none;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(50% + 26px);
  left: 0;
  min-width: 220px;
  background-color: var(--color-header-dark);
  border-top: 3px solid var(--color-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  list-style: none;
  z-index: 200;
}

.nav-dropdown-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown-menu-item:last-child {
  border-bottom: none;
}

.nav-dropdown-link {
  display: block;
  padding: 10px var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #aaaaaa;
  text-decoration: none;
  transition: var(--transition);
}

.nav-dropdown-link:hover,
.nav-dropdown-link-active {
  color: #ffffff;
  background-color: rgba(0, 127, 255, 0.15);
  padding-left: 20px;
  text-decoration: none;
}

.site-header-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-brand-light) 100%);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-drawer {
  background-color: var(--color-header-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-xs) 0 var(--space-sm);
}

.mobile-nav-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-group:last-child {
  border-bottom: none;
}

.mobile-nav-parent {
  display: block;
  padding: 13px var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cccccc;
  text-decoration: none;
}

.mobile-nav-parent:hover,
.mobile-nav-parent-active {
  color: #ffffff;
  background-color: rgba(0, 127, 255, 0.12);
  text-decoration: none;
}

.mobile-nav-children {
  list-style: none;
  background-color: rgba(0, 0, 0, 0.18);
}

.mobile-nav-child {
  display: block;
  padding: 10px var(--space-lg) 10px calc(var(--space-lg) + 14px);
  font-size: var(--text-sm);
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.mobile-nav-child:hover,
.mobile-nav-child-active {
  color: #ffffff;
  background-color: rgba(0, 127, 255, 0.1);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header-logo {
    margin-left: 0;
  }

  .site-header-inner {
    height: 132px;
  }

  .site-header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .site-header-logo-img {
    width: 240px;
    height: auto;
    transform: none;
  }
}


/* ═══ Footer ══════════════════════════════════════════════════════ */
.footer-footer {
  background-color: var(--color-header-bg);
  color: var(--color-footer-text);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
}

.home-page .footer-footer {
  margin-top: 0;
}

.footer-inner {
  display: flex;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(100, 180, 255, 0.25);
}

.footer-col {
  flex: 1;
}

.col-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ededed;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid rgba(237, 237, 237, 0.3);
}

.footer-blurb {
  font-size: var(--text-sm);
  color: #aaaaaa;
  line-height: 1.7;
}

.footer-blurb p {
  margin: 0;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-grid {
  display: flex;
  gap: 24px;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-footer-link);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.contact-block {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-sm);
  color: #aaaaaa;
  line-height: 1.6;
}

.bottom-bar {
  background-color: var(--color-header-dark);
  padding: var(--space-md) 0;
}

.footer-copyright {
  font-size: var(--text-xs);
  color: #666666;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer-footer {
    margin-top: var(--space-2xl);
  }

  .footer-col {
    width: 100%;
  }

  .link-grid {
    gap: 16px;
  }

  .link-col {
    gap: 10px;
  }
}


/* ═══ Breadcrumb ══════════════════════════════════════════════════ */
.breadcrumb-nav {
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-link {
  font-size: var(--text-sm);
  color: var(--color-brand);
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-current {
  font-size: var(--text-sm);
  color: #888888;
}

.breadcrumb-separator {
  font-size: var(--text-sm);
  color: #bbbbbb;
  margin: 0 2px;
}


/* ═══ Section header ══════════════════════════════════════════════ */
.sechead-wrapper {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.sechead-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-dark);
  padding-left: var(--space-md);
  border-left: 4px solid var(--color-brand);
  line-height: 1.2;
}

.sechead-subtitle {
  margin-top: var(--space-sm);
  padding-left: calc(var(--space-md) + 4px); 
  font-size: var(--text-base);
  color: #777777;
  line-height: 1.6;
}


/* ═══ Hero carousel ═══════════════════════════════════════════════ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  background-color: var(--color-header-dark);
  user-select: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.85s ease-in-out;
  pointer-events: none;
}

.hero-slide-image-frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: block;
  width: 50%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide-image {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.hero-slide-red {
  background-color: #8f1218;
}

.hero-slide-blue {
  background-color: #073b7a;
}

.hero-slide-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.48) 45%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.hero-slide-overlay-red {
  background: linear-gradient(
    100deg,
    rgba(105, 8, 18, 0.88) 0%,
    rgba(181, 28, 36, 0.55) 45%,
    rgba(4, 8, 18, 0.16) 100%
  );
}

.hero-slide-overlay-blue {
  background: linear-gradient(
    100deg,
    rgba(4, 25, 72, 0.88) 0%,
    rgba(0, 92, 180, 0.54) 45%,
    rgba(4, 8, 18, 0.16) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(44%, 460px);
  height: 440px;
  max-width: none;
  margin-left: max(18px, calc((100vw - var(--site-width)) / 2 + 18px));
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  color: #ffffff;
  text-align: left;
}

.hero-slide-headline {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-slide-subline {
  font-size: var(--text-md);
  opacity: 0.88;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero-slide-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-slide-primary-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-brand);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.2s;
}

.hero-slide-primary-btn:hover {
  background-color: #0066cc;
  text-decoration: none;
}

.hero-slide-secondary-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #dddddd;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.hero-slide-secondary-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
  text-decoration: none;
}

.hero-carousel-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background-color: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.hero-carousel-arrow-btn:hover {
  background-color: rgba(0, 127, 255, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel-arrow-btn-left {
  left: 18px;
}

.hero-carousel-arrow-btn-right {
  right: 18px;
}

.hero-carousel-dot-row {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s;
  padding: 0;
}

.hero-carousel-dot:hover {
  border-color: #ffffff;
  transform: scale(1.2);
}

.hero-carousel-dot-active {
  background-color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 320px;
  }

  .hero-slide-image-frame {
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    padding: 0;
  }

  .hero-slide-image {
    width: 100%;
    height: 100%;
  }

  .hero-slide-content {
    width: calc(52% - 18px);
    height: 320px;
    margin-left: 18px;
    padding-left: 0;
  }

  .hero-slide-headline {
    font-size: var(--text-xl);
  }

  .hero-slide-subline {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
  }

  .hero-slide-primary-btn,
  .hero-slide-secondary-btn {
    padding: 10px 20px;
    font-size: var(--text-xs);
  }

  .hero-carousel-arrow-btn {
    width: 36px;
    height: 36px;
  }

  .hero-carousel-arrow-btn-left  { left: 8px; }
  .hero-carousel-arrow-btn-right { right: 8px; }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 260px;
  }

  .hero-slide-content {
    width: calc(58% - 14px);
    height: 260px;
    margin-left: 12px;
    padding-left: 0;
  }

  .hero-slide-headline {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
  }

  .hero-slide-subline {
    display: none;
  }

  .hero-slide-actions {
    gap: 8px;
  }

  .hero-carousel-arrow-btn {
    display: none;
  }
}


/* ═══ Service card ════════════════════════════════════════════════ */
.service-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 260px;
  border: var(--border-std);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-bg-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.service-card-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.service-card-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  color: #ffffff;
}

.service-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text-dark);
}

.service-card-subtitle {
  font-size: var(--text-xs);
  color: #888888;
  font-style: italic;
}

.service-card-description {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.6;
  flex: 1;
}

.service-card-cta {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
}

@media (max-width: 560px) {
  .service-card {
    flex: 1 1 calc(50% - var(--space-md));
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* ═══ Contact sidebar ═════════════════════════════════════════════ */
.contact-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .contact-sidebar {
    width: 100%;
  }
}

.contact-sidebar-cta-box {
  background-color: var(--color-brand);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: #ffffff;
}

.contact-sidebar-cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.contact-sidebar-cta-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.contact-sidebar-cta-btn {
  display: block;
  text-align: center;
  background-color: #ffffff;
  color: var(--color-brand);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.contact-sidebar-cta-btn:hover {
  background-color: var(--color-tint);
  text-decoration: none;
}

.contact-sidebar-info-box {
  border: var(--border-std);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background-color: var(--color-bg-light);
}

.contact-sidebar-info-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.contact-sidebar-info-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 8px;
}

.contact-sidebar-info-row:last-child {
  margin-bottom: 0;
}

.contact-sidebar-info-icon {
  color: var(--color-brand);
  flex-shrink: 0;
}

.contact-sidebar-info-link {
  font-size: var(--text-sm);
  color: var(--color-brand);
  word-break: break-all;
  text-decoration: none;
}

.contact-sidebar-info-link:hover {
  text-decoration: underline;
}

.contact-sidebar-emergency-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  border-left: 4px solid #c0392b;
  padding: var(--space-sm) var(--space-md);
  background-color: #fff5f5;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.contact-sidebar-emergency-icon {
  color: #c0392b;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-sidebar-emergency-text {
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  line-height: 1.6;
}

.contact-sidebar-emergency-text p {
  margin: 0;
}


/* ═══ Related services widget ═════════════════════════════════════ */
.related-services-widget {
  border: var(--border-std);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.related-services-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-header-bg);
  color: #ffffff;
}

.related-services-list {
  list-style: none;
  background-color: var(--color-bg-light);
}

.related-service-item {
  border-bottom: 1px solid var(--color-border);
}

.related-service-item:last-child {
  border-bottom: none;
}

.related-service-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.related-service-link:hover {
  background-color: var(--color-tint);
  color: var(--color-brand);
  text-decoration: none;
}

.related-service-icon {
  display: flex;
  align-items: center;
  color: var(--color-brand);
  flex-shrink: 0;
}


/* ═══ Page: Home ══════════════════════════════════════════════════ */
.badge-strip {
  background-color: var(--color-header-bg);
  padding: var(--space-md) 0;
  border-bottom: 2px solid var(--color-brand);
}

.badge-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .badge-strip-inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }

  .trust-badge {
    width: 180px;
    justify-content: flex-start;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trust-badge-icon {
  color: var(--color-brand);
}

.intro-strip {
  background-color: var(--color-tint);
  border-top: 1px solid var(--color-brand-light);
  border-bottom: 1px solid var(--color-brand-light);
  padding: var(--space-lg) 0;
}

.intro-text {
  max-width: 950px;
  margin: 0 auto;
  color: var(--color-text-mid);
  font-size: var(--text-base);
  line-height: 1.8;
  text-align: left;
}

.intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.intro-list li {
  position: relative;
  padding-left: 1.65rem;
  margin: 0;
}

.intro-list li + li {
  margin-top: 0.6rem;
}

.intro-list li::before {
  content: "\27a4";
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--color-brand);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.industries-section {
  padding: var(--space-2xl) 0;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

.industry-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  border: var(--border-std);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-light);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.industry-tile:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(0, 127, 255, 0.1);
}

.industry-tile-icon {
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.industry-tile-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.how-section {
  padding: var(--space-2xl) 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background-color: var(--color-bg-white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-brand);
  border-bottom: 3px solid var(--color-brand);
}

.how-step-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-brand);
  opacity: 0.22;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.how-step-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-dark);
}

.how-step-text {
  font-size: var(--text-sm);
  color: #666666;
  line-height: 1.7;
}

.why-section {
  padding: var(--space-2xl) 0;
  background-color: var(--color-bg-light);
  border-top: var(--border-std);
  border-bottom: var(--border-std);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.why-card {
  padding: var(--space-lg);
  background-color: var(--color-bg-white);
  border: var(--border-std);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-brand);
  border-bottom: 3px solid var(--color-brand);
}

.why-card-icon {
  display: flex;
  align-items: center;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.why-card-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.why-card-text {
  font-size: var(--text-sm);
  color: #666666;
  line-height: 1.6;
}

.cta-strip {
  background: linear-gradient(135deg, var(--color-header-bg) 0%, var(--color-header-dark) 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  border-top: 3px solid var(--color-brand);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.cta-sub {
  font-size: var(--text-base);
  color: #aaaaaa;
  margin-bottom: var(--space-xl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background-color: var(--color-brand);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.2s;
}

.cta-btn-primary:hover {
  background-color: #0066cc;
  text-decoration: none;
}

.cta-btn-outline {
  display: inline-block;
  padding: 14px 36px;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #cccccc;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.cta-btn-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro-text {
    max-width: none;
    width: 100%;
    padding: 0 var(--space-sm);
    font-size: var(--text-base);
    line-height: 1.7;
  }
}

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

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

  .cta-title {
    font-size: var(--text-xl);
  }

  .cta-strip {
    padding: var(--space-2xl) 0;
  }

  .cta-btn-primary,
  .cta-btn-outline {
    width: 100%;
    text-align: center;
    padding: 14px var(--space-md);
  }

  .intro-strip {
    padding: var(--space-md) 0;
  }

  .intro-text {
    font-size: 0.96rem;
    line-height: 1.7;
    text-align: left;
    padding: 0 var(--space-sm);
  }

  .intro-list li {
    padding-left: 1.5rem;
  }

  .intro-list li::before {
    top: 0.25em;
    font-size: 18px;
  }
}


/* ═══ Page: Services ══════════════════════════════════════════════ */
.services-page-hero {
  background: linear-gradient(135deg, var(--color-header-bg) 0%, var(--color-header-dark) 100%);
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 3px solid var(--color-brand);
}

.services-page-hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.services-page-hero-sub {
  font-size: var(--text-base);
  color: #aaaaaa;
  max-width: 700px;
  line-height: 1.7;
}

.services-category {
  padding: var(--space-xl) 0 var(--space-2xl);
  border-bottom: var(--border-std);
}

.services-category:last-child {
  border-bottom: none;
}

.service-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .services-page-hero-title {
    font-size: var(--text-xl);
  }

  .services-page-hero {
    padding: var(--space-lg) 0;
  }
}


/* ═══ Page: Service detail ════════════════════════════════════════ */
.service-detail-hero {
  padding: var(--space-xl) 0;
}

.service-detail-hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.service-detail-hero-icon {
  display: flex;
  align-items: center;
  color: #ffffff;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  flex-shrink: 0;
}

.service-detail-hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-detail-hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.service-detail-hero-subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.service-detail-layout {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-2xl);
  align-items: flex-start;
}

@media (min-width: 1200px) {
  .fire-alarm-content {
    max-width: 1120px;
  }
}

.service-detail-main {
  flex: 1;
  min-width: 0; 
}

.service-detail-sidebar {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.service-detail-section {
  margin-bottom: var(--space-xl);
}

.service-detail-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.service-detail-body-text {
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: 1.8;
}

.service-detail-body-text + .service-detail-body-text {
  margin-top: var(--space-sm);
}

.service-detail-fire-class-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-detail-fire-class-item {
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: 1.6;
  padding-left: var(--space-xs);
}

.service-detail-fire-class-name {
  color: var(--color-text-dark);
  margin-right: 0.35rem;
}

.service-detail-inline-image {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin-top: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.service-detail-info-section {
  margin-top: var(--space-xl);
}

.service-detail-info-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.service-detail-info-list {
  list-style: disc;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-detail-info-item {
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: 1.65;
  padding-left: var(--space-xs);
}

.service-detail-info-item strong {
  color: var(--color-text-dark);
  display: block;
  margin-bottom: var(--space-xs);
}

body.fire-safety-plan-page .service-detail-info-list {
  list-style: none;
  padding-left: 0;
}

body.fire-safety-plan-page .service-detail-info-item {
  position: relative;
  padding-left: 1.1rem;
}

body.fire-safety-plan-page .service-detail-info-item::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 5px;
  color: #000;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.service-detail-info-sub-list {
  list-style: circle;
  padding-left: 1.2rem;
  margin-top: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

body.fire-safety-plan-page .service-detail-info-sub-list {
  list-style: none;
  padding-left: 0;
}

body.fire-safety-plan-page .service-detail-info-sub-list > li {
  position: relative;
  padding-left: 0.9rem;
}

body.fire-safety-plan-page .service-detail-info-sub-list > li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 7px;
  color: #000;
  font-size: 10px;
  line-height: 1;
}

.service-detail-temperature-chart {
  margin-top: var(--space-xl);
}

.service-detail-temperature-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.service-detail-code-box {
  background-color: var(--color-tint);
  border: 1px solid var(--color-brand-light);
  border-left: 3px solid var(--color-brand);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: left;
}

.service-detail-code-box-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-dark);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-brand-light);
  margin-bottom: var(--space-md);
}

.service-detail-code-box-text {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.7;
}

.service-detail-code-requirements {
  margin-top: var(--space-md);
}

.service-detail-code-requirements-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.service-detail-code-requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.service-detail-code-requirements-grid > div {
  min-width: 0;
}

.service-detail-code-requirements-subheading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.service-detail-code-requirements-list {
  list-style: disc;
  padding-left: 1.1rem;
  display: flex;

  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-mid);
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}

.service-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-detail-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: 1.6;
}

.service-detail-bullet {
  color: var(--color-brand);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .service-detail-layout {
    flex-direction: column;
  }

  .service-detail-sidebar {
    width: 100%;
    position: static;
    top: auto;
  }

  .service-detail-hero-title {
    font-size: var(--text-xl);
  }

  .service-detail-code-requirements-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-detail-code-box {
    padding: var(--space-sm) var(--space-md);
  }
}


/* ═══ Page: About ═════════════════════════════════════════════════ */
.about-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.about-section {
  margin-bottom: var(--space-2xl);
}

.sub-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

.story-grid {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.story-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  width: 320px;
  flex-shrink: 0;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background-color:var(--color-bg-light);
  border-radius: var(--radius-md);
  color: #ffffff;
  text-align: center;
    border: var(--border-std);
  border-top: 3px solid var(--color-brand);
  border-bottom: 3px solid var(--color-brand);
  border-radius: var(--radius-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand);
}

.stat-label {
  font-size: var(--text-xs);
  color: #aaaaaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.cert-section {
  margin-bottom: var(--space-2xl);
}

.cert-grid {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: var(--border-std);
  border-top: 3px solid var(--color-brand);
  border-bottom: 3px solid var(--color-brand);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-light);
  min-width: 120px;
}

.cert-icon {
  font-size: 28px;
}

.cert-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-dark);
  text-align: center;
}

.mission-section {
  padding: var(--space-xl);
  background-color: var(--color-tint);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-md);
}

.about-mission {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--color-text-dark);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.mission-attrib {
  font-size: var(--text-sm);
  color: #888888;
  font-weight: 600;
}

@media (max-width: 768px) {
  .story-grid {
    flex-direction: column;
  }

  .about-stats {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    justify-content: center;
  }
}


/* ═══ Page: Contact ═══════════════════════════════════════════════ */
.contact-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.contact-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.form-col {
  flex: 1;
}

.info-col {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: flex;
  gap: var(--space-md);
}

.form-row .contact-label {
  flex: 1;
}

.contact-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dark);
}

.contact-input {
  padding: 10px var(--space-md);
  border: var(--border-std);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.contact-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.15);
}

.contact-textarea {
  resize: vertical;
  min-height: 130px;
}

.submit-btn {
  align-self: flex-start;
  padding: 12px 32px;
  background-color: var(--color-brand);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #0066cc;
}

.success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  background-color: #f0fff4;
  border: 1px solid #34d399;
  border-radius: var(--radius-md);
}

.success-icon {
  font-size: 48px;
}

.success-box h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-dark);
}

.success-box p {
  font-size: var(--text-base);
  color: #555555;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border: var(--border-std);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-light);
}

.info-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888888;
  margin-bottom: 4px;
}

.info-value {
  font-size: var(--text-sm);
  color: var(--color-text-dark);
  text-decoration: none;
}

a.info-value:hover {
  color: var(--color-brand);
}

.submit-error {
  color: #c0392b;
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }

  .info-col {
    width: 100%;
  }

  .form-row {
    flex-direction: column;
  }

  .submit-btn {
    align-self: stretch;
    text-align: center;
  }
}


/* ═══ Page: 404 ═══════════════════════════════════════════════════ */
.notfound-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) 0;
  gap: var(--space-md);
}

.notfound-code {
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
}

.notfound-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-dark);
}

.notfound-text {
  font-size: var(--text-base);
  color: #888888;
  max-width: 400px;
}

.home-link {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 10px 24px;
  background-color: var(--color-brand);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.2s;
}

.home-link:hover {
  background-color: #0066cc;
  text-decoration: none;
}


/* ═══ Static-site additions ═══════════════════════════════════════════════ */
/* Hamburger icons swap via aria-expanded (replaces React's conditional render) */
.mobile-menu-btn .icon-close{display:none}
.mobile-menu-btn[aria-expanded="true"] .icon-open{display:none}
.mobile-menu-btn[aria-expanded="true"] .icon-close{display:block}
/* Drawer can only exist on mobile; hide it if the window is resized wider */
@media (min-width:769px){.mobile-drawer{display:none!important}}
.mobile-drawer[hidden]{display:none}
/* Contact form states */
.success-box[hidden],.submit-error[hidden]{display:none}
.submit-btn:disabled{opacity:.6;cursor:wait}
/* Screen-reader-only helper */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* ═══ Contact form: full-screen boxes on mobile only ═══════════════ */
@media (max-width: 768px) {
  /* let the form break out of the container padding and use the full screen width */
  .contact-page .form-col {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: var(--space-md);
    box-sizing: border-box;
  }

  .contact-form {
    min-height: calc(100vh - 160px);
    min-height: calc(100dvh - 160px);
    gap: var(--space-lg);
  }

  .contact-input {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 16px var(--space-md);
    min-height: 56px;
  }

  /* message box grows to take the remaining screen height */
  .contact-label:has(.contact-textarea) {
    flex: 1;
  }

  .contact-textarea {
    flex: 1;
    min-height: 240px;
  }

  .submit-btn {
    padding: 18px 32px;
    font-size: var(--text-base);
  }
}
