/* =======================================================
   MODERN HERO COMPONENT
   ======================================================= */
.modern-hero-section {
    background: radial-gradient(circle at top left, #f4f7f9 0%, #ffffff 100%);
    /* CHANGED: Reduced top padding from 60px to 15px, and bottom from 80px to 40px */
    padding: 15px 0 40px 0; 
    position: relative;
    overflow: hidden;
}

/* Decorative background circle */
.modern-hero-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(3, 87, 163, 0.03); /* Your secondary color with 3% opacity */
    border-radius: 50%;
    z-index: 0;
}

.modern-hero-content { position: relative; z-index: 1; }
.modern-breadcrumbs { margin-bottom: 30px; font-size: 0.9rem; }

/* Trust Badge */
.modern-hero-badge {
    display: inline-block;
    background: #eef2f6;
    color: var(--secondary-color); /* Your exact Blue */
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    border: 1px solid #dce4ec;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.modern-hero-title {
    font-weight: 900 !important;
    line-height: 1.15;
    color: #112233;
    margin-top: 0;
    position: relative;
    padding-bottom: 25px;
}

/* Accent Line */
.modern-hero-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background-color: var(--primary-color); /* Your exact Red */
    border-radius: 5px;
}

.modern-hero-text-wrap {
    margin-top: 30px;
    font-size: 1.1rem;
    color: #445566;
    line-height: 1.7;
}

.modern-hero-image-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-left: 20px;
}

/* Offset Square */
.modern-hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 40px; bottom: 40px;
    background: var(--secondary-color); /* Your exact Blue */
    border-radius: 20px;
    z-index: -1;
    transition: transform 0.4s ease;
}

.modern-hero-image-wrapper:hover::before {
    transform: translate(-10px, -10px);
}

.modern-hero-img {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    display: block;
    width: 100%;
    height: auto;
    border: 8px solid #ffffff;
}

@media (max-width: 959px) {
    /* CHANGED: Tighter padding for mobile devices too */
    .modern-hero-section { padding: 10px 0 30px 0; } 
    .modern-hero-image-wrapper { margin-top: 40px; padding: 15px; }
    .modern-hero-image-wrapper::before { right: 20px; bottom: 20px; }
    .modern-hero-img { border-width: 5px; }
}
/* =========================================
   1. PREMIUM GLASS MENU
   ========================================= */

.premium-glass-menu {
    /* Richer, true glassmorphism */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    padding: 15px;
}

.premium-services-list {
    margin: 0;
    padding: 0;
}

.premium-services-list > li {
    list-style: none;
    margin-bottom: 5px;
}
.premium-services-list > li:last-child {
    margin-bottom: 0;
}

/* Link Styling & Animation */
.premium-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #222 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth snap */
}

/* Hover Effect: The "Modern" Feel */
.premium-menu-link:hover {
    background: #ffffff; /* Turns solid white on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(5px); /* Slides slightly to the right */
    color: var(--secondary-color) !important;
}

/* Custom SVG Arrow */
.premium-arrow {
    flex-shrink: 0;
    margin-right: 12px;
    transition: transform 0.3s ease;
}
.premium-menu-link:hover .premium-arrow {
    transform: translateX(3px); /* Arrow pushes right on hover */
}

/* =========================================
   2. PREMIUM CTA BOX
   ========================================= */

/* =========================================
   SIDEBAR: MODERN SPLIT CTA CARD (IMAGE TOP, BLUE BOTTOM)
   ========================================= */

/* Main Card Wrapper */
.modern-split-cta {
    background-color: transparent;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Clips the corners so it looks like a premium card */
    z-index: 90 !important; /* Stays beneath your top navbar when sticky */
    margin-top: 20px;
}

/* Image Wrapper */
.split-cta-image {
    width: 100%;
    max-height: 280px; /* Adjust this to show more/less of the technician */
    overflow: hidden;
}

/* Ensure the image fills the space cleanly */
.split-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Blue Content Area with Modern Diagonal Angle */
.split-cta-content {
    background: linear-gradient(180deg, var(--secondary-color) 0%, #02417a 100%);
    padding: 40px 20px 30px 20px; /* Extra padding on top for the angle */
    
    /* Creates the sharp upward angle */
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); 
    
    margin-top: -30px; /* Pulls the blue box up to overlap the bottom of the photo */
    position: relative;
    z-index: 2;
}

/* Text Styles inside the Blue Box */
.split-cta-content .premium-kicker {
    font-size: 0.8rem;
    letter-spacing: 1px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}
.split-cta-content .premium-kicker strong {
    font-size: 1.25rem;
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}
.split-cta-content .premium-heading {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

/* If you haven't added the pill-button CSS yet, here it is again: */
.premium-btn-red {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 32, 39, 0.4);
}
.premium-btn-red:hover {
    background-color: #d11920;
    box-shadow: 0 6px 20px rgba(235, 32, 39, 0.6);
    transform: translateY(-3px);
}

/* Fix: Force sticky sidebar to slide UNDER the top navbar */
.sidebar-sticky-wrapper,
.premium-sidebar-cta {
    z-index: 90 !important; /* Lowers it below standard headers */
}

