/*
Theme Name: Corr Brothers
Theme URI: https://corrbrothers.co.uk
Author: Developer
Description: Professional WordPress theme for Corr Brothers Ltd - DVA Approved Tachograph Centre
Version: 2.3.2
Text Domain: corr-brothers
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Primary - Refined Red */
    --primary: #C41E3A;
    --primary-dark: #A01830;
    --primary-light: #E8364F;
    --primary-50: #FDF2F4;
    --primary-100: #FCE4E8;
    
    /* Neutrals - Warm Grays */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #868E96;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Accent */
    --accent: #1A365D;
    --accent-light: #2C5282;
    
    /* Semantic */
    --success: #38A169;
    --warning: #D69E2E;
    --error: #E53E3E;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows - Subtle */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.06), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--white);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   SVG ICON SIZING - Comprehensive Rules
   ============================================ */
/* General SVG fallback - prevent oversized inline icons */
svg:not([class]):not([width]) {
    width: 24px;
    height: 24px;
}

/* Service card icons */
.service-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

/* Why section icons */
.why-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

/* Hero feature checkmarks */
.hero-feature svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-light);
    flex-shrink: 0;
}

/* Hero badge star */
.hero-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Testimonial stars */
.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

/* Emergency banner icon */
.emergency-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

/* Emergency phone icon */
.emergency-phone svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

/* Header contact icons */
.header-contact-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Header badge icon */
.header-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Header phone icon */
.header-phone svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Button icons */
.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Service card link arrow */
.service-card-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Footer icons */
.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-light);
    flex-shrink: 0;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.dva-badge-footer svg {
    width: 24px;
    height: 24px;
    fill: var(--success);
    flex-shrink: 0;
}

/* Mobile nav icons */
.mobile-nav-close svg {
    width: 20px;
    height: 20px;
    fill: var(--gray-600);
}

.mobile-nav-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

/* Floating CTA icon */
.floating-phone svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* CTA section button icons */
.cta-btns .btn svg {
    width: 18px;
    height: 18px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--gray-600);
    font-size: 1.0625rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-900);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--gray-800);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--gray-900);
}

.btn-white:hover {
    background: var(--gray-50);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   SKIP LINK & EMERGENCY BANNER
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    z-index: 9999;
    font-weight: 500;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 10px;
}

.emergency-banner {
    background: var(--primary);
    color: var(--white);
    padding: 0.625rem 0;
    font-size: 0.875rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
}

.emergency-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.emergency-icon {
    display: flex;
    align-items: center;
}

.emergency-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.emergency-text {
    color: rgba(255, 255, 255, 0.95);
}

.emergency-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition);
}

.emergency-phone:hover {
    background: var(--gray-100);
    transform: scale(1.02);
}

.emergency-phone svg {
    fill: var(--primary);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 40px; /* Below emergency banner */
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

@media (max-width: 767px) {
    .site-header {
        top: 52px; /* Taller on mobile due to wrapping */
    }
}

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

.header-top {
    background: var(--gray-900);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    display: none;
}

@media (min-width: 768px) {
    .header-top {
        display: block;
    }
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
}

.header-contact-item:hover {
    color: var(--white);
}

.header-contact-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.header-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.header-main {
    padding: 0.875rem 0;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-cta {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .header-cta {
        display: flex;
    }
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: color var(--transition);
}

.header-phone:hover {
    color: var(--primary);
}

.header-phone svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.site-logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
}

.site-logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-menu > li > a:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.nav-menu > li.current-menu-item > a {
    color: var(--primary);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-menu .sub-menu a:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: var(--radius);
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    transition: right var(--transition-slow);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 199;
    transition: all var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.mobile-nav-close:hover {
    background: var(--gray-100);
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
    fill: var(--gray-600);
}

.mobile-nav-menu {
    padding: 1rem;
}

.mobile-nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-nav-menu a:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.mobile-nav-contact {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 1rem;
}

.mobile-nav-contact a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    border-radius: var(--radius);
}

.mobile-nav-contact a:hover {
    background: var(--gray-50);
}

.mobile-nav-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

/* ============================================
   HERO SECTION - REFINED
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 50%, var(--gray-900) 100%);
    padding: 160px 0 60px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: 180px 0 80px;
    }
}

/* Subtle gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 30%, rgba(196, 30, 58, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 380px;
        gap: 4rem;
    }
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 30, 58, 0.2);
    color: #f8a5b2;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(196, 30, 58, 0.3);
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f8a5b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
}

.hero-feature svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-light);
    flex-shrink: 0;
}

/* Hero Form Card */
.hero-form-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.375rem;
}

