/* ============================================
   NEXT LEVEL - PROFESSIONAL CONCRETE CONTRACTOR
   Clean, professional design for concrete contractor business
   ============================================ */

/* ============================================
   COMPREHENSIVE CSS RESET FOR CROSS-BROWSER COMPATIBILITY
   Ensures consistent rendering across all browsers and devices
   ============================================ */

/* Reset all default margins and padding, set box-sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Padding and borders count inside element width */
}

/* Force consistent rendering for all elements */
*, *::before, *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent layout shifts from font loading - show content immediately */
body {
    visibility: visible; /* Changed from hidden - show content immediately */
    opacity: 1;
}

/* Browser-specific fixes */
.browser-ie .container,
.browser-edge .container {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.browser-ie .hero-grid,
.browser-edge .hero-grid {
    display: block;
}

.browser-ie .hero-grid > *,
.browser-edge .hero-grid > * {
    display: inline-block;
    vertical-align: top;
    width: 32%;
    margin-right: 1%;
}

/* High DPI display fixes */
.high-dpi img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Force consistent container widths */
.container {
    min-width: 0 !important;
    max-width: 1200px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Prevent overflow issues */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
}

/* Ensure consistent font rendering across browsers */
html {
    -webkit-text-size-adjust: 100%; /* Prevent text resizing on zoom (iOS Safari) */
    -ms-text-size-adjust: 100%; /* IE/Edge */
    text-size-adjust: 100%; /* Standard */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    /* Ensure proper rendering on zoom */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure full width and prevent white space on zoom */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    touch-action: pan-y pinch-zoom; /* Allow vertical scrolling and pinch zoom */
    overscroll-behavior-x: none; /* Prevent horizontal overscroll bounce */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    /* REMOVED: transform: translateZ(0) - This breaks position: fixed for widgets */
    /* Widgets need viewport anchoring, transform creates containing block */
}

/* Additional HTML fixes for cross-browser compatibility */

/* Body styling - the main container for everything */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6; /* Professional line height */
    color: #1e293b; /* Dark gray text color */
    background-color: #ffffff; /* Pure white background */
    font-size: 16px;
}

/* Services page background */
body.services-page {
    background-color: #E6E4E3;
    position: relative; /* Stable positioning context */
    overflow-x: hidden; /* Prevents horizontal scroll */
    touch-action: pan-y pinch-zoom; /* Allow vertical scrolling and pinch zoom */
    overscroll-behavior-x: none; /* Prevent horizontal overscroll bounce */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    -webkit-font-smoothing: antialiased; /* Smooth text rendering (Safari/Chrome) */
    -moz-osx-font-smoothing: grayscale; /* Smooth text rendering (Firefox) */
    text-rendering: optimizeLegibility; /* Better text rendering */
    /* Prevent zoom from breaking layout */
    margin: 0;
    padding: 0;
    /* Ensure full width and stay centered */
    width: 100%;
    max-width: 100%;
    /* Ensure proper rendering on zoom */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* REMOVED: transform: translateZ(0) - Breaks position: fixed for widgets */
    /* Prevent font rendering issues */
    font-feature-settings: "kern" 1;
    font-kerning: normal;
}

/* Container - keeps content centered and limits width */
.container {
    max-width: 1200px; /* Maximum width for content */
    margin: 0 auto; /* Centers the container */
    padding: 0 32px; /* Padding on sides - matching juliandone repo exactly */
    width: 100%; /* Ensure full width */
    position: relative; /* Positioning context */
    /* Prevent layout shifts */
    min-width: 0;
    min-height: 0;
    /* Force consistent rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Prevent overflow */
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Mobile container padding - smaller on phones */
@media (max-width: 640px) {
    .container {
        padding: 0 16px; /* Less padding on small phones */
    }
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN
   Professional contractor-grade responsive layout
   ============================================ */

/* Desktop - Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 32px;
    }
    
    .hero-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ============================================
   NAVIGATION BAR STYLES
   Clean, professional navigation
   ============================================ */

.navbar {
    background-color: rgba(0, 0, 0, 0.6) !important; /* Darker overlay for better navigation visibility */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important; /* Stronger shadow */
    position: fixed !important; /* Stays at top when scrolling */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Makes sure it stays on top */
    padding: 0.75rem 0 !important; /* Consistent padding - same on all pages */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important; /* Slightly more visible border */
    transition: transform 0.3s ease, all 0.3s ease; /* Smooth hide/show animation */
    backdrop-filter: blur(10px); /* Add blur for better contrast */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-sizing: border-box !important; /* Include padding in height */
    /* Force consistent height across all pages */
    display: block !important;
    width: 100% !important;
    transform: translateY(0); /* Start visible */
}

/* Hide navbar when scrolling down */
.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    padding: 0.5rem 0; /* Even more compact when scrolled */
    background-color: rgba(255, 255, 255, 0.98); /* Opaque white when scrolled */
    backdrop-filter: blur(20px); /* Blur when scrolled for modern look */
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: -webkit-box !important; /* Old Safari */
    display: -ms-flexbox !important; /* IE 10 */
    display: flex !important; /* Modern browsers */
    -webkit-box-pack: justify !important; /* Old Safari */
    -ms-flex-pack: justify !important; /* IE 10 */
    justify-content: space-between !important; /* Space between logo and links */
    -webkit-box-align: center !important; /* Old Safari */
    -ms-flex-align: center !important; /* IE 10 */
    align-items: center !important; /* Centers items vertically */
    gap: 2rem !important; /* Consistent gap */
    width: 100% !important; /* Ensure full width */
    position: relative !important; /* Positioning context */
    padding: 0 32px !important; /* Consistent container padding */
    box-sizing: border-box !important;
    /* Force consistent height - prevent font loading differences */
    min-height: 60px !important; /* Minimum height to prevent layout shifts */
    height: auto !important; /* Auto height but with min constraint */
}

/* Logo styling - Stacked layout (image on top, text below); uses header background */
.logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    transition: transform 0.2s ease;
    min-height: auto !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo a,
.logo a#header-home-link,
.logo-link-wrap {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: none;
    /* No background – uses header/navbar background */
}

.logo a:hover,
.logo a#header-home-link:hover {
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 100px;
    height: auto;
    max-height: 80px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent !important;
}

/* Business name text – shown only on mobile (left side of header) */
.navbar-business-name {
    display: none;
}

.logo-text-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    margin-top: 0.25rem;
}

.logo-name {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    padding: 0 !important;
}

.logo-location {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    padding: 0 !important;
    line-height: 1.2 !important;
}

.navbar.scrolled .logo-name {
    color: #0f172a !important;
    text-shadow: none;
}

.navbar.scrolled .logo-location {
    color: #475569 !important;
    text-shadow: none;
}

/* Legacy logo h2/tag (pages that still use old markup) */
.logo h2 {
    color: #ffffff !important; /* White for logo on hero background */
    font-size: 1.1rem !important; /* Consistent font size - same on all pages */
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
    margin: 0 !important; /* No margin */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    padding: 0 !important; /* No padding */
}

/* Ensure logo link doesn't change styling */
.logo a h2 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.navbar.scrolled .logo h2,
.navbar.scrolled .logo a h2 {
    color: #0f172a; /* Dark when scrolled */
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.logo-tag {
    color: rgba(255, 255, 255, 0.9) !important; /* Light color for tag on hero */
    font-size: 0.65rem !important; /* Consistent font size - same on all pages */
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important; /* Consistent spacing */
    margin-top: -2px !important;
    margin-bottom: 0 !important; /* No bottom margin */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    padding: 0 !important; /* No padding */
    line-height: 1.2 !important; /* Consistent line height */
}

.navbar.scrolled .logo-tag {
    color: #475569; /* Gray when scrolled */
    text-shadow: none;
}

/* Navigation links styling - Enhanced */
.nav-links {
    display: -webkit-box; /* Old Safari */
    display: -ms-flexbox; /* IE 10 */
    display: flex; /* Modern browsers */
    list-style: none; /* Removes bullet points */
    gap: 2.5rem; /* More space between links */
    -webkit-box-align: center; /* Old Safari */
    -ms-flex-align: center; /* IE 10 */
    align-items: center;
    /* Prevent wrapping issues */
    -ms-flex-wrap: nowrap; /* IE 10 */
    flex-wrap: nowrap;
    min-width: 0; /* Allow shrinking */
}

.nav-links li {
    position: relative;
}

.nav-links a,
.nav-links a#header-nav-home {
    text-decoration: none !important; /* Removes underline */
    color: rgba(255, 255, 255, 0.95) !important; /* White on hero background */
    font-weight: 600 !important;
    font-size: 0.9375rem !important; /* Consistent 15px font size - same on all pages */
    transition: all 0.3s ease; /* Smooth transitions */
    position: relative;
    padding: 0.5rem 0 !important; /* Consistent padding */
    display: block !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.4 !important; /* Consistent line height */
    margin: 0 !important; /* No margin */
}

/* Override display for dropdown toggles to use flex */
.nav-links a.dropdown-toggle {
    display: flex !important; /* Flex layout for dropdown toggles */
}

.navbar.scrolled .nav-links a {
    color: #475569; /* Gray when scrolled */
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.navbar.scrolled .nav-links a::after {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
}

.nav-links a:hover {
    color: #ffffff; /* Brighter white on hover */
    transform: translateY(-1px);
}

.navbar.scrolled .nav-links a:hover {
    color: #0f172a; /* Darker when scrolled */
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex !important; /* Override nav-links a display: block */
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important; /* Prevent wrapping */
    white-space: nowrap !important; /* Keep text and arrow on same line */
}

.dropdown-arrow {
    font-size: 0.7rem !important; /* Consistent size - same on all pages */
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block !important;
    color: inherit !important; /* Inherit color from parent link */
    line-height: 1 !important; /* Consistent line height */
    vertical-align: middle !important; /* Align with text */
    margin-left: 0.25rem !important; /* Consistent spacing */
    flex-shrink: 0 !important; /* Prevent arrow from shrinking */
    white-space: nowrap !important; /* Prevent wrapping */
}

/* Ensure dropdown arrows match nav link colors */
.nav-links a .dropdown-arrow {
    color: rgba(255, 255, 255, 0.95) !important; /* White on hero background */
}

.navbar.scrolled .nav-links a .dropdown-arrow {
    color: #475569 !important; /* Gray when scrolled - matches nav links */
}

.nav-dropdown:hover .dropdown-arrow {
    transform: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fffbf0 !important; /* Light yellow/cream – yellow theme */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.08); /* Professional shadow */
    border-radius: 6px; /* Rounded corners */
    list-style: none;
    padding: 0; /* No excess space at top or bottom */
    text-align: center; /* Services centered in dropdown */
    margin: 0;
    margin-top: 0.25rem; /* Minimal gap from trigger */
    min-width: 220px; /* Optimal width */
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px); /* Subtle slide effect */
    transition: all 0.2s ease; /* Smooth transition */
    z-index: 1000 !important; /* Ensure dropdown appears above everything */
    border: 1px solid #FFB600; /* Yellow theme border */
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slide down to position */
}

.dropdown-menu li {
    margin: 0;
    position: relative;
}

.dropdown-menu li:first-child a {
    padding-top: 0.25rem; /* Minimal top padding so no excess space above first item */
}

.dropdown-menu li:last-child a {
    padding-bottom: 0.25rem; /* Minimal bottom padding so no excess space below last item */
}

.dropdown-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06); /* Very subtle divider */
}

.dropdown-menu a {
    color: #1e293b !important; /* Dark text on yellow theme */
    padding: 0.625rem 1rem; /* Compact, clean padding */
    display: block;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-shadow: none !important;
    position: relative;
    border-radius: 0;
    text-align: center; /* Center service names */
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: #FFB600 !important; /* Yellow/gold theme on hover */
    color: #0f172a !important; /* Black text on yellow - stay black */
    transform: none;
    padding-left: 1rem; /* Same as default for centered look */
    padding-right: 1rem;
    font-weight: 600;
}

.dropdown-menu a:hover::before {
    display: none; /* Remove accent bar for cleaner look */
}

.navbar.scrolled .dropdown-menu {
    background: #fffbf0 !important; /* Same yellow theme when scrolled */
    border: 1px solid #FFB600;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 8px 25px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .dropdown-menu a {
    color: #1e293b !important; /* Dark text on yellow theme */
}

