/* ===== CSS VARIABLES ===== */
:root {
    --primary-yellow: #FCB927;
    --primary-blue: #004A76;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #495057;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* WCAG AA COMPLIANT CONTRAST COLORS */
    --text-dark-high-contrast: #000000;          /* Black on light backgrounds */
    --text-light-high-contrast: #ffffff;         /* White on dark backgrounds */
    --text-dark-medium: #1a1a1a;                /* Very dark gray for high contrast */
    --gray-dark-readable: #212529;              /* Dark gray with 4.5:1 contrast */
    --gray-medium-readable: #495057;            /* Medium gray with good contrast */
    --gray-light-readable: #e9ecef;             /* Light gray for borders */
    --section-text-dark: #000000;               /* Section text on light backgrounds */
    --footer-text-light: #ffffff;               /* Footer text on dark backgrounds */
    --footer-text-secondary: #e9ecef;           /* Secondary footer text with contrast */
    --focus-color: #0066cc;
    --error-color: #d93025;
    --success-color: #137333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #e5a623;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border-color: rgba(255, 255, 255, 1);
}

.btn-full {
    width: 100%;
    margin-bottom: 0; /* Remove bottom margin */
    padding: 14px 30px;
    background-color: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
}

.btn-full:hover {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 3rem;
    text-shadow: none;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--section-text-dark);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.5;
}

.highlight {
    color: var(--primary-yellow);
    font-weight: 600;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--text-light);
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(252, 185, 39, 0.3);
    border-top: 3px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-light);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: none; /* Remove any border that could create the black line */
    margin-bottom: 0;
    padding-bottom: 0;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 15px 0;
    border-bottom: none; /* Ensure no border on top bar */
}

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

.top-bar-left {
    display: flex;
    align-items: center;
}

