/*
Theme Name: Modern Extinguisher
Theme URI: https://heimanindustrial.com
Description: Heiman Fire Equipment — Modern Industrial Theme
Version: 1.0
Author: Heiman Fire Equipment
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Barlow:wght@300;400;500;600&display=swap');

/* =============================================================
   CSS VARIABLES
   ============================================================= */
:root {
    --black:    #080808;
    --dark:     #111114;
    --dark2:    #1a1a20;
    --dark3:    #242430;
    --red:      #e8000d;
    --red-hot:  #ff1a24;
    --red-dim:  #8c0008;
    --white:    #ffffff;
    --off-white:#f2f2f0;
    --gray:     #888898;
    --light:    #e8e8ec;

    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;

    --max-w: 1300px;
    --gutter: clamp(16px, 3vw, 40px);
    --radius: 0px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-display); cursor: pointer; border: none; background: none; }

/* =============================================================
   UTILITY
   ============================================================= */
.u-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.u-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
}
.u-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;
}

/* =============================================================
   HERO — Full-viewport, dark, powerful
   ============================================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 68vh;
    display: flex;
    align-items: flex-end;
    background: var(--black);
    overflow: hidden;
}
.hero-media {
    position: absolute; inset: 0;
    z-index: 0;
}
.hero-media video,
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
/* Gradient vignette: dark bottom-left, slight red top-right */
.hero-gradient {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(135deg, rgba(232,0,13,0.18) 0%, transparent 55%),
        linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.35) 55%, transparent 100%),
        linear-gradient(to right, rgba(8,8,8,0.55) 0%, transparent 60%);
}
/* Diagonal slash at the bottom */
.hero-slash {
    position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2;
    height: 80px; overflow: hidden;
}
.hero-slash::before {
    content: '';
    position: absolute; bottom: 0; left: -5%; right: -5%;
    height: 160px;
    background: var(--white);
    transform: skewY(-2.5deg);
    transform-origin: bottom left;
}

.hero-content {
    position: relative; z-index: 3;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter) 100px;
}
/* Eyebrow */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
}
.hero-eyebrow-line {
    width: 32px; height: 2px; background: var(--red);
}
.hero-eyebrow-text {
    font-family: var(--font-display);
    font-size: 12px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--red);
}
/* Big headline */
.hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(52px, 9vw, 110px);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero-h1 .outline {
    -webkit-text-stroke: 2px rgba(255,255,255,0.5);
    color: transparent;
}
.hero-h1 .red { color: var(--red); }

.hero-sub {
    font-family: var(--font-body);
    font-size: 18px; font-weight: 400;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--red);
    color: var(--white) !important;
    padding: 15px 32px;
    font-family: var(--font-display);
    font-size: 15px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--red-hot); transform: translateY(-2px); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent;
    color: var(--white) !important;
    padding: 14px 30px;
    font-family: var(--font-display);
    font-size: 15px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.25);
    transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* Stats bar on hero */
.hero-stats {
    display: flex; gap: 0; margin-top: 56px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    flex-wrap: wrap;
}
.hero-stat { padding-right: 40px; margin-right: 40px; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
    font-family: var(--font-display);
    font-size: 40px; font-weight: 900;
    color: var(--white); line-height: 1;
}
.hero-stat-num span { color: var(--red); }
.hero-stat-label {
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-top: 4px;
}

/* =============================================================
   BRAND BAR — ANSUL / AMEREX + CTA
   ============================================================= */
.brand-bar {
    background: var(--off-white);
    padding: 22px 0;
    border-bottom: 1px solid var(--light);
}
.brand-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.brand-logos { display: flex; align-items: center; gap: 24px; }
.brand-logos img { height: 38px; width: auto; }
.brand-sep {
    width: 1px; height: 30px;
    background: var(--light);
}
.brand-tagline {
    flex: 1; min-width: 200px;
    font-family: var(--font-display);
    font-size: 16px; font-weight: 600;
    color: var(--dark3); letter-spacing: 0.2px;
    text-transform: uppercase;
    text-align: center;
}
.btn-proposal {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red);
    color: var(--white) !important;
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-proposal:hover { background: var(--red-hot); }