.hero-form-subtitle {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.service-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.service-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card-title a {
    color: var(--gray-900);
}

.service-card-title a:hover {
    color: var(--primary);
}

.service-card-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition);
}

.service-card-link:hover svg {
    transform: translateX(4px);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-item {
    text-align: center;
    padding: 1.5rem;
}

.why-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: var(--radius-xl);
}

.why-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.why-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.why-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--white);
}

.testimonials-section .section-label {
    color: var(--primary-light);
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-section .section-desc {
    color: rgba(255,255,255,0.7);
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-company {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-about {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.footer-heading {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.65);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-light);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.dva-badge-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.08);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
}

.dva-badge-footer svg {
    width: 24px;
    height: 24px;
    fill: var(--success);
    flex-shrink: 0;
}

.dva-badge-footer span {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.dva-badge-footer strong {
    display: block;
    color: var(--white);
    font-weight: 600;
}

/* ============================================
   PAGE HEADER (Blog/Archive)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
}

@media (min-width: 768px) {
    .page-header {
        padding: 180px 0 80px;
    }
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.page-description {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1rem;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    color: var(--white);
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 180px 0 80px;
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 30%, rgba(196, 30, 58, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-hero-desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.25rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb .sep {
    margin: 0 0.5rem;
}

.breadcrumb .current {
    color: var(--primary-light);
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-article {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .page-article {
        padding: 5rem 0;
    }
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.entry-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.entry-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content p.lead {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.75;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    color: var(--primary-dark);
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 1.25rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.375rem;
}

.entry-content li::marker {
    color: var(--primary);
}

.entry-content strong {
    font-weight: 600;
    color: var(--gray-900);
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--gray-600);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* WordPress Buttons */
.entry-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.entry-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    transition: all var(--transition);
}

.entry-content .wp-block-button__link:hover {
    background: var(--primary-dark);
}

.entry-content .is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.entry-content .is-style-outline .wp-block-button__link:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* Emergency styling */
.entry-content .emergency-heading {
    color: var(--primary);
}

.entry-content .emergency-number {
    font-size: 1.5rem;
    margin: 0.5rem 0 1.5rem;
}

.entry-content .emergency-number a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* ============================================
   PAGE CTA
   ============================================ */
.page-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
}

.page-cta-box {
    text-align: center;
    color: var(--white);
}

.page-cta-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-cta-box p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.75rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.page-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   SHORTCODE GRIDS
   ============================================ */
.services-list-grid,
.locations-list-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .services-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .locations-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-list-item,
.location-list-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.service-list-item:hover,
.location-list-item:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.service-list-item h3,
.location-list-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.service-list-item h3 a,
.location-list-item h3 a {
    color: var(--gray-900);
    text-decoration: none;
}

.service-list-item h3 a:hover,
.location-list-item h3 a:hover {
    color: var(--primary);
}

.service-list-item p,
.location-list-item p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.location-distance {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.8125rem !important;
}

.service-link,
.location-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

.service-link:hover,
.location-link:hover {
    text-decoration: underline;
}

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.img-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--gray-400);
}

.img-placeholder svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from { 
        opacity: 0; 
        transform: translateX(20px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    opacity: 0;
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in-left {
    opacity: 0;
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    opacity: 0;
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FLOATING CTA
   ============================================ */
.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
}

@media (min-width: 1024px) {
    .floating-cta {
        display: none;
    }
}

.floating-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}

.floating-phone:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.floating-phone svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }

.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--gray-50); }
.bg-dark { background-color: var(--gray-900); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .hero-form-card,
    .page-cta {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}