.top-bar-left .logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.top-bar-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Main Navigation */
.main-nav {
    padding: 1rem 0;
    border-bottom: none; /* Remove any border on navigation */
    border-top: none; /* Remove any border on navigation */
    margin-bottom: 0;
    padding-bottom: 1rem;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a,
.nav-menu a {
    color: #333333 !important;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.nav-menu li a:hover,
.nav-menu a:hover {
    color: var(--primary-blue) !important;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 450px; /* was 400px */
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 120px;
    overflow: hidden;
    padding: 3rem 0 2rem 0; /* was 2.5rem 0 1.75rem */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../Assets/Images/yvr-completed-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* IMPROVED CONTRAST: Strengthened overlay opacity from 0.55/0.45/0.20 to 0.70/0.60/0.25 */
    background: linear-gradient(135deg, rgba(0,74,118,0.70) 0%, rgba(0,74,118,0.60) 50%, rgba(252,185,39,0.25) 100%);
    z-index: -1;
}

/* Hero content and buttons centering */
.hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem; /* Move horizontal padding here instead of on hero section */
    margin-top: 1rem; /* was 0.75rem */
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.75rem; /* Reduced from 1rem */
    /* IMPROVED CONTRAST: Enhanced text shadow from single to multiple shadows */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin-top: 0.25rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem; /* Reduced from 2.5rem */
    opacity: 0.95; /* Increased from 0.9 for better visibility */
    /* IMPROVED CONTRAST: Enhanced text shadow for subtitle */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* IMPROVED BUTTON CONTRAST: Enhanced outline button for better visibility */
.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border-color: rgba(255, 255, 255, 1);
}

/* ===== LICENSE BANNER SECTION ===== */
.license-banner {
    padding: 22px 0; /* was 40px */
    background: linear-gradient(135deg, #004A76 0%, #0066cc 100%);
    color: var(--text-light);
    border-bottom: 4px solid var(--primary-yellow);
}

.license-content {
    display: flex;
    align-items: center;
    justify-content: center; /* was space-between to reduce excessive gap */
    max-width: 1000px;
    margin: 0 auto;
    gap: 1.25rem; /* Reduced from 3rem */
}

.license-badge {
    display: flex;
    align-items: center;
    gap: 1rem; /* Reduced from 1.5rem */
    background: rgba(252, 185, 39, 0.15);
    padding: 0.85rem 1.25rem; /* Reduced from 2rem 2.5rem */
    border-radius: 10px; /* Reduced from 16px */
    border: 3px solid var(--primary-yellow); /* Made border thicker for distinction */
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 2px rgba(252, 185, 39, 0.3), 0 4px 20px rgba(0, 0, 0, 0.1); /* Added glow effect */
}

.license-badge i {
    font-size: 1.6rem; /* Reduced from 3rem */
    color: var(--primary-yellow);
}

.license-text {
    display: flex;
    flex-direction: column;
}

.license-title {
    font-size: 1rem; /* Reduced from 1.5rem */
    font-weight: 700;
    color: var(--text-light); /* FIX: removed stray space in var reference */
    margin-bottom: 0.15rem;
}

.license-number {
    font-size: 1.15rem; /* Reduced from 1.8rem */
    font-weight: 800;
    color: var(--primary-yellow);
    letter-spacing: 1px;
}

.license-features {
    display: flex;
    gap: 1rem; /* Reduced from 2rem */
}

.license-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.license-feature i {
    color: var(--primary-yellow);
    font-size: 1rem;
}

.license-feature span {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Form License Badge Styles */
.form-license-badge {
    margin: 2.5rem 0 2rem 0; /* Increased spacing */
    display: flex;
    justify-content: center;
}

.license-verification {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 1.5rem; /* Increased gap for better spacing */
    background: rgba(255, 255, 255, 0.9) !important; /* Slightly more transparent */
    padding: 1.25rem 2rem; /* Adjusted padding for a sleeker look */
    border-radius: 16px;
    border: 2px solid var(--primary-blue) !important; /* Thinner border */
    box-shadow: 0 6px 20px rgba(0, 74, 118, 0.2) !important; /* Softer shadow */
    transition: var(--transition);
    backdrop-filter: blur(12px); /* Increased blur */
}

.license-verification:hover {
    transform: translateY(-4px); /* Increased lift */
    box-shadow: 0 10px 30px rgba(0, 74, 118, 0.3) !important; /* Deeper shadow on hover */
    background: rgba(255, 255, 255, 0.95) !important; /* Slightly less transparent on hover */
}

.license-verification i:first-child {
    font-size: 2.2rem; /* Slightly larger icon */
    color: var(--primary-blue) !important;
}

.license-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.license-label {
    font-size: 0.9rem; /* Slightly smaller for better hierarchy */
    font-weight: 700; /* Less aggressive weight */
    color: var(--primary-blue) !important;
    margin-bottom: 0.3rem; /* Increased margin */
    text-transform: uppercase;
    letter-spacing: 1.2px; /* Adjusted spacing */
}

.license-id {
    font-size: 1.3rem; /* Slightly smaller for balance */
    font-weight: 800; /* Less aggressive weight */
    color: var(--primary-blue) !important;
    letter-spacing: 1.2px; /* Adjusted spacing */
}

.verification-icons {
    display: flex;
    gap: 1.25rem; /* Adjusted gap */
    align-items: center; /* Vertically align icons */
}

.verification-icons i {
    font-size: 1.5rem; /* Slightly smaller for balance */
    color: var(--primary-yellow) !important;
    transition: var(--transition);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

.verification-icons i:hover {
    transform: scale(1.2); /* Increased hover scale */
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
    color: #ffc107 !important; /* Brighter yellow on hover */
}

/* Responsive Design for License Elements */
@media (max-width: 768px) {
    .license-banner {
        padding: 24px 0;
    }
    
    .license-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .license-badge {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }
    
    .license-badge i {
        font-size: 2.5rem;
    }
    
    .license-title {
        font-size: 1.3rem;
    }
    
    .license-number {
        font-size: 1.5rem;
    }
    
    .license-features {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .license-feature {
        justify-content: center;
        padding: 0.65rem 1rem;
    }
    
    .license-verification {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .verification-icons {
        justify-content: center;
    }
}

/* ===== STRATEGIC FIXES: CONTACT + PROCESS TIMELINE ===== */
/* Consolidated improvements appended for minimal disruption */

/* Contact section refinements */
.contact {
    /* Ensure consistent stacking context */
    position: relative;
}

.contact-content {
    align-items: start; /* Prevent vertical stretch distortion */
}

/* Prevent sticky sidebar overlapping when viewport is constrained */
@media (max-width: 1100px) {
    .contact-info {
        position: static;
        top: auto;
    }
}

/* Medium breakpoint (tablet) single-column layout to avoid cramped 2-col grid */
@media (max-width: 992px) {
    .contact-content { grid-template-columns: 1fr; }
    .contact-info { order: 2; }
    .contact-form-container { order: 1; }
}

/* Improve form field spacing consistency */
.contact-form .form-group:last-child { margin-bottom: 0; }

/* Highlight invalid fields more clearly */
.contact-form.submitted .error,
.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: var(--error-color) !important;
    background: #fff5f4;
}

/* Add subtle focus ring for better a11y */
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Roofing / service process timeline enhancements */
.process-timeline { position: relative; }
.process-step { position: relative; }

/* Vertical connector line */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px; /* half of step-number width (60px/2) */
    top: 70px; /* just below the circle */
    width: 4px;
    height: calc(100% - 70px);
    background: linear-gradient(var(--primary-blue), #0066cc);
    border-radius: 2px;
    opacity: 0.25;
}

/* Edge case: last step no connector */
.process-step:last-child::after { display: none; }

/* Step hover / focus uniform state */
.process-step:hover,
.process-step:focus-within {
    background: rgba(0,74,118,0.05);
    box-shadow: 0 8px 30px rgba(0,74,118,0.12);
}

/* Make each step keyboard focusable without extra markup */
.process-step { outline: none; }
.process-step:focus-visible { box-shadow: 0 0 0 3px rgba(0,74,118,0.25); }

/* Improve step-number contrast & animation */
.step-number { transition: transform .25s ease, background .25s ease; }
.process-step:hover .step-number,
.process-step:focus-within .step-number {
    background: var(--primary-yellow);
    color: var(--text-dark);
    transform: scale(1.05);
}

/* Mobile adjustments for process steps */
@media (max-width: 640px) {
    .process-step { flex-direction: column; }
    .process-step:not(:last-child)::after {
        display: none !important; /* Hide all connector lines on mobile */
    }
    .step-number { margin: 0 0 1rem 0; }
}

/* Reduced motion: remove timeline animations if any future ones are added */
@media (prefers-reduced-motion: reduce) {
    .step-number { transition: none; }
}

/* Defensive: ensure service-hero overlay always sits above background image */
.service-hero .hero-overlay { z-index: -1; }
.service-hero .service-hero-background { z-index: -2; }

/* Ensure dark mode keeps contact section readable */
@media (prefers-color-scheme: dark) {
    .contact-form, .contact-info { background: #ffffff !important; color: var(--text-dark-high-contrast); }
}

/* END strategic fixes */

/* ===== CONTACT SECTION BRAND VARIANT ===== */
.contact.brand-blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d63 100%) !important;
    position: relative;
}
.contact.brand-blue::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08), transparent 60%),
                radial-gradient(circle at 70% 65%, rgba(255,255,255,0.06), transparent 55%);
    opacity: .9;
}
.contact.brand-blue .section-title { color: #ffffff !important; }
.contact.brand-blue .contact-subtitle { color: #ffffff !important; opacity: 0.92; }
.contact.brand-blue .contact-form,
.contact.brand-blue .contact-info { background:#ffffff; box-shadow:0 10px 34px rgba(0,0,0,0.22); }
.contact.brand-blue .contact-item { background: rgba(0,74,118,0.06); }
.contact.brand-blue .contact-item:hover { background: rgba(0,74,118,0.1); }
.contact.brand-blue .schedule-btn { box-shadow:0 6px 28px rgba(0,0,0,0.35); }
.contact.brand-blue .schedule-btn:hover { box-shadow:0 10px 40px rgba(0,0,0,0.45); }
@media (prefers-color-scheme: dark) {
  .contact.brand-blue { background: linear-gradient(135deg, var(--primary-blue) 0%, #002f4e 100%) !important; }
}
/* ===== END CONTACT SECTION BRAND VARIANT ===== */

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background-color: #ffffff !important; /* Clean white background */
    color: var(--text-dark-high-contrast) !important;
}

.services .section-title {
    color: var(--primary-blue) !important;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 3rem;
}

.services .section-subtitle {
    font-size: 1.3rem;
    color: var(--gray-dark-readable) !important; /* Professional dark gray */
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 600;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--text-light) !important; /* Keep white cards */
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 74, 118, 0.1) !important; /* Blue-tinted shadow */
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-dark-high-contrast) !important;
    border: 1px solid rgba(0, 74, 118, 0.1); /* Subtle blue border */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 74, 118, 0.15) !important; /* Enhanced hover shadow */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
    transition: left 0.3s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-yellow);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    /* Add Font Awesome mobile fixes */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    display: block !important;
    -webkit-font-smoothing: antialiased !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Service image styling for services cards */
.service-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    transition: var(--transition);
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 74, 118, 0.15);
}