.navbar.scrolled .dropdown-menu a:hover {
    color: #0f172a !important; /* Black text on yellow hover - stay black */
    background: #FFB600 !important; /* Same yellow theme on hover */
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.4rem;
        padding: 0.75rem 0 !important;
        font-weight: 600;
        cursor: pointer;
    }
    
    /* Arrow visible next to title like desktop - dark so it shows on white menu */
    .nav-dropdown .dropdown-toggle .dropdown-arrow {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.75rem !important;
        margin-left: 0.4rem;
        color: #0f172a !important;
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        margin: 0.5rem auto 0 auto;
        padding: 0.5rem 0;
        box-shadow: none;
        background: rgba(255, 182, 0, 0.12) !important;
        border: 1px solid rgba(255, 182, 0, 0.4);
        border-radius: 8px;
        list-style: none;
        text-align: center;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu li {
        margin: 0;
        border: none;
    }
    
    .dropdown-menu li::after {
        display: none;
    }
    
    .dropdown-menu a {
        display: block;
        padding: 0.65rem 1rem;
        color: #1e293b !important;
        border-left: none;
        border-radius: 4px;
        transition: background 0.2s ease, color 0.2s ease;
        text-align: center !important;
        font-weight: 500;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        background: #FFB600 !important;
        color: #0f172a !important;
    }
}

/* Tablet: tap to open Residential/Commercial dropdown (no hover on touch) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-dropdown .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    .nav-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }
    .nav-dropdown.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
    }
}

/* Language Toggle */
.nav-language {
    margin-right: 1rem;
}

/* Language dropdown: align right so it stays on page (tablet/desktop) */
.nav-language .dropdown-menu {
    left: auto;
    right: 0;
}

.language-toggle {
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 0;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.language-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled .language-toggle {
    background: transparent;
    color: #1e293b;
    border: none;
}

.navbar.scrolled .language-toggle:hover {
    background: transparent;
    color: #475569;
}

/* Language toggle dropdown arrow - ensure consistency */
.language-toggle .dropdown-arrow {
    font-size: 0.7rem !important; /* Same size as other dropdown arrows */
    color: inherit !important; /* Inherit from language toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    margin-left: 0.25rem !important; /* Consistent spacing */
}

/* Language toggle dropdown arrow – keep pointing down (no flip on hover/open) */
.nav-language .nav-dropdown .dropdown-arrow,
.nav-language .nav-dropdown:hover .dropdown-arrow,
.nav-language .nav-dropdown.active .dropdown-arrow,
.language-toggle .dropdown-arrow,
.language-toggle:hover .dropdown-arrow {
    transform: none;
}

.lang-code {
    display: inline-block;
}

/* Phone link in navigation - White button on desktop */
.nav-phone {
    margin-left: 1rem;
}

.nav-phone-link {
    color: #1e293b; /* Dark text for white background */
    background: #ffffff; /* White background */
    padding: 0.4rem 1rem; /* Slimmer pill */
    border-radius: 9999px; /* Pill shape */
    font-weight: 700;
    font-size: 0.8125rem; /* Smaller font - reduced from 0.9375rem */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.nav-phone-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
    color: #1e293b;
    border-color: rgba(255, 255, 255, 0.8);
}

.nav-phone-link:active {
    transform: translateY(-1px) scale(1.02);
}

.navbar.scrolled .nav-phone-link {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(15, 23, 42, 0.1);
}

.navbar.scrolled .nav-phone-link:hover {
    background: #f8fafc;
    color: #1e293b;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phone-icon {
    display: none; /* Hide phone icon */
}

.phone-text {
    display: inline-block; /* Show "Give us a call" text */
    font-weight: 700;
}

.phone-number {
    display: none; /* Hide phone number on desktop */
}

@keyframes phonePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4), 0 4px 15px rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0), 0 6px 20px rgba(59, 130, 246, 0.4);
        transform: scale(1.02);
    }
}

@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* Mobile menu button - Enhanced styling */
/* Wrapper for mobile hamburger + Call us button - hidden on desktop */
.navbar-mobile-right {
    display: none;
}

.menu-toggle {
    display: none; /* Hidden by default (desktop) */
    flex-direction: column; /* Stacks the spans vertically */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .menu-toggle span {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: none;
}

/* ============================================
   HERO SECTION STYLES
   Eye-catching hero section
   ============================================ */

/* ============================================
   HERO SECTION STYLES
   Eye-catching hero section with background image
   ============================================ */

.hero {
    /* Background image for hero section - Driveway Project */
    background-image: url('../Bobby Website Images/Copy of Driveway to road.jpg') !important;
    background-size: cover !important; /* Cover entire hero section */
    background-position: center top !important; /* Top of image aligns with header */
    background-repeat: no-repeat !important; /* Don't repeat the image */
    background-attachment: fixed !important; /* Parallax effect on scroll */
    background-color: #1e293b !important; /* Dark fallback color (not white) */
    
    color: #ffffff; /* White text for contrast */
    padding: 120px 0 60px; /* Adequate padding */
    margin-top: 0; /* No margin - navbar overlays */
    position: relative;
    overflow: hidden;
    min-height: 72.25vh; /* Match service page hero height */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    box-sizing: border-box; /* Include padding in height calculation */
    /* Prevent overflow - CRITICAL */
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    left: 0;
    right: 0;
    /* Ensure background is visible */
    z-index: 1;
}

/* Mobile home page – push hero content below header */
@media (max-width: 768px) {
    .hero {
        padding-top: 180px; /* Space below header */
        padding-bottom: 60px;
    }
}

/* About page hero – same height and layout as home, own background image */
.hero.about-hero {
    background-image: url('../Julians Website Pictures Done/Cement Truck Pouring.jpg') !important;
    background-position: center 52% !important;
    min-height: 72.25vh !important;
    padding: 120px 0 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
@media (max-width: 768px) {
    .hero.about-hero {
        padding-top: 180px !important;
        padding-bottom: 60px !important;
    }
}

/* Force hero container to not overflow but maintain centering */
.hero .container {
    width: 100% !important;
    max-width: 1200px !important; /* Maintain container max-width for centering */
    margin: 0 auto !important; /* Ensure centering */
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* No overlay - show image in natural colors */
.hero::before {
    display: none; /* Completely remove overlay - show natural image colors */
}

/* Hero content should be above the overlay */
.hero-content,
.hero-grid,
.hero-column {
    position: relative;
    z-index: 2; /* Above the overlay */
}

/* Hero Grid - 3 Column Layout */
.hero-grid {
    display: -ms-grid; /* IE 10/11 */
    display: grid; /* Modern browsers */
    -ms-grid-columns: 2fr 1fr 1fr; /* IE 10/11 */
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 2;
    width: 100%; /* Full width within container */
    -webkit-box-align: start; /* Old Safari */
    -ms-flex-align: start; /* IE 10 */
    align-items: start;
    /* Force consistent rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Prevent layout issues */
    min-width: 0;
    box-sizing: border-box;
}

.hero-column {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.hero-column-left {
    /* Left column contains all the content */
    padding-right: 1rem;
}

.hero-column-middle {
    /* Middle column - spacer for 3 column layout */
    display: block;
}

.hero-column-right {
    /* Right column - contains statistics */
    display: flex;
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally */
    padding-left: 1rem;
    padding-right: 0;
}

.hero-content {
    position: relative;
    z-index: 2; /* Keeps content above background and overlay */
    text-align: left; /* Left align content in left column */
    max-width: 100%;
    padding: 1.5rem;
    background: transparent; /* Remove background to eliminate any blur effect */
    border-radius: 6px;
    backdrop-filter: none; /* No blur on hero content */
    -webkit-backdrop-filter: none; /* No blur on hero content */
    border: none; /* Remove border */
}

/* Hero title */
.hero-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: left;
    letter-spacing: -0.3px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-title-main {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 5px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.hero-title-sub {
    display: block;
    font-size: 1.75rem;
    font-weight: 700; /* Balanced weight */
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85), 0 2px 7px rgba(0, 0, 0, 0.75), 1px 1px 4px rgba(0, 0, 0, 0.7); /* Stronger shadow */
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-top: 0.25rem;
    opacity: 1; /* Full opacity for better visibility */
    position: relative;
    padding-left: 0;
    filter: brightness(1.15) contrast(1.1); /* Increase brightness and contrast */
}

/* Hero subtitle */
/* Hero Subheader - H2 */
.hero-subheader {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 600;
    margin: 1rem 0 1.5rem 0;
    line-height: 1.5;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.75), 1px 1px 5px rgba(0, 0, 0, 0.7);
    text-align: left;
    padding: 0;
}

/* Hero CTA - Call to action (kept for backwards compatibility) */
.hero-cta {
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 600;
    margin: 1.5rem 0;
    line-height: 1.5;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.75), 1px 1px 5px rgba(0, 0, 0, 0.7);
    text-align: left;
    padding: 0;
}

.hero-phone-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(255, 182, 0, 0.4);
}

.hero-phone-link:hover {
    color: #FFD700;
    text-shadow: 0 2px 12px rgba(255, 182, 0, 0.6);
    text-decoration: underline;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 100%;
    margin: 0 0 1.25rem 0;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 6px rgba(0, 0, 0, 0.7), 1px 1px 4px rgba(0, 0, 0, 0.65); /* Stronger shadow */
    text-align: left;
    padding: 0;
    font-weight: 400;
    filter: brightness(1.15) contrast(1.1); /* Increase brightness and contrast */
}

.hero-subtitle strong {
    color: #ffffff;
    font-weight: 600;
}

/* Hero contact info - Subtle and professional */
.hero-contact {
    margin: 1rem 0 1.25rem 0;
    text-align: left;
}

.hero-phone-text {
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 6px rgba(0, 0, 0, 0.7), 1px 1px 4px rgba(0, 0, 0, 0.65); /* Stronger shadow */
    padding: 0;
    display: inline-block;
    font-weight: 600; /* Balanced weight */
    filter: brightness(1.15) contrast(1.1); /* Increase brightness and contrast */
}

.hero-phone-link-subtle {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700; /* Balanced weight */
    font-size: 2rem; /* Increased from 1.25rem to make phone number bigger and more prominent */
    transition: all 0.3s ease;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.75), 1px 1px 5px rgba(0, 0, 0, 0.7); /* Stronger shadow for more pop */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent; /* No green background */
    border: none; /* No border */
    border-radius: 8px;
    position: relative;
    /* Remove pulsing animation */
    animation: none;
    filter: brightness(1.15) contrast(1.1); /* Increase brightness and contrast */
}

/* Phone icon before the number */
.hero-phone-link-subtle::before {
    content: '📞';
    font-size: 1.125rem;
    display: inline-block;
}

.hero-phone-link-subtle:hover {
    color: #ffffff;
    background: transparent; /* No green background on hover */
    border: none; /* No border on hover */
    transform: scale(1.05);
    text-decoration: underline; /* Simple underline on hover */
    box-shadow: none; /* No shadow */
}

/* Trust badges under hero */
.trust-badges {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.trust-badge {
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Wraps on mobile */
}

/* Hero statistics - Matching juliandone repo exactly */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap; /* Wraps on mobile */
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-top: 0; /* Matching juliandone repo */
    margin-left: 0; /* Matching juliandone repo */
    margin-right: 0; /* Matching juliandone repo */
}

.stat-label {
    font-size: 0.875rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);
    margin: 0; /* Matching juliandone repo - no margins */
}

/* Scroll indicator */
/* Service Areas Banner - Static Display */
.hero-services-slider {
    position: absolute;
    bottom: 60px; /* Position above scroll indicator */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
    padding: 1rem 0;
}