/* =============================================================
   SERVICE CARDS — Modern 3-col, dark cards, edge-to-edge imagery
   ============================================================= */
.services-section {
    background: var(--dark);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
/* Subtle red glow top-right */
.services-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,0,13,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.services-header {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 52px; flex-wrap: wrap; gap: 20px;
}
.services-title-block {}
.section-eyebrow { margin-bottom: 10px; }
.section-headline {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    color: var(--white);
    letter-spacing: -0.5px;
}
.section-headline .red { color: var(--red); }
.section-headline .dim {
    -webkit-text-stroke: 1px rgba(255,255,255,0.25);
    color: transparent;
}
.services-link {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--red);
    display: flex; align-items: center; gap: 8px;
    transition: gap 0.2s;
}
.services-link:hover { gap: 14px; }

.services-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.svc-card {
    position: relative;
    overflow: hidden;
    background: var(--dark2);
    display: flex; flex-direction: column;
    /* Hover lift */
    transition: transform 0.35s var(--ease);
    cursor: pointer;
}
.svc-card:hover { transform: translateY(-6px); z-index: 2; }

/* Image area */
.svc-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.svc-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
    filter: brightness(0.7) saturate(0.8);
}
.svc-card:hover .svc-card-img img {
    transform: scale(1.06);
    filter: brightness(0.85) saturate(1);
}
/* Color stripe at top of image */
.svc-card-stripe {
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px; z-index: 2;
}
.svc-card:nth-child(1) .svc-card-stripe { background: var(--red); }
.svc-card:nth-child(2) .svc-card-stripe { background: #e84000; }
.svc-card:nth-child(3) .svc-card-stripe { background: #d46000; }

/* Number badge */
.svc-card-num {
    position: absolute; top: 16px; right: 16px; z-index: 3;
    font-family: var(--font-display);
    font-size: 72px; font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.07);
    pointer-events: none;
    user-select: none;
}
/* Label on image */
.svc-card-label {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
    padding: 12px 20px;
    background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, transparent 100%);
}
.svc-card-label h3 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
}
.svc-card-label h3 em {
    font-style: normal;
    color: #ffd166;
}

/* Card body */
/* Update the body to remove the jumping border */
.svc-card-body {
    padding: 22px 20px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* border-bottom removed from here to prevent jumping */
}

/* Ensure the cards in the grid are equal height */
.svc-card {
    height: 100%;
    position: relative; 
    display: flex;
    flex-direction: column;
}

/* THE FIX: This creates the red line at the absolute bottom of the card */
.svc-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--red);
    z-index: 10;
}
.svc-card:nth-child(1):hover .svc-card-body { border-bottom-color: var(--red); }
.svc-card:nth-child(2):hover .svc-card-body { border-bottom-color: #e84000; }
.svc-card:nth-child(3):hover .svc-card-body { border-bottom-color: #d46000; }

.svc-card-body h4 {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 10px;
}
.svc-card-body p {
    font-family: var(--font-body);
    font-size: 14px; font-weight: 400;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}
.svc-card-arrow {
    display: flex; align-items: center; gap: 6px;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--red);
    transition: gap 0.2s;
}
.svc-card:hover .svc-card-arrow { gap: 12px; }
/* 1. Ensure the card container is a flexbox that fills the height */
.service-card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%; /* Makes all cards match the height of the tallest one */
    padding-bottom: 4px; /* Creates space for the red rule at the very bottom */
}

/* 2. Force the content box to stretch to fill the card */
.service-content-nest {
    flex: 1; /* This pushes the box to the bottom of the service-card */
    display: flex;
    flex-direction: column;
    
}

/* 3. THE FIX: Create a pinned Red Rule at the absolute bottom */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--red);
    z-index: 10;
}

/* 4. Remove the old border that was jumping around */
.service-content-nest {
    border-bottom: none !important;
}
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; gap: 4px; }
}