.service-card:hover .service-image {
    transform: scale(1.1);
    border-color: var(--primary-yellow);
    box-shadow: 0 6px 20px rgba(252, 185, 39, 0.3);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-title {
    color: var(--primary-blue) !important;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.75rem;
}

.service-description {
    color: var(--text-dark-high-contrast) !important; /* Force black text */
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-blue) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-blue);
    transition: var(--transition);
    font-size: 1.1rem;
}

.service-link:hover {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
    transform: translateY(-2px);
}

/* Featured service card styling */
.service-card.featured {
    border: 3px solid var(--primary-yellow);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    position: relative;
    transform: scale(1.02);
}

.service-card.featured::after {
    content: "FEATURED";
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-yellow);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-card.featured .service-title {
    color: var(--primary-blue) !important;
    font-size: 1.9rem;
}

.service-card.featured:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(252, 185, 39, 0.2) !important;
}

/* Secondary service card styling */
.service-card.secondary {
    opacity: 0.85;
    transform: scale(0.98);
}

.service-card.secondary .service-title {
    font-size: 1.6rem;
}

.service-card.secondary .service-description {
    font-size: 1rem;
}

.service-card.secondary:hover {
    opacity: 1;
    transform: translateY(-6px) scale(0.98);
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--primary-blue);
    color: var(--text-light) !important;
}

/* AGGRESSIVE FIX: Force all text within this section to be white */
.why-choose-us .feature-title,
.why-choose-us .feature-description {
    color: var(--text-light) !important;
}

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

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.feature-box {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* SPECIFIC FIX: Only target the Why Choose Us section icons */
.why-choose-us .feature-icon i {
    font-size: 2rem;
    color: var(--text-dark) !important;
    display: block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased !important;
}

.feature-title {
    color: var(--text-light) !important;
    margin-bottom: 1rem;
}

.feature-description {
    opacity: 0.9;
}

/* ===== BRANDS SECTION ===== */
.brands {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.brands .section-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 3rem;
}

.brands .section-subtitle {
    font-size: 1.3rem;
    color: var(--gray-dark-readable);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-weight: 600;
    line-height: 1.5;
}

.brands-carousel {
    position: relative;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: brandScroll 60s linear infinite;
    /* Dynamic width will be set by JavaScript */
    will-change: transform;
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    width: 280px;
    height: 140px;
    border: 2px solid rgba(0, 74, 118, 0.1);
}

.brand-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 74, 118, 0.2);
    border-color: var(--primary-yellow);
}

