/* ==========================================================================
   Integrity Fire Services – Main Stylesheet
   Font: Montserrat | Palette: Deep Red, Charcoal, White, Gold accent
   ========================================================================== */

/* Force font-display:swap for Font Awesome icon fonts loaded from CDN */
@font-face { font-family: "Font Awesome 6 Free"; font-display: swap; src: local("Font Awesome 6 Free"); }
@font-face { font-family: "Font Awesome 6 Brands"; font-display: swap; src: local("Font Awesome 6 Brands"); }

/* ---------- CSS Variables ---------- */
:root {
    --primary: #b30f14;
    --primary-dark: #73070b;
    --primary-light: #ef4a4a;
    --secondary: #160304;
    --secondary-light: #2a0608;
    --accent: #efb35a;
    --accent-dark: #cf8d34;
    --brand-black: #120203;
    --brand-black-soft: #220406;
    --brand-red: #961014;
    --brand-red-bright: #c9191e;
    --brand-gradient: linear-gradient(135deg, #120203 0%, #2a0608 34%, #6e090d 72%, #b30f14 100%);
    --brand-gradient-soft: linear-gradient(180deg, rgba(150, 16, 20, 0.08) 0%, rgba(18, 2, 3, 0.02) 100%);
    --brand-gradient-dark: linear-gradient(160deg, #090102 0%, #210405 38%, #5a080c 100%);
    --white: #FFFFFF;
    --off-white: #fbf6f6;
    --light-gray: #E9ECEF;
    --gray: #6C757D;
    --gray-600: #6C757D;
    --dark-gray: #343A40;
    --text: #212529;
    --text-light: #6C757D;
    --text-color: #212529;
    --bg-warm: #fff1f1;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --icon-sm: 1.5rem;
    --icon-md: 2rem;
    --icon-lg: 2.5rem;
    --icon-xl-size: 80px;
    --icon-surface-size: 50px;
    --z-navbar: 1000;
    --z-nav-menu: 999;
    --z-mobile-bottom-nav: 1100;
    --z-back-to-top: 1150;
    --z-chatbot: 1200;
    --z-flash: 1300;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    /* Subtle Maori-inspired line motif to add brand texture without reducing readability. */
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220' viewBox='0 0 320 220'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 110 C36 76 68 76 96 110 C124 144 156 144 184 110 C212 76 244 76 272 110 C286 128 301 137 316 140' stroke='%23961014' stroke-opacity='0.05' stroke-width='2'/%3E%3Cpath d='M8 140 C36 106 68 106 96 140 C124 174 156 174 184 140 C212 106 244 106 272 140 C286 158 301 167 316 170' stroke='%23961014' stroke-opacity='0.035' stroke-width='1.6'/%3E%3Cpath d='M52 98 C62 84 76 84 86 98 C96 112 110 112 120 98' stroke='%23c9191e' stroke-opacity='0.035' stroke-width='1.4'/%3E%3Cpath d='M200 128 C210 114 224 114 234 128 C244 142 258 142 268 128' stroke='%23c9191e' stroke-opacity='0.03' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 320px 220px;
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    max-width: 650px;
    margin: 20px auto 0;
    font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-call {
    background: #16a34a;
    color: var(--white);
    border-color: #16a34a;
}
.btn-call:hover {
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.05rem;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    background: linear-gradient(90deg, rgba(18, 2, 3, 0.96) 0%, rgba(42, 6, 8, 0.94) 52%, rgba(120, 10, 14, 0.92) 100%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: linear-gradient(90deg, rgba(12, 1, 2, 0.98) 0%, rgba(35, 5, 7, 0.97) 54%, rgba(107, 9, 13, 0.95) 100%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 18px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--white);
    font-weight: 600;
    flex-shrink: 0;
    width: 62px;
    isolation: isolate;
}

.nav-logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.brand-logo {
    display: block;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
    transition: var(--transition);
}

.brand-logo-nav {
    width: auto;
    height: 54px;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: normal;
    opacity: 1;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

.nav-logo:hover .brand-logo-nav {
    transform: translateY(-1px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
    opacity: 1;
}

.nav-logo strong {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(196, 30, 36, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 30%, rgba(201, 25, 30, 0.26) 0%, transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
        radial-gradient(circle at 65% 82%, rgba(150, 16, 20, 0.22) 0%, transparent 38%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='620' height='340' viewBox='0 0 620 340'%3E%3Cg fill='none' stroke='%23f2d6a2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 168 C42 126 84 126 118 168 C152 210 194 210 228 168 C262 126 304 126 338 168 C372 210 414 210 448 168 C482 126 524 126 558 168 C578 191 596 202 612 206' stroke-opacity='0.045' stroke-width='1.7'/%3E%3Cpath d='M8 206 C42 164 84 164 118 206 C152 248 194 248 228 206 C262 164 304 164 338 206 C372 248 414 248 448 206 C482 164 524 164 558 206 C578 229 596 240 612 244' stroke-opacity='0.03' stroke-width='1.3'/%3E%3Cpath d='M98 152 C110 134 126 134 138 152 C150 170 166 170 178 152' stroke-opacity='0.03' stroke-width='1.2'/%3E%3Cpath d='M372 196 C384 178 400 178 412 196 C424 214 440 214 452 196' stroke-opacity='0.028' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, auto, auto, 620px 340px;
    background-position: center, center, center, center;
    opacity: 0.72;
    z-index: 1;
}

.hero-maori-graphics {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-maori-wave {
    position: absolute;
    left: -8%;
    width: 116%;
    height: 190px;
    opacity: 0.14;
    filter: drop-shadow(0 0 10px rgba(242, 214, 162, 0.12));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='860' height='190' viewBox='0 0 860 190'%3E%3Cg fill='none' stroke='%23f2d6a2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 92 C44 54 88 54 120 92 C152 130 196 130 228 92 C260 54 304 54 336 92 C368 130 412 130 444 92 C476 54 520 54 552 92 C584 130 628 130 660 92 C692 54 736 54 768 92 C796 124 824 137 850 140' stroke-opacity='0.12' stroke-width='2'/%3E%3Cpath d='M12 126 C44 88 88 88 120 126 C152 164 196 164 228 126 C260 88 304 88 336 126 C368 164 412 164 444 126 C476 88 520 88 552 126 C584 164 628 164 660 126 C692 88 736 88 768 126 C796 158 824 171 850 174' stroke-opacity='0.08' stroke-width='1.4'/%3E%3Cpath d='M98 82 C110 64 128 64 140 82 C152 100 170 100 182 82' stroke-opacity='0.095' stroke-width='1.2'/%3E%3Cpath d='M508 116 C520 98 538 98 550 116 C562 134 580 134 592 116' stroke-opacity='0.085' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 860px 190px;
    background-repeat: repeat-x;
}

.hero-maori-wave-top {
    top: 74px;
    animation: hero-wave-drift 36s linear infinite;
}

.hero-maori-wave-bottom {
    bottom: 82px;
    transform: scaleY(-1);
    opacity: 0.09;
    animation: hero-wave-drift-reverse 42s linear infinite;
}

.hero-maori-lattice {
    position: absolute;
    inset: 16% 6% 18% 6%;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%23f2d6a2' stroke-width='1.05' stroke-opacity='0.18'%3E%3Cpath d='M0 110 L110 0 L220 110 L110 220 Z'/%3E%3Cpath d='M110 0 L110 220'/%3E%3Cpath d='M0 110 L220 110'/%3E%3Cpath d='M55 55 L165 165'/%3E%3Cpath d='M165 55 L55 165'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 220px 220px;
    mix-blend-mode: screen;
    animation: hero-lattice-float 44s linear infinite;
    will-change: transform;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(245, 166, 35, 0.4);
    border-radius: 50%;
    animation: float-particle linear infinite;
    will-change: transform, opacity;
}

.particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 20s; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 40%; animation-duration: 18s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; animation-duration: 22s; animation-delay: 1s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 70%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(6) { left: 85%; animation-duration: 19s; animation-delay: 5s; width: 3px; height: 3px; }
.particle:nth-child(7) { left: 15%; animation-duration: 21s; animation-delay: 6s; width: 5px; height: 5px; background: rgba(196,30,36,0.3); }
.particle:nth-child(8) { left: 65%; animation-duration: 17s; animation-delay: 7s; background: rgba(196,30,36,0.3); }

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

@keyframes hero-wave-drift {
    from { background-position-x: 0; }
    to { background-position-x: 860px; }
}

@keyframes hero-wave-drift-reverse {
    from { background-position-x: 860px; }
    to { background-position-x: 0; }
}

@keyframes hero-lattice-float {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-22px, 12px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.48);
}

.hero h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255,255,255,0.92);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Section Padding ---------- */
.section {
    padding: 100px 0;
    overflow-x: clip;
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.section-alt {
    background: var(--brand-gradient-soft);
}

.section-dark {
    background: var(--brand-gradient-dark);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255,255,255,0.7);
}

/* ---------- Feature Cards ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: var(--icon-xl-size);
    height: var(--icon-xl-size);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 36, 0.08);
    border-radius: 50%;
    font-size: var(--icon-md);
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.95rem;
}

.feature-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.feature-card-cta i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.feature-card-cta:hover {
    color: var(--primary-dark);
}
.feature-card-cta:hover i {
    transform: translateX(4px);
}

/* ---------- About / Owner Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 14px;
    background: linear-gradient(150deg, rgba(196, 30, 36, 0.14), rgba(245, 166, 35, 0.18));
    box-shadow: var(--shadow-lg);
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center 20%;
    background: transparent;
    border: 0;
}

.about-image-accent {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(196, 30, 36, 0.7);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.about-experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-badge .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-list {
    margin: 24px 0;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-weight: 500;
}

.about-list li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ---------- Product Cards ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-card-body p {
    font-size: 0.9rem;
    flex: 1;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid var(--light-gray);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card-footer .btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ---------- Services Cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 30px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-card-header i {
    font-size: var(--icon-lg);
    opacity: 0.9;
}

.service-card-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.3rem;
}

.service-card-body {
    padding: 30px;
}

.service-card-body p {
    margin-bottom: 20px;
}

.service-features {
    margin-bottom: 20px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.92rem;
}

.service-features li i {
    color: var(--success);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: var(--brand-gradient-dark);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.cta-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.cta-banner .btn {
    position: relative;
}

/* ---------- Contact Form ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 0.95rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: var(--transition);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(196, 30, 36, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-info-card {
    background: var(--secondary);
    border-radius: var(--radius);
    padding: 40px;
    color: var(--white);
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-info-icon {
    width: var(--icon-surface-size);
    height: var(--icon-surface-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 36, 0.2);
    border-radius: 50%;
    color: var(--primary-light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-text p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin: 0;
}

.contact-info-text a {
    color: rgba(255,255,255,0.88);
}

.contact-info-text a:hover {
    color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-search-input {
    max-width: 760px;
    margin: 0 auto 20px;
}

.faq-filter-btn {
    padding: 8px 20px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
}

.faq-filter-btn.active,
.faq-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(196, 30, 36, 0.05);
}

.faq-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
    gap: 16px;
}

.faq-question:hover {
    background: var(--off-white);
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer-inner a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.faq-answer-inner a:hover {
    color: var(--primary-dark);
}

/* ---------- Resources ---------- */
.resource-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.resource-featured-card {
    background: linear-gradient(160deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.resource-featured-card h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.resource-featured-card p {
    color: rgba(255,255,255,0.78);
}

.resource-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: var(--radius-xl);
    background: rgba(196, 30, 36, 0.16);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.resource-card-footer,
.resource-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.resource-card-footer {
    margin-top: 24px;
}

.resource-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    background: rgba(26, 26, 46, 0.08);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.resource-chip-accent {
    background: rgba(196, 30, 36, 0.1);
    color: var(--primary);
}

.resource-hero {
    padding-top: 140px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.resource-hero-copy {
    max-width: 820px;
}

.resource-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
    gap: 32px;
    align-items: start;
}

.resource-article,
.resource-sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.resource-article {
    padding: 40px;
}

.resource-content h2,
.resource-content h3 {
    margin: 28px 0 12px;
}

.resource-content h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.3;
}

.resource-content h3 {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.35;
}

.resource-content p,
.resource-content ul,
.resource-content ol {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.65;
}

.resource-content p {
    font-size: 1rem;
}

.resource-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.resource-content ul,
.resource-content ol {
    padding-left: 20px;
}

.resource-content li {
    margin-bottom: 6px;
}

.resource-content ul {
    list-style: disc;
}

.resource-content ol {
    list-style: decimal;
}

.resource-sidebar {
    display: grid;
    gap: 20px;
}

.resource-sidebar-card {
    padding: 28px;
}

.resource-sidebar-card h3 {
    margin-bottom: 12px;
}

.resource-link-list {
    display: grid;
    gap: 12px;
}

.resource-link-list a {
    color: var(--secondary);
    font-weight: 600;
}

.resource-link-list a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .resource-layout {
        grid-template-columns: 1fr;
    }

    .resource-article {
        padding: 28px;
    }
}

@media (max-width: 640px) {
    .resource-featured-card,
    .resource-article,
    .resource-sidebar-card {
        padding: 24px;
    }

    .resource-content h2,
    .resource-content h3 {
        margin: 22px 0 10px;
    }

    .resource-content p,
    .resource-content ul,
    .resource-content ol {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .resource-hero {
        padding-top: 120px;
    }
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.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;
}

/* ---------- Page Header ---------- */
.page-header {
    background: var(--brand-gradient-dark);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 24% 48%, rgba(201, 25, 30, 0.22) 0%, transparent 46%),
        radial-gradient(circle at 74% 26%, rgba(255, 255, 255, 0.06) 0%, transparent 32%);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    position: relative;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
}
.breadcrumb a:hover {
    color: var(--white);
}
.breadcrumb span {
    color: var(--accent);
}

/* ---------- Shop Sidebar / Filters ---------- */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.category-list li {
    margin-bottom: 4px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    background: rgba(196, 30, 36, 0.08);
    color: var(--primary);
}

.category-count {
    background: var(--light-gray);
    padding: 2px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
}

.category-list a.active .category-count,
.category-list a:hover .category-count {
    background: var(--primary);
    color: var(--white);
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 18px;
    padding-right: 44px;
    font-family: var(--font);
    font-size: 0.9rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 36px;
    border: none;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ---------- Product Detail ---------- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail-image img {
    width: 100%;
    height: clamp(260px, 50vw, 450px);
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-compliance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.product-detail-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-weight: 600;
}

.stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
}

.stock-dot.out {
    background: var(--danger);
}

/* ---------- Compliance Banner ---------- */

.compliance-banner {
    background: linear-gradient(180deg, rgba(18, 2, 3, 0.03) 0%, rgba(150, 16, 20, 0.08) 100%);
    padding: 40px 0;
}

.compliance-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.compliance-item {
    text-align: center;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.85rem;
}

.compliance-item i {
    display: block;
    font-size: var(--icon-md);
    margin-bottom: 8px;
    color: var(--primary);
}

/* ---------- Flash Messages ---------- */
.flash-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: var(--z-flash);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.flash-message {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: var(--z-back-to-top);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

body.has-chatbot .back-to-top {
    bottom: 92px;
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(180deg, #120203 0%, #1a0304 22%, #370607 62%, #5d080b 100%);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 10px;
    isolation: isolate;
}

.footer-logo i {
    color: var(--primary);
    font-size: 1.6rem;
}

.brand-logo-footer {
    width: 210px;
    height: auto;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.36));
    mix-blend-mode: screen;
    opacity: 0.96;
}

.footer-logo strong {
    color: var(--primary);
}

.footer-tagline {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    margin: 4px 0;
}

/* ---------- Key Facts Section ---------- */
.counter-section {
    padding: 60px 0;
    background: var(--secondary);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.counter-item {
    padding: 20px;
}

.counter-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.counter-icon i {
    animation: pulse-glow 2s ease-in-out infinite;
}

.counter-label-lg {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.counter-label {
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- Product Grid (3-col) ---------- */
.products-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ---------- Catalogue CTA ---------- */
.catalogue-cta {
    margin-top: 60px;
}

.catalogue-cta-inner {
    background: linear-gradient(135deg, var(--bg-warm) 0%, #fff5f5 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalogue-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
    animation: rotate-slow 20s linear infinite;
}

.catalogue-cta-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.catalogue-cta-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-color);
    position: relative;
}

.catalogue-cta-inner p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--text-light);
    position: relative;
}

/* ---------- Product Contact CTA ---------- */
.product-contact-cta {
    background: var(--bg-warm);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.product-contact-cta p {
    margin: 0;
    color: var(--text-color);
}

/* ---------- Industry Animations ---------- */

/* Pulse glow on icons */
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* Slow rotation for background effects */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fire flicker effect for hero badge icon */
.hero-badge i {
    animation: fire-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes fire-flicker {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.06); }
    50%  { transform: scale(0.97); }
    75%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Feature card icon hover animation */
.feature-card:hover .feature-icon i {
    animation: icon-bounce 0.5s ease;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Compliance banner scroll */
.compliance-logos {
    animation: none;
}

.compliance-item i {
    transition: all 0.3s ease;
}

.compliance-item:hover i {
    color: var(--accent);
    transform: scale(1.2) rotate(-5deg);
}

/* Service card fire-pulse border on hover */
.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 20px 40px rgba(220, 38, 38, 0.1);
}

/* Product card hover lift with glow */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.12);
}

/* Ember particles on hero section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(15,23,42,0.3), transparent);
    pointer-events: none;
}

/* Shield pulse on about badge — uses filter (composited) instead of box-shadow */
.about-experience-badge {
    animation: shield-pulse 3s ease-in-out infinite;
}

@keyframes shield-pulse {
    0%, 100% { filter: drop-shadow(0 4px 8px rgba(220, 38, 38, 0.30)); }
    50%       { filter: drop-shadow(0 4px 18px rgba(220, 38, 38, 0.55)); }
}

/* ---------- Related Products ---------- */
.related-products {
    margin-top: 80px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        height: 430px;
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .section {
        padding: 70px 0;
    }
    .services-grid,
    .features-grid,
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: var(--z-nav-menu);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-link {
        padding: 14px 20px;
        font-size: 1rem;
    }
    .brand-logo-nav {
        width: auto;
        height: 46px;
    }
    .brand-logo-footer {
        width: 184px;
        height: auto;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-stat-number {
        font-size: 1.6rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .section {
        padding: 60px 0;
    }
    .page-header {
        padding: 110px 0 40px;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .compliance-logos {
        flex-wrap: wrap;
        gap: 16px;
    }
    .compliance-item {
        font-size: 0.8rem;
    }
    .about-content {
        text-align: center;
    }
    .about-list li {
        justify-content: center;
    }
    .catalogue-cta-inner {
        padding: 30px 20px;
    }
    .cta-banner h2 {
        font-size: 1.5rem;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-detail-image img {
        height: auto;
        max-height: 320px;
        object-fit: contain;
    }
    .faq-filters {
        flex-wrap: wrap;
        gap: 8px;
    }
    .faq-filter-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
        min-height: 40px;
    }
    .contact-info-card {
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .section {
        padding: 50px 0;
    }
    .page-header {
        padding: 100px 0 30px;
    }
    .hero {
        min-height: 100svh;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-badge {
        font-size: 0.75rem;
    }
    .hero-stats {
        gap: 16px;
    }
    .hero-stat-number {
        font-size: 1.3rem;
    }
    .hero-stat-label {
        font-size: 0.65rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .products-grid-3 {
        grid-template-columns: 1fr;
    }
    .counter-grid {
        grid-template-columns: 1fr;
    }
    .counter-label-lg {
        font-size: 0.9rem;
    }
    .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
    }
    .btn-lg {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
    .service-card-body {
        padding: 20px;
    }
    .feature-card {
        padding: 24px;
    }
    .feature-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
        font-size: 1.7rem;
    }
    .about-experience-badge {
        width: 70px;
        height: 70px;
    }
    .about-experience-badge .number {
        font-size: 1.2rem;
    }
    .about-experience-badge .label {
        font-size: 0.55rem;
    }
    .footer-bottom {
        text-align: center;
    }
    .brand-logo-nav {
        width: auto;
        height: 42px;
    }
    .brand-logo-footer {
        width: 156px;
        height: auto;
    }
    .about-image-wrapper {
        padding: 10px;
    }
    .about-image {
        height: 340px;
    }
    .scroll-indicator {
        display: none;
    }

    .flash-container {
        top: auto;
        right: 16px;
        left: 16px;
        bottom: calc(98px + env(safe-area-inset-bottom));
        max-height: calc(55vh - env(safe-area-inset-bottom));
    }

    .flash-message {
        width: 100%;
        max-width: none;
        padding: 14px 16px;
    }
}

/* Touch device optimisations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .faq-question {
        min-height: 48px;
    }
    .faq-filter-btn {
        min-height: 44px;
        min-width: 44px;
    }
    .product-card:hover {
        transform: none;
    }
    .service-card:hover {
        border-color: transparent;
        box-shadow: var(--shadow);
    }
    .feature-card:hover .feature-icon i {
        animation: none;
    }
}

/* PWA standalone mode */
@media (display-mode: standalone) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.w-full { width: 100%; }
.justify-center { justify-content: center; }
.text-left { text-align: left; }
.text-danger { color: var(--danger); }
.is-hidden { display: none; }
.link-primary-inline {
    color: var(--primary);
    text-decoration: underline;
}
.btn-row-center {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.form-disclaimer {
    margin: 0 0 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-600);
}
.contact-card-intro {
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
}
.contact-social-block {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-social-block h4 {
    color: var(--white);
    margin-bottom: 12px;
}
.small-contact-line {
    margin-top: 16px;
}

@media (max-width: 480px) {
    .btn-row-center,
    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-row-center .btn,
    .btn-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================================== */
/* Floating Chatbot Widget */
/* ========================================================================== */

.ifs-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: var(--z-chatbot);
}

.ifs-chatbot-launcher {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #c41e24 0%, #7f1d1d 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 16px 35px rgba(127, 29, 29, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

/* Pulsing notification dot on the chat launcher */
.ifs-chat-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: #fbbf24;
    border-radius: 50%;
    border: 2px solid #fff;
    display: none;
    animation: chat-dot-pulse 1.8s ease-in-out infinite;
}
.ifs-chat-dot.visible { display: block; }
@keyframes chat-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.75; }
}

/* Proactive nudge speech bubble */
.ifs-chat-nudge {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 36px 12px 14px;
    box-shadow: 0 8px 24px rgba(15,23,42,.18);
    width: max-content;
    max-width: 260px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    display: none;
    animation: nudge-in 0.3s ease-out;
}
.ifs-chat-nudge.visible { display: block; }
.ifs-chat-nudge p { margin: 0; line-height: 1.4; }
.ifs-chat-nudge-close {
    position: absolute;
    top: 6px; right: 8px;
    background: none; border: none; cursor: pointer;
    font-size: 1rem; color: #9ca3af; line-height: 1;
    padding: 2px 4px;
}
.ifs-chat-nudge-close:hover { color: #374151; }
@keyframes nudge-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ifs-chatbot-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(127, 29, 29, 0.45);
}

.ifs-chatbot-panel {
    width: min(420px, calc(100vw - 24px));
    max-height: min(720px, calc(100vh - 90px));
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 28px 58px rgba(15, 23, 42, 0.24);
    display: none;
    margin-top: 10px;
    overflow: hidden;
}

.ifs-chatbot.open .ifs-chatbot-panel {
    display: flex;
    flex-direction: column;
    animation: chatbot-slide-up 0.2s ease-out;
}

@keyframes chatbot-slide-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ifs-chatbot-header {
    background: radial-gradient(circle at top right, #dc2626, #991b1b 60%, #7f1d1d);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.ifs-chatbot-header h3,
.ifs-chatbot-header .ifs-chatbot-title {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.ifs-chatbot-header p {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}

.ifs-chatbot-close {
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.ifs-chatbot-log {
    padding: 14px;
    overflow-y: auto;
    min-height: 220px;
    max-height: 360px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.ifs-chatbot-msg {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.93rem;
    line-height: 1.55;
}

.ifs-chatbot-msg-user {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    margin-left: 20px;
}

.ifs-chatbot-msg-assistant {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    margin-right: 20px;
}

.ifs-chatbot-meta {
    font-weight: 700;
    color: #334155;
    font-size: 0.76rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ifs-chatbot-content p,
.ifs-chatbot-content ul,
.ifs-chatbot-content ol,
.ifs-chatbot-content pre {
    margin: 0 0 8px;
}

.ifs-chatbot-content p:last-child,
.ifs-chatbot-content ul:last-child,
.ifs-chatbot-content ol:last-child,
.ifs-chatbot-content pre:last-child {
    margin-bottom: 0;
}

.ifs-chatbot-content ul,
.ifs-chatbot-content ol {
    padding-left: 20px;
    list-style: initial;
}

.ifs-chatbot-content code {
    background: #f1f5f9;
    border-radius: 4px;
    padding: 0 4px;
}

.ifs-chatbot-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 9px;
    overflow-x: auto;
}

.ifs-chatbot-content a {
    color: #b91c1c;
    text-decoration: underline;
}

.ifs-chatbot-sources {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

.ifs-chatbot-sources a {
    color: #475569;
    text-decoration: underline;
}

.ifs-chatbot-form,
.ifs-chatbot-contact {
    padding: 12px 14px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.ifs-chatbot-contact h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.ifs-chatbot-form label,
.ifs-chatbot-contact label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: #334155;
}

.ifs-chatbot-form textarea,
.ifs-chatbot-contact textarea,
.ifs-chatbot-contact input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ifs-chatbot-form textarea:focus,
.ifs-chatbot-contact textarea:focus,
.ifs-chatbot-contact input:focus {
    outline: 0;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.ifs-chatbot-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ifs-chatbot-send {
    border: 0;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
}

.ifs-chatbot-send:hover {
    background: #991b1b;
}

.ifs-chatbot-status {
    color: #64748b;
    font-size: 0.8rem;
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: var(--z-mobile-bottom-nav);
}

.mobile-bottom-nav-item {
    border: 0;
    background: transparent;
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    min-width: 72px;
    padding: 6px 8px;
    cursor: pointer;
}

.mobile-bottom-nav-item i {
    font-size: 1.1rem;
}

.mobile-bottom-nav-call {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 999px;
    margin-top: -24px;
    background: linear-gradient(135deg, #c41e24 0%, #991b1b 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(127, 29, 29, 0.45);
}

.mobile-bottom-nav-call i {
    font-size: 1.15rem;
}

.mobile-bottom-nav-call span {
    font-size: 0.72rem;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .ifs-chatbot {
        right: 12px;
        bottom: calc(86px + env(safe-area-inset-bottom));
    }

    .ifs-chatbot-launcher,
    .ifs-chat-nudge {
        display: none;
    }

    .ifs-chatbot-panel {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 84px);
    }

    .ifs-chatbot-log {
        max-height: calc(100vh - 340px);
    }

    .back-to-top {
        right: 14px;
        bottom: calc(160px + env(safe-area-inset-bottom));
    }

    /* Disable background-position-x animations on mobile (non-composited, hurt paint performance) */
    .hero-maori-wave {
        animation: none !important;
    }

    /* Hide decorative particles on mobile to reduce compositor layers and DOM rendering work */
    .hero-particles {
        display: none;
    }
}