/* UIkit adds the .uk-active class when sticky engages, so we target that too just in case */
.sidebar-sticky-wrapper.uk-active,
.premium-sidebar-cta.uk-active {
    z-index: 90 !important; 
}


/* =========================================
   IMMERSIVE TRUSTED BRANDS SHOWCASE
   ========================================= */

/* 1. Full-Width Section Wrapper */
#ultimate-trusted-section {
    position: relative;
    padding: 20px 0 50px 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important; /* Parallax effect */
    overflow: hidden !important;
    margin: 40px 0 !important;
}

/* 2. Deep Blue Frosted Overlay */
#ultimate-trusted-section .trusted-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Uses your theme Blue, fading into a darker navy */
    background: linear-gradient(135deg, rgba(3, 87, 163, 0.92) 0%, rgba(2, 21, 38, 0.98) 100%) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 1;
}

/* 3. Content Container */
#ultimate-trusted-section .trusted-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. Premium Centered Header */
#ultimate-trusted-section .trusted-header {
    text-align: center !important;
    margin-bottom: 50px !important;
}
#ultimate-trusted-section .trusted-header h3 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
    background: transparent !important; /* Kills the weird blue highlight from your theme */
    text-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    text-transform: uppercase !important;
}
#ultimate-trusted-section .trusted-header h2 strong {
    font-weight: 900 !important;
    color: #ffffff !important;
    background: transparent !important;
}
#ultimate-trusted-section .red-accent-line {
    width: 80px !important;
    height: 4px !important;
    background-color: var(--primary-color) !important; /* Theme Red */
    margin: 20px auto 0 auto !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(235, 32, 39, 0.5) !important;
}

/* 5. The Glass Logo Grid */
#ultimate-trusted-section .trusted-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 columns */
    gap: 25px !important;
}

/* 6. Bright Frosted Glass Cards (Fixes the JPEG issue) */
#ultimate-trusted-section .glass-logo-card {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 110px !important;
    padding: 20px !important;
    
    /* Bright Glass Effect */
    background: rgba(255, 255, 255, 0.95) !important; 
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Ensures logos fit cleanly */
#ultimate-trusted-section .glass-logo-card img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    filter: contrast(1.1) !important; 
    transition: transform 0.4s ease !important;
}

/* 7. Hover Effect: Floating & Red Glow */
#ultimate-trusted-section .glass-logo-card:hover {
    transform: translateY(-8px) !important; /* Lifts up */
    background: #ffffff !important; /* Turns solid white */
    border-color: var(--primary-color) !important; /* Red border */
    box-shadow: 0 20px 40px rgba(235, 32, 39, 0.25) !important; /* Soft Red Glow */
}
#ultimate-trusted-section .glass-logo-card:hover img {
    transform: scale(1.05) !important; /* Logo pops slightly */
}

/* 8. Mobile Responsiveness */
@media (max-width: 959px) {
    #ultimate-trusted-section { padding: 50px 0 !important; }
    #ultimate-trusted-section .trusted-header h2 { font-size: 2rem !important; }
    #ultimate-trusted-section .trusted-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
        gap: 15px !important;
    }
    #ultimate-trusted-section .glass-logo-card { height: 90px !important; padding: 15px !important; }
}
@media (max-width: 480px) {
    #ultimate-trusted-section .trusted-header h2 { font-size: 1.6rem !important; }
    #ultimate-trusted-section .trusted-grid { gap: 10px !important; }
}

/* =========================================
   MODERN SITE-WIDE QUOTE MODAL & CF7 STYLING
   ========================================= */

/* The Modal Container - FIXED WIDTH */
.modern-quote-modal {
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2) !important;
    width: 900px !important; /* Forces the width wide enough for side-by-side */
    max-width: 95vw !important; /* Prevents it from breaking mobile screens */
    background: transparent;
}

/* Left Side (Image & Text) */
.modern-modal-left {
    background: linear-gradient(145deg, #f8f9fa 0%, #eef1f5 100%);
    border-right: 1px solid rgba(0,0,0,0.05);
}

/* Rounded, Premium Image */
.modal-image-wrapper img {
    border-radius: 50%; /* Perfect circle */
    width: 140px;
    height: 140px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(3, 87, 163, 0.15); /* Soft blue shadow */
    border: 4px solid #ffffff;
}

/* Thank You Text */
.modal-thank-you-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-top: 15px;
}

/* Right Side - CF7 Generated Title Styling */
.modern-cf7-wrapper h2, 
.modern-cf7-wrapper h3,
.modern-cf7-wrapper legend,
.modern-cf7-wrapper p:first-child strong {
    color: var(--secondary-color); /* Theme Blue */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.5rem;
    display: block;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Close Button Override */
.modern-modal-close {
    background: #ffffff !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--primary-color) !important;
    top: 15px !important;
    right: 15px !important;
    transition: all 0.3s ease;
}
.modern-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

/* --- OVERRIDING CONTACT FORM 7 STYLES --- */

/* Modern Input Fields */
.modern-cf7-wrapper input[type="text"],
.modern-cf7-wrapper input[type="email"],
.modern-cf7-wrapper input[type="tel"],
.modern-cf7-wrapper select,
.modern-cf7-wrapper textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px; /* Soft rounded corners */
    background-color: #fafafa;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Input Focus State (Glowing Blue) */
.modern-cf7-wrapper input:focus,
.modern-cf7-wrapper select:focus,
.modern-cf7-wrapper textarea:focus {
    border-color: var(--secondary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(3, 87, 163, 0.1);
    outline: none;
}

/* Textarea specific height */
.modern-cf7-wrapper textarea {
    min-height: 100px;
    resize: vertical;
}

/* CF7 Submit Button (Modern Pill) */
.modern-cf7-wrapper input[type="submit"] {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 32, 39, 0.4);
    margin-top: 5px;
}
.modern-cf7-wrapper input[type="submit"]:hover {
    background-color: #d11920;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 32, 39, 0.6);
}

/* Fix UIkit/CF7 paragraph spacing issues */
.modern-cf7-wrapper p {
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 959px) {
    .modern-quote-modal {
        width: 100% !important;
    }
    .modern-modal-left, 
    .modern-modal-right {
        padding: 30px 20px;
    }
    .modern-modal-left {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .modal-image-wrapper img {
        width: 100px;
        height: 100px;
    }
}


/* =========================================
   FORCED INLINE CSS TO BYPASS CACHE
   ========================================= */
#premium-van-cta {
    width: 100%;
    margin: 40px 0;
    font-family: inherit;
}
#premium-van-cta .futuristic-cta-wrapper {
    background: linear-gradient(135deg, #021526 0%, var(--secondary-color) 100%) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 30px 60px rgba(3, 87, 163, 0.2) !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative;
}
#premium-van-cta .futuristic-glow-orb {
    position: absolute;
    top: -50px;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(235,32,39,0.2) 0%, rgba(235,32,39,0) 70%) !important;
    z-index: 0;
    pointer-events: none;
}
#premium-van-cta .futuristic-van-container {
    padding: 20px;
}
#premium-van-cta .futuristic-van {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.6)) !important;
    transform: scale(1.1) translateX(15px);
    z-index: 5;
    position: relative;
}
#premium-van-cta .glass-panel {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    z-index: 10;
}
#premium-van-cta .glass-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin: 0 0 20px 0 !important;
    letter-spacing: 0.5px !important;
}
#premium-van-cta .glass-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
#premium-van-cta .glass-list > li {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}
#premium-van-cta .glass-check {
    color: var(--primary-color) !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 0 5px rgba(235, 32, 39, 0.4)) !important;
}
#premium-van-cta .glass-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}
#premium-van-cta .btn-glow-red {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 0 20px rgba(235, 32, 39, 0.4) !important;
    border: 1px solid #ff4249 !important;
    transition: all 0.3s ease !important;
}
#premium-van-cta .btn-glow-red:hover {
    background-color: #ff333a !important;
    box-shadow: 0 0 30px rgba(235, 32, 39, 0.6) !important;
    transform: translateY(-2px) !important;
}
#premium-van-cta .btn-glass-outline {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(5px) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}
#premium-van-cta .btn-glass-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}
@media (max-width: 959px) {
    #premium-van-cta .futuristic-van {
        transform: scale(1) translateX(0) !important;
        margin-bottom: -30px !important; 
    }
    #premium-van-cta .glass-panel { padding: 30px 20px !important; }
}
/* =========================================
   PREMIUM TEAM PROFILE (THEME-SYNCED & ALIGNED)
   ========================================= */
:root {
    --team-bg-blue: linear-gradient(135deg, #021526 0%, var(--secondary-color) 100%);
}

/* 1. THE HERO SECTION */
.team-hero-section {
    background: var(--team-bg-blue) !important;
    padding: 60px 0 100px 0; 
    position: relative;
    overflow: hidden;
}
.team-hero-section::after {
    content: ''; position: absolute; top: -50px; right: 10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(235,32,39,0.15) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

/* Image Frame */
.team-profile-frame {
    background: #ffffff; padding: 10px; border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative; z-index: 2;
    transform: rotate(-1deg); transition: transform 0.4s ease;
}
.team-profile-frame:hover { transform: rotate(0deg) translateY(-5px); }
.team-profile-frame img { border-radius: 12px; width: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* Text Area */
.team-hero-content { position: relative; z-index: 2; }
.team-name { color: #ffffff !important; margin: 0 0 15px 0 !important; }

/* Badges (Kept structural sizing since these aren't standard paragraphs) */
.team-job-title {
    background: var(--primary-color); color: #ffffff;
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
    padding: 6px 16px; border-radius: 50px; letter-spacing: 1px; 
    display: inline-block; margin-bottom: 15px;
}
.cert-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff;
    padding: 8px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    display: inline-flex; align-items: center; margin: 0 8px 8px 0;
}
.cert-pill .uk-icon { color: #4ade80; margin-right: 8px; }

/* Hero Button */
.btn-glow-red {
    background-color: var(--primary-color) !important; color: #ffffff !important;
    padding: 12px 30px !important; border-radius: 50px !important;
    font-weight: 800 !important; text-transform: uppercase;
    text-decoration: none !important; display: inline-block !important;
    box-shadow: 0 6px 20px rgba(235, 32, 39, 0.3) !important;
    transition: all 0.3s ease !important; border: 2px solid var(--primary-color) !important;
}
.btn-glow-red:hover { background-color: transparent !important; transform: translateY(-2px) !important; }

/* 2. THE FLOATING STATS BAR (Strict Grid Alignment) */
.floating-stats-wrapper {
    margin-top: -50px; position: relative; z-index: 10; margin-bottom: 40px; 
}
.floating-stats-card {
    background: #ffffff; border-radius: 16px;
    box-shadow: 0 15px 35px rgba(3, 87, 163, 0.08);
    padding: 20px; border: 1px solid rgba(0,0,0,0.03); 
}
.floating-stats-card .uk-grid-divider { align-items: stretch !important; }

.stat-item { 
    display: grid !important; 
  
    align-items: center !important; 
    justify-items: center !important;
    text-align: center !important; 
    padding: 10px 0; 
    height: 100%; 
   
}
.stat-icon {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(3, 87, 163, 0.05); color: var(--secondary-color);
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 10px; transition: transform 0.3s ease;
    align-self: end !important; 
}
.stat-item:hover .stat-icon { transform: scale(1.1); background: var(--primary-color); color: #fff; }
.stat-text { align-self: center !important; margin: 0 0 5px 0 !important; color: #111; }
.stat-label { 
    font-size: 0.8rem; color: #666; text-transform: uppercase; 
    letter-spacing: 0.5px; margin: 0; align-self: start !important; 
}

/* 3. BIO & SKILLS */
.section-title { color: var(--secondary-color) !important; margin: 0 0 10px 0 !important; }
.red-accent { width: 50px; height: 4px; background: var(--primary-color); border-radius: 2px; margin-bottom: 20px; }

/* App-Style Skill Tiles */
.skill-tile {
    background: #ffffff; padding: 20px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease; height: 100%; display: flex; flex-direction: column;
}
.skill-tile-icon { color: var(--primary-color); margin-bottom: 10px; }
.skill-tile-title { color: #111 !important; margin: 0 0 6px 0 !important; }
.skill-tile-desc { color: #555 !important; margin: 0 !important; }

/* 4. REVIEWS */
.reviews-section { padding: 30px 0 30px 0; background: #ffffff; border-top: 1px solid #f0f0f0; margin-top: 40px; }
.review-card {
    background: #fafcff; padding: 25px; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02); height: 100%; position: relative; z-index: 1;
}
.review-watermark {
    position: absolute; top: 10px; right: 20px; font-size: 4rem;
    color: rgba(3,87,163,0.05); font-family: serif; line-height: 1; z-index: -1;
}
.review-stars { color: #facc15; margin-bottom: 10px; } 
.review-text { font-style: italic; color: #444 !important; margin-bottom: 15px !important; }
.review-name { color: var(--secondary-color) !important; margin: 0 !important; }

/* MOBILE RESPONSIVENESS */
@media (max-width: 959px) {
    .team-hero-section { padding: 40px 0 80px 0; text-align: center; }
    .team-profile-frame { margin: 0 auto 20px auto; max-width: 280px; transform: none; }
    .section-title { text-align: center; }
    .red-accent { margin: 0 auto 20px auto; } 
    .floating-stats-wrapper { margin-top: -40px; margin-bottom: 30px; }
    .floating-stats-card { padding: 15px; }
    .uk-grid-divider > * { border-left: none !important; }
    .stat-item { border-bottom: 1px solid rgba(0,0,0,0.05); padding: 15px 0 !important; }
    .stat-item:last-child { border-bottom: none; }
    .reviews-section { padding: 40px 0; margin-top: 30px; }
}

/* =========================================
   MEET OUR TEAM - 3x2 PREMIUM GRID
   ========================================= */

#team-directory-page {
    background-color: #f8fafc;
    padding-bottom: 100px;
    font-family: inherit;
}

/* 1. Directory Hero Section */
.team-directory-hero {
    background: linear-gradient(135deg, #021526 0%, var(--secondary-color) 100%) !important;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}
.team-directory-hero::after {
    content: ''; position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(235,32,39,0.15) 0%, transparent 70%) !important;
    pointer-events: none; z-index: 0;
}
.team-directory-hero-content {
    position: relative;
    z-index: 2;
}
.team-directory-hero h1 {
    color: #ffffff !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    margin: 0 0 15px 0 !important;
    letter-spacing: -1px;
}
.team-directory-hero p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.15rem !important;
    line-height: 1.6 !important;
    max-width: 600px;
    margin: 0 auto !important;
}
.hero-red-accent {
    width: 60px; height: 4px; background: var(--primary-color) !important;
    margin: 0 auto 20px auto; border-radius: 2px;
}

/* 2. The Team Card */
.team-grid-card {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    height: 100%; 
    margin-bottom: 30px; /* Forces gap between top and bottom rows! */
}
.team-grid-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(3, 87, 163, 0.12) !important; 
    border-color: rgba(3, 87, 163, 0.1) !important;
}

/* 3. Image Area */
.team-grid-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5; /* Perfect portrait shape */
    overflow: hidden;
    background: #e5e7eb; 
}
.team-grid-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important; 
    transition: transform 0.6s ease !important;
}
.team-grid-card:hover .team-grid-image img {
    transform: scale(1.05) !important; 
}

/* 4. Content Area */
.team-grid-content {
    padding: 25px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    text-align: center !important;
}
.team-grid-role {
    background-color: rgba(235, 32, 39, 0.1) !important;
    color: var(--primary-color) !important;
    font-size: 0.75rem !important; /* Slightly bumped up for 3-column */
    font-weight: 800 !important;
    text-transform: uppercase;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    display: inline-block !important;
    width: fit-content !important;
    margin: 0 auto 15px auto !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}
.team-grid-card:hover .team-grid-role {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
.team-grid-name {
    color: #111111 !important;
    font-size: 1.25rem !important; /* Bumped up for 3-column */
    font-weight: 800 !important;
    margin: 0 0 15px 0 !important;
    transition: color 0.3s ease !important;
    line-height: 1.3 !important;
}
.team-grid-card:hover .team-grid-name {
    color: var(--secondary-color) !important; 
}

/* 5. Card Footer Link */
.team-grid-footer {
    margin-top: auto !important;
    color: var(--secondary-color) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.team-grid-footer .uk-icon {
    margin-left: 5px !important;
    transition: transform 0.3s ease !important;
}
.team-grid-card:hover .team-grid-footer .uk-icon {
    transform: translateX(5px) !important; 
}

/* Mobile Adjustments */
@media (max-width: 959px) {
    .team-directory-hero { padding: 50px 20px; margin-bottom: 40px; }
    .team-directory-hero h1 { font-size: 2.2rem !important; }
    
    /* Font sizing specifically for mobile 2-column layout */
    .team-grid-content { padding: 15px 10px !important; }
    .team-grid-name { font-size: 1rem !important; }
    .team-grid-role { font-size: 0.65rem !important; padding: 4px 10px !important; margin-bottom: 10px !important; }
    .team-grid-footer { font-size: 0.75rem !important; }
}

/* =========================================
   GLASSMORPHISM SEO QUOTE SECTION (FINAL)
   ========================================= */

#smart-quote-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #021526 0%, var(--secondary-color) 100%) !important;
    overflow: hidden;
}

/* Subtle tech-grid overlay & Red Glow */
#smart-quote-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px; z-index: 0;
}
#smart-quote-section::after {
    content: ''; position: absolute; top: 50%; right: 10%;
    transform: translateY(-50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(235,32,39,0.3) 0%, transparent 70%); z-index: 0;
}

/* --- Left Side: SEO Text --- */
.seo-trust-content {
    position: relative; z-index: 2; color: #ffffff; padding-right: 40px;
}
.seo-trust-content h2 { color: #ffffff !important; margin: 0 0 20px 0 !important; }
.seo-trust-content p { color: rgba(255, 255, 255, 0.85) !important; margin-bottom: 30px; }

.seo-trust-list { list-style: none; padding: 0; margin: 0; }
.seo-trust-list li { display: flex; align-items: center; margin-bottom: 15px; color: #ffffff !important; }
.seo-trust-list .uk-icon {
    color: var(--primary-color) !important; 
    background: rgba(255, 255, 255, 0.1) !important; 
    backdrop-filter: blur(5px) !important; -webkit-backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 50%; padding: 5px; margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Right Side: Frosted Glass Form Card --- */
.glass-form-card {
    position: relative; z-index: 2;
    background: rgba(255, 255, 255, 0.05) !important; 
    backdrop-filter: blur(24px) !important; -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important; 
    border-radius: 20px !important; padding: 35px 30px !important; 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4) !important;
}
.glass-form-title {
    color: #ffffff !important; margin: 0 0 25px 0 !important;
    text-align: center; text-transform: uppercase;
}

/* Dark Mode Glass Inputs */
.cf7-glass-wrapper .custom-input,
.cf7-glass-wrapper .custom-select,
.cf7-glass-wrapper .custom-textarea {
    width: 100%; padding: 12px 16px !important; 
    border: 1px solid rgba(255, 255, 255, 0.2) !important; border-radius: 10px !important; 
    background-color: rgba(0, 0, 0, 0.2) !important; color: #ffffff !important; 
    box-sizing: border-box !important; transition: all 0.3s ease !important;
}
.cf7-glass-wrapper .custom-input::placeholder,
.cf7-glass-wrapper .custom-textarea::placeholder { color: rgba(255, 255, 255, 0.5) !important; }
.cf7-glass-wrapper .custom-select option { color: #111 !important; }

/* Input Focus Glow */
.cf7-glass-wrapper .custom-input:focus,
.cf7-glass-wrapper .custom-select:focus,
.cf7-glass-wrapper .custom-textarea:focus {
    background-color: rgba(0, 0, 0, 0.4) !important; border-color: var(--primary-color) !important; 
    box-shadow: 0 0 0 3px rgba(235, 32, 39, 0.2) !important; outline: none !important;
}
/* Force the message box to be the exact same height as a single-line input! */
.cf7-glass-wrapper .custom-textarea { 
    height: 80px !important; 
    min-height: 80px !important; 
    padding-top: 13px !important; /* Centers the placeholder text */
    resize: vertical !important; 
    overflow-y: hidden !important;
}

/* Premium Glow Button */
.cf7-glass-wrapper .custom-submit {
    background-color: var(--primary-color) !important; color: #ffffff !important;
    border: none !important; padding: 14px 20px !important; 
    border-radius: 50px !important; text-transform: uppercase !important;
    font-weight: bold !important; cursor: pointer !important; width: 100% !important; 
    box-shadow: 0 8px 25px rgba(235, 32, 39, 0.4) !important; transition: all 0.3s ease !important;
    margin-top: 5px !important; border: 1px solid #ff4249 !important;
}
.cf7-glass-wrapper .custom-submit:hover {
    background-color: #d11920 !important; transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(235, 32, 39, 0.6) !important;
}

/* --- CF7 CLEANUP (Prevents CF7 from breaking the layout) --- */
.cf7-glass-wrapper form { margin: 0 !important; }
.cf7-glass-wrapper .wpcf7-form-control-wrap { display: block !important; width: 100%; }
.cf7-glass-wrapper p { margin: 0 !important; padding: 0 !important; }
.cf7-glass-wrapper p:empty { display: none !important; }

/* CF7 Error/Success Messages */
.cf7-glass-wrapper .wpcf7-response-output {
    margin: 15px 0 0 0 !important; padding: 10px !important; border-radius: 8px !important;
    font-size: 0.85rem !important; color: #ffffff !important;
    background: rgba(0, 0, 0, 0.4) !important; border: 1px solid rgba(255,255,255,0.2) !important;
}
.cf7-glass-wrapper .wpcf7-not-valid-tip {
    color: #ff4d52 !important; font-size: 0.75rem !important;
    font-weight: 700 !important; margin-top: 5px !important; display: block;
}

/* Mobile Adjustments */
@media (max-width: 959px) {
    #smart-quote-section { padding: 50px 0; }
    .seo-trust-content { padding-right: 0; text-align: center; margin-bottom: 40px; }
    .seo-trust-list li { justify-content: center; }
    .glass-form-card { padding: 30px 20px !important; }
}

/* ========================================================================
   MASTER REVAMP CSS (HOMEPAGE & LOCATION PAGES)
   ======================================================================== */

/* =========================================
   1. HERO SECTIONS (BASE STYLES)
   ========================================= */

/* Homepage Hero */
.premium-home-hero {
    position: relative;
    padding: 60px 0 100px 0; 
    display: block;
    overflow: hidden;
    background-color: var(--secondary-color);
}
.hero-glass-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(2, 21, 38, 0.95) 0%, rgba(3, 87, 163, 0.7) 60%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

/* Location Hero */
.location-premium-hero {
    position: relative;
    padding: 140px 0 160px 0; 
    display: block;
    overflow: hidden;
    background-color: var(--secondary-color);
}
.location-hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 21, 38, 0.4); /* Your custom dark transparent overlay */
    z-index: 1;
}

/* Shared LCP Image Rules */
.hero-lcp-image, .location-lcp-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
}
.hero-lcp-image img, .location-lcp-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
}


/* =========================================
   2. HERO CONTENT & TYPOGRAPHY
   ========================================= */

.hero-content-wrapper, .location-hero-content {
    position: relative; 
    z-index: 2; 
    max-width: 850px; 
    text-align: left; 
    margin-left: 0; 
    padding-left: 0;
}

/* Hero Typography */
.hero-content-wrapper h1, .location-hero-content h1 {
    color: #ffffff !important; 
    font-size: 3.5rem !important; 
    font-weight: 900 !important; 
    line-height: 1.1 !important; 
    letter-spacing: -1px !important; 
    margin: 0 0 15px 0 !important; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}
.hero-content-wrapper h2, .hero-content-wrapper p,
.location-hero-content h2, .location-hero-content p {
    color: #ffffff !important; 
    font-size: 1.25rem !important; 
    line-height: 1.6 !important; 
    margin-bottom: 30px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

/* Regulatory Badges (TSSA & Skilled Trades) */
.hero-trust-badges, .location-trust-badges {
    display: inline-flex; align-items: center;
    background: #ffffff; padding: 10px 25px;
    border-radius: 50px; margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.trust-badge-logo, .loc-badge-item {
    display: flex; align-items: center; justify-content: center;
    height: 35px;
}
.trust-badge-logo img { height: 100%; width: auto; object-fit: contain; }
.loc-badge-item .uk-icon { margin-right: 8px; }
.loc-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.loc-badge-text strong { color: #111; font-size: 0.9rem; font-weight: 900; }
.loc-badge-text span { color: #facc15; font-size: 0.75rem; letter-spacing: 1px; } 
.trust-badge-divider, .loc-badge-divider {
    width: 1px; height: 30px; background: #e0e0e0; margin: 0 20px;
}

/* Call To Action Buttons */
.hero-btn-red, .location-btn-red {
    background-color: var(--primary-color) !important; color: #ffffff !important;
    padding: 16px 40px !important; border-radius: 50px !important;
    text-transform: uppercase; font-weight: 800 !important; font-size: 1rem !important;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none !important; box-shadow: 0 10px 30px rgba(235, 32, 39, 0.4) !important;
    transition: all 0.3s ease !important; border: 2px solid var(--primary-color) !important;
    width: fit-content;
}
.hero-btn-red:hover, .location-btn-red:hover { 
    transform: translateY(-3px) !important; background-color: transparent !important; 
}
.location-btn-outline {
    background-color: transparent !important; color: #ffffff !important;
    padding: 15px 35px !important; border-radius: 50px !important;
    font-weight: 900 !important; font-size: 1rem !important; text-transform: uppercase !important;
    display: inline-flex !important; align-items: center !important; text-decoration: none !important; 
    border: 2px solid #ffffff !important; transition: all 0.3s ease !important;
}
.location-btn-outline:hover { 
    background-color: #ffffff !important; color: #111 !important; transform: translateY(-3px) !important; 
}
.location-btn-group { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 20px; }


/* =========================================
   3. GLASSMORPHISM FORM CARD (SHARED)
   ========================================= */



/* =========================================
   4. FLOATING TRUST BAR (SHARED)
   ========================================= */

.floating-trust-wrapper, .location-floating-bar {
    margin-top: -65px; position: relative; z-index: 10; margin-bottom: 50px;
}
.floating-trust-card, .location-floating-card {
    background: rgba(255, 255, 255, 0.95) !important; 
    backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important;
    border-radius: 16px !important; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
    padding: 30px 15px !important; border: 1px solid rgba(255,255,255,0.5) !important;
}
.trust-item-link, .loc-trust-link {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; text-align: center !important;
    text-decoration: none !important; transition: transform 0.3s ease;
}
.trust-item-link:hover, .loc-trust-link:hover { transform: translateY(-5px); }

/* SVG Icons */
.custom-svg-icon, .loc-svg-icon {
    width: 60px; height: 60px; margin-bottom: 15px;
    filter: drop-shadow(0 5px 12px rgba(235, 32, 39, 0.3)); transition: transform 0.3s ease;
}
.trust-item-link:hover .custom-svg-icon, 
.loc-trust-link:hover .loc-svg-icon { transform: scale(1.05); }

/* Text */
.trust-text, .loc-trust-text {
    color: #111111 !important; font-size: 0.9rem !important; font-weight: 800 !important; 
    text-transform: uppercase !important; line-height: 1.2 !important; transition: color 0.3s ease;
}
.trust-item-link:hover .trust-text, 
.loc-trust-link:hover .loc-trust-text { color: var(--primary-color) !important; }


/* =========================================
   5. MOBILE ADJUSTMENTS (SHARED)
   ========================================= */

@media (max-width: 959px) {
    .premium-home-hero, .location-premium-hero { padding: 40px 0 80px 0; text-align: center; }
    .hero-glass-overlay { background: rgba(2, 21, 38, 0.85); }
    .hero-content-wrapper, .location-hero-content { margin: 0 auto; text-align: center; padding-right: 0; }
    .hero-content-wrapper h1, .location-hero-content h1 { font-size: 2.5rem !important; }
    
    .hero-trust-badges, .location-trust-badges { justify-content: center; margin: 0 auto 25px auto; display: flex; }
    .trust-badge-logo { height: 28px; }
    
    .hero-btn-red { margin: 0 auto; }
    .location-btn-group { justify-content: center; }
    
    .glass-form-card { padding: 25px 20px !important; margin-top: 40px; }
    
    .floating-trust-wrapper, .location-floating-bar { margin-top: -40px; }
    .custom-svg-icon, .loc-svg-icon { width: 45px; height: 45px; margin-bottom: 10px; }
}

@media (max-width: 480px) {
    .location-btn-group { flex-direction: column; width: 100%; }
    .location-btn-group a { width: 100%; justify-content: center; }
}


/* =========================================
   PREMIUM LOCATIONS FOOTER SECTION
   ========================================= */

#footer-locations-section {
    padding: 40px 0;
    background-color: #fcfcfc; 
    font-family: inherit;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* 1. Header Styling */
#footer-locations-section .locations-header {
    text-align: center;
    margin-bottom: 50px;
}
#footer-locations-section .locations-header h2 {
    color: var(--secondary-color) !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0 !important;
}
#footer-locations-section .red-accent-line {
    width: 60px; height: 4px; background: var(--primary-color) !important;
    margin: 15px auto 0 auto; border-radius: 2px;
}

/* 2. Map Iframe Container (Elementor Trick Integrated!) */
.premium-map-container {
    position: relative;
    width: 100%;
    height: 100%; 
    min-height: 420px; /* Ensures map has good height on all devices */
    overflow: hidden !important; /* CRITICAL: Clips off the black Google header */
    background: #EFF6FF;
    border-radius: 16px;
    border: 4px solid #ffffff; /* Thick white border like Elementor */
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Forces the iframe to jump up and hide the header */
.premium-map-container iframe {
    position: absolute !important;
    top: -70px !important; /* Hides the black header */
    left: 0 !important;
    width: 100% !important;
    height: calc(100% + 140px) !important; /* Stretches tall enough to cover the bottom safely */
    border: 0 !important;
}

/* 3. The Pill Buttons Container */
.location-pills-wrapper {
    display: flex;
    flex-wrap: wrap; 
    gap: 12px; 
    align-content: center;
    height: 100%;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--secondary-color) !important; 
    border: 1px solid rgba(3, 87, 163, 0.3) !important; 
    padding: 10px 22px;
    border-radius: 50px; 
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.location-pill:hover {
    background: var(--secondary-color) !important; 
    color: #ffffff !important; 
    border-color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 87, 163, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 959px) {
    #footer-locations-section { padding: 50px 0; }
    #footer-locations-section .locations-header h2 { font-size: 1.8rem !important; }
    .premium-map-container { min-height: 350px; margin-bottom: 30px; }
    .location-pills-wrapper { justify-content: center; } 
    .location-pill { font-size: 0.85rem; padding: 8px 18px; }
}


/* =========================================
   EXPERT DESIGN: MINIMALIST BENTO SERVICES
   ========================================= */

#expert-services-hub {
    padding: 60px 0;
    background-color: #ffffff; 
    font-family: inherit;
}

/* 1. The Modern "Pill" Header */
#expert-services-hub .hub-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto; margin-right: auto;
}
#expert-services-hub .hub-badge {
    display: inline-block;
    background-color: rgba(235, 32, 39, 0.08); 
    color: var(--primary-color) !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
}
#expert-services-hub .hub-title {
    color: #111111 !important;
    font-size: 3rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -1px;
    margin: 0 0 15px 0 !important;
}
#expert-services-hub .hub-subtitle {
    color: #666666 !important;
    font-size: 1.15rem !important;
    line-height: 1.6;
    margin: 0 !important;
}

/* 2. The Bento Cards */
#expert-services-hub .bento-card {
    display: flex !important;
    flex-direction: column !important;
    background: #f8fafc !important; 
    border-radius: 24px !important; 
    padding: 22px !important;
    text-decoration: none !important;
    border: 1px solid rgba(0,0,0,0.02) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Hover Physics */
#expert-services-hub .bento-card:hover {
    background: #ffffff !important;
    transform: translateY(-10px) !important;
    z-index: 2;
}
#expert-services-hub .card-red:hover {
    box-shadow: 0 25px 50px rgba(235, 32, 39, 0.08) !important;
    border-color: rgba(235, 32, 39, 0.1) !important;
}
#expert-services-hub .card-blue:hover {
    box-shadow: 0 25px 50px rgba(3, 87, 163, 0.08) !important;
    border-color: rgba(3, 87, 163, 0.1) !important;
}

/* 3. Card Elements */
#expert-services-hub .card-icon {
    width: 60px; height: 60px;
    margin-bottom: 30px;
    transition: transform 0.5s ease;
}
#expert-services-hub .bento-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg); 
}
#expert-services-hub .card-icon img {
    width: 100%; height: 100%; object-fit: contain;
}

#expert-services-hub .card-title {
    color: #111111 !important;
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
    margin: 0 0 15px 0 !important;
    transition: color 0.3s ease !important;
}
#expert-services-hub .card-red:hover .card-title { color: var(--primary-color) !important; }
#expert-services-hub .card-blue:hover .card-title { color: var(--secondary-color) !important; }

#expert-services-hub .card-desc {
    color: #666666 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin: 0 0 30px 0 !important;
}

/* 4. The Action Button */
#expert-services-hub .card-action {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888888 !important;
    transition: all 0.4s ease;
}
#expert-services-hub .action-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #eeeeee;
    display: flex; justify-content: center; align-items: center;
    color: #111;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover Action State */
#expert-services-hub .card-red:hover .card-action { color: var(--primary-color) !important; }
#expert-services-hub .card-blue:hover .card-action { color: var(--secondary-color) !important; }

#expert-services-hub .card-red:hover .action-icon {
    background: var(--primary-color); color: #ffffff;
    transform: translateX(5px); box-shadow: 0 5px 15px rgba(235, 32, 39, 0.3);
}
#expert-services-hub .card-blue:hover .action-icon {
    background: var(--secondary-color); color: #ffffff;
    transform: translateX(5px); box-shadow: 0 5px 15px rgba(3, 87, 163, 0.3);
}

/* =========================================
   5. MOBILE ADJUSTMENTS (CENTER ALIGNED)
   ========================================= */
@media (max-width: 959px) {
    #expert-services-hub { padding: 60px 0; }
    #expert-services-hub .hub-title { font-size: 2.2rem !important; }
    
    /* Forces the entire card content into a perfect center alignment */
    #expert-services-hub .bento-card { 
        padding: 35px 25px !important; 
        align-items: center !important; 
        text-align: center !important; 
    }
    
    /* Center the icon */
    #expert-services-hub .card-icon { margin-left: auto; margin-right: auto; }
    
    #expert-services-hub .card-title { font-size: 1.4rem !important; }
    
    /* Adjust button to stack closely in center */
    #expert-services-hub .card-action { 
        justify-content: center; 
        gap: 15px; /* Adds space between text and icon since they are centered */
    }
}

