/* ============================================================
   RICHARDSON FIRE PROTECTION — Stylesheet
   Color system: Red (#C41230) · Black (#1A1A1A) · White (#FFFFFF)
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand colors */
  --c-red:         #C41230;
  --c-red-light:   #e03448;
  --c-red-dark:    #9b0e25;
  --c-red-glow:    rgba(196, 18, 48, 0.14);
  --c-red-glow-lg: rgba(196, 18, 48, 0.22);

  --c-black:       #1a1a1a;
  --c-charcoal:    #2a2a2a;
  --c-dark:        #111111;
  --c-white:       #ffffff;

  /* Body backgrounds */
  --c-bg:          #111111;
  --c-bg-2:        #161616;
  --c-bg-3:        #1c1c1c;
  --c-surface:     #212121;
  --c-surface-2:   #2a2a2a;
  --c-border:      rgba(255,255,255,0.08);
  --c-border-2:    rgba(255,255,255,0.14);

  /* Text */
  --c-text:        #d4d4d4;
  --c-text-muted:  #909090;
  --c-text-faint:  #555555;

  /* Navbar (always white) */
  --c-nav-bg:      #ffffff;
  --c-nav-text:    #1a1a1a;
  --c-nav-muted:   #444444;
  --c-nav-border:  #e5e5e5;

  /* Typography */
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Oswald', Impact, sans-serif;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.5);
  --shadow-red:   0 0 30px rgba(196,18,48,0.18);
  --shadow-nav:   0 2px 16px rgba(0,0,0,0.10);

  /* Transitions */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --t-fast:   0.15s;
  --t-base:   0.3s;
  --t-slow:   0.6s;

  /* Layout */
  --container: 1240px;
  --nav-h:     90px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--c-white); }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p  { line-height: 1.75; }

.text-accent { color: var(--c-red); }

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: var(--sp-xl) 0; }

/* ---- Section labels ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(196,18,48,0.4);
  background: var(--c-red-glow);
  color: var(--c-red-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc  { color: var(--c-text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--lg    { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(196,18,48,0.35);
}
.btn--primary:hover {
  background: var(--c-red-light);
  box-shadow: 0 6px 28px rgba(196,18,48,0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--c-white);
}
.btn--ghost:hover {
  border-color: var(--c-red);
  color: var(--c-red-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--c-border-2);
  color: var(--c-white);
}
.btn--outline:hover { border-color: var(--c-red); color: var(--c-red-light); }

/* ---- Scroll Reveal ---- */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed {
  opacity: 1; transform: translate(0);
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0;
  background: var(--c-dark);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-inner { text-align: center; }
.preloader-logo  { margin-bottom: 1.5rem; animation: pulse-logo 1.5s ease-in-out infinite; }

.preloader-bar {
  width: 180px; height: 2px;
  background: var(--c-surface);
  border-radius: var(--r-full);
  overflow: hidden;
  margin: 0 auto;
}
.preloader-bar span {
  display: block; height: 100%;
  background: var(--c-red);
  border-radius: var(--r-full);
  animation: preload-progress 1.4s var(--ease) forwards;
}
@keyframes preload-progress { 0% { width: 0; } 100% { width: 100%; } }
@keyframes pulse-logo { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============================================================
   NAVIGATION — always white
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  overflow: hidden;
  background: var(--c-nav-bg);
  border-bottom: 1px solid var(--c-nav-border);
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  transition: box-shadow var(--t-base) var(--ease);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Real logo <img> — height-constrained so it never stretches */
.nav-logo__img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
/* Footer sits on white now, so invert the white-version logo to dark */
.footer-logo .nav-logo__img {
  height: 42px;
  filter: brightness(0);      /* white logo → black silhouette on light bg */
}

.logo-shield { display: flex; align-items: center; }
.logo-svg    { width: 56px; height: 62px; }
.logo-shield--sm .logo-svg { width: 42px; height: 46px; }

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-black);
}
.logo-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-red);
  text-transform: uppercase;
}
.logo-tagline {
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: #888;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.logo-tagline::before,
.logo-tagline::after {
  content: '★ ★ ★';
  font-size: 0.4rem;
  color: var(--c-red);
  letter-spacing: 0.15em;
}

/* Wordmark inside dark footer */
.logo-wordmark--light .logo-name { color: var(--c-white); }
.logo-wordmark--light .logo-sub  { color: var(--c-red-light); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-nav-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--c-red); background: rgba(196,18,48,0.06); }
.nav-link.active { color: var(--c-red); }

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-black) !important;
  font-weight: 700;
  background: none;
  border: 1.5px solid var(--c-red);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.9rem;
  margin-left: 0.5rem;
  transition: background var(--t-fast), color var(--t-fast) !important;
}
.nav-phone:hover {
  background: var(--c-red) !important;
  color: #fff !important;
}
.nav-phone i { color: var(--c-red); transition: color var(--t-fast); }
.nav-phone:hover i { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--c-black);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #1a0508 0%, #111111 45%, #1a1a1a 100%);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 20% 50%, rgba(196,18,48,0.18) 0%, transparent 65%);
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 30%, transparent 100%);
}

.hero-container {
  position: relative; z-index: 1;
  padding-top: 4rem;
  padding-bottom: 6rem;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(196,18,48,0.4);
  background: rgba(196,18,48,0.1);
  color: #f87187;
  font-size: 0.83rem; font-weight: 600;
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--c-red);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--c-white);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title--accent { color: var(--c-red); display: block; }

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--c-text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Certifications bar */
.hero-certifications { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cert-label {
  font-size: 0.72rem; font-weight: 600;
  color: var(--c-text-faint);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cert-items { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cert-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 500;
  color: var(--c-text-muted);
}
.cert-item i { color: var(--c-red); font-size: 0.75rem; }

.hero-scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--c-text-faint);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  animation: fade-in-up 1s 1.5s both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: rgba(255,255,255,0.1); border-radius: var(--r-full); overflow: hidden;
}
.scroll-line span {
  display: block; width: 100%; height: 40%;
  background: var(--c-red); border-radius: var(--r-full);
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down { 0% { transform: translateY(-100%); } 100% { transform: translateY(300%); } }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   STATS TICKER
   ============================================================ */
.stats-ticker {
  background: var(--c-red);
  padding: 1.25rem 0;
  overflow: hidden;
}
.ticker-track  { overflow: hidden; }
.ticker-items  { display: flex; align-items: center; width: max-content; }

.ticker-item {
  display: flex; align-items: baseline; gap: 0.3rem;
  padding: 0 3rem; white-space: nowrap;
}
.ticker-num {
  font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ticker-item > span:nth-child(2) { font-size: 1.3rem; font-weight: 700; color: #fff; }
.ticker-label  { font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 500; }
.ticker-sep    { color: rgba(255,255,255,0.4); font-size: 0.6rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--c-bg-2); }
.about-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.about-visual { position: relative; min-height: 460px; }
.about-img-wrap { position: relative; height: 100%; }

.about-img-card {
  position: absolute;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-border);
}
.about-img-card--1 { width: 62%; aspect-ratio: 4/5; top: 0; left: 0; }
.about-img-card--2 { width: 52%; aspect-ratio: 1/1; bottom: 0; right: 0; }

.about-img-inner {
  width: 100%; height: 100%; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-img-inner--1 { background: linear-gradient(135deg, #1e1010 0%, #2a1010 100%); }
.about-img-inner--2 { background: linear-gradient(135deg, #111 0%, #1e1e1e 100%); }

.about-icon-large {
  font-size: 4rem;
  color: var(--c-red);
  opacity: 0.4;
}

.about-float-card {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  background: rgba(30,10,14,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196,18,48,0.4);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), var(--shadow-red);
}
.float-card-icon {
  width: 40px; height: 40px;
  background: var(--c-red-glow);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-red); font-size: 1.1rem;
}
.float-card-content { display: flex; flex-direction: column; }
.float-card-content strong { color: var(--c-white); font-size: 0.95rem; font-weight: 700; }
.float-card-content span  { color: var(--c-text-muted); font-size: 0.77rem; }

.about-lead {
  font-size: 1.05rem; color: var(--c-text);
  font-weight: 500; margin-bottom: 1rem; line-height: 1.7;
}
.about-body { color: var(--c-text-muted); margin-bottom: 2rem; }

.about-pillars { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.pillar {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem; background: var(--c-surface);
  border-radius: var(--r-md); border: 1px solid var(--c-border);
  transition: border-color var(--t-base);
}
.pillar:hover { border-color: rgba(196,18,48,0.35); }
.pillar-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-red-glow); border-radius: var(--r-sm);
  color: var(--c-red); font-size: 0.95rem;
}
.pillar-content { display: flex; flex-direction: column; gap: 0.2rem; }
.pillar-content strong { color: var(--c-white); font-size: 0.9rem; font-weight: 600; }
.pillar-content span   { color: var(--c-text-muted); font-size: 0.82rem; line-height: 1.5; }

/* ============================================================
   SERVICES (shared grid — commercial / industrial / all services)
   ============================================================ */
.commercial { background: var(--c-bg); }
.industrial  { background: var(--c-bg-2); }
.services    { background: var(--c-bg-3); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.services-grid--6 { grid-template-columns: repeat(3, 1fr); }

.service-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.service-card:hover {
  border-color: rgba(196,18,48,0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-red), 0 8px 40px rgba(0,0,0,0.4);
}
.service-card--sm { padding: 1.75rem; }

.service-card--featured {
  background: linear-gradient(160deg, #1e1010 0%, #2a1010 100%);
  border-color: rgba(196,18,48,0.4);
}

.featured-badge {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--c-red); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.service-card__icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-red-glow); border-radius: var(--r-md);
  color: var(--c-red); font-size: 1.25rem;
  margin-bottom: 1.25rem;
  transition: background var(--t-base);
}
.service-card:hover .service-card__icon { background: rgba(196,18,48,0.22); }

.service-card__tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-red); margin-bottom: 0.6rem;
}
.service-card__title  { font-size: 1.05rem; margin-bottom: 0.85rem; }
.service-card__desc   { font-size: 0.87rem; color: var(--c-text-muted); line-height: 1.7; margin-bottom: 1.25rem; }

.service-card__features { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.service-card__features li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.83rem; color: var(--c-text-muted);
}
.service-card__features li i { color: var(--c-red); font-size: 0.72rem; flex-shrink: 0; }

.service-card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.83rem; font-weight: 600; color: var(--c-red);
  transition: gap var(--t-fast);
}
.service-card__link:hover { gap: 0.7rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--c-bg); }
.process-steps {
  display: flex; align-items: flex-start; gap: 0;
}
.process-step {
  flex: 1;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color var(--t-base), transform var(--t-base);
}
.process-step:hover { border-color: rgba(196,18,48,0.4); transform: translateY(-4px); }

.step-number {
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  color: rgba(196,18,48,0.12); margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.step-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-red-glow); border-radius: var(--r-md);
  color: var(--c-red); font-size: 1.1rem; margin-bottom: 1rem;
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-desc  { font-size: 0.84rem; color: var(--c-text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.step-duration {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; color: var(--c-red); font-weight: 500;
}

.process-connector {
  display: flex; align-items: center; justify-content: center;
  padding: 0 0.75rem; color: rgba(196,18,48,0.5);
  font-size: 0.8rem; flex-shrink: 0; margin-top: 2rem;
}

/* ============================================================
   RESIDENTIAL
   ============================================================ */
.residential { background: var(--c-bg-2); }

.residential-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.res-feature {
  display: flex; gap: 1.25rem; align-items: flex-start;
  margin-bottom: 1.75rem;
}
.res-feature:last-of-type { margin-bottom: 2rem; }
.res-feature__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-red-glow); border-radius: var(--r-md);
  color: var(--c-red); font-size: 1.15rem;
}
.res-feature h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.res-feature p  { font-size: 0.86rem; color: var(--c-text-muted); line-height: 1.7; }

.res-stat-cards {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.res-stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex; align-items: center; gap: 1.5rem;
  transition: border-color var(--t-base), transform var(--t-base);
}
.res-stat-card:hover { border-color: rgba(196,18,48,0.35); transform: translateX(4px); }
.res-stat-card--accent {
  background: linear-gradient(135deg, #1e1010 0%, #2a1010 100%);
  border-color: rgba(196,18,48,0.35);
}
.res-stat-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-red-glow); border-radius: var(--r-md);
  color: var(--c-red); font-size: 1.2rem;
}
.res-stat-num {
  font-size: 2.2rem; font-weight: 900; color: var(--c-red);
  line-height: 1; letter-spacing: -0.03em;
  white-space: nowrap;
}
.res-stat-label { font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.5; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--c-bg-3); }

.testimonials-slider { max-width: 820px; margin: 0 auto; position: relative; overflow: hidden; }
.testimonials-track  { display: flex; transition: transform 0.5s var(--ease-out); }

.testimonial-card {
  min-width: 100%;
  padding: 3rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.testimonial-stars {
  display: flex; gap: 0.25rem;
  color: var(--c-red); font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.testimonial-card blockquote {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--c-white); line-height: 1.8;
  font-style: italic; font-weight: 400;
  margin-bottom: 2rem; position: relative;
}
.testimonial-card blockquote::before {
  content: '"';
  font-size: 5rem; color: var(--c-red); opacity: 0.2;
  position: absolute; top: -1rem; left: -0.5rem;
  line-height: 1; font-family: Georgia, serif;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--c-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; }
.author-info strong { color: var(--c-white); font-size: 0.95rem; }
.author-info span   { color: var(--c-text-muted); font-size: 0.82rem; }

.slider-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-top: 2rem;
}
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--c-border-2);
  color: var(--c-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--t-fast);
}
.slider-btn:hover { border-color: var(--c-red); color: var(--c-red); }

.slider-dots { display: flex; gap: 0.5rem; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-border-2);
  transition: background var(--t-base), width var(--t-base);
  border: none; cursor: pointer;
}
.slider-dot.active {
  background: var(--c-red); width: 24px;
  border-radius: var(--r-full);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog { background: var(--c-bg-2); }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base);
}
.blog-card:hover { border-color: rgba(196,18,48,0.4); transform: translateY(-4px); }

.blog-card__img {
  height: 160px; background: linear-gradient(135deg, #1e1010, #2a1010);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(196,18,48,0.4);
}

.blog-card__body { padding: 1.75rem; }

.blog-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--c-red);
  margin-bottom: 0.65rem;
}

.blog-card__body h3 {
  font-size: 1rem; margin-bottom: 0.65rem; line-height: 1.4;
}
.blog-card__body p {
  font-size: 0.84rem; color: var(--c-text-muted);
  line-height: 1.7; margin-bottom: 1.25rem;
}

.blog-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.83rem; font-weight: 600; color: var(--c-red);
  transition: gap var(--t-fast);
}
.blog-link:hover { gap: 0.7rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--c-bg); }

.contact-container {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: flex-start;
}

.contact-lead {
  font-size: 1.02rem; color: var(--c-text-muted);
  margin-bottom: 2.5rem; line-height: 1.75;
}

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.contact-item__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--c-red-glow); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-red); font-size: 0.9rem;
}
.contact-item--emergency .contact-item__icon {
  background: rgba(196,18,48,0.25);
}
.contact-item__content { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-item__content strong {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c-text-faint);
}
.contact-item__content a,
.contact-item__content span {
  font-size: 0.92rem; color: var(--c-text);
  transition: color var(--t-fast);
}
.contact-item__content a:hover { color: var(--c-red-light); }
.contact-item--emergency .contact-item__content a { color: var(--c-red-light); font-weight: 600; }

/* Form */
.contact-form-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--c-text-muted); letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: 0.8rem 1rem;
  color: var(--c-white); font-size: 0.9rem; font-family: inherit;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23909090' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.form-group select option { background: var(--c-surface); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-red-dark);
  box-shadow: 0 0 0 3px rgba(196,18,48,0.14);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-checkbox { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 0.75rem;
  cursor: pointer; font-size: 0.82rem; color: var(--c-text-muted); line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1px solid var(--c-border-2); border-radius: 4px;
  background: var(--c-bg); position: relative;
  transition: all var(--t-fast); margin-top: 1px;
}
.checkbox-label input:checked + .checkbox-custom { background: var(--c-red); border-color: var(--c-red); }
.checkbox-label input:checked + .checkbox-custom::after {
  content: ''; position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 8px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg);
}

.form-success {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--r-md); color: #4ade80; font-size: 0.9rem;
}
.form-success i { font-size: 1.2rem; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #ffffff; border-top: 3px solid var(--c-red); }
.footer-top { padding: 4.5rem 0; }
.footer-top-container {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand p {
  font-size: 0.87rem; color: #6b7280;
  line-height: 1.7; margin: 1rem 0 1.5rem; max-width: 280px;
}
.footer-logo { margin-bottom: 0.25rem; }

.footer-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.1rem; font-weight: 700;
  color: var(--c-red);
  transition: color var(--t-fast);
}
.footer-phone:hover { color: var(--c-red-dark); }

.footer-links-group h4 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-black); margin-bottom: 1.25rem;
}
.footer-links-group ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links-group a {
  font-size: 0.86rem; color: #6b7280;
  transition: color var(--t-fast);
}
.footer-links-group a:hover { color: var(--c-red); }

.footer-newsletter h4 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-black); margin-bottom: 0.75rem;
}
.footer-newsletter p {
  font-size: 0.84rem; color: #6b7280;
  line-height: 1.6; margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex; gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: var(--r-md); overflow: hidden;
  background: #f9fafb; margin-bottom: 1.5rem;
}
.newsletter-form input {
  flex: 1; background: transparent; border: none;
  padding: 0.75rem 1rem; color: var(--c-black);
  font-size: 0.87rem; font-family: inherit; outline: none;
}
.newsletter-form input::placeholder { color: #9ca3af; }
.newsletter-form button {
  background: var(--c-red); color: #fff;
  width: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: background var(--t-fast); flex-shrink: 0;
}
.newsletter-form button:hover { background: var(--c-red-light); }

.footer-licenses {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.footer-licenses span {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: #6b7280;
}
.footer-licenses i { color: var(--c-red); font-size: 0.65rem; }

.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid #e5e7eb;
}
.footer-bottom-container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: #6b7280; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.8rem; color: #9ca3af;
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--c-red); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-red); color: #fff;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(196,18,48,0.4);
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: all var(--t-base) var(--ease);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover   { background: var(--c-red-light); transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid        { grid-template-columns: repeat(2, 1fr); }
  .services-grid--6     { grid-template-columns: repeat(2, 1fr); }
  .blog-grid            { grid-template-columns: repeat(2, 1fr); }
  .footer-top-container { grid-template-columns: 1fr 1fr; }

  .process-steps { flex-direction: column; gap: 1rem; }
  .process-connector { transform: rotate(90deg); margin: 0; padding: 0; }

  .about-container      { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual         { min-height: 340px; }
  .residential-layout   { grid-template-columns: 1fr; gap: 3rem; }
  .contact-container    { grid-template-columns: 1fr; gap: 3rem; }

  .logo-tagline { display: none; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .section { padding: var(--sp-lg) 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--c-nav-bg);
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.15rem;
    border-bottom: 3px solid var(--c-red);
    transform: translateY(-120%);
    transition: transform var(--t-base) var(--ease);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 0.8rem 0.75rem; font-size: 0.9rem; color: var(--c-black); }
  .nav-phone { margin: 0.5rem 0 0; justify-content: center; }

  .hero-title    { font-size: 2.8rem; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

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

  .footer-top-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-container { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; flex-wrap: wrap; gap: 1rem; }

  .testimonial-card { padding: 2rem 1.5rem; }

  .logo-sub     { display: none; }
  .logo-name    { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.3rem; }
  .section-header { margin-bottom: 2.5rem; }
}