.brand-logo {
    max-height: 90px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: var(--transition);
}

.brand-item:hover .brand-logo {
    transform: scale(1.1);
}

@keyframes brandScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.brands-carousel:hover .brands-track {
    animation-play-state: paused;
}

/* Mobile responsive fixes for brands carousel */
@media (max-width: 768px) {
    .brands {
        padding: 60px 0;
    }
    
    .brands .section-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .brands .section-subtitle {
        font-size: 1.1rem;
        margin: 0 auto 3rem;
        padding: 0 1rem;
    }
    
    .brands-carousel {
        mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
        -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    }
    
    .brands-track {
        animation: brandScroll 40s linear infinite;
        gap: 2rem;
    }
    
    .brand-item {
        width: 220px;
        height: 120px;
        padding: 1rem 1.5rem;
    }
    
    .brand-logo {
        max-height: 70px;
        max-width: 180px;
    }
    
    /* Keep animation running on mobile */
    .brands-carousel:hover .brands-track {
        animation-play-state: running !important;
    }
}

@media (max-width: 480px) {
    .brands {
        padding: 50px 0;
    }
    
    .brands .section-title {
        font-size: 2rem;
    }
    
    .brands .section-subtitle {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }
    
    .brands-track {
        animation: brandScroll 35s linear infinite;
        gap: 1.5rem;
    }
    
    .brand-item {
        width: 180px;
        height: 100px;
        padding: 0.75rem 1rem;
    }
    
    .brand-logo {
        max-height: 60px;
        max-width: 140px;
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 80px 0;
    background-color: #ffffff;
}

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

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

.about-image {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.about-image svg {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.about-text h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 2.5rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-dark-high-contrast);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 74, 118, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.highlight-item i {
    color: var(--primary-yellow);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-item span {
    font-weight: 600;
    color: var(--text-dark-high-contrast);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23FCB927" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23004A76" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23FCB927" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 74, 118, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-slide {
    display: none;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.stars {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.stars i {
    transition: all 0.3s ease;
}

.stars i:hover {
    transform: scale(1.2);
}

.testimonial-text {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--text-dark-high-contrast) !important;
    font-weight: 500;
    position: relative;
    padding: 0 2rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-blue);
    font-family: Georgia, serif;
    position: absolute;
    opacity: 0.3;
}

.testimonial-text::before {
    top: -10px;
    left: 0;
}

.testimonial-text::after {
    bottom: -30px;
    right: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-author strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.testimonial-author span {
    font-size: 1rem;
    color: var(--gray-medium-readable);
    font-weight: 600;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 74, 118, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-form-container h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 2.5rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--gray-dark-readable);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 600;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 74, 118, 0.1);
    border: 1px solid rgba(0, 74, 118, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark-high-contrast);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: white;
    color: var(--text-dark-high-contrast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 118, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot field (spam protection) */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.schedule-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0066cc 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 74, 118, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    width: 100%;
    justify-content: center;
}

.schedule-btn:hover {
    background: linear-gradient(135deg, #0066cc 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 74, 118, 0.4);
}

.schedule-btn i {
    font-size: 1.3rem;
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.5rem;
    text-align: center;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.form-divider span {
    padding: 0 1.5rem;
    color: var(--gray-medium-readable);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 74, 118, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.form-privacy-notice i {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.form-privacy-notice small {
    color: var(--gray-dark-readable);
    line-height: 1.4;
    font-weight: 500;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 74, 118, 0.1);
    border: 1px solid rgba(0, 74, 118, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,74,118,0.08);
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 74, 118, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(0, 74, 118, 0.08);
    transform: translateX(5px);
}

.contact-item.urgent {
    border-left-color: var(--primary-yellow);
    background: rgba(252, 185, 39, 0.1);
}

.contact-item.urgent:hover {
    background: rgba(252, 185, 39, 0.15);
}

.contact-item i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item.urgent i {
    color: var(--primary-yellow);
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    display: block;
    font-weight: 700;
    color: var(--text-dark-high-contrast);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.contact-item small {
    display: block;
    color: var(--gray-medium-readable);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d63 100%);
    color: var(--footer-text-light);
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow) 0%, #e5a623 50%, var(--primary-yellow) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--footer-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-yellow);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(252, 185, 39, 0.1);
    border: 2px solid var(--primary-yellow);
    border-radius: 50%;
    color: var(--primary-yellow);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 185, 39, 0.4);
}

/* New: right column social placement */
.social-links.social-right { justify-content: flex-start; margin-top: 1.25rem; }
@media (max-width: 767px) { .social-links.social-right { justify-content: center; } }

.certifications {
    margin-top: 2rem;
}

.certifications p {
    color: var(--footer-text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.certification-logos {
    margin-top: 1.5rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 160px;
}

.cert-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(252, 185, 39, 0.2);
    aspect-ratio: 1;
}

.cert-logo-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: var(--primary-yellow);
}

.cert-logo {
    max-width: 85%;
    max-height: 85%;
    height: auto;
    width: auto;
    filter: brightness(1.2) contrast(1.1);
    opacity: 0.95;
    transition: var(--transition);
    object-fit: contain;
}

.cert-logo-item:hover .cert-logo {
    opacity: 1;
    filter: brightness(1.3) contrast(1.2);
    transform: scale(1.1);
}

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

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: var(--footer-text-secondary);
    font-size: 0.9rem;
}

.footer-bottom-content p {
    margin: 0;
    font-weight: 500;
}

.website-credit a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
}

.website-credit a:hover {
    text-decoration: underline;
}

/* ===== EXIT INTENT POPUP ===== */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 118, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.exit-popup.show {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #fff8e6 100%);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 74, 118, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 3px solid var(--primary-yellow);
}

.exit-popup.show .exit-popup-content {
    transform: scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-yellow);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 800;
}

.exit-popup-close:hover {
    background: var(--primary-blue);
    color: var(--primary-yellow);
    transform: scale(1.1);
}

.exit-popup-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.exit-popup-content p {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 600;
}

/* ===== THANK YOU POPUP ===== */
.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 118, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.thank-you-popup.show {
    opacity: 1;
    visibility: visible;
}

.thank-you-popup-content {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(50px) scale(0.9);
    transition: all 0.5s ease;
}

.thank-you-popup.show .thank-you-popup-content {
    transform: translateY(0) scale(1);
}

.thank-you-icon {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffe28c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 10px rgba(252,185,39,0.45));
}