.services-slider-track {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    background: transparent; /* No background */
    color: #ffffff;
    border-radius: 0; /* No rounded corners - rectangular */
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    border: none; /* No border */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.service-item::after {
    content: '•';
    margin-left: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

.service-item:last-child::after {
    display: none; /* Remove bullet from last item */
}

.service-item:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Mobile adjustments for service areas */
@media (max-width: 768px) {
    .hero-services-slider {
        bottom: 50px; /* Moved down on mobile too */
        padding: 0.75rem 0;
    }
    
    .services-slider-track {
        gap: 0.75rem 1rem;
        padding: 0 1rem;
    }
    
    .service-item {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
    
    .service-item::after {
        margin-left: 1rem;
        font-size: 1rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2; /* Above overlay */
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid rgba(255, 255, 255, 0.9);
    border-bottom: 3px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   BUTTON STYLES
   Professional buttons
   ============================================ */

.btn {
    padding: 14px 32px; /* Comfortable padding */
    border-radius: 6px;
    text-decoration: none; /* Removes underline */
    font-weight: 600;
    display: inline-flex; /* Flexbox for icon alignment */
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease; /* Smooth transitions */
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

/* Primary button - Enhanced for conversions with glistening effect */
.btn-primary {
    background: #FFB600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: none;
    border: none;
    transition: all 0.3s ease;
}

/* Subtle shimmer effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmer 4s infinite;
    z-index: 1;
}

/* Remove sparkle effect */
.btn-primary::after {
    display: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #FFB600;
    border: none;
}

.btn-primary:hover::before {
    animation: shimmer 2s infinite;
}

.btn-primary:hover::after {
    display: none;
}

.btn-primary:active {
    transform: translateY(0);
    background: #FFB600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Make button content appear above shimmer */
.btn-primary > * {
    position: relative;
    z-index: 2;
}

.btn-pulse {
    animation: none;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 182, 0, 0.35), 0 4px 15px rgba(255, 182, 0, 0.25), 0 0 30px rgba(255, 182, 0, 0.2);
    }
    50% {
        box-shadow: 0 10px 30px rgba(255, 182, 0, 0.4), 0 5px 18px rgba(255, 182, 0, 0.3), 0 0 35px rgba(255, 182, 0, 0.25);
    }
}

/* Subtle shimmer animation - controlled brightness */
@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Glow pulse animation */
@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 182, 0, 0.35), 0 4px 15px rgba(255, 182, 0, 0.25), 0 0 30px rgba(255, 182, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 182, 0, 0.4), 0 4px 15px rgba(255, 182, 0, 0.3), 0 0 40px rgba(255, 182, 0, 0.3);
    }
}

/* Sparkle animation */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Large button for prominent CTAs */
.btn-large {
    padding: 14px 60px; /* Made longer - increased horizontal padding */
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 320px; /* Minimum width to make it longer */
}

.btn-icon {
    font-size: 1.3rem;
    display: inline-block;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.btn-text strong {
    font-size: 1.125rem;
    font-weight: 700;
    display: block;
}

.btn-text small {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 2px;
}

.btn-arrow {
    transition: transform 0.3s ease;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-block;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(6px); /* Arrow moves right on hover */
}

.btn-pulse:hover {
    animation: none;
}

/* Secondary button */
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background-color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Full width button */
.btn-full {
    width: 100%;
    justify-content: center;
}


/* Inline phone links - Blue theme to match site */
.inline-phone {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: color 0.2s ease;
}

.inline-phone:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ============================================
   SECTION HEADER STYLES
   Section titles and badges
   ============================================ */

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

.section-badge {
    display: inline-block;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES SECTION STYLES
   Service cards grid
   ============================================ */

.services {
    padding: 100px 0;
    background-color: #ffffff; /* Fallback */
    position: relative;
    overflow: hidden;
}

/* Background image for services section */
.services-background {
    position: absolute;
    inset: 0;
    background-image: url('../images/projects/concrete/Front Entryway with exposed aggregate and stamped concrete borders.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    z-index: 0;
}

/* No overlay - show images naturally */
.services-background::after {
    display: none;
}

.services .container {
    position: relative;
    z-index: 2; /* Above background and overlay */
}

/* Update section header text colors for services section with image background */
.services .section-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Premium Services Header */
.services-header-premium {
    margin-bottom: 5rem;
}

.services-badge-premium {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.services-title-premium {
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 2px 12px rgba(0, 0, 0, 0.6);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.services-subtitle-premium {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    letter-spacing: -0.01em;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    font-weight: 300;
}

.services-stats-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.stat-number-premium {
    font-size: 3rem;
    font-weight: 200;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
}

.stat-label-premium {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.stat-divider-premium {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.services .section-header h2 {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.services .section-header p {
    color: #ffffff;
    text-shadow: none;
    font-size: 1.125rem;
    line-height: 1.8;
    letter-spacing: -0.01em;
    max-width: 800px;
    margin: 0 auto;
}

.services .section-badge {
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
    gap: 2.5rem; /* Comfortable gap for 2 columns */
    margin-top: 4rem; /* More space from header */
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; /* Hidden by default, animated in */
    transform: translateY(30px);
    position: relative;
    overflow: hidden; /* Hidden for non-accordion cards */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Accordion cards - adjust padding for header and overflow */
.service-accordion {
    padding: 2rem 3rem; /* Slightly less padding since header takes space */
    overflow: hidden; /* Keep overflow hidden for card styling, but content can expand */
}

/* Ensure header has enough space for absolute positioned elements */
.service-accordion .service-header {
    padding: 0 60px; /* Add padding on sides for icon and toggle */
    min-height: 60px; /* Minimum height to accommodate icon */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmer 3s ease-in-out infinite;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Hover effect - only for non-accordion cards or when accordion is active */
.service-card:not(.service-accordion):hover,
.service-accordion.active {
    transform: translateY(-12px);
    box-shadow: 
        0 8px 32px rgba(15, 23, 42, 0.12),
        0 2px 8px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

/* Shimmer effect on hover or when active */
.service-card:not(.service-accordion):hover::before,
.service-accordion.active::before {
    transform: scaleX(1);
    animation: shimmer 1.5s ease-in-out infinite;
}

.service-card:not(.service-accordion):hover::after,
.service-accordion.active::after {
    opacity: 1;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Service Accordion Styles - Dropdown functionality */

/* Service header button - clickable to expand/collapse */
.service-header {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: center; /* Center the overall content */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* Center everything */
    gap: 1.5rem;
    transition: all 0.3s ease;
    outline: none; /* Remove default focus outline */
    position: relative; /* For absolute positioning of side elements */
}

.service-header:focus {
    outline: 2px solid rgba(15, 23, 42, 0.2);
    outline-offset: 4px;
    border-radius: 8px;
}

.service-header:hover {
    opacity: 0.8;
}

/* Service icon in header */
.service-header .service-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.3) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
    opacity: 0.85;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    position: absolute; /* Position icon on the left */
    left: 0;
}

/* Service title in header */
.service-header h3 {
    flex: 0 1 auto; /* Don't grow, allow shrink, auto basis - for proper centering */
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center; /* Center the title text */
    line-height: 1.3;
    letter-spacing: -0.02em;
    width: 100%; /* Take full width for centering */
}

/* Toggle icon (+ when closed, - when open) */
.service-toggle-icon {
    font-size: 2rem;
    font-weight: 300;
    color: #64748b;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    position: absolute; /* Position toggle icon on the right */
    right: 0;
}

.service-header:hover .service-toggle-icon {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

/* Rotate icon when expanded */
.service-accordion.active .service-toggle-icon {
    transform: rotate(45deg);
    color: #0f172a;
    background: rgba(15, 23, 42, 0.1);
}

/* Service content - hidden by default, shown when expanded */
.service-content {
    max-height: 0;
    overflow: hidden; /* Hide overflow during animation */
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    padding: 0;
    margin: 0;
}

/* Service content when expanded */
.service-accordion.active .service-content {
    max-height: 2000px; /* Large enough for content */
    opacity: 1;
    padding-top: 2rem;
    padding-bottom: 0.5rem;
}

/* Service description in accordion */
.service-content .service-description {
    margin-bottom: 1.75rem;
    color: #475569;
    line-height: 1.75;
    font-size: 1rem;
}

.service-content .service-description strong {
    color: #0f172a;
    font-weight: 600;
}

/* Service features list in accordion */
.service-content .service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.3) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
    opacity: 0.85;
}

/* Icon animation on hover or when accordion is active */
.service-card:not(.service-accordion):hover .service-icon,
.service-accordion.active .service-header .service-icon {
    transform: translateY(-4px);
    filter: grayscale(0) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    opacity: 1;
}

/* Service card h3 - only applies when not in accordion (for backwards compatibility) */
.service-card:not(.service-accordion) h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    transition: color 0.4s ease;
}

.service-card:not(.service-accordion):hover h3 {
    color: #0f172a;
}

.service-card p {
    color: #475569;
    margin-bottom: 1.75rem;
    line-height: 1.75;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.service-description {
    margin-bottom: 1.75rem;
    color: #475569;
}

.service-description strong {
    color: #0f172a;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: #64748b;
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.875rem;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.service-features li strong {
    color: #0f172a;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card:hover .service-features li {
    color: #475569;
    padding-left: 2.25rem;
}

.service-card:hover .service-features li::before {
    background: rgba(15, 23, 42, 0.1);
    transform: scale(1.1);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6; /* Blue checkmark to match theme */
    font-weight: bold;
}

/* ============================================
   PORTFOLIO SECTION STYLES
   Image gallery grid
   ============================================ */

.portfolio {
    padding: 40px 0 100px; /* Reduced top padding to move section up */
    background-color: #ffffff; /* White background */
    position: relative;
    overflow: hidden;
}

/* Background image for portfolio section - Hidden */
.portfolio-background {
    position: absolute;
    inset: 0;
    display: none; /* Hide background image */
    background-image: url('../images/projects/concrete/One Car Driveway with Extension Regular Concrete.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    z-index: 0;
}

/* No overlay - show images naturally */
.portfolio-background::after {
    display: none;
}

.portfolio .container {
    position: relative;
    z-index: 2; /* Above background and overlay */
}

/* 2-Column Layout for Portfolio Section */
.portfolio-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.portfolio-text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-gallery-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 640px;
    max-height: 1000px; /* Taller images on desktop */
    overflow: hidden; /* Ensure rounded corners are visible and prevent scrolling */
    border-radius: 8px; /* Contractor look: moderate rounding */
    box-sizing: border-box;
}

/* Update section header text colors for portfolio section with white background */
.portfolio .section-header {
    background: transparent;
    padding: 2rem;
    border-radius: 6px;
}

.portfolio .section-header h2 {
    color: #0f172a;
    text-shadow: none;
}

.portfolio .section-header p {
    color: #475569;
    text-shadow: none;
}

.portfolio .section-badge {
    color: #2563eb;
    text-shadow: none;
}

/* Premium Portfolio Slideshow – tall images on desktop */
.portfolio-slideshow {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 640px;
    max-height: 1000px; /* Taller images on desktop */
    padding: 0; /* No padding needed - arrows are inside */
    touch-action: pan-y; /* Allow vertical scroll; horizontal swipe for slides in JS */
    overflow: hidden; /* Prevent any scrolling */
    box-sizing: border-box;
}

.slideshow-container {
    position: relative; /* Ensure arrows are positioned relative to container */
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 640px;
    max-height: 1000px; /* Taller images on desktop */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: none; /* No shadow – was causing dark band below images */
    touch-action: pan-y; /* Allow vertical scroll; horizontal swipe for slides in JS */
    box-sizing: border-box;
}

/* Portfolio Slide - Rounded corners and positioning */
.portfolio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.5s;
    transform: translateX(100%);
    border-radius: 8px;
    overflow: hidden;
}

.portfolio-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    z-index: 10 !important;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
    pointer-events: auto;
}

.portfolio-slide.prev {
    transform: translateX(-100%) !important;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    opacity: 0; /* Hidden by default, animated in */
    transform: translateY(30px);
}

.portfolio-slide .portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 0; /* override generic .portfolio-image 75% so overlay stays in view */
    overflow: hidden;
    display: block;
    border-radius: 8px; /* Contractor look: moderate rounding */
}

.portfolio-slide .portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f8fafc; /* Light background while loading */
    border-radius: 8px !important; /* Contractor look: moderate rounding */
    /* width/height attributes on <img> reserve space for CLS; this fills the container */
    box-sizing: border-box;
}

/* Removed duplicate - using the rule above */

.portfolio-slide.active .portfolio-image {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.portfolio-slide.active .portfolio-image img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important; /* Contractor look: moderate rounding */
}

.portfolio-slide:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 1;
    pointer-events: none !important;
    transform: translateX(100%) !important;
}

.portfolio-slide:not(.active) .portfolio-image {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.portfolio-slide:not(.active) .portfolio-image img {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ensure slideshow images fill container (override height:auto from generic rules) */
.slideshow-container .portfolio-slide .portfolio-image img {
    height: 100% !important;
    min-height: 0;
}

.portfolio-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}


/* Removed hover scale effect - images should not expand on hover */
.portfolio-slide:hover .portfolio-image img {
    transform: none; /* No scaling on hover */
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1); /* Zooms in on hover */
}

/* Slideshow overlay: always visible labels on each slide */
.portfolio-slide .portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 0.85) 40%, transparent 100%);
    color: #fff;
    padding: 2rem 2rem 2rem;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: background 0.4s ease;
    pointer-events: none; /* allow clicking through to image/lightbox */
}
.portfolio-slide .portfolio-overlay h3,
.portfolio-slide .portfolio-overlay p {
    pointer-events: auto;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(100%); /* Hidden by default - for grid items only */
    transition: transform 0.3s ease;
}

.portfolio-slide:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.85), transparent);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0); /* Slides up on hover */
}

.portfolio-slide .portfolio-overlay h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-slide .portfolio-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
}

/* Make portfolio images clickable */
.portfolio-image {
    cursor: pointer;
}

/* Slideshow Navigation Arrows - Enhanced Design */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 3px solid rgba(255, 182, 0, 0.3);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 2.25rem;
    color: #0f172a;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible; /* Allow pulse animation to show outside */
}

/* Shimmer + pulse on arrows — they double the visible “arrows” (2 buttons + 2 glows = 4) */
.slideshow-nav::before {
    display: none; /* Shimmer at left -100% appeared as transparent circle beside arrows */
}

.slideshow-nav::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid rgba(255, 182, 0, 0.9);
    animation: buttonPulse 2s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 182, 0, 0.6);
}

.slideshow-nav > * {
    position: relative;
    z-index: 2;
}

.slideshow-nav:hover {
    background: #FFB600;
    border-color: #FFB600;
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slideshow-nav:hover::before {
    animation: shimmer 2.5s infinite;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    }

.slideshow-nav:active {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Shimmer effect for slideshow nav - subtle animation */

.slideshow-nav:hover::before {
    border-color: rgba(255, 182, 0, 1);
    animation-duration: 1.5s;
}

.slideshow-prev {
    left: 20px; /* Inside the image, 20px from left edge */
}

.slideshow-next {
    right: 20px; /* Inside the image, 20px from right edge */
}

/* Slideshow Indicators */
.slideshow-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

/* Swipe Indicator - Shows users they can swipe on mobile */
.swipe-indicator {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    animation: swipePulse 2s ease-in-out infinite;
    opacity: 1;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.swipe-icon {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.75rem;
    animation: swipeSlide 1.5s ease-in-out infinite;
    display: inline-block;
}

.swipe-text {
    font-size: 0.9375rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Animation for swipe indicator */
@keyframes swipePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
        box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
    }
}

/* Button pulse animation - breathing/pulsing effect */
@keyframes buttonPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        border-width: 5px;
        border-color: rgba(255, 182, 0, 1);
        box-shadow: 0 0 20px rgba(255, 182, 0, 0.6), 0 0 40px rgba(255, 182, 0, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.6;
        border-width: 3px;
        border-color: rgba(255, 182, 0, 0.8);
        box-shadow: 0 0 30px rgba(255, 182, 0, 0.8), 0 0 60px rgba(255, 182, 0, 0.5);
    }
}

@keyframes swipeSlide {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-12px);
    }
    75% {
        transform: translateX(12px);
    }
}

/* Background movement animation - creates a subtle moving effect */
@keyframes backgroundMove {
    0% {
        background-position: center center;
        background-size: 120%;
    }
    50% {
        background-position: 55% 50%;
        background-size: 125%;
    }
    100% {
        background-position: 45% 50%;
        background-size: 122%;
    }
}

/* Hide swipe indicator on desktop, show on mobile */
@media (min-width: 769px) {
    .swipe-indicator {
        display: none;
    }
}

/* Desktop - Reduce hero height so Services section is visible above the fold */
@media (min-width: 1025px) {
    .hero {
        min-height: 72.25vh; /* Match service page hero */
        max-height: 72.25vh; /* Prevent exceeding viewport height */
        padding: 100px 0 60px; /* Reduced bottom padding */
        /* Background image for desktop - ensure it shows */
        background-image: url('../Bobby Website Images/Copy of Driveway to road.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: fixed !important; /* Parallax effect on desktop */
        background-color: transparent !important; /* No white background */
    }
    
    .hero-grid {
        min-height: auto; /* Remove min-height constraint */
    }
}

/* Mobile - Hide language toggle and show phone number */
@media (max-width: 768px) {
    .nav-language {
        display: none; /* Hide language toggle on mobile */
    }
    
    .nav-phone-link .phone-text {
        display: none; /* Hide "Give us a call" on mobile */
    }
    
    .nav-phone-link .phone-number {
        display: inline-block; /* Show phone number on mobile */
    }
    
    .nav-phone-link {
        background: #FFB600;
        color: #ffffff;
        box-shadow: none;
    }
}

/* Pill shape + slim padding for "Give us a call" in header (desktop + mobile nav) */
.nav-phone-mobile .nav-phone-link {
    border-radius: 9999px !important;
    padding: 0.5rem 1rem !important;
}

/* Make swipe indicator more prominent on mobile */
@media (max-width: 768px) {
    .swipe-indicator {
        margin-top: 1.25rem;
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
    }
    
    .swipe-icon {
        font-size: 1.375rem;
        letter-spacing: 0.625rem;
    }
    
    .swipe-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .swipe-indicator {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
        gap: 0.625rem;
    }
    
    .swipe-icon {
        font-size: 1.25rem;
        letter-spacing: 0.5rem;
    }
    
    .swipe-text {
        font-size: 0.8125rem;
    }
}

.slideshow-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slideshow-indicator.active {
    background: #ffffff;
    border-color: #ffffff;
    width: 32px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* ============================================
   LIGHTBOX MODAL STYLES
   Full-screen image viewer
   ============================================ */

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 72.25vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    padding: 0 2rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close {
    top: 30px;
    right: 30px;
    font-size: 3rem;
    line-height: 1;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Hide navigation buttons on mobile */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* ============================================
   TESTIMONIALS SECTION STYLES
   Customer reviews and feedback
   ============================================ */

.testimonials {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
}

/* Override any section-level overflow rules for testimonials */
section#testimonials.testimonials {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* Ensure container inside testimonials has no constraints */
.testimonials .container {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 2.5rem; /* Increased gap for premium spacing */
    margin-top: 3rem;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; /* Hidden by default, animated in */
    transform: translateY(30px);
    position: relative;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: rgba(15, 23, 42, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(15, 23, 42, 0.12);
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.testimonial-text {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    font-style: italic;
    font-size: 1.0625rem;
    position: relative;
    padding-left: 1rem;
}

.testimonial-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
    border-radius: 2px;
}

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

.author-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: #64748b;
}

/* ============================================
   ABOUT SECTION STYLES
   Company information
   ============================================ */

.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%); /* Subtle gray gradient suggesting concrete */
    position: relative;
    overflow: hidden;
}

/* Concrete texture overlay using actual concrete image for authentic look */
.about-background {
    position: absolute;
    inset: 0;
    background-image: url('../images/projects/concrete/New Driveway with Decorative Broom Finish Regular Concrete.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Very subtle - just enough to show texture */
    z-index: 0;
    pointer-events: none; /* Allow clicks to pass through */
    filter: grayscale(100%) brightness(1.2); /* Make it subtle and gray-toned */
}

/* Add a subtle overlay to ensure text readability */
.about-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.7) 0%, rgba(226, 232, 240, 0.5) 100%);
    z-index: 1;
}

/* No overlay - show images naturally */
.about-background::after {
    display: none;
}

.about .container {
    position: relative;
    z-index: 2; /* Above background and overlay */
}

/* Update section badge for about section with white background */
.about .section-badge {
    color: #3b82f6; /* Blue color for badge */
    text-shadow: none; /* No shadow needed on white background */
    text-align: left; /* Left align on desktop */
}

/* About section text with subtle background for contrast */
.about .about-text {
    background: rgba(255, 255, 255, 0.95); /* Slightly transparent white for subtle contrast */
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    border: 1px solid rgba(255, 255, 255, 0.8); /* Subtle border */
    text-align: left; /* Left align on desktop */
}

/* Dark text colors for white background */
.about .about-text h2 {
    color: #0f172a !important; /* Dark text */
    text-shadow: none; /* No shadow needed */
}

.about .about-text p,
.about .about-text .about-intro {
    color: #475569 !important; /* Dark gray text */
    text-shadow: none; /* No shadow needed */
}

/* Stats section within about should also be white */
.about .stat-item {
    background-color: rgba(255, 255, 255, 0.9) !important; /* Slightly transparent white */
    backdrop-filter: none; /* Remove blur effect */
    -webkit-backdrop-filter: none; /* Remove blur effect */
    border: 1px solid rgba(226, 232, 240, 0.8); /* Subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow */
}

.about .stat-item .stat-number {
    color: #0f172a !important; /* Dark text for white background */
    text-shadow: none; /* No shadow needed */
}

.about .stat-item .stat-label {
    color: #64748b !important; /* Dark gray text for white background */
    text-shadow: none; /* No shadow needed */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* Center the content */
}

/* Ensure about-text container is centered */
.about .about-text {
    margin-left: auto;
    margin-right: auto;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0f172a; /* Default dark text */
}

.about-intro {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #475569; /* Default dark text */
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #64748b; /* Default dark text */
}

/* Statistics grid */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Visual cards */
.about-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visual-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.visual-card:hover {
    transform: translateX(10px); /* Slides right on hover */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.visual-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.visual-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.visual-card p {
    color: #64748b;
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION STYLES
   Contact form and information
   ============================================ */

.contact {
    padding: 100px 0 20px; /* Reduced bottom padding by ~96px (1 inch) */
    background-color: #f8fafc; /* Fallback */
    position: relative;
    overflow: hidden;
}


.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Form is slightly wider */
    gap: 4rem;
}

/* Contact form */
.contact-form-wrapper {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #475569;
}

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

/* Contact info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: #64748b;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #64748b;
    line-height: 1.7;
}

.contact-item a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #0f172a;
    text-decoration: underline;
}


.phone-subtext {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form notes and guarantees */
.form-note {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.9375rem;
}

.form-phone-number {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.125rem;
}

.form-guarantee {
    text-align: center;
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #eff6ff; /* Light blue background to match theme */
    border-radius: 8px;
    color: #2563eb; /* Blue text to match theme */
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #93c5fd; /* Light blue border */
}

/* ============================================
   FOOTER STYLES
   Footer information
   ============================================ */

.footer {
    background-color: #0f172a; /* Dark background */
    color: white;
    padding: 60px 0 0; /* Reduced bottom padding by ~1 inch */
    margin-bottom: 0;
}

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

/* Ensure 5 columns on desktop screens */
@media (min-width: 1201px) {
    .footer-content {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem; /* Reduced from 2rem to move bottom up */
    padding-bottom: 0.5rem; /* Reduced bottom padding */
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ============================================
   ANIMATION STYLES
   Scroll animations
   ============================================ */

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

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

/* ============================================
   RESPONSIVE DESIGN
   Mobile, tablet, and desktop styles
   ============================================ */

/* ============================================
   TABLET OPTIMIZATIONS
   Optimized for tablets (769px - 1024px)
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    /* Container - More padding for tablets */
    .container {
        padding: 0 32px; /* Matching juliandone repo exactly */
        max-width: 100%;
    }
    
    /* Navigation - Tablet optimized - Ensure everything fits; overflow visible so dropdown is not clipped */
    .navbar {
        padding: 0.75rem 0 !important; /* Consistent padding - same as desktop */
        overflow: visible !important; /* Dropdown must not go behind hero/background */
    }
    
    .navbar .container {
        gap: 0.75rem; /* Further reduced gap */
        padding: 0 16px; /* Reduced padding */
        max-width: 100%; /* Ensure container doesn't exceed viewport */
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: space-between; /* Space between logo and nav items */
        min-height: 60px !important; /* Consistent min-height */
    }
    
    .logo {
        flex-shrink: 0;
        min-width: auto;
        max-width: 140px;
    }
    
    .logo-img {
        width: 90px;
        max-height: 60px;
    }
    
    .logo-name {
        font-size: 0.75rem !important;
        line-height: 1.15 !important;
    }
    
    .logo-location {
        font-size: 0.55rem !important;
    }
    
    .logo h2 {
        font-size: 1.1rem !important;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }
    
    .logo-tag {
        font-size: 0.6rem;
        white-space: nowrap;
        letter-spacing: 1.5px;
    }
    
    .nav-links {
        gap: 0.75rem; /* Further reduced gap */
        flex-shrink: 1; /* Allow links to shrink if needed */
        margin: 0; /* Remove any margins */
    }
    
    .nav-links a {
        font-size: 0.8125rem; /* Smaller font (13px) */
        white-space: nowrap; /* Prevent text wrapping */
        padding: 0.25rem 0.5rem; /* Reduced padding */
    }
    
    /* Hide phone number button on tablet to make room for other elements */
    .nav-phone {
        display: none; /* Hide phone button on tablet */
    }
    
    /* Hero - Tablet optimized */
    .hero {
        padding: 120px 0 60px; /* Adequate padding */
        min-height: 72.25vh; /* Match service page hero */
        display: flex;
        align-items: center; /* Center content vertically */
        justify-content: center; /* Center content horizontally */
        /* Background image for tablet - ensure it shows */
        background-image: url('../Bobby Website Images/Copy of Driveway to road.jpg') !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important; /* Scroll on tablet for better performance */
        background-color: transparent !important; /* No white background */
    }
    
    .hero-content {
        padding: 2rem 1.5rem; /* More padding than mobile */
        max-width: 700px; /* Limit width for readability */
        margin: 0 auto; /* Center on tablet */
        width: 100%; /* Full width of container */
        background: transparent; /* Remove background to eliminate any blur effect */
        backdrop-filter: none; /* No blur on hero content */
        -webkit-backdrop-filter: none; /* No blur on hero content */
        border: none; /* Remove border */
    }
    
    /* Ensure hero grid fits within hero on tablet */
    .hero-grid {
        grid-template-columns: 2fr 1fr 1fr; /* 3 columns on tablet */
        gap: 2rem;
        min-height: auto; /* Hero section is 72.25vh; grid fills it */
        display: grid;
        align-items: center; /* Center grid items vertically */
    }
    
    .hero-title {
        font-size: 1.875rem; /* Larger than mobile, smaller than desktop */
        margin-bottom: 1rem;
    }
    
    .hero-title-main {
        font-size: 1.875rem;
    }
    
    .hero-title-sub {
        font-size: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .hero-subheader {
        font-size: 1.25rem;
        text-align: center;
        margin: 1rem 0 1.5rem 0;
    }
    
    .hero-cta {
        font-size: 1.25rem;
        text-align: center;
        margin: 1.5rem 0;
    }
    
    .hero-subtitle {
        font-size: 1.125rem; /* Larger than mobile */
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row; /* Keep buttons side by side */
        gap: 1rem;
        justify-content: center;
    }
    
    .btn-large {
        padding: 14px 40px; /* Slightly smaller than desktop */
        font-size: 1rem;
        min-width: 240px; /* Smaller than desktop */
    }
    
    /* Services Section - Ensure it doesn't show above fold */
    .services {
        margin-top: 0; /* No margin - hero section should fill viewport */
        padding-top: 100px; /* Top padding for services section */
    }
    
    /* Services - Tablet grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 2rem; /* Comfortable gap */
        margin-top: 3rem;
    }
    
    .service-card {
        padding: 2.5rem; /* More padding than mobile */
    }
    
    .service-icon {
        font-size: 3rem; /* Slightly smaller than desktop */
    }
    
    .service-card h3 {
        font-size: 1.5rem; /* Slightly smaller than desktop */
    }
    
    /* Portfolio Slideshow - Tablet: fit to section width */
    .portfolio-slideshow {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .portfolio-gallery-column {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .slideshow-nav {
        width: 50px; /* Slightly smaller than desktop */
        height: 50px;
        font-size: 1.75rem;
    }
    
    .slideshow-indicators {
        gap: 0.75rem; /* Comfortable spacing */
    }
    
    /* Testimonials - Tablet grid */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 2rem;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .testimonial-card {
        padding: 2.25rem; /* More padding than mobile */
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .testimonial-text {
        font-size: 1.0625rem; /* Slightly larger than mobile */
    }
    
    /* About Section - Tablet layout */
    .about-content {
        grid-template-columns: 1fr; /* Single column on tablet for better readability */
        gap: 3rem;
    }
    
    .about-text h2 {
        font-size: 2.25rem; /* Slightly smaller than desktop */
    }
    
    .about-intro {
        font-size: 1.1875rem;
    }
    
    .visual-card {
        padding: 1.75rem; /* More padding than mobile */
    }
    
    /* Contact Section - Tablet optimized */
    .contact-grid {
        grid-template-columns: 1fr; /* Single column on tablet */
        gap: 2.5rem;
    }
    
    .contact-info {
        padding: 2rem; /* More padding */
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Footer - Tablet optimized */
    .footer-content {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columns on tablet */
        gap: 2rem;
    }
    
    /* Stats - Tablet grid */
    .stats {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 1.5rem;
    }
    
    /* Hide swipe indicator on tablets */
    .swipe-indicator {
        display: none;
    }
    
    /* Services Intro - Tablet optimized */
    .services-intro {
        font-size: 1.125rem; /* Slightly larger than mobile */
        max-width: 800px;
        margin: 0 auto 2rem;
    }
    
    /* Portfolio CTA - Tablet optimized */
    .portfolio-cta {
        padding: 3rem 2rem; /* More padding than mobile */
        margin-top: 3rem;
    }
    
    .portfolio-cta h2 {
        font-size: 2rem; /* Slightly smaller than desktop */
    }
    
    .portfolio-cta-buttons {
        flex-direction: row; /* Keep buttons side by side */
        gap: 1rem;
        justify-content: center;
    }
    
    /* Section Headers - Tablet optimized */
    .section-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem; /* Slightly smaller than desktop */
    }
    
    .section-subtitle {
        font-size: 1.25rem; /* Comfortable size for tablets */
    }
    
    /* Hero Services Slider - Tablet optimized */
    .hero-services-slider {
        bottom: 60px; /* More space than mobile */
        padding: 1rem 0;
    }
    
    .service-item {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem; /* Slightly larger than mobile */
    }
}

@media (max-width: 768px) {
    /* ========== MOBILE FIT – EVERY PAGE ========== */
    body,
    main,
    #header-container,
    .siding-superior,
    .sc-section,
    .sc-row,
    .sc-gold-bar,
    .sc-footer,
    .sc-footer-main,
    .sc-map-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }
    section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    /* Content images – prevent overflow (exclude slideshow and logo) */
    .sc-section img,
    .sc-img-col,
    .contact-content img,
    .footer img,
    section:not(.hero) img,
    .about-image img,
    .service-card img {
        max-width: 100% !important;
        height: auto;
    }
    /* Tables – scroll horizontally if needed */
    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Forms and iframes – fit viewport */
    iframe {
        max-width: 100% !important;
    }
    .contact-content,
    .contact-form-wrapper,
    .contact-form-wrapper > div,
    .contact-info,
    .footer-content,
    .footer .container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .contact-form-wrapper > div {
        min-height: 400px;
        height: 75vh !important;
    }
    /* Text and pre – prevent long lines from overflowing */
    pre,
    code {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Navigation - Mobile styles */
    .navbar {
        padding: 0.75rem 0 !important; /* Consistent padding - same as desktop */
        overflow: visible !important; /* Don't clip mobile dropdown */
    }
    
    .navbar .container {
        gap: 1rem;
        padding: 0 16px; /* Less padding on mobile */
        min-height: 60px !important; /* Consistent min-height */
        position: relative; /* Positioning context for .nav-links */
        overflow: visible !important;
    }
    
    /* Mobile: show logo (same as desktop), hide business name text */
    .navbar .logo {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
    
    .navbar .logo .logo-img {
        display: block !important; /* Show logo on mobile (same as desktop) */
    }
    
    .navbar-business-name {
        display: none !important; /* Hide business name on mobile; logo only */
    }
    
    .navbar.scrolled .navbar-business-name {
        display: none !important;
    }
    
    .logo h2,
    .logo a h2 {
        font-size: 1.1rem !important; /* Consistent with desktop */
        line-height: 1.2 !important; /* Consistent line height */
    }
    
    .logo-tag {
        font-size: 0.65rem; /* Consistent with desktop */
    }
    
    .nav-links {
        display: none; /* Hide on mobile initially */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw; /* Full viewport width so it's not clipped by container padding */
        margin-left: calc(-50vw + 50%); /* Center under navbar, extend edge-to-edge */
        box-sizing: border-box;
        background: #ffffff !important; /* Solid white so dropdown is always visible */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        gap: 0;
        z-index: 9999 !important; /* Above everything so dropdown is visible */
        max-height: 72.25vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* All nav links dark on white menu (Home was white and invisible) */
    .nav-links a,
    .nav-links a#header-nav-home,
    .nav-links .dropdown-toggle {
        color: #1e293b !important;
        text-shadow: none !important;
    }
    
    .nav-links a::after {
        background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    }
    
    .nav-links a:hover {
        color: #0f172a !important;
    }

    /* Center Residential/Commercial; arrow visible next to title (like desktop) */
    .nav-links .dropdown-toggle {
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Force arrow visible on mobile: override desktop white color (menu has white bg) */
    .nav-links a.dropdown-toggle .dropdown-arrow,
    .nav-links .dropdown-toggle .dropdown-arrow {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 0.4rem;
        color: #0f172a !important;
        font-size: 0.75rem !important;
        transition: transform 0.25s ease;
    }
    
    .nav-links.active {
        display: flex !important; /* Show when active - force visibility */
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-links li {
        padding: 0;
    }
    
    .nav-links a {
        display: block;
        font-size: 0.9375rem;
        padding: 1rem 1.5rem;
        min-height: 48px;
        box-sizing: border-box;
    }
    
    .nav-links .dropdown-toggle {
        display: flex !important;
        padding: 1rem 1.5rem !important;
        min-height: 48px;
        box-sizing: border-box;
    }
    
    .nav-links a::after {
        display: none; /* Hide underline animation on mobile */
    }

    .nav-phone {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .nav-phone-link {
        width: 100%;
        text-align: center;
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.25rem;
        border-radius: 9999px;
    }
    
    .phone-icon {
        font-size: 1.5rem;
    }
    
    .phone-text {
        font-size: 0.7rem;
    }
    
    .phone-number {
        font-size: 1.1rem;
    }
    
    .btn-large {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .btn-text {
        align-items: center;
        text-align: center;
    }
    
    .btn-text small {
        font-size: 0.7rem;
    }

    /* Hide main nav phone on mobile - we use Call us button under hamburger instead */
    .navbar .nav-phone {
        display: none !important;
    }
    
    /* Show hamburger + Call us button stacked on the right */
    .navbar-mobile-right {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.35rem;
        margin-left: auto;
    }
    
    .navbar .menu-toggle {
        display: flex; /* Show menu button on mobile */
        margin-left: 0;
    }
    
    /* Call us button under the 3 lines on mobile */
    .navbar-mobile-call {
        display: block !important;
    }
    
    .navbar-mobile-call .call-us-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.2rem 0.65rem;
        font-size: 0.75rem;
        font-weight: 600;
        color: #fff;
        background: #2563eb;
        border: none;
        border-radius: 6px;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
    }
    
    .navbar-mobile-call .call-us-btn:hover {
        background: #1d4ed8;
        color: #fff;
    }

    /* Hero - Shorter on mobile so it visibly fits the fold */
    .hero {
        padding: 0; /* Remove padding to ensure full coverage */
        min-height: 55vh; /* Shorter on mobile than desktop (was 72.25vh) */
        height: auto;
        display: flex;
        align-items: flex-start; /* Align to top for mobile */
        padding-top: 180px; /* Space below header */
        padding-bottom: 24px; /* Tighter bottom on mobile */
        position: relative; /* Ensure stable positioning on zoom */
        overflow: hidden; /* Ensure background doesn't overflow */
        box-sizing: border-box; /* Include padding in height calculation */
        /* Background image for mobile - ensure it shows */
        background-image: url('../Bobby Website Images/Copy of Driveway to road.jpg') !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important; /* Scroll on mobile for better performance */
        background-color: transparent !important; /* No white background */
    }
    
    /* No overlay on mobile - show natural image colors */
    .hero::before {
        display: none; /* No overlay on mobile */
    }
    
    /* Hero Grid - Stack columns on mobile */
    .hero-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem; /* Reduced gap */
        width: 100%;
    }
    
    .hero-column-left {
        padding-right: 0;
    }
    
    .hero-column-middle {
        display: none; /* Hide empty middle column on mobile */
    }
    
    .hero-column-right {
        padding-left: 0;
        padding-top: 1rem; /* Add spacing when stacked */
    }
    
    .hero-content {
        text-align: center; /* Center content on mobile */
        padding: 1.5rem 1rem; /* Comfortable padding for mobile */
        background: transparent; /* Remove background to eliminate any blur effect */
        backdrop-filter: none; /* No blur on hero content */
        -webkit-backdrop-filter: none; /* No blur on hero content */
        border: none; /* Remove border */
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.75rem; /* Smaller for mobile */
        text-align: center; /* Center on mobile */
        margin-bottom: 0.75rem; /* Reduced margin */
        line-height: 1.2;
        width: 100%;
    }
    
    .hero-title-main {
        font-size: 1.75rem; /* Optimized for mobile */
        text-align: center;
        line-height: 1.2;
        display: block;
    }
    
    .hero-title-sub {
        font-size: 1.125rem; /* Smaller subtitle */
        text-align: center;
        margin-top: 0.375rem; /* Reduced margin */
        line-height: 1.3;
        display: block;
    }

    .hero-subheader {
        font-size: 1.1rem;
        text-align: center;
        margin: 0.875rem 0 1.25rem 0;
        padding: 0 0.5rem;
    }
    
    .hero-cta {
        font-size: 1.1rem;
        text-align: center;
        margin: 1.25rem 0;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem; /* Smaller on mobile - 15px */
        margin-bottom: 1.25rem; /* Adequate margin */
        text-align: center; /* Center on mobile */
        line-height: 1.6;
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .hero-contact {
        text-align: center; /* Center on mobile */
        margin: 1rem 0; /* Adequate margin */
        width: 100%;
    }
    
    .hero-phone-text {
        font-size: 0.9375rem; /* Smaller phone text */
        padding: 0 0.5rem;
    }

    .hero-phone-link-subtle {
        font-size: 1.125rem; /* Readable phone number size */
        padding: 0.4rem 0.875rem;
        display: inline-block;
    }
    
    .hero-buttons {
        flex-direction: column; /* Stack buttons on mobile */
        gap: 1rem; /* Comfortable gap */
        width: 100%;
        justify-content: center; /* Center buttons on mobile */
        margin-top: 1.5rem; /* Adequate margin top */
        padding: 0 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%; /* Full width buttons on mobile */
        min-height: 48px; /* Touch target minimum - increased for better UX */
        padding: 14px 24px; /* Comfortable touch padding */
        font-size: 1rem; /* Readable font size */
        justify-content: center;
    }
    
    .trust-badges {
        justify-content: center; /* Center badges on mobile */
        flex-wrap: wrap;
    }

    .hero-stats {
        gap: 1.5rem; /* Comfortable gap for mobile */
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-stat {
        text-align: center;
        flex: 0 1 auto;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem; /* Readable size for mobile */
        margin-bottom: 0.5rem;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.8125rem; /* Readable label size */
        margin: 0;
        line-height: 1.3;
    }

    /* Sections - Optimized for mobile */
    section {
        padding: 60px 0; /* Adequate padding for mobile */
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Override for testimonials section */
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    .section-header {
        margin-bottom: 2.5rem; /* Adequate margin on mobile */
        text-align: center;
        padding: 0 1rem; /* Add padding for mobile */
    }
    
    .section-header h2 {
        font-size: 1.75rem; /* Smaller on mobile */
        line-height: 1.3;
        margin-bottom: 0.75rem; /* Reduced margin */
    }
    
    .section-header p {
        font-size: 0.9375rem; /* Smaller on mobile - 15px */
        line-height: 1.6; /* Better readability */
    }
    
    /* Premium Services Header - Mobile */
    .services-title-premium {
        font-size: 2.25rem;
        margin-bottom: 1.25rem;
    }
    
    .services-subtitle-premium {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .services-stats-premium {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .stat-divider-premium {
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }
    
    .stat-number-premium {
        font-size: 2.5rem;
    }
    
    .services-header-premium {
        margin-bottom: 3rem;
    }

    /* Services Grid - Single column on mobile */
    .services-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem; /* Comfortable gap */
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    /* Services Grid - 2 columns on tablet */
    @media (min-width: 769px) and (max-width: 1024px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }
    }

    .service-card {
        padding: 1.75rem; /* Comfortable padding for mobile */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-accordion {
        padding: 1.5rem 1.75rem; /* Adjusted for accordion on mobile */
    }
    
    .service-header {
        padding: 0 50px; /* Adjusted for mobile */
        min-height: 50px;
    }
    
    .service-header .service-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .service-header h3 {
        font-size: 1.375rem; /* Readable size for mobile */
        line-height: 1.3;
    }
    
    .service-toggle-icon {
        width: 28px;
        height: 28px;
        font-size: 1.75rem;
    }

    .service-card h3 {
        font-size: 1.375rem; /* Readable headings on mobile */
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .service-content {
        padding-top: 1.5rem; /* Reduced padding on mobile */
    }

    .service-card p,
    .service-description {
        font-size: 0.9375rem; /* Readable text on mobile */
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }
    
    .service-features li {
        font-size: 0.875rem; /* Readable feature text */
        padding: 0.625rem 0;
        padding-left: 1.75rem;
        line-height: 1.6;
    }

    /* Content images (e.g. home page sc-img-col) same size as slideshow – 768px so it applies on home */
    .sc-img-col,
    .siding-superior .sc-img-col {
        min-height: 320px !important;
        height: 90vw !important;
        max-height: 640px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Portfolio Slideshow - Mobile: fitted to page, fill space */
    .portfolio-gallery-column {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        margin-top: 1.5rem;
        overflow: hidden;
        box-sizing: border-box;
    }
    .portfolio-slideshow {
        width: 100%;
        max-width: 100%;
        padding: 0;
        min-height: 260px;
        max-height: none;
        height: auto;
        box-sizing: border-box;
    }
    .slideshow-container {
        width: 100%;
        max-width: 100%;
        min-height: 320px;
        height: 90vw; /* Taller on mobile */
        max-height: 640px;
        border-radius: 16px;
        box-sizing: border-box;
    }
    /* Force slides and images to fill container on mobile */
    .portfolio-slideshow .portfolio-slide,
    .portfolio-slideshow .portfolio-slide .portfolio-image,
    .portfolio-slideshow .portfolio-slide .portfolio-image img {
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 16px;
    }
    
    .slideshow-nav {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    
    .slideshow-prev {
        left: 10px; /* Inside the image on mobile */
    }
    
    .slideshow-next {
        right: 10px; /* Inside the image on mobile */
    }
    
    .portfolio-slide .portfolio-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .portfolio-slide .portfolio-overlay h3 {
        font-size: 1.375rem;
    }
    
    .portfolio-slide .portfolio-overlay p {
        font-size: 0.9375rem;
    }
    
    .slideshow-indicators {
        margin-top: 1.5rem;
        gap: 0.5rem;
    }
    
    .slideshow-indicator {
        width: 8px;
        height: 8px;
    }
    
    .slideshow-indicator.active {
        width: 24px;
    }

    /* Portfolio Grid - Single column on mobile */
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem; /* Reduced gap */
    }

    .portfolio-item {
        margin-bottom: 0; /* Remove extra margin */
    }

    /* All non-hero images same size as slideshow on mobile (90vw, max 640px) */
    .portfolio-grid .portfolio-item .portfolio-image {
        padding-top: 0 !important;
        min-height: 320px;
        height: 90vw;
        max-height: 640px;
        position: relative;
        overflow: hidden;
    }
    .portfolio-grid .portfolio-item .portfolio-image img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .about-image,
    .about-image img {
        min-height: 320px;
        height: 90vw !important;
        max-height: 640px !important;
        object-fit: cover !important;
    }
    .about-image {
        overflow: hidden;
        position: relative;
    }
    .about-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    /* Testimonials Grid - Single column on mobile */
    .testimonial-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem; /* Reduced gap */
    }

    /* Testimonials Grid - Single column on mobile */
    .testimonial-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem; /* Reduced gap */
    }

    .testimonials-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .testimonials .container {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .testimonial-card {
        padding: 1.75rem 1.5rem; /* Comfortable padding for mobile */
        border-radius: 16px;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: 0.75rem;
        left: 1.25rem;
    }

    .testimonial-rating {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        letter-spacing: 1.5px;
    }

    .testimonial-text {
        font-size: 0.9375rem; /* Smaller text on mobile */
        line-height: 1.7;
        margin-bottom: 1.5rem;
        padding-left: 0.875rem;
    }
    
    .testimonial-text::before {
        width: 2px;
    }
    
    .testimonial-author {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    
    .author-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .author-role {
        font-size: 0.8125rem;
    }

    /* About */
    /* About Section - Mobile Optimization */
    .about {
        padding: 60px 0; /* Reduced padding on mobile */
    }
    
    .about-background {
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .about .container {
        padding: 0 1rem; /* Ensure proper container padding */
        width: 100%;
        max-width: 100%;
        display: flex; /* Use flexbox for centering */
        flex-direction: column;
        align-items: center; /* Center all children */
    }
    
    .about-content {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 2rem; /* Comfortable gap */
        width: 100%;
        max-width: 100%;
        margin: 0 auto; /* Center the content */
        justify-items: center; /* Center grid items */
        display: flex; /* Use flexbox for better centering */
        flex-direction: column;
        align-items: center; /* Center all children */
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .about .about-text {
        padding: 2rem 1.5rem; /* Optimized padding for mobile */
        border-radius: 16px;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        margin-left: auto; /* Center the container */
        margin-right: auto; /* Center the container */
        text-align: center !important; /* Force center text on mobile */
        display: block; /* Ensure it's a block element */
    }
    
    .about .section-badge {
        font-size: 0.8125rem;
        margin-bottom: 0.875rem;
        text-align: center !important; /* Force center badge */
    }

    .about-text h2 {
        font-size: 1.75rem; /* Smaller on mobile */
        margin-bottom: 1rem;
        line-height: 1.3;
        text-align: center !important; /* Force center heading */
    }
    
    .about .about-text h2 {
        text-align: center !important; /* Override desktop styles */
    }
    
    .about-intro {
        font-size: 1.0625rem; /* Slightly smaller on mobile */
        margin-bottom: 1.25rem;
        line-height: 1.6;
        text-align: center !important; /* Force center intro text */
    }
    
    .about .about-text .about-intro {
        text-align: center !important; /* Override desktop styles */
    }

    .about-text p {
        font-size: 0.9375rem; /* Smaller text on mobile */
        line-height: 1.7;
        margin-bottom: 1.25rem;
        text-align: center !important; /* Force center paragraphs */
    }
    
    .about .about-text p {
        text-align: center !important; /* Override desktop styles */
    }

    .stats {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.25rem; /* Reduced gap */
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
        justify-items: center; /* Center stats */
    }

    .stat-item {
        padding: 1.25rem 1rem; /* Optimized padding */
        width: 100%;
        max-width: 280px; /* Limit width and center */
        margin: 0 auto; /* Center stat items */
    }
    
    .stat-number {
        font-size: 2rem; /* Smaller on mobile */
    }
    
    .stat-label {
        font-size: 0.875rem; /* Smaller on mobile */
    }
    
    .about-cta {
        margin: 1.5rem 0;
        padding: 1.5rem 1rem;
        text-align: center; /* Center CTA */
        width: 100%;
    }
    
    .about-cta .btn-primary {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        display: inline-block; /* Allow centering */
    }
    
    .about-cta .cta-subtext {
        text-align: center !important; /* Force center CTA subtext */
    }
    
    .about-visual {
        gap: 1.25rem;
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .visual-card {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        text-align: center; /* Center visual card content */
    }
    
    .visual-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        display: block; /* Center icon */
        margin-left: auto;
        margin-right: auto;
    }
    
    .visual-card h4 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        text-align: center; /* Center heading */
    }
    
    .visual-card p {
        font-size: 0.9375rem;
        line-height: 1.6;
        text-align: center; /* Center text */
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 2.5rem; /* Comfortable gap */
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .contact-info {
        margin-bottom: 2rem; /* Add margin */
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .contact-details {
        width: 100%;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .contact-form-wrapper {
        padding: 1.5rem; /* Comfortable padding */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 1.25rem;
        width: 100%;
    }
    
    .form-group label {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px; /* Comfortable padding for touch */
        width: 100%; /* Full width on mobile */
        min-height: 48px; /* Touch target minimum */
        box-sizing: border-box;
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .btn-full {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        padding: 14px 24px;
    }

    /* Footer - Optimized for mobile */
    .footer {
        padding: 40px 0 20px; /* Reduced padding */
    }

    .footer-content {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 2rem; /* Reduced gap */
        text-align: center; /* Center align on mobile */
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.125rem; /* Slightly smaller */
        margin-bottom: 1rem;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

    .footer-section li {
        margin-bottom: 0.5rem;
        font-size: 0.9375rem; /* Smaller text */
    }

    .footer-bottom {
        text-align: center; /* Center align on mobile */
    }
}

/* ============================================
   PREMIUM SERVICE CARDS & EDITORIAL LINKS
   ============================================ */

.premium-service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.premium-editorial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-editorial-link:hover {
    transform: translateX(4px);
    box-shadow: none;
}

.premium-editorial-link:hover span:last-child {
    transform: translateX(4px);
}

/* Mobile Responsive for Premium Cards */
@media (max-width: 768px) {
    .premium-service-card {
        margin-bottom: 2rem;
    }
    
    [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 2rem;
    }
    
    .footer-bottom p {
        font-size: 0.875rem; /* Smaller text */
        margin-bottom: 0.5rem;
    }
    
    /* Nav phone button - hide on mobile, use floating button instead */
    .nav-phone {
        display: none;
    }
    
    /* Floating call button - adjust size for mobile */
    .floating-call-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .floating-call-icon {
        font-size: 1.125rem;
    }
    
    .floating-call-number {
        font-size: 0.875rem;
    }
    
    .trust-badges {
        gap: 1rem;
    }
    
    .trust-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    /* Portfolio - Single column on mobile (768px) since mobile is priority */
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem; /* Reduced gap */
    }
}

@media (max-width: 640px) {
        .portfolio-grid {
            grid-template-columns: 1fr; /* Single column on small mobile too */
            gap: 1rem; /* Less gap on small screens */
        }
        
        /* Smaller text on very small phones */
        body {
            font-size: 15px; /* Slightly smaller base font */
        }
        
        /* Better touch targets for mobile */
        .btn {
            min-height: 44px; /* Minimum touch target size */
            padding: 12px 24px;
        }
        
        /* Images should be responsive */
        img {
            max-width: 100%;
            height: auto;
        }
        
        /* Service cards stack better */
        .services-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        .service-card {
            padding: 1.5rem; /* Less padding on mobile */
        }
        
        .service-icon {
            font-size: 2.5rem; /* Smaller icons on mobile */
        }
        
        .service-card h3 {
            font-size: 1.25rem; /* Smaller headings on mobile */
        }
        
        /* Portfolio items */
        .portfolio-item {
            margin-bottom: 1rem;
        }
        
        .portfolio-image {
            padding-top: 66.67%; /* 3:2 aspect ratio on mobile */
        }
        
        /* Testimonial cards - Extra small mobile */
        .testimonials-grid {
            gap: 1.25rem;
            margin-top: 1.5rem;
            overflow: visible !important;
            overflow-x: visible !important;
            overflow-y: visible !important;
            max-height: none !important;
            height: auto !important;
        }
        
        section#testimonials.testimonials {
            overflow: visible !important;
            overflow-x: visible !important;
            overflow-y: visible !important;
            max-height: none !important;
            height: auto !important;
        }
        
        .testimonial-card {
            padding: 1.5rem 1.25rem;
            border-radius: 14px;
            overflow: visible !important;
            overflow-x: visible !important;
            overflow-y: visible !important;
            max-height: none !important;
            height: auto !important;
        }
        
        .testimonial-card::before {
            font-size: 2.5rem;
            top: 0.5rem;
            left: 1rem;
        }
        
        .testimonial-rating {
            font-size: 1rem;
            margin-bottom: 0.875rem;
            letter-spacing: 1px;
        }
        
        .testimonial-text {
            font-size: 0.875rem;
            line-height: 1.65;
            margin-bottom: 1.25rem;
            padding-left: 0.75rem;
        }
        
        .testimonial-text::before {
            width: 2px;
        }
        
        .author-name {
            font-size: 0.9375rem;
            margin-bottom: 0.25rem;
        }
        
        .author-role {
            font-size: 0.75rem;
        }
        
        /* About Section - Extra Small Mobile */
        .about {
            padding: 50px 0;
        }
        
        .about .container {
            padding: 0 1rem; /* Ensure proper container padding */
        }
        
        .about-content {
            gap: 1.5rem;
            width: 100%;
            max-width: 100%;
        }
        
        .about .about-text {
            padding: 1.75rem 1.25rem;
            border-radius: 14px;
            margin-bottom: 1.5rem;
            width: 100%;
            max-width: 100%;
            margin-left: auto; /* Center the container */
            margin-right: auto; /* Center the container */
            text-align: center !important; /* Force center text */
            display: block; /* Ensure it's a block element */
        }
        
        .about .section-badge {
            font-size: 0.75rem;
            margin-bottom: 0.75rem;
            text-align: center !important; /* Force center badge */
        }
        
        .about-text h2 {
            font-size: 1.5rem;
            margin-bottom: 0.875rem;
            line-height: 1.25;
            text-align: center !important; /* Force center heading */
        }
        
        .about .about-text h2 {
            text-align: center !important; /* Override desktop styles */
        }
        
        .about-intro {
            font-size: 1rem;
            margin-bottom: 1rem;
            line-height: 1.55;
            text-align: center !important; /* Force center intro */
        }
        
        .about .about-text .about-intro {
            text-align: center !important; /* Override desktop styles */
        }
        
        .about-text p {
            font-size: 0.875rem;
            line-height: 1.65;
            margin-bottom: 1rem;
            text-align: center !important; /* Force center paragraphs */
        }
        
        .about .about-text p {
            text-align: center !important; /* Override desktop styles */
        }
        
        .stats {
            gap: 1rem;
            margin-top: 1.25rem;
            width: 100%;
            justify-items: center; /* Center stats */
        }
        
        .stat-item {
            padding: 1rem 0.875rem;
            width: 100%;
            max-width: 260px; /* Limit width and center */
            margin: 0 auto; /* Center stat items */
        }
        
        .stat-number {
            font-size: 1.75rem;
        }
        
        .stat-label {
            font-size: 0.8125rem;
        }
        
        .about-cta {
            margin: 1.25rem 0;
            padding: 1.25rem 0.875rem;
            text-align: center; /* Center CTA */
            width: 100%;
        }
        
        .about-cta .btn-primary {
            font-size: 0.9375rem;
            padding: 0.75rem 1.25rem;
            display: inline-block; /* Allow centering */
        }
        
        .about-cta .cta-subtext {
            text-align: center !important; /* Force center CTA subtext */
        }
        
        .about-visual {
            gap: 1rem;
            width: 100%;
        }
        
        .visual-card {
            padding: 1.5rem 1.25rem;
            width: 100%;
            text-align: center; /* Center visual card content */
        }
        
        .visual-icon {
            font-size: 2rem;
            display: block; /* Center icon */
            margin-left: auto;
            margin-right: auto;
        }
        
        .visual-card h4 {
            font-size: 1.125rem;
            text-align: center; /* Center heading */
        }
        
        .visual-card p {
            font-size: 0.875rem;
            text-align: center; /* Center text */
        }
        
        /* Contact form */
        .contact-form {
            padding: 1.5rem;
        }
        
        .form-group input,
        .form-group textarea {
            font-size: 16px; /* Prevents zoom on iOS */
            padding: 12px;
        }
        
        /* Hero stats */
        .hero-stats {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        .stat-item {
            padding: 1rem;
        }
        
        /* Ensure all images are responsive */
        .portfolio-image img,
        .service-card img,
        .about-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        /* Better spacing for mobile */
        .section-header {
            margin-bottom: 2rem;
        }
        
        /* Trust badges wrap better */
        .trust-badges {
            flex-wrap: wrap;
            justify-content: center;
        }
        
        /* About section images */
        .about-image {
            margin-bottom: 2rem;
        }
        
        /* Contact info spacing */
        .contact-info {
            margin-bottom: 2rem;
        }
        
        /* Form inputs full width on mobile */
        .form-group {
            margin-bottom: 1.25rem;
        }
        
        /* Footer adjustments (only for old .footer, not .sc-footer) */
        footer:not(.sc-footer) {
            padding: 2rem 0;
            text-align: center;
        }
        
        .footer-content {
            flex-direction: column;
            gap: 2rem;
        }
    }

/* Portfolio CTA Section */
.portfolio-cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    text-align: center;
    color: white;
}

.portfolio-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.portfolio-cta p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Mobile optimizations for CTA sections */
@media (max-width: 640px) {
    .portfolio-cta {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .portfolio-cta h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-cta p {
        font-size: 1rem;
    }
    
    .portfolio-cta-buttons {
        flex-direction: column;
    }
    
    .portfolio-cta-buttons .btn {
        width: 100%;
    }
}

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

.portfolio-cta .btn-primary {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
    box-shadow: 0 4px 14px rgba(30, 41, 59, 0.3);
}

.portfolio-cta .btn-primary:hover {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.4);
}

.portfolio-cta .btn-secondary {
    background: white;
    color: #0f172a;
    border: 2px solid white;
}

.portfolio-cta .btn-secondary:hover {
    background: #f8fafc;
}

/* About CTA */
.about-cta {
    margin: 2rem 0;
    text-align: center;
    padding: 2rem;
    background: transparent; /* Removed conflicting background */
    border-radius: 12px;
}

/* Ensure button in about section has proper styling - matches main buttons */
.about-cta .btn-primary {
    background: #FFB600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: none;
    border: none;
    transition: all 0.3s ease;
}

.about-cta .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmer 4s infinite;
    z-index: 1;
}

.about-cta .btn-primary > * {
    position: relative;
    z-index: 2;
}

.about-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #FFB600;
    border: none;
}

.about-cta .btn-primary:hover::before {
    animation: shimmer 2s infinite;
}

.cta-subtext {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px; /* Less padding on very small screens */
    }

    /* Slideshow: fitted to page on small phones */
    .portfolio-gallery-column {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .portfolio-slideshow {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    .slideshow-container {
        width: 100%;
        max-width: 100%;
        min-height: 300px;
        height: 95vw; /* Taller on small phones */
        max-height: 640px;
        box-sizing: border-box;
    }

    /* Content images same size as slideshow on small phones (95vw) */
    .siding-superior .sc-img-col {
        height: 95vw;
        max-height: 640px;
    }
    .portfolio-grid .portfolio-item .portfolio-image {
        height: 95vw;
        max-height: 640px;
    }
    .about-image {
        height: 95vw !important;
        max-height: 640px !important;
    }

    /* Mobile fit – small phones: containers and contact form */
    .contact-form-wrapper,
    .contact-form-wrapper > div {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 400px;
        height: 70vh !important;
        box-sizing: border-box;
    }
    .contact-form-wrapper iframe {
        max-width: 100% !important;
    }

    /* Hero - Extra compact for small phones */
    .hero {
        padding: 0; /* Remove padding to ensure full coverage */
        min-height: 55vh; /* Shorter on mobile */
        height: auto;
        padding-top: 180px; /* Space below header */
        padding-bottom: 16px; /* Compact bottom */
        position: relative; /* Ensure stable positioning on zoom */
        overflow: hidden; /* Ensure background doesn't overflow */
        box-sizing: border-box; /* Include padding in height calculation */
        display: flex;
        align-items: flex-start; /* Align to top for small screens */
        /* Background image for small mobile - ensure it shows */
        background-image: url('../Bobby Website Images/Copy of Driveway to road.jpg') !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important; /* Scroll on small mobile for better performance */
        background-color: transparent !important; /* No white background */
    }
    
    /* No overlay on small mobile - show natural image colors */
    .hero::before {
        display: none; /* No overlay on small mobile */
    }

    .hero-content {
        padding: 1rem 0.875rem; /* Reduced padding for small screens */
        background: transparent; /* Remove background to eliminate any blur effect */
        backdrop-filter: none; /* No blur on hero content */
        -webkit-backdrop-filter: none; /* No blur on hero content */
        border: none; /* Remove border */
    }
    
    .hero-title {
        font-size: 1.5rem; /* Smaller title for small phones */
        margin-bottom: 0.5rem;
    }

    .hero-title-main {
        font-size: 1.5rem;
    }

    .hero-title-sub {
        font-size: 1rem; /* Smaller subtitle */
        margin-top: 0.25rem;
    }

    .hero-subheader {
        font-size: 1rem;
        text-align: center;
        margin: 0.75rem 0 1rem 0;
        padding: 0 0.5rem;
    }
    
    .hero-cta {
        font-size: 1rem;
        text-align: center;
        margin: 1rem 0;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem; /* 14px - readable but compact */
        margin-bottom: 0.875rem;
    }

    .hero-contact {
        margin: 0.5rem 0;
    }

    .hero-phone-text {
        font-size: 0.875rem;
    }

    .hero-phone-link-subtle {
        font-size: 1.5rem; /* Increased from 1rem to make phone number bigger on very small screens */
        padding: 0.375rem 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0.75rem;
        margin-top: 0.875rem;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 44px; /* Touch target minimum */
        padding: 12px 20px;
        justify-content: center;
        font-size: 0.9375rem; /* Slightly smaller button text */
    }

    .hero-stats {
        gap: 1.5rem; /* Matching juliandone repo small mobile */
    }

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

    .stat-number {
        font-size: 1.75rem; /* Matching juliandone repo small mobile */
        margin-bottom: 0.5rem; /* Matching juliandone repo */
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .stat-label {
        font-size: 0.75rem; /* Matching juliandone repo small mobile */
        margin: 0; /* Matching juliandone repo - no margins */
    }

    /* Services slider - optimized for small screens */
    .hero-services-slider {
        bottom: 40px; /* Adjusted position for small screens */
        padding: 0.5rem 0;
    }

    .service-item {
        padding: 0.375rem 1rem; /* Smaller padding */
        font-size: 0.75rem; /* Smaller font */
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px; /* Touch target minimum */
    }

    /* Navbar - compact for small screens */
    .navbar {
        padding: 0.75rem 0;
    }

    /* Section padding - reduced for small screens */
    section {
        padding: 50px 0;
    }
    
    /* Override for testimonials section */
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* Floating Call Button - Subtle and professional */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: #FFB600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
    animation: none;
    font-weight: 600;
    min-width: auto;
    position: relative;
    overflow: hidden;
}

.floating-call-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmer 4s infinite;
    z-index: 1;
}

.floating-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #FFB600;
    border: none;
    animation: none;
}

.floating-call-btn:hover::before {
    animation: shimmer 2s infinite;
}

.floating-call-icon {
    font-size: 1.25rem;
}

.floating-call-number {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.3px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-call-btn {
        animation: none;
    }
}

/* ============================================
   3D INTERACTIVE SHED BUILDER STYLES
   Styles for the 3D interactive shed builder page
   ============================================ */

/* Main builder interface container */
.builder-interface {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

/* Left side: Building controls panel */
.builder-controls {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* Control sections within the panel */
.builder-control-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.builder-control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.builder-control-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

/* Grid of building buttons */
.builder-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Individual building button */
.builder-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    text-align: left;
    font-family: inherit;
}

.builder-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.builder-btn:active {
    transform: translateY(0);
}

.builder-btn-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Action buttons container */
.builder-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.builder-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Instructions box */
.builder-instructions {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.builder-instructions h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.builder-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.builder-instructions li {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    border-bottom: 1px solid #e2e8f0;
}

.builder-instructions li:last-child {
    border-bottom: none;
}

/* Right side: 3D canvas container */
.builder-canvas-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 3D canvas wrapper - already styled inline in HTML */
#shed-3d-canvas {
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Price summary in builder */
.builder-price-summary {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.builder-price-summary h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.builder-cta {
    margin-top: 1.5rem;
}

/* Builder section header adjustments */
.shed-builder-3d .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Active navigation link style */
.nav-links .active {
    color: #3b82f6;
    font-weight: 600;
}

/* Responsive design for 3D builder */
@media (max-width: 1200px) {
    .builder-interface {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 968px) {
    .builder-interface {
        grid-template-columns: 1fr;
    }
    
    .builder-controls {
        max-height: none;
    }
    
    .builder-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #shed-3d-canvas {
        height: 500px !important;
    }
}

@media (max-width: 640px) {
    .builder-controls,
    .builder-price-summary {
        padding: 1.5rem;
    }
    
    .builder-buttons {
        grid-template-columns: 1fr;
    }
    
    .builder-actions {
        flex-direction: column;
    }
    
    .builder-actions .btn {
        width: 100%;
    }
    
    #shed-3d-canvas {
        height: 400px !important;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE FIXES
   Ensure layout is organized for all screen sizes
   ============================================ */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Force consistent rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Prevent image rendering issues */
    image-rendering: -webkit-optimize-contrast; /* Safari */
    image-rendering: crisp-edges; /* Standard */
    -ms-interpolation-mode: bicubic; /* IE */
}

/* Prevent horizontal overflow on all devices */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Container improvements for all screen sizes */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    /* Force consistent rendering */
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Prevent layout shifts */
    min-height: 0;
    box-sizing: border-box;
}

/* Large desktop screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Standard desktop (1025px - 1399px) */
@media (min-width: 1025px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding-left: 32px;
        padding-right: 32px;
    }
    
    .hero-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
}

/* AGGRESSIVE FIX for 1366x768 resolution - MUST WORK */
@media (min-width: 1280px) and (max-width: 1366px) {
    /* Force container to fit screen with proper padding */
    .container {
        max-width: 100% !important;
        padding: 0 32px !important; /* Matching juliandone repo exactly */
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    /* Hero section adjustments - COMPACT */
    .hero {
        padding: 180px 0 20px !important; /* Top padding clears header; reduced bottom */
        min-height: 72.25vh !important; /* Match service page hero */
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .hero-grid {
        grid-template-columns: 1.75fr 0.75fr 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    .hero-title-main {
        font-size: 2.1rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-title-sub {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    /* Navigation - VERY COMPACT */
    .navbar {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .navbar .container {
        padding: 0 32px !important; /* Matching juliandone repo exactly */
        gap: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .nav-links {
        gap: 1rem !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-links a {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.25rem !important;
        white-space: nowrap !important;
    }
    
    .logo h2 {
        font-size: 0.95rem !important;
        line-height: 1.1 !important;
    }
    
    .logo-tag {
        font-size: 0.55rem !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Services grid - 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Testimonials grid - 2 columns */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    /* Portfolio grid */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 2rem !important;
    }
    
    /* Ensure no horizontal overflow anywhere */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }
    
    /* All sections */
    section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Override for testimonials section */
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
    
    /* Footer - Allow 5 columns if screen is wide enough */
    .footer-content {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Tablet landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 32px; /* Matching juliandone repo exactly */
    }
    
    .hero-grid {
        grid-template-columns: 1.5fr 0.5fr 1fr;
        gap: 1.5rem;
    }
    
    .hero-title-main {
        font-size: 2.25rem;
    }
    
    .hero-title-sub {
        font-size: 1.5rem;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

/* Tablet portrait and small desktop (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-column-middle {
        display: none;
    }
    
    .hero-title-main {
        font-size: 2rem;
    }
    
    .hero-title-sub {
        font-size: 1.375rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}

/* Mobile landscape and small tablets (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero {
        padding-top: 180px;
        min-height: 55vh;
    }
    
    .hero-title-main {
        font-size: 1.875rem;
    }
    
    .hero-title-sub {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.875rem;
    }
    
    .services-grid,
    .testimonials-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile portrait (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero {
        padding-top: 180px;
        min-height: 55vh;
        padding-bottom: 12px; /* Reduced bottom padding (moved bottom up) */
    }
    
    .hero-title-main {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-title-sub {
        font-size: 1.125rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 0.9375rem;
    }
}

/* Fix for navigation overflow on all devices */
.navbar .container {
    flex-wrap: nowrap;
    overflow: visible;
}

.nav-links {
    flex-shrink: 1;
    min-width: 0;
}

.nav-language,
.nav-phone {
    flex-shrink: 0;
}

/* Ensure hero stats are properly organized on all screens */
/* Fix contact form layout for all screens */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Ensure portfolio slideshow is responsive */
.portfolio-slideshow {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.portfolio-slide {
    width: 100%;
    max-width: 100%;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Fix footer layout for all screens */
.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Ensure all sections have proper spacing */
section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Override for testimonials section - prevent scrollbars */
section#testimonials.testimonials {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* Fix about section layout */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Ensure service cards don't overflow */
.service-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix text overflow issues */
h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure buttons don't overflow containers */
.btn {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix logo text overflow */
.logo h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .logo h2 {
        font-size: 1.25rem;
        line-height: 1.2;
    }
}

/* Ensure proper z-index stacking – header (and dropdown) above hero/background */
#header-container {
    position: relative;
    z-index: 10000;
}

.navbar {
    z-index: 1000;
}

.dropdown-menu {
    z-index: 10001 !important; /* Above navbar so dropdown is never behind hero/sections */
}

.hero {
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

/* Fix for very small screens (320px - 375px) */
@media (max-width: 375px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .hero-title-main {
        font-size: 1.375rem;
    }
    
    .hero-title-sub {
        font-size: 1rem;
    }
    
    .logo h2 {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
}

/* Print styles - ensure content is organized when printing */
@media print {
    .navbar,
    .menu-toggle,
    .scroll-indicator,
    .scroll-to-top {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   EXACT 1366px WIDTH FIX
   ============================================ */
@media (width: 1366px) {
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 32px !important; /* Matching juliandone repo padding */
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .hero-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .services-grid,
    .testimonials-grid,
    .portfolio-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Override for testimonials - prevent scrollbars */
    .testimonials-grid {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .testimonials .container {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}

/* ============================================
   UNIVERSAL OVERFLOW PREVENTION
   Applies to ALL resolutions
   ============================================ */
* {
    max-width: 100%;
    box-sizing: border-box;
}

section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Override for testimonials section - prevent scrollbars */
section#testimonials.testimonials {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* Fix for common laptop resolutions (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1440px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 32px !important; /* Matching juliandone repo exactly */
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Services grid - 2 columns on medium desktop (already set) */
    
    /* Testimonials - 2 columns on medium desktop */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    section#testimonials.testimonials {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}

/* ============================================
   FINAL RESPONSIVE ENHANCEMENTS
   Professional contractor-grade responsive design
   ============================================ */

/* Ensure all interactive elements have proper touch targets on mobile */
@media (max-width: 768px) {
    /* Buttons - Ensure proper touch targets */
    .btn,
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        min-width: 48px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    /* Links - Ensure they're easily tappable */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Form inputs - Prevent zoom on iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
        min-height: 48px;
    }
    
    /* Service accordion headers - Easy to tap */
    .service-header {
        min-height: 60px;
        padding: 1rem;
    }
    
    /* Portfolio slideshow controls - Easy to tap */
    .slideshow-nav {
        min-width: 48px;
        min-height: 48px;
    }
    
    /* Navigation menu items - Easy to tap */
    .nav-links a {
        min-height: 48px;
        padding: 1rem 0;
    }
}

/* Property Value Sections - Mobile Responsive */
@media (max-width: 768px) {
    .two-column-layout,
    .two-column-layout-reverse {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Service Categories Grid - Stack on mobile */
    .service-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .property-value-section h2,
    .demolition-section h2,
    .commercial-section h2 {
        font-size: 2rem !important;
    }
    
    .property-value-section img,
    .demolition-section img,
    .commercial-section img {
        height: 300px !important;
    }
    
    .image-column-reverse {
        order: 1 !important;
    }
    
    .text-column-reverse {
        order: 2 !important;
    }
    
    .property-value-section,
    .demolition-section,
    .commercial-section {
        padding: 2rem 0 !important;
    }
}

/* Desktop enhancements - Professional spacing and layout */
@media (min-width: 1025px) {
    /* Hero section - Optimal desktop layout */
    .hero {
        min-height: 72.25vh; /* Match service page hero */
        padding: 140px 0 20px; /* Reduced bottom padding (moved bottom up) */
    }
    
    .hero-grid {
        grid-template-columns: 2fr 1fr 1fr; /* 3 columns on desktop */
        gap: 3rem;
        /* Inherit container constraints - no separate max-width or margin */
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-title-main {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .hero-title-sub {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.7;
    }
    
    /* Services - 2 columns on desktop */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .service-card {
        padding: 3rem;
    }
    
    /* Testimonials - 3 columns on desktop */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    /* Contact - Side by side on desktop */
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    /* About - Side by side on desktop */
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    /* Main Content Section - 2 Column Intro Layout */
    .main-content-section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Services Grid - 3 columns on desktop */
    .services-grid-main {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tablet - Main Content Section */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content-section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .services-grid-main {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile - Main Content Section */
@media (max-width: 768px) {
    .main-content-section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .main-content-section [style*="display: none"] {
        display: block !important;
    }
    
    .main-content-section [style*="grid-template-columns: 1fr 1fr"] ~ [style*="display: none"] {
        display: none !important;
    }
    
    .services-grid-main {
        grid-template-columns: 1fr !important;
    }
    
    /* Two Column Sections - Stack on Mobile */
    .two-column-section {
        grid-template-columns: 1fr !important;
    }
    
    .two-column-section img {
        min-height: 300px !important;
    }
}

/* Tablet - Two Column Sections */
@media (min-width: 769px) and (max-width: 1024px) {
    .two-column-section {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .two-column-section img {
        min-height: 350px !important;
    }
}

/* ============================================
   TESTIMONIALS SCROLLBAR FIX - FINAL OVERRIDE
   Ensures NO scrollbars appear in testimonials section
   ============================================ */
section#testimonials.testimonials,
.testimonials,
.testimonials .container,
.testimonials-grid,
.testimonial-card {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
}

/* Override any media query rules */
@media (min-width: 1200px) {
    section#testimonials.testimonials,
    .testimonials,
    .testimonials .container,
    .testimonials-grid,
    .testimonial-card {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    section#testimonials.testimonials,
    .testimonials,
    .testimonials .container,
    .testimonials-grid,
    .testimonial-card {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    section#testimonials.testimonials,
    .testimonials,
    .testimonials .container,
    .testimonials-grid,
    .testimonial-card {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}

@media (min-width: 1025px) {
    section#testimonials.testimonials,
    .testimonials,
    .testimonials .container,
    .testimonials-grid,
    .testimonial-card {
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        height: auto !important;
    }
}