/* =============================================================
   REVIEWS STRIP
   ============================================================= */
.reviews-section {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--light);
}
.reviews-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* =============================================================
   HERITAGE — Full-bleed background image layout
   ============================================================= */
.heritage-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    clear: both;
}

.heritage-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(75deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.heritage-container {
    position: relative;
    z-index: 2;
    max-width: 1330px;
    width: 100%;
    padding: 60px 40px;
    margin: 0 auto;
}

.heritage-container h2 {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    line-height: 1;
    letter-spacing: -1px;
}

.heritage-container h2 span {
    color: var(--red);
}

.heritage-body-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    max-width: 650px;
    border-left: 6px solid var(--red);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
}

.heritage-body-card p {
    color: #1a1a1a;
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.heritage-body-card .heritage-kicker-text {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 12px 0;
}

.heritage-body-card .heritage-tagline {
    color: #111;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    border-top: 2px solid #e8e8e8;
    padding-top: 16px;
}

.heritage-tagline span { color: var(--red); }

@media (max-width: 767px) {
    .heritage-container h2 { font-size: 36px; }
    .heritage-body-card { padding: 24px; }
    .heritage-body-card p { font-size: 16px; }
}

/* =============================================================
   TEAM SECTION — Cards with strong hover state
   ============================================================= */
.team-section {
    background: var(--off-white);
    padding: 90px 0;
}
.team-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.team-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    margin-bottom: 48px;
}
.team-headline {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.team-headline em {
    font-style: normal;
    color: var(--red);
}
.team-sub {
    font-family: var(--font-body);
    font-size: 15px; color: var(--gray);
    text-transform: uppercase; letter-spacing: 0.5px;
    font-weight: 500;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px)  { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .team-grid { grid-template-columns: 1fr; } }

.team-card {
    background: var(--white);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.team-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
    transform: translateY(-4px);
}
.team-card-photo {
    position: relative;
    aspect-ratio: 3 / 2.8;
    overflow: hidden;
    background: var(--dark3);
}
.team-card-photo img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease);
    filter: saturate(0.85);
}
.team-card:hover .team-card-photo img { transform: scale(1.05); }
/* Red accent bottom of photo */
.team-card-photo::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
    transform-origin: left;
}
.team-card:hover .team-card-photo::after { transform: scaleX(1); }

.team-card-body { padding: 18px 18px 20px; }
.team-card-name {
    font-family: var(--font-display);
    font-size: 21px; font-weight: 800;
    text-transform: uppercase;
    color: var(--dark); line-height: 1;
    margin-bottom: 4px;
}
.team-card-region {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 12px;
}
.team-card-contact { display: flex; flex-direction: column; gap: 3px; }
.team-card-contact a {
    font-family: var(--font-display);
    font-size: 14px; font-weight: 600;
    color: var(--dark3) !important;
    display: flex; align-items: center; gap: 7px;
    transition: color 0.2s;
}
.team-card-contact a:hover { color: var(--red) !important; }
.team-card-contact a svg { flex-shrink: 0; opacity: 0.4; }


/* =============================================================
   SCROLL ANIMATIONS
   ============================================================= */
.anim-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }

/* =============================================================
   WP EDITOR & MISC UTILITIES
   ============================================================= */
.index-blocks { min-height: 400px; }
.content-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.wp-block-column figure, .wp-block-column img, .wp-block-column video {
    width: 100% !important; margin: 0 !important;
}
@media (max-width: 782px) {
    .wp-block-columns { flex-wrap: wrap !important; }
    .wp-block-column  { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Blog */
.single-post-container { max-width: 860px; margin: 60px auto; padding: 0 var(--gutter); }
.blog-entry-content p { margin-bottom: 22px; line-height: 1.8; font-size: 17px; font-family: var(--font-body); }

/* Price list */
.ppe-price-container { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; max-width: var(--max-w); margin: 40px auto; padding: 0 var(--gutter); }
.price-section-header { background: var(--dark); display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; margin-bottom: 14px; }
.price-section-title { color: var(--white) !important; margin: 0 !important; font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.ppe-schedule-btn { background: var(--red); color: var(--white) !important; padding: 6px 14px; font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; border-bottom: 1px solid var(--light); padding-bottom: 6px; }
.price-item-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--dark); text-transform: uppercase; background: var(--white); padding-right: 8px; }
.price-item-value { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--red); background: var(--white); padding-left: 8px; }
@media (max-width: 900px) { .ppe-price-container { grid-template-columns: 1fr; } }
/* =============================================================
   HERO — Integrated Video & Content Box
   ============================================================= */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 500px; /* As requested, set to 300px */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black); /* Fallback color */
}