.thank-you-popup-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 800;
}

.thank-you-popup-content p {
    color: var(--text-dark-high-contrast);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

.thank-you-info {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    width: 20px;
    flex-shrink: 0;
}

.info-item span {
    color: var(--text-dark-high-contrast);
    font-weight: 600;
}

.info-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
}

.info-item a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.thank-you-close {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0066cc 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 74, 118, 0.3);
}

.thank-you-close:hover {
    background: linear-gradient(135deg, #0066cc 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 74, 118, 0.4);
}

/* === THANK YOU POPUP (Refreshed Styling - No dark/gray blocks) === */
/* Overrides to remove dark/gray panels and introduce lighter brand palette */
.thank-you-popup {
    background: radial-gradient(circle at 30% 30%, rgba(0,102,204,0.9), rgba(0,74,118,0.95));
}

.thank-you-popup-content {
    background: linear-gradient(155deg, #ffffff 0%, #fdf9ef 55%, #ffffff 100%);
    box-shadow: 0 20px 60px rgba(0,74,118,0.35);
    border: 2px solid rgba(0,74,118,0.15);
}

.thank-you-icon {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffe28c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 10px rgba(252,185,39,0.45));
}

.thank-you-popup-content h3 {
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.thank-you-popup-content p {
    color: var(--primary-blue);
    font-weight: 600;
}

.thank-you-info {
    background: linear-gradient(135deg, rgba(0,74,118,0.07) 0%, rgba(252,185,39,0.18) 100%);
    border: 2px solid rgba(0,74,118,0.25);
    box-shadow: 0 6px 24px rgba(0,74,118,0.18);
}

.thank-you-info .info-item {
    margin-bottom: 1.1rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,74,118,0.15);
}
.thank-you-info .info-item:last-child { border-bottom: none; }

.thank-you-info .info-item i {
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0066cc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,74,118,0.35));
}

.thank-you-info .info-item span,
.thank-you-info .info-item a {
    color: var(--primary-blue);
}

.thank-you-info .info-item a:hover { color: var(--primary-yellow); }

.thank-you-close {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #ffcf51 100%);
    color: #003b5c;
    box-shadow: 0 8px 26px rgba(252,185,39,0.45);
    border: 2px solid var(--primary-yellow);
}

.thank-you-close:hover {
    background: linear-gradient(135deg, #ffcf51 0%, var(--primary-yellow) 100%);
    color: #002f49;
    box-shadow: 0 10px 34px rgba(252,185,39,0.6);
}

@media (prefers-color-scheme: dark) {
    .thank-you-popup-content {
        background: linear-gradient(155deg, #ffffff 0%, #fff8e6 60%, #ffffff 100%) !important;
    }
    .thank-you-info { border-color: rgba(0,74,118,0.4); }
}
/* === End refreshed thank you popup styling === */

/* ===== SERVICE PAGE SPECIFIC STYLES ===== */
.service-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 160px;
    text-align: center;
    color: var(--text-light);
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d63 100%);
    overflow: hidden; /* Prevent any background bleeding */
}

.service-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Ensure no gaps between header and service hero */
.service-hero {
    margin-top: 160px; /* Exactly match header height */
    position: relative;
}

/* Remove any potential gaps from header */
.header {
    margin-bottom: 0;
    padding-bottom: 0;
}

.main-nav {
    margin-bottom: 0;
    padding-bottom: 1rem;
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.service-icon {
    width: 100px;
    height: 100px;
    background: rgba(252, 185, 39, 0.2);
    border: 3px solid var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(252, 185, 39, 0.3);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-yellow);
}

.service-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.service-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.5;
}

.service-details {
    padding: 80px 0;
    background: white;
}

.service-content {
    max-width: 1000px;
    margin: 0 auto;
}

.service-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.service-intro h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.service-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark-high-contrast);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 74, 118, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(0, 74, 118, 0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 74, 118, 0.15);
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-yellow);
    transform: scale(1.1);
}

.feature-card .feature-icon i {
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    color: var(--text-dark);
}

.feature-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dark-high-contrast);
    line-height: 1.6;
    font-weight: 500;
}

.service-process {
    padding: 80px 0;
    background: var(--gray-light);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 74, 118, 0.1);
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0,74,118,0.15);
    background: rgba(0,74,118,0.04);
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px; /* half of step-number width (60px/2) */
    top: 70px; /* just below the circle */
    width: 4px;
    height: calc(100% - 70px);
    background: linear-gradient(var(--primary-blue), #0066cc);
    border-radius: 2px;
    opacity: 0.25;
}

.process-step:last-child::after {
    display: none;
}

.process-step:hover,
.process-step:focus-within {
    background: rgba(0,74,118,0.05);
    box-shadow: 0 8px 30px rgba(0,74,118,0.12);
}

.process-step:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,74,118,0.25);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 74, 118, 0.3);
    transition: transform .25s ease, background .25s ease;
}

.process-step:hover .step-number,
.process-step:focus-within .step-number {
    background: var(--primary-yellow);
    color: var(--text-dark);
    transform: scale(1.05);
}

.step-content h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-dark-high-contrast);
    line-height: 1.6;
    font-weight: 500;
}

@media (max-width: 640px) {
    .process-step {
        flex-direction: column;
    }
    .process-step:not(:last-child)::after {
        display: none !important; /* Hide all connector lines on mobile */
    }
    .step-number {
        margin: 0 0 1rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-number {
        transition: none;
    }
}

.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d63 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

/* ===== SCHEDULE PAGE STYLES ===== */
.schedule-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d63 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 160px;
    text-align: center;
}

.schedule-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.schedule-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.calendly-section {
    padding: 60px 0;
    background: white;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.calendly-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 74, 118, 0.1);
    border: 1px solid rgba(0, 74, 118, 0.1);
}

.customer-info-card {
    background: rgba(0, 74, 118, 0.05);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-header i {
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.info-header h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.info-content {
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.info-label {
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 100px;
}

.info-value {
    color: var(--text-dark-high-contrast);
    font-weight: 500;
}

.edit-info-btn {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.edit-info-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.alternative-contact {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.alt-contact-content h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.alt-contact-content p {
    font-size: 1.2rem;
    color: var(--text-dark-high-contrast);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 500;
}

.alt-contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.no-data-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 74, 118, 0.1);
}

.no-data-message h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.no-data-message p {
    color: var(--text-dark-high-contrast);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== UTILITY CLASSES ===== */
.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;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
    font-weight: 600;
}

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

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 10px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== TOP CONTACT STYLES ===== */
.top-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.top-contact:hover {
    color: var(--primary-yellow);
    transform: translateY(-1px);
}

.top-contact i {
    font-size: 1rem;
}

section[id] { scroll-margin-top: 140px; }

/* Ensure consistent contact section visuals regardless of user color prefs */
.contact-form, .contact-info { background-color: #ffffff; }
.contact-info { box-shadow: 0 4px 20px rgba(0,74,118,0.08); }

/* Roofing process steps layout fix */
.process-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.process-step { transition: var(--transition); }
.process-step:hover { /* Remove lateral shift that misaligns outline */
    transform: none; /* previously translateX */
    box-shadow: 0 8px 30px rgba(0,74,118,0.15);
    background: rgba(0,74,118,0.04);
}

/* ===== Roofing Page Process Theming (brand-aligned, neutral light) ===== */
.roofing-page .service-process {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d63 100%) !important;
    position: relative;
}

/* Roofing page hero background image override - MULTIPLE SELECTORS FOR SPECIFICITY */
body.roofing-page .service-hero .service-hero-background,
.roofing-page .service-hero .service-hero-background,
body.roofing-page .service-hero-background,
.roofing-page .service-hero-background {
    background-image: url('../Assets/Images/Roofinghero.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Hero background setup for Leesburg pages */
.roofing-hero .service-hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../Assets/Images/Roofinghero.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
}

.roofing-hero .hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(0, 74, 118, 0.8) 0%, rgba(0, 74, 118, 0.7) 50%, rgba(252, 185, 39, 0.3) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Storm damage variant overlay */
.storm-damage-hero .hero-overlay.storm-overlay {
    background: linear-gradient(135deg, rgba(0, 74, 118, 0.85) 0%, rgba(220, 53, 69, 0.7) 50%, rgba(252, 185, 39, 0.3) 100%) !important;
}

/* Headings on blue background: white for contrast */
.roofing-page .service-process .section-title,
.roofing-page .service-process .section-subtitle { 
    color: #ffffff !important; 
}
.roofing-page .service-process .section-subtitle { 
    opacity: 0.95; 
}

/* White cards remain; strengthen separation */
.roofing-page .service-process .process-step {
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 6px solid var(--primary-yellow);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.roofing-page .service-process .process-step:hover,
.roofing-page .service-process .process-step:focus-within {
    background: #ffffff;
    box-shadow: 0 10px 34px rgba(0,0,0,0.22);
}
/* Connector line now uses yellow accent for continuity */
.roofing-page .service-process .process-step:not(:last-child)::after {
    background: linear-gradient(var(--primary-yellow), #ffd75e);
    opacity: 0.55;
}

/* Hide connector lines on mobile for roofing page */
@media (max-width: 640px) {
    .roofing-page .service-process .process-step:not(:last-child)::after {
        display: none !important;
    }
}

.roofing-page .service-process .step-number {
    background: var(--primary-blue);
    color: #ffffff;
    border: 3px solid #ffffff;
}
.roofing-page .service-process .process-step:hover .step-number,
.roofing-page .service-process .process-step:focus-within .step-number {
    background: var(--primary-yellow);
    color: var(--text-dark);
}
.roofing-page .service-process .step-content h3 { color: var(--primary-blue); }
.roofing-page .service-process .step-content p { color: var(--text-dark-high-contrast); }

@media (prefers-color-scheme: dark) {
  .roofing-page .service-process {
      background: linear-gradient(135deg, var(--primary-blue) 0%, #002f4e 100%) !important;
  }
  .roofing-page .service-process .section-title,
  .roofing-page .service-process .section-subtitle { color: #ffffff !important; }
  .roofing-page .service-process .process-step { background: #ffffff !important; }
}
/* ===== End Roofing Page Process Theming ===== */

/* ===== FORM ERROR MESSAGES ===== */
.error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.error-message.show {
    display: block;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color) !important;
    background: #fff5f4;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: var(--error-color) !important;
    background: #fff5f4;
}

/* Success state */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: var(--success-color);
    background: #f0f9ff;
}

.form-group input[aria-invalid="false"]:valid,
.form-group select[aria-invalid="false"]:valid,
.form-group textarea[aria-invalid="false"]:valid {
    border-color: var (--success-color);
    background: #f0f9ff;
}

/* ===== MOBILE DROPDOWN FIX ===== */
/* Ensure dropdown options have white background on mobile for better contrast */
@media (max-width: 768px) {
    .form-group select {
        background-color: #ffffff !important;
        color: var(--text-dark-high-contrast) !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .form-group select option {
        background-color: #ffffff !important;
        color: var (--text-dark-high-contrast) !important;
        padding: 8px 12px;
    }
    
    /* Force white background for all select elements on mobile */
    select {
        background-color: #ffffff !important;
        color: var(--text-dark-high-contrast) !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004A76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 16px !important;
        padding-right: 40px !important;
    }
    
    select option {
        background-color: #ffffff !important;
        color: var(--text-dark-high-contrast) !important;
        padding: 8px 12px !important;
    }
    
    /* Handle selected/highlighted options that browsers may force to have dark backgrounds */
    select option:checked,
    select option:hover,
    select option[selected] {
        background-color: var(--primary-blue) !important;
        color: #ffffff !important;
    }
    
    /* Alternative approach for browsers that override option styling */
    select option:focus {
        background-color: var(--primary-blue) !important;
        color: #ffffff !important;
    }
    
    /* Handle active/highlighted state */
    select option:active {
        background-color: var(--primary-blue) !important;
        color: #ffffff !important;
    }
    
    /* iOS Safari specific fixes */
    select::-webkit-inner-spin-button,
    select::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }
    
    /* Firefox specific fixes */
    select:-moz-focusring {
        color: transparent !important;
        text-shadow: 0 0 0 var(--text-dark-high-contrast) !important;
    }
    
    /* Additional mobile-specific styling for better contrast */
    @supports (-webkit-touch-callout: none) {
        /* iOS Safari specific */
        select option {
            background: #ffffff !important;
            color: #000000 !important;
        }
        
        select option:checked {
            background: var(--primary-blue) !important;
            color: #ffffff !important;
        }
    }
}

/* ===== PROJECT GALLERY ===== */
.project-gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.project-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23FCB927" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23004A76" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23FCB927" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 74, 118, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 74, 118, 0.15);
}

.before-after-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 300px;
    overflow: hidden;
}

.before-image,
.after-image {
    position: relative;
    overflow: hidden;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .before-image img,
.gallery-item:hover .after-image img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.before-label {
    background: rgba(220, 53, 69, 0.9);
    color: white;
}

.after-label {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.project-info {
    padding: 1.5rem;
    text-align: center;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.gallery-cta p {
    font-size: 1.1rem;
    color: var(--text-dark-high-contrast);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Mobile responsiveness for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-item {
        margin: 0 1rem;
    }
    
    .before-after-container {
        height: 250px;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
    
    .project-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .before-after-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: 400px;
    }
    
    .image-label {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ===== END PROJECT GALLERY ===== */

/* ===== EXTERIORS PAGE STYLING ===== */
body.exteriors-page .service-hero .service-hero-background,
.exteriors-page .service-hero .service-hero-background,
body.exteriors-page .service-hero-background,
.exteriors-page .service-hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../Assets/Images/Exteriors.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
}

.exteriors-page .service-hero {
    position: relative !important;
}

.exteriors-page .service-hero .hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(0, 74, 118, 0.8) 0%, rgba(0, 74, 118, 0.7) 50%, rgba(252, 185, 39, 0.3) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.exteriors-page .service-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

.exteriors-page .service-hero .service-icon {
    color: var(--primary-green, #28a745);
}

.exteriors-page .service-process {
    background: linear-gradient(135deg, #28a745 0%, #20523c 100%) !important;
}

.exteriors-page .service-process .section-title,
.exteriors-page .service-process .section-subtitle { 
    color: #ffffff !important; 
}

.exteriors-page .service-process .process-step {
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 6px solid var(--primary-yellow);
}

.exteriors-page .service-process .process-step:hover,
.exteriors-page .service-process .process-step:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(40, 167, 69, 0.15);
}

.exteriors-page .service-process .step-number {
    background: linear-gradient(135deg, #28a745, #20523c);
    color: #ffffff;
}

.exteriors-page .service-process .step-content h3 { 
    color: #28a745; 
}
/* ===== END EXTERIORS PAGE STYLING =====*/

/* ===== WINDOWS PAGE STYLING ===== */
body.windows-page .service-hero .service-hero-background,
.windows-page .service-hero .service-hero-background,
body.windows-page .service-hero-background,
.windows-page .service-hero-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('../Assets/Images/windowshero.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: -2 !important;
}

.windows-page .service-hero {
    position: relative !important;
}

.windows-page .service-hero .hero-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(0, 74, 118, 0.8) 0%, rgba(0, 74, 118, 0.7) 50%, rgba(252, 185, 39, 0.3) 100%) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.windows-page .service-hero .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Windows page process section styling */
.windows-page .service-process {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d63 100%) !important;
}

.windows-page .service-process .section-title,
.windows-page .service-process .section-subtitle { 
    color: #ffffff !important; 
}

.windows-page .service-process .process-step {
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 6px solid var(--primary-yellow);
}

.windows-page .service-process .process-step:hover,
.windows-page .service-process .process-step:focus-within {
    background: #ffffff;
    box-shadow: 0 10px 34px rgba(0,0,0,0.22);
}

.windows-page .service-process .step-number {
    background: var(--primary-blue);
    color: #ffffff;
}

.windows-page .service-process .step-content h3 { 
    color: var(--primary-blue); 
}
/* ===== END WINDOWS PAGE STYLING ===== */

/* ===== DIRECT WINDOWS HERO BACKGROUND (Fallback) ===== */
/* This ensures the windows hero image shows up even without body class */
.service-hero .service-hero-background {
    background-image: url('../Assets/Images/windowshero.webp') !important;
}

/* Override for specific pages */
.roofing-page .service-hero .service-hero-background {
    background-image: url('../Assets/Images/Roofinghero.webp') !important;
}

.exteriors-page .service-hero .service-hero-background {
    background-image: url('../Assets/Images/Exteriors.webp') !important;
}
/* ===== END DIRECT HERO BACKGROUNDS ===== */

/* ===== UNIVERSAL MOBILE CONNECTOR LINE FIX ===== */
/* Force hide ALL connector lines on mobile with maximum specificity */
@media (max-width: 640px) {
    .process-step:not(:last-child)::after,
    .service-process .process-step:not(:last-child)::after,
    .roofing-page .service-process .process-step:not(:last-child)::after,
    .exteriors-page .service-process .process-step:not(:last-child)::after,
    .windows-page .service-process .process-step:not(:last-child)::after {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
    }
}
/* ===== END UNIVERSAL MOBILE CONNECTOR LINE FIX ===== */

/* ===== FONT AWESOME MOBILE FIX - FINAL SOLUTION ===== */
/* This section must be at the END of styles.css for maximum CSS specificity */
@media (max-width: 767px) {
    /* FONT AWESOME MOBILE FIXES - UNIVERSAL */
    /* Ensure ALL Font Awesome icons display properly on mobile */
    i[class*="fa-"],
    .fas,
    .far,
    .fab,
    .fal,
    .fad {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: inline-block !important;
        -webkit-font-smoothing: antialiased !important;
        font-style: normal !important;
        font-variant: normal !important;
        text-rendering: auto !important;
        line-height: 1 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Specific fixes for hero section icons */
    .service-hero .service-icon i,
    .hero .loading-logo i,
    .loading-content i {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: block !important;
        -webkit-font-smoothing: antialiased !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Specific fixes for navigation and header icons */
    .top-contact i,
    .nav-menu i,
    .header i {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: inline-block !important;
        -webkit-font-smoothing: antialiased !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Specific fixes for feature/service card icons - ENHANCED FOR SERVICE PAGES */
    .feature-icon i,
    .service-icon i,
    .feature-card .feature-icon i,
    .why-choose-us .feature-icon i,
    .service-details .features-grid .feature-card .feature-icon i,
    .service-details .feature-icon i,
    .features-grid .feature-card .feature-icon i {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: block !important;
        -webkit-font-smoothing: antialiased !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Specific fixes for contact and footer icons */
    .contact-item i,
    .footer i,
    .social-links i,
    .license-badge i,
    .license-feature i,
    .verification-icons i {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: inline-block !important;
        -webkit-font-smoothing: antialiased !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Additional fixes for testimonials and other sections */
    .stars i,
    .testimonial-content i,
    .schedule-btn i,
    .form-privacy-notice i {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: inline-block !important;
        -webkit-font-smoothing: antialiased !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
/* ===== END FONT AWESOME MOBILE FIX ===== */