/* ==========================================================================
   ELEGANCE SHIELD FIRE PROTECTION — Main Stylesheet
   Color palette: Deep charcoal + fire orange/red accent + steel grey surfaces
   ========================================================================== */

/* --------------------------------------------------------------------------
   IMPORTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root,
[data-theme='light'] {
  /* Brand palette — fire protection: deep charcoal + ember red/orange accent */
  --color-bg: #F5F4F2;
  --color-surface: #FAFAF8;
  --color-surface-2: #FFFFFF;
  --color-surface-offset: #EDEBE8;
  --color-surface-offset-2: #E5E3DF;
  --color-surface-dynamic: #DAD8D4;
  --color-divider: #D4D1CB;
  --color-border: #C8C5BF;

  /* Text */
  --color-text: #1C1A16;
  --color-text-muted: #6B6860;
  --color-text-faint: #ABA9A3;
  --color-text-inverse: #FAFAF8;

  /* Primary accent — ember red/fire orange */
  --color-primary: #C0392B;
  --color-primary-hover: #96261E;
  --color-primary-active: #6E1B15;
  --color-primary-highlight: #F5D4D1;

  /* Secondary accent — deep navy/charcoal for professionalism */
  --color-accent-secondary: #1A2B3C;

  /* Surfaces - header specific */
  --color-header-bg: rgba(245, 244, 242, 0.94);

  /* Semantic */
  --color-success: #2D7A3A;
  --color-warning: #B35C00;
  --color-error: #C0392B;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28, 26, 22, 0.06), 0 1px 2px rgba(28, 26, 22, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 26, 22, 0.10), 0 2px 4px rgba(28, 26, 22, 0.06);
  --shadow-lg: 0 12px 32px rgba(28, 26, 22, 0.14), 0 4px 8px rgba(28, 26, 22, 0.08);
  --shadow-xl: 0 24px 64px rgba(28, 26, 22, 0.18);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1240px;
}

[data-theme='dark'] {
  --color-bg: #141210;
  --color-surface: #1A1815;
  --color-surface-2: #1E1C19;
  --color-surface-offset: #181613;
  --color-surface-offset-2: #1C1A17;
  --color-surface-dynamic: #252320;
  --color-divider: #2A2824;
  --color-border: #353230;

  --color-text: #E8E6E1;
  --color-text-muted: #8A8780;
  --color-text-faint: #5A5854;
  --color-text-inverse: #141210;

  --color-primary: #E05A4E;
  --color-primary-hover: #CC3D30;
  --color-primary-active: #B52B1F;
  --color-primary-highlight: #3D1D1A;

  --color-accent-secondary: #4A7FA5;
  --color-header-bg: rgba(20, 18, 16, 0.94);

  --color-success: #4E9E5F;
  --color-warning: #D4760A;
  --color-error: #E05A4E;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141210;
    --color-surface: #1A1815;
    --color-surface-2: #1E1C19;
    --color-surface-offset: #181613;
    --color-surface-offset-2: #1C1A17;
    --color-surface-dynamic: #252320;
    --color-divider: #2A2824;
    --color-border: #353230;
    --color-text: #E8E6E1;
    --color-text-muted: #8A8780;
    --color-text-faint: #5A5854;
    --color-text-inverse: #141210;
    --color-primary: #E05A4E;
    --color-primary-hover: #CC3D30;
    --color-primary-active: #B52B1F;
    --color-primary-highlight: #3D1D1A;
    --color-accent-secondary: #4A7FA5;
    --color-header-bg: rgba(20, 18, 16, 0.94);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.5);
  }
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.12; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

::selection {
  background: rgba(192, 57, 43, 0.2);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button { cursor: pointer; background: none; border: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}

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

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.35);
  color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-4);
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1;
}

.logo-sub {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1.2;
}

/* Nav */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}

.main-nav a:hover {
  color: var(--color-text);
}

.main-nav a:hover::after { width: 100%; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  transition: background var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-interactive), opacity var(--transition-fast);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding: var(--space-6) 0;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0 var(--space-6); }
.mobile-nav li { border-bottom: 1px solid var(--color-divider); }
.mobile-nav a {
  display: block;
  padding: var(--space-4) 0;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-accent-secondary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Rich dark gradient with fire warm tones */
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(192, 57, 43, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(200, 80, 30, 0.2) 0%, transparent 55%),
    linear-gradient(135deg, #0D1620 0%, #1A2B3C 40%, #2A1510 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 22, 32, 0.3) 0%, rgba(13, 22, 32, 0.1) 60%, rgba(13, 22, 32, 0.5) 100%);
}

/* Ember particles */
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.embers span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  animation: ember-float var(--dur, 6s) var(--delay, 0s) infinite ease-in-out;
}

.embers span:nth-child(1)  { left: 15%; bottom: 20%; --dur: 7s; --delay: 0s; width: 3px; height: 3px; }
.embers span:nth-child(2)  { left: 30%; bottom: 15%; --dur: 9s; --delay: 1s; width: 5px; height: 5px; }
.embers span:nth-child(3)  { left: 55%; bottom: 25%; --dur: 8s; --delay: 2s; width: 3px; height: 3px; }
.embers span:nth-child(4)  { left: 70%; bottom: 10%; --dur: 10s; --delay: 0.5s; width: 4px; height: 4px; }
.embers span:nth-child(5)  { left: 85%; bottom: 30%; --dur: 7s; --delay: 3s; width: 3px; height: 3px; }
.embers span:nth-child(6)  { left: 40%; bottom: 5%;  --dur: 11s; --delay: 1.5s; width: 6px; height: 6px; }
.embers span:nth-child(7)  { left: 10%; bottom: 40%; --dur: 8s; --delay: 4s; width: 3px; height: 3px; }
.embers span:nth-child(8)  { left: 60%; bottom: 15%; --dur: 9s; --delay: 2.5s; width: 4px; height: 4px; }
.embers span:nth-child(9)  { left: 25%; bottom: 35%; --dur: 12s; --delay: 1s; width: 3px; height: 3px; }
.embers span:nth-child(10) { left: 78%; bottom: 45%; --dur: 8s; --delay: 3.5s; width: 5px; height: 5px; }

@keyframes ember-float {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  15%  { opacity: 0.9; }
  60%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-180px) scale(0.3) translateX(30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-16), 10vh, var(--space-32));
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(192, 57, 43, 0.2);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 180, 160, 0.95);
  margin-bottom: var(--space-6);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.95;
  color: #ffffff;
  margin-bottom: var(--space-6);
}

.hero-line-1 { display: block; color: rgba(255, 255, 255, 0.85); }
.hero-line-2 {
  display: block;
  background: linear-gradient(135deg, #F5B5A0, #E05A4E, #C0392B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subhead {
  font-size: var(--text-lg);
  color: rgba(230, 228, 224, 0.8);
  max-width: 560px;
  margin-bottom: var(--space-10);
  font-weight: 300;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: var(--text-xs);
  color: rgba(230, 228, 224, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-1);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  margin: 0 auto;
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* --------------------------------------------------------------------------
   SECTION LABELS & TITLES
   -------------------------------------------------------------------------- */
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-8);
}

/* --------------------------------------------------------------------------
   SERVICE BARS
   -------------------------------------------------------------------------- */
.service-bars {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}

.service-bars > .container {
  margin-bottom: var(--space-12);
}

.bars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.service-bar {
  background: var(--color-surface);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border-right: 1px solid var(--color-divider);
  position: relative;
  transition: background var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
  overflow: hidden;
}

.service-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-bar:hover::before { transform: scaleX(1); }
.service-bar:hover { background: var(--color-surface-2); }

.service-bar:last-child { border-right: none; }

/* Accent strip per bar */
.bar--emergency { border-left: none; }
.bar--inspection::before { background: #1A5276; }
.bar--install::before { background: #1E8449; }

.bar-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.bar--inspection .bar-icon-wrap {
  background: rgba(26, 82, 118, 0.12);
  color: #1A5276;
}
.bar--install .bar-icon-wrap {
  background: rgba(30, 132, 73, 0.12);
  color: #1E8449;
}

[data-theme='dark'] .bar--inspection .bar-icon-wrap {
  background: rgba(74, 127, 165, 0.15);
  color: #4A7FA5;
}
[data-theme='dark'] .bar--install .bar-icon-wrap {
  background: rgba(78, 158, 95, 0.15);
  color: #4E9E5F;
}

.bar-content { flex: 1; }

.bar-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.bar--inspection .bar-tag { color: #1A5276; }
.bar--install .bar-tag { color: #1E8449; }

[data-theme='dark'] .bar--inspection .bar-tag { color: #4A7FA5; }
[data-theme='dark'] .bar--install .bar-tag { color: #4E9E5F; }

.bar-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.bar-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.bar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bar-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.bar-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.bar--inspection .bar-features li svg { color: #1A5276; }
.bar--install .bar-features li svg { color: #1E8449; }

[data-theme='dark'] .bar--inspection .bar-features li svg { color: #4A7FA5; }
[data-theme='dark'] .bar--install .bar-features li svg { color: #4E9E5F; }

.bar-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition-interactive), color var(--transition-interactive);
  margin-top: auto;
}
.bar-cta:hover { gap: var(--space-3); }

.bar--inspection .bar-cta { color: #1A5276; }
.bar--install .bar-cta { color: #1E8449; }
[data-theme='dark'] .bar--inspection .bar-cta { color: #4A7FA5; }
[data-theme='dark'] .bar--install .bar-cta { color: #4E9E5F; }

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */
.about {
  background: var(--color-surface);
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-badge-wrap {
  position: relative;
  width: 280px;
}

.about-shield-big svg {
  width: 100%;
  height: auto;
}

.about-cert-badge {
  position: absolute;
  bottom: -16px;
  right: -24px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

.cert-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 60ch;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.value-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.value-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.value-item span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   WHY US
   -------------------------------------------------------------------------- */
.why-us {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
}

.why-us > .container > .section-label,
.why-us > .container > .section-title {
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  margin-top: var(--space-10);
}

.why-card {
  background: var(--color-surface);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth), border-color var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   TRUST BAR
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-primary);
  padding-block: var(--space-8);
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255,255,255,0.95);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.3);
}

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: start;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 50ch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  text-decoration: none;
}

a.contact-detail-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.contact-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
}

.emergency-cta {
  width: 100%;
  justify-content: center;
}

/* Contact Form */
.contact-form-wrap {
  position: relative;
}

.contact-form {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-5);
  border-bottom: 2px solid var(--color-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group label span { color: var(--color-primary); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-faint); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}
.form-success svg {
  margin: 0 auto var(--space-4);
  color: var(--color-success);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.form-success p { color: var(--color-text-muted); }
.form-success a { color: var(--color-primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-accent-secondary);
  color: rgba(255,255,255,0.8);
}

[data-theme='dark'] .site-footer {
  background: #0D1620;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-20));
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.footer-brand .logo-name { color: rgba(255,255,255,0.95); }
.footer-brand .logo-sub { color: rgba(224, 90, 78, 0.9); }
.footer-brand .logo-svg path:first-child { fill: rgba(224, 90, 78, 0.7); stroke: rgba(224, 90, 78, 0.9); }

.footer-tagline {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  max-width: 40ch;
  line-height: 1.6;
}

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

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-4);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }

.footer-col a,
.footer-col span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-emergency {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 180, 160, 0.8) !important;
  font-weight: 600;
}

.footer-emergency a {
  color: rgba(255,200,180,0.95);
  font-weight: 700;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   ANIMATIONS — Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-bar {
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
  }
  .service-bar:last-child { border-bottom: none; }

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

  .about-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav { display: none; }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn { display: none; }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    gap: var(--space-5);
  }

  .stat-divider { display: none; }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .trust-inner {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .trust-divider { display: none; }

  .bars-grid {
    border-top: 3px solid var(--color-primary);
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADDITIONS: Real logo image, photo bars, work gallery, about photo stack
   ========================================================================== */

/* Logo image */
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

/* Hero — real photo background */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Override hero-bg to remove the old CSS gradient background */
.hero-bg {
  background: none !important;
}

/* Stronger hero overlay so text is readable over real photo */
.hero-overlay {
  background:
    linear-gradient(105deg, rgba(10,16,24,0.90) 0%, rgba(10,16,24,0.68) 55%, rgba(10,16,24,0.50) 100%),
    linear-gradient(to bottom, rgba(10,16,24,0.15) 0%, rgba(10,16,24,0.65) 100%) !important;
}

/* ---- Service Bar Photo Headers ---- */
.bar-photo-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.bar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.service-bar:hover .bar-photo { transform: scale(1.05); }

.bar-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,18,28,0.12) 0%, rgba(13,18,28,0.50) 100%);
}

/* Content area below bar photo */
.bar-inner {
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

/* Override old bar padding since layout changed */
.service-bar {
  padding: 0 !important;
  gap: 0 !important;
}

/* ---- Work Gallery ---- */
.work-gallery {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
}

.work-gallery > .container { margin-bottom: var(--space-10); }

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  margin: 0;
}

.gallery-item--large { grid-column: span 1; grid-row: span 2; }
.gallery-item--wide  { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 240px;
}

.gallery-item--large img { min-height: 400px; }
.gallery-item--wide img  { min-height: 280px; }

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(to top, rgba(10,16,24,0.85) 0%, transparent 100%);
  color: rgba(255,255,255,0.92);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover figcaption { transform: translateY(0); }

/* ---- About photo stack ---- */
.about-photo-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.about-photo-main {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-2xl);
  display: block;
  box-shadow: var(--shadow-xl);
}

.about-logo-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-xl);
  background: #fff;
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-surface);
  overflow: hidden;
}

.about-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---- Footer logo ---- */
.footer-logo-name { color: rgba(255,255,255,0.95) !important; }
.footer-logo-sub  { color: rgba(224, 90, 78, 0.9) !important; }
.footer-logo-img  {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 3px;
}

/* ---- Responsive overrides for new sections ---- */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--large { grid-row: span 1; }
  .gallery-item--wide  { grid-column: span 2; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--large,
  .gallery-item--wide { grid-column: span 1; grid-row: span 1; }
  .gallery-item figcaption { transform: translateY(0); }
  .about-photo-main { height: 280px; }
  .about-logo-badge { width: 72px; height: 72px; bottom: -12px; right: -12px; }
  .bar-photo-wrap { height: 180px; }
}

/* ==========================================================================
   TOP BAR — ROC number & phone
   ========================================================================== */
.top-bar {
  background: var(--color-accent-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-block: 7px;
}

[data-theme='dark'] .top-bar {
  background: #0D1620;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.roc-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(192, 57, 43, 0.25);
  border: 1px solid rgba(192, 57, 43, 0.45);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
}

.top-bar-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.top-bar-phone:hover { color: #fff; }

@media (max-width: 480px) {
  .top-bar-left { display: none; }
  .top-bar-inner { justify-content: flex-end; }
}