.hero-video-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    /* Integrated using your theme's dark color with transparency */
    background-color: rgba(8, 8, 8, 0.55); 
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1380px; /* was 1220px */
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-inner-box {
    width: 100%;
    height: 220px;
    background-color: rgba(17, 17, 20, 0.6); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: 4px solid var(--red);
    padding: 0 20px;
    box-sizing: border-box;
}
.hero-inner-box h1 {
    color: var(--white) !important;
    font-family: var(--font-display);
    margin: 0;
    font-size: clamp(32px, 5vw, 48px); 
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.hero-inner-box h1 span { 
    color: var(--red); /* Highlight color changed to your new Red variable */
}

.hero-inner-box p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: var(--font-body);
    margin: 10px 0 0;
    font-weight: 500;
    font-size: clamp(16px, 2vw, 20px);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Talk to a Local Technician — pulse button */
@keyframes pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(232, 0, 13, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(232, 0, 13, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 0, 13, 0); }
}

.hero-schedule-link {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid var(--red);
    padding: 10px 24px;
    border-radius: 2px;
    animation: pulse-red 2s infinite;
    transition: color 0.2s, background 0.2s;
}
.hero-schedule-link:hover {
    color: var(--white);
    background: var(--red);
    animation: none;
}

/* Hide mobile fallback image on desktop */
.hero-mobile-bg {
    display: none;
}

/* Mobile Optimization: Hides video to improve loading speed on phones */
@media (max-width: 900px) {
    .hero-video-section video {
        display: none;
    }

    .hero-video-section {
        background-image: url('/wp-content/uploads/2026/03/extinguisher-fallback.jpg');
        background-size: cover;
        background-position: center;
        background-color: var(--black);
        height: 300px;
        max-height: 300px;
    }

    .hero-overlay {
        display: none;
    }

    .hero-inner-box {
        height: auto;
        padding: 40px 20px;
    }
}
/* =============================================================
   SERVICES GRID & CARDS
   ============================================================= */
.services-section-wrapper { 
    width: 100%; 
    background-color: var(--off-white); 
    padding: 40px 0; 
    display: flex; 
    justify-content: center; 
}

.services-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
    width: 100%; 
    max-width: var(--max-w); 
    padding: 0 var(--gutter);
}

/* Desktop Grid: 3 Columns */
@media screen and (min-width: 1025px) {
    .services-grid { 
        flex-direction: row !important; 
        gap: 20px !important; 
    }
    .service-card { flex: 1; }
}

.service-card { 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    background: var(--white);
    transition: transform 0.3s var(--ease);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Top Header Bar */
.service-header-bar { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; 
    background-color: rgba(17, 17, 20, 0.85); /* var(--dark) with alpha */
    padding: 15px 20px; 
    z-index: 20; 
}

.service-header-bar h3 { 
    margin: 0; 
    color: var(--white); 
    font-family: var(--font-display); 
    font-size: 24px; 
    font-weight: 800; 
    text-transform: uppercase; 
}

.service-header-bar h3 span { color: var(--red); }

/* Image with Chevron Bottom Crop */
.service-image-chevron { 
    width: 100%; 
    aspect-ratio: 4/3; 
    overflow: hidden; 
    /* Pointing downward */
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 50% 100%, 0% 85%); 
    z-index: 5; 
}

.service-image-chevron img { 
    width: 100%; height: 100%; 
    object-fit: cover; 
    display: block; 
}

/* Content Box with Upward Notch */
.service-content-nest { 
    width: 100%; 
    background-color: var(--white); 
    padding: 60px 25px 30px; 
    margin-top: -38px; /* Pulls box up to meet image chevron */
    text-align: left; 
    position: relative; 
    z-index: 1; 
    /* Notched upward to fit into image */
    clip-path: polygon(0% 0%, 50% 12%, 100% 0%, 100% 100%, 0% 100%); 
    border-bottom: 4px solid var(--red);
}

.service-content-nest h4 { 
    color: var(--dark); 
    font-family: var(--font-display); 
    font-size: 22px; 
    font-weight: 800; 
    text-transform: uppercase; 
}

.service-content-nest p { 
    color: var(--gray); 
    font-family: var(--font-body); 
    font-size: 15px; 
    line-height: 1.5; 
    margin-top: 10px;
}
/* Industrial Team Section Styles */
.industrial-team-section {
    padding: 100px 0;
    background-color: var(--off-white);
}

.team-section-header {
    margin-bottom: 60px;
}

.header-accent {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.accent-line {
    width: 40px;
    height: 4px;
    background: var(--red);
}

.team-section-h2 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--dark);
}

.red-italic {
    color: var(--red);
    font-style: italic;
}

.team-section-sub {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Grid — 4 columns, 1300px wide */
.industrial-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .industrial-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .industrial-team-grid { grid-template-columns: 1fr; }
}

/* Member Card */
.member-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Fixed 266x346 image */
.member-media {
    position: relative;
    width: 100%;
    height: 346px;
    overflow: hidden;
    background: var(--dark2);
}

.member-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(20%);
    transition: transform 0.6s var(--ease);
}

.member-card:hover .member-media img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.member-name-bar {
    background: var(--dark);
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid var(--red);
}

.member-name-bar h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

.member-details {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: #fcfcfc;
    flex-grow: 1;
}

.member-region {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.comm-link {
    display: block;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark3);
    margin-bottom: 4px;
}

.comm-link.email {
    font-size: 14px;
    color: var(--gray);
    font-weight: 400;
}

.btn-review {
    margin-top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--light);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s var(--ease);
}

.btn-review:hover {
    border-color: var(--red);
    background: #f8f8f8;
    color: var(--dark);
}
.btn-review svg {
    flex-shrink: 0;
}
/* Service Card Link Styling */
.svc-link {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b32d34 !important;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.svc-link:hover {
    gap: 12px;
}

.svc-link svg {
    flex-shrink: 0;
}

/* Ensure equal height cards and bottom-aligned links */
.service-card {
    flex: 1;
    min-width: 300px;
    max-width: 393px;
    display: flex;
    flex-direction: column;
}

.service-content-nest {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content-nest p {
    flex-grow: 1;
}
/* Initial State */
.cta-link {
    color: #b32d34; /* Your theme red */
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Hover State */
.cta-link:hover {
    color: #ff1a24; /* Brighter red on hover */
    text-decoration: underline;
}
.hero-video-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black); /* Changed from 'background' to 'background-color' */
}

.hero-video-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(8, 8, 8, 0.55);
    z-index: 1;
}

/* Content Box Centering & Width */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-inner-box {
    width: 100%;
    height: 220px;
    background-color: rgba(17, 17, 20, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: 4px solid var(--red);
    padding: 0 20px;
}

/* The Fixed Link (Silent CTA) */
.hero-inner-box .silent-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background-color: var(--red);
    color: var(--white) !important;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.2s ease;
}

.hero-inner-box .silent-cta:hover {
    background-color: var(--red-hot);
}
/* Trustindex reviews constraint */
.reviews-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* --- SEO TEMPLATE CORE STYLES --- */
:root {
    --red: #e8000d;
    --dark: #1a1a1a;
    --white: #ffffff;
    --off-white: #f6f4f2;
    --gray: #666666;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'Barlow', sans-serif;
}

.ft-page { font-family: var(--font-body); background: #fff; }

/* HERO */
.ft-hero { position: relative; background: var(--dark); padding: 100px 0 80px; color: #fff; overflow: hidden; }
.ft-hero-inner { max-width: 1300px; margin: 0 auto; padding: 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.ft-hero h1 { font-family: var(--font-display); font-size: clamp(48px, 7vw, 88px); font-weight: 900; line-height: 0.88; text-transform: uppercase; margin: 0 0 24px; }
.ft-hero h1 span { color: var(--red); font-style: italic; }
.ft-hero-sub { font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 32px; }

/* BUTTONS */
.ft-btn-primary { background: var(--red); color: #fff; padding: 16px 28px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; text-decoration: none; display: inline-flex; }
.ft-btn-secondary { border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 16px 28px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; text-decoration: none; display: inline-flex; margin-left: 10px; }

/* STAT CARDS */
.ft-stat-card { background: rgba(255,255,255,0.05); border-left: 4px solid var(--red); padding: 20px 24px; margin-bottom: 20px; }
.ft-stat-card .stat-num { font-family: var(--font-display); font-size: 48px; font-weight: 900; line-height: 1; }
.ft-stat-card .stat-label { font-size: 13px; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* CALLOUT STRIP */
.ft-callout-strip { background: var(--dark); border-top: 4px solid var(--red); border-bottom: 4px solid var(--red); padding: 40px 0; }
.ft-callout-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.ft-callout-item h5 { color: #fff; font-family: var(--font-display); font-size: 18px; margin: 10px 0 5px; text-transform: uppercase; }
.ft-callout-item p { color: rgba(255,255,255,0.5); font-size: 13px; padding: 0 15px; }

/* SYSTEMS GRID */
.ft-systems-section { background: var(--dark); padding: 80px 30px; }
.ft-systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1300px; margin: 0 auto; }
.ft-system-card { background: rgba(255,255,255,0.04); padding: 30px; border-top: 3px solid rgba(255,255,255,0.1); }
.ft-system-card.is-red { border-top-color: var(--red); background: rgba(232,0,13,0.06); }
.ft-system-card h4 { color: #fff; font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }

/* TIMELINE */
.ft-timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1300px; margin: 40px auto; }
.ft-timeline-step { background: var(--off-white); padding: 30px; border-top: 4px solid #ddd; position: relative; }
.ft-timeline-step.is-red { border-top-color: var(--red); }
.ft-timeline-step-num { position: absolute; top: 10px; right: 15px; font-size: 50px; font-weight: 900; color: rgba(0,0,0,0.05); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .ft-hero-inner, .ft-callout-inner, .ft-systems-grid, .ft-timeline-grid { grid-template-columns: 1fr; }
}
.ac-form-wrap > p {
    margin: 0;
    padding: 0;
}

.ac-form-wrap > p > .forminator-custom-form {
    display: block;
}
/* ── FORMINATOR CONTACT FORM ── */
.ac-form-wrap {
    background: var(--off-white);
    border-top: 4px solid var(--red);
    padding: 36px 40px;
}

.forminator-custom-form-297 .forminator-row {
    display: block;
    margin-bottom: 16px;
}

.forminator-custom-form-297 .forminator-col {
    width: 100% !important;
    padding: 0 !important;
}

.forminator-custom-form-297 .forminator-label,
.forminator-custom-form-297 label {
    display: block !important;
    font-family: var(--font-display) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--dark) !important;
    margin-bottom: 6px !important;
}

.forminator-custom-form-297 input[type="text"],
.forminator-custom-form-297 input[type="email"],
.forminator-custom-form-297 input[type="tel"],
.forminator-custom-form-297 input[type="number"],
.forminator-custom-form-297 textarea,
.forminator-custom-form-297 select {
    display: block !important;
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    padding: 12px 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--dark) !important;
}

.forminator-custom-form-297 input[type="text"]:focus,
.forminator-custom-form-297 input[type="email"]:focus,
.forminator-custom-form-297 input[type="tel"]:focus,
.forminator-custom-form-297 textarea:focus {
    border-color: var(--red) !important;
}

.forminator-custom-form-297 .forminator-button,
.forminator-custom-form-297 .forminator-button-submit,
.forminator-custom-form-297 input[type="submit"],
.forminator-custom-form-297 button[type="submit"] {
    display: block !important;
    width: 100% !important;
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--font-display) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 18px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin-top: 8px !important;
}

.forminator-custom-form-297 .forminator-button:hover,
.forminator-custom-form-297 .forminator-button-submit:hover,
.forminator-custom-form-297 input[type="submit"]:hover,
.forminator-custom-form-297 button[type="submit"]:hover {
    background: var(--red-hot) !important;
}
/* ── SCHEDULE SERVICE PAGE FIXES ── */
.view-territory-btn2 {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(8,8,8,0.75);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 12px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
    z-index: 10;
}
.view-territory-btn2:hover { background: var(--red); border-color: var(--red); }
.rep-card-wrap.is-active .view-territory-btn2 { background: var(--red); border-color: var(--red); }

/* ── FORMINATOR INSIDE AC-FORM-WRAP ── */
.ac-form-wrap .forminator-row {
    display: block !important;
    margin-bottom: 16px !important;
}
.ac-form-wrap .forminator-col {
    width: 100% !important;
    padding: 0 !important;
}
.ac-form-wrap .forminator-label,
.ac-form-wrap label {
    display: block !important;
    font-family: var(--font-display) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--dark) !important;
    margin-bottom: 6px !important;
}
.ac-form-wrap input[type="text"],
.ac-form-wrap input[type="email"],
.ac-form-wrap input[type="tel"],
.ac-form-wrap input[type="number"],
.ac-form-wrap textarea,
.ac-form-wrap select {
    display: block !important;
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    padding: 12px 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--dark) !important;
}
.ac-form-wrap input:focus,
.ac-form-wrap textarea:focus {
    border-color: var(--red) !important;
}
.ac-form-wrap .forminator-button,
.ac-form-wrap .forminator-button-submit,
.ac-form-wrap input[type="submit"],
.ac-form-wrap button[type="submit"] {
    display: block !important;
    width: 100% !important;
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: var(--font-display) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 18px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin-top: 8px !important;
}
.ac-form-wrap .forminator-button:hover,
.ac-form-wrap .forminator-button-submit:hover,
.ac-form-wrap input[type="submit"]:hover,
.ac-form-wrap button[type="submit"]:hover {
    background: var(--red-hot) !important;
}
@media (max-width: 1024px) {
    .services-grid {
        align-items: center;
    }
    .service-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

#htr-trigger {
    z-index: 99999 !important;
    position: fixed !important;
    pointer-events: auto !important;
}
/* Hide carousel on desktop, show video */
.hero-mobile-carousel {
    display: none;
}

@media (max-width: 768px) {
    /* Hide video on mobile */
    .hero-video-section video {
        display: none;
    }

    /* Show and position carousel */
    .hero-mobile-carousel {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hero-carousel-track {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.2s ease;
    }

    .hero-carousel-slide {
        min-width: 100%;
        height: 100%;
        flex-shrink: 0;
    }

    .hero-carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Dots sit above overlay */
    .hero-carousel-dots {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }

    .hero-carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.45);
        cursor: pointer;
        padding: 0;
        transition: background 0.1s;
    }

    .hero-carousel-dot.active {
        background: #ffffff;
    }
}
.hero-video-section {
    position: relative;
    overflow: hidden;
}

.hero-mobile-carousel {
    display: none;
}

@media (max-width: 768px) {
    .hero-video-section video {
        display: none;
    }

    .hero-mobile-carousel {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hero-carousel-track {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.6s ease;
    }

    .hero-carousel-slide {
        min-width: 100%;
        height: 100%;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }

    .hero-carousel-slide img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

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

    .hero-carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.45);
        cursor: pointer;
        padding: 0;
        transition: background 0.3s;
    }

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