/* CSS Custom Properties - Industrial Brand Style Guide */
:root {
    --color-primary: #2F2F2F;      /* Charcoal */
    --color-secondary: #6C6C6C;    /* Steel Grey */
    --color-accent: #D35400;       /* Burnt Orange */
    --color-accent-dark: #B8440F;  /* Darker Burnt Orange */
    --color-base: #F5F5F5;         /* Off-White */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-text-dark: #2F2F2F;
    --color-text-light: #6C6C6C;
    --color-border: #CCCCCC;
    
    /* Typography */
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Courier New', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --element-spacing: 2rem;
    
    /* Shadows */
    --shadow-light: 0 2px 8px rgba(47, 47, 47, 0.1);
    --shadow-medium: 0 4px 16px rgba(47, 47, 47, 0.15);
    --shadow-strong: 0 8px 32px rgba(47, 47, 47, 0.2);
    
    /* Border Radius */
    --radius-small: 2px;
    --radius-medium: 4px;
    --radius-large: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    
    /* Performance Optimizations */
    --scroll-offset: 80px; /* Fixed header height for smooth scrolling */
}

/* Smooth scrolling with offset for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Removed duplicate html rule - consolidated above */

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-base);
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

/* Comprehensive h1 font-size coverage to prevent deprecated API warnings */
article h1 {
    font-size: 2.5rem;
}

/* Explicit font-size for h1 within sections to prevent deprecated API warnings */
section h1 {
    font-size: 2.5rem;
}

/* Ensure all h1 elements have explicit font-size (strengthened coverage) */
h1 {
    font-size: 3.5rem !important;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.text-accent {
    color: var(--color-accent);
    font-weight: 700;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.text-mono {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    min-height: 48px;
    border-radius: var(--radius-small);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-medium);
}

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

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

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

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

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

.btn-sm {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Disabled Button States */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled::before,
.btn[disabled]::before {
    display: none;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: var(--color-base);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    margin-top: 80px; /* Account for fixed navbar */
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--color-text-light);
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.75rem;
    color: var(--color-border);
    font-weight: 400;
}

.breadcrumb-item a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.breadcrumb-item:last-child {
    color: var(--color-primary);
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-primary);
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-medium);
}

.navbar.scrolled {
    background: rgba(47, 47, 47, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-logo h2 {
    color: var(--color-white);
    margin-bottom: 0;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-logo a {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

/* Logo hover effect matching homepage behavior */
.nav-logo a:hover .logo-image {
    transform: translateY(-2px);
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
        max-width: 160px;
    }
}

/* Logo underline animation - matches homepage behavior */
a:not(.btn) {
    position: relative;
    transition: color 0.3s ease;
}

a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

a:not(.btn):hover::after {
    width: 100%;
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .nav-logo a {
        transition: none;
    }
    .nav-logo a:hover .logo-image {
        transform: none;
    }
    a:not(.btn)::after {
        transition: none;
    }
}

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

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--color-accent);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Modern Navigation Dropdown Styles */
.dropdown {
    position: relative;
}

/* Remove dropdown arrow - using standard nav-link styling */
/* Only hide arrows on desktop, not mobile */
@media (min-width: 769px) {
    .dropdown-toggle::before {
        display: none !important;
    }
}

/* Ensure dropdown-toggle has same hover effects as other nav-links including underline */
.dropdown-toggle {
    position: relative;
}

/* Desktop hover effects only */
@media (min-width: 769px) {
    .dropdown-toggle:hover {
        color: var(--color-accent);
    }

    /* Maintain underline effect that inherits from .nav-link */
    .dropdown-toggle::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background: var(--color-accent);
        transition: width var(--transition-smooth);
    }

    .dropdown-toggle:hover::after {
        width: 100%;
    }
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--color-white);
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-large);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 1000;
    list-style: none;
    padding: 0.75rem 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-white);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    border-radius: var(--radius-small);
    margin: 0 0.5rem;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-accent);
    transition: height var(--transition-fast);
    border-radius: 2px;
}

.dropdown-link:hover {
    background: rgba(211, 84, 0, 0.05);
    color: var(--color-accent);
    transform: translateX(3px);
}

.dropdown-link:hover::before {
    height: 60%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    margin: 3px 0;
    transition: var(--transition-smooth);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Fallback gradient background - overridden by !important in critical CSS */
    background: linear-gradient(135deg, rgba(47, 47, 47, 0.75) 0%, rgba(47, 47, 47, 0.65) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Hero background image for LCP optimization - matches location pages */
.hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

/* Ensure hero content is above background */
.hero-container {
    position: relative;
    z-index: 1;
}

/* Responsive hero background images for performance */
@media (max-width: 1199px) {
    .hero {
        /* JPEG fallback */
        background: 
            linear-gradient(135deg, rgba(47, 47, 47, 0.75) 0%, rgba(47, 47, 47, 0.65) 100%),
            url('./images/trusted_metal_fabrication_services_northern_beaches_tablet.webp') center center/cover no-repeat;
        /* WebP for modern browsers */
        background: 
            linear-gradient(135deg, rgba(47, 47, 47, 0.75) 0%, rgba(47, 47, 47, 0.65) 100%),
            url('./images/trusted_metal_fabrication_services_northern_beaches_tablet.webp') center center/cover no-repeat;
    }
}

@media (max-width: 799px) {
    .hero {
        /* JPEG fallback */
        background: 
            linear-gradient(135deg, rgba(47, 47, 47, 0.75) 0%, rgba(47, 47, 47, 0.65) 100%),
            url('./images/trusted_metal_fabrication_services_northern_beaches_mobile.webp') center center/cover no-repeat;
        /* WebP for modern browsers */
        background: 
            linear-gradient(135deg, rgba(47, 47, 47, 0.75) 0%, rgba(47, 47, 47, 0.65) 100%),
            url('./images/trusted_metal_fabrication_services_northern_beaches_mobile.webp') center center/cover no-repeat;
    }
}

/* Hero section improvements for 945px viewport range */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        /* Better vertical centering and padding */
        padding-top: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    .hero-content {
        /* Improved text spacing and padding */
        padding: 3rem 2rem;
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-title {
        /* Better line height for improved readability */
        line-height: 1.3 !important;
        margin-bottom: 2rem;
        /* Slightly reduced font size for better fit */
        font-size: 3.2rem;
        /* Add letter spacing for better appearance */
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        /* Improved subtitle spacing and size */
        line-height: 1.6;
        margin-bottom: 3rem;
        font-size: 1.3rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        /* Better button spacing */
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        /* Better button spacing */
        margin: 0.75rem 0.5rem;
        padding: 18px 36px;
    }
}

/* Fine-tune for 945px specifically */
@media (min-width: 900px) and (max-width: 980px) {
    .hero-content {
        /* Perfect centering for this exact range */
        transform: translateY(-20px);
    }
    
    .hero-title {
        /* Optimal font size for 945px */
        font-size: 3.1rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(211, 84, 0, 0.03) 10px,
            rgba(211, 84, 0, 0.03) 20px
        ),
        radial-gradient(circle at 20% 80%, rgba(211, 84, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(211, 84, 0, 0.08) 0%, transparent 50%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--color-white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.hero-content-overlay {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 2rem 2rem 2rem;
    position: relative;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-medium);
    border: 2px solid var(--color-accent);
    box-shadow: var(--shadow-strong);
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    color: var(--color-white);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--color-secondary);
    color: var(--color-white);
}

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

.about .section-header h2 {
    color: var(--color-white);
}

.about .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.about-text h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 90%;
}

.about-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 2rem;
}

.about-features li {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.about-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1rem;
}

.about-image {
    max-width: 350px;
    margin: 0;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-strong);
    transition: all var(--transition-smooth);
    border: 3px solid var(--color-accent);
}

.about-image:hover img {
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 20px 40px rgba(211, 84, 0, 0.3);
    cursor: pointer;
}


.about-image .image-placeholder {
    width: 100%;
    height: 300px;
    background: 
        linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 10px,
            rgba(211, 84, 0, 0.1) 10px,
            rgba(211, 84, 0, 0.1) 20px
        );
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--color-white);
}

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

.service-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-medium);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transition: left var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--color-accent);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.service-svg-icon {
    width: 4rem;
    height: 4rem;
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(340deg) brightness(97%) contrast(97%);
    transition: all var(--transition-smooth);
}

.service-card:hover .service-svg-icon {
    transform: scale(1.1);
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(340deg) brightness(110%) contrast(110%);
}

/* Adjust residential fabrication icon to match visual size of other icons */
.service-svg-icon[src*="residential_fabrication"] {
    width: 4.2rem;
    height: 4.2rem;
}

/* Location SVG Icon Styling */
.location-svg-icon {
    width: 48px;
    height: 48px;
    transition: transform var(--transition-smooth);
}

.area-card:hover .location-svg-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent);
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background: var(--color-base);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: minmax(200px, auto);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-smooth);
    background: var(--color-white);
    border: 2px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--color-accent);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
    cursor: pointer;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-medium);
}

.portfolio-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform var(--transition-smooth);
    display: block;
}

.portfolio-image .image-placeholder {
    width: 100%;
    height: 280px;
    background: 
        linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(211, 84, 0, 0.1) 0px,
            rgba(211, 84, 0, 0.1) 2px,
            transparent 2px,
            transparent 20px
        );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(47, 47, 47, 0.95));
    color: var(--color-white);
    padding: 2rem;
    transform: translateY(100%);
    transition: all var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    color: var(--color-white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Modal System */

.modal,
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    /* Container for modal image - let image control sizing */
    position: relative;
    animation: zoomIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    /* Standardized modal sizing system - consistent across all pages */
    max-width: 1200px; /* Maximum width for landscape images */
    max-height: 90vh; /* Respect viewport height on all devices */
    min-width: 400px; /* Minimum size for small images */
    width: auto;
    height: auto;
    border-radius: var(--radius-medium);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    display: block;
}

/* Responsive sizing for mobile devices */
@media (max-width: 768px) {
    .modal-image {
        max-width: 95vw;
        min-width: 300px;
    }
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: none; /* Hidden by default */
    font-weight: bold;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2001;
}

.modal-close:hover {
    background: var(--color-white);
    transform: scale(1.1);
}

/* Modal Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2001;
    user-select: none;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(255, 255, 255, 0.9);
}

/* Modal Counter */
.modal-counter {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .modal-prev {
        left: 10px;
        top: 50%;
    }
    
    .modal-next {
        right: 10px;
        top: 50%;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
    }
    
    .modal-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

.modal-info {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: var(--radius-small);
    text-align: center;
    backdrop-filter: blur(10px);
}

.modal-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.modal-info p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .modal-info {
        bottom: -60px;
        padding: 0.8rem;
    }
    
    .modal-info h3 {
        font-size: 1.1rem;
    }
    
    .modal-info p {
        font-size: 0.9rem;
    }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--color-primary);
    color: var(--color-white);
}

/* Reliable scroll targeting for contact section */
#contact {
    scroll-margin-top: 100px;
    scroll-snap-align: start;
}

.contact .section-header h2 {
    color: var(--color-white);
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Top Row - Info Left, Form Right */
.contact-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Contact Map Section - Centered Below */
.contact-map-section {
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-medium);
    border-left: 4px solid var(--color-accent);
    backdrop-filter: blur(10px);
}

.contact-item h3,
.contact-item h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-smooth);
}

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

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--radius-medium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    min-height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-smooth);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.2);
}

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

/* Honeypot spam protection - Hide fields from humans, visible to bots */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* reCAPTCHA Styling */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.75);
    }
}

/* reCAPTCHA v3 badge support */
body.recaptcha-badge-mounted .grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000 !important;
    right: 1.25rem !important;
    bottom: 1.25rem !important;
    transform: none !important;
}

body.recaptcha-badge-mounted #scrollToTop {
    bottom: 5.5rem;
}

#recaptcha-badge-host {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
}

@media (max-width: 768px) {
    body.recaptcha-badge-mounted .grecaptcha-badge {
        right: 1rem !important;
        left: auto !important;
        bottom: 1rem !important;
    }

    body.recaptcha-badge-mounted #scrollToTop {
        bottom: 5rem;
        right: 1.5rem;
    }

    #recaptcha-badge-host {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Form Success Styles */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-medium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-success .success-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    display: block;
}

.form-success h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-success p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-success .btn {
    margin-top: 1rem;
}

/* Contact Map Section */
.contact-map {
    margin: 3rem 0;
}

.map-container {
    position: relative;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 2px solid var(--color-accent);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
    filter: grayscale(30%) contrast(120%);
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(47, 47, 47, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-strong);
    max-width: 250px;
    border: 2px solid var(--color-accent);
}

.map-info h4 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.map-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* FAQ Section */
.faq {
    padding: var(--section-padding);
    background-color: var(--color-white);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    padding-right: 2rem;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 300;
    transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.faq-answer p {
    margin-bottom: 0;
}

/* Individual Article Styles */
.article-single {
    padding: 2rem 0 var(--section-padding);
    background-color: var(--color-white);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.article-header .article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.article-header .article-category {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-header h1,
.article-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.article-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.article-content li strong {
    color: var(--color-primary);
}

.article-cta {
    background: var(--color-base);
    padding: 2rem;
    border-radius: var(--radius-large);
    text-align: center;
    margin: 3rem 0;
    border-left: 4px solid var(--color-accent);
}

.article-cta h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.article-cta p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .article-header h1,
    .article-header h2 {
        font-size: 2rem;
    }
    
    .article-lead {
        font-size: 1.1rem;
    }
    
    .article-content {
        padding: 0 1rem;
    }
}

/* Footer */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

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

/* Mobile footer optimization for 3-column layout */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
        color: var(--color-accent);
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .footer-section ul {
        margin-bottom: 1.5rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.8rem;
    }
    
    .footer-section ul li a {
        font-size: 1rem;
        padding: 0.4rem 0;
        display: block;
    }
    
    .footer-section p {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.8;
    }
    
    /* Contact section specific styling */
    .footer-section:last-child {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 0.5rem;
    }
    
    .footer-section:last-child p {
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    /* Social links mobile styling */
    .social-links {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .social-links a {
        font-size: 1rem;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-content: center;
    }
    
    /* Footer bottom mobile styling */
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .legal-links {
        display: flex;
        gap: 2rem;
        justify-content: center;
    }
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-section h4:not(:first-child) {
    margin-top: 2.5rem;
}

/* Mobile specific spacing for Service Areas */
@media (max-width: 768px) {
    .footer-section h4:not(:first-child) {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Balanced spacing for all sections */
    .footer-section h4:first-child + ul {
        margin-bottom: 1.5rem;
    }
    
    .footer-section h4:not(:first-child) + ul {
        margin-bottom: 1.5rem;
    }
}

.footer-section h3 {
    font-size: 1.4rem;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color var(--transition-smooth) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.9rem !important;
    padding-bottom: 0 !important;
    transform: none !important;
}

.footer-section ul li a:hover {
    color: var(--color-accent) !important;
    border-bottom: none !important;
    transform: none !important;
}

/* Footer contact links styling (phone and email) */
.footer-section p a {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color var(--transition-smooth) !important;
}

.footer-section p a:hover {
    color: var(--color-accent) !important;
    border-bottom: none !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Single Line Footer Layout */
.footer-single-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Footer Main Line - Copyright and Legal Links */
.footer-main-line {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.copyright-short {
    display: none;
}

.copyright-full {
    display: inline;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin: 0 0.5rem;
}

.footer-main-line a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color var(--transition-smooth) !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
    position: relative;
}

.footer-main-line a:hover {
    color: var(--color-accent) !important;
}

/* Built By Section */
.built-by {
    opacity: 0.7;
    transition: opacity var(--transition-smooth);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.built-by:hover {
    opacity: 1;
}

.built-by a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    transition: color var(--transition-smooth) !important;
    white-space: nowrap;
    position: relative;
}

.built-by a:hover {
    color: var(--color-accent) !important;
}

.built-by img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: opacity var(--transition-smooth);
    flex-shrink: 0;
}

.built-by a:hover img {
    opacity: 1;
}

.built-by-short {
    display: none;
}

.built-by-full {
    display: inline;
}

/* Tablet Responsive (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .footer-single-line {
        gap: 1.5rem;
    }
    
    .copyright-full {
        display: none;
    }
    
    .copyright-short {
        display: inline;
    }
    
    .footer-main-line a {
        font-size: 0.85rem !important;
    }
    
    .separator {
        font-size: 0.85rem;
    }
}

/* Mobile Responsive (< 768px) */
@media (max-width: 767px) {
    .footer-single-line {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-main-line {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copyright-full {
        display: inline;
    }
    
    .copyright-short {
        display: none;
    }
    
    .footer-main-line a {
        font-size: 0.85rem !important;
    }
    
    .separator {
        display: none;
    }
    
    .built-by a {
        font-size: 0.7rem !important;
        gap: 0.3rem;
        justify-content: center;
    }
    
    .built-by img {
        width: 12px;
        height: 12px;
    }
    
    .built-by-full {
        display: inline;
    }
    
    .built-by-short {
        display: none;
    }
}

/* Ultra-compact mobile (< 480px) */
@media (max-width: 479px) {
    .footer-single-line {
        gap: 0.8rem;
    }
    
    .legal-links {
        gap: 1.5rem;
    }
    
    .legal-links a {
        font-size: 0.8rem !important;
    }
}

/* Social Links */
.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--radius-small);
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.social-links a svg {
    flex-shrink: 0;
    transition: transform var(--transition-smooth);
}

.social-links a:hover svg {
    transform: scale(1.1);
}

/* Articles Page Styles */
.articles-hero {
    padding: 6rem 0 4rem;
    background: 
        linear-gradient(135deg, rgba(47, 47, 47, 0.9) 0%, rgba(108, 108, 108, 0.8) 100%),
        var(--color-primary);
    text-align: center;
    color: var(--color-white);
}

.articles-hero-content h1,
.articles-hero-content h2 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.articles-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.articles-section {
    padding: var(--section-padding);
    background: var(--color-base);
}

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

.article-card {
    background: var(--color-white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--color-accent);
}

.article-image .image-placeholder {
    width: 100%;
    height: 200px;
    background: 
        linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%),
        repeating-linear-gradient(
            45deg,
            rgba(211, 84, 0, 0.1) 0px,
            rgba(211, 84, 0, 0.1) 2px,
            transparent 2px,
            transparent 20px
        );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Article Images - Mobile Optimized */
.article-image {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.article-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: var(--radius-medium);
}

.article-image picture {
    display: block;
    width: 100%;
}

.article-card .article-image {
    height: 200px;
    overflow: hidden;
}

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

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

/* Full article page images */
.full-article .article-image {
    margin: 2rem 0;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.full-article .article-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    object-position: center bottom;
    border-radius: var(--radius-medium);
}

/* Article Images Mobile Responsive */
@media (max-width: 768px) {
    .article-card .article-image {
        height: 200px;
        margin-bottom: 1rem;
        border-radius: var(--radius-small);
    }
    
    .article-card .article-image img {
        object-position: center bottom;
    }
    
    .full-article .article-image {
        margin: 1.5rem 0;
        border-radius: var(--radius-small);
        max-width: 100%;
    }
    
    .full-article .article-image img {
        max-height: 300px;
        border-radius: var(--radius-small);
        object-position: center bottom;
    }
}

@media (max-width: 480px) {
    .article-card .article-image {
        height: 180px;
        margin-bottom: 0.75rem;
    }
    
    .article-card .article-image img {
        object-position: center bottom;
    }
    
    .full-article .article-image {
        margin: 1rem 0;
        max-width: 100%;
    }
    
    .full-article .article-image img {
        max-height: 250px;
        object-position: center bottom;
    }
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-category {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-date {
    color: var(--color-text-light);
    font-weight: 500;
    font-family: var(--font-mono);
}

.article-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-card h2 a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.article-card h2 a:hover {
    color: var(--color-accent);
}

.article-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--color-base);
    color: var(--color-text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-small);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Full Articles Styles */
.full-articles {
    display: none;
    padding: 2rem 0;
    background: var(--color-white);
}

.full-article {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-base);
}

.article-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
}

.article-breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-header h1,
.article-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta-full {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
    font-family: var(--font-mono);
}

.article-author {
    font-weight: 700;
    color: var(--color-accent);
}

.article-body {
    line-height: 1.7;
    font-size: 1rem;
}

.article-intro {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-base);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    font-weight: 500;
}

.article-body h2 {
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    font-size: 1.6rem;
}

.article-body h3 {
    color: var(--color-text-dark);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.pricing-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-small);
    text-align: center;
    border: 2px solid var(--color-base);
    box-shadow: var(--shadow-light);
}

.pricing-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.pricing-item p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

.decision-matrix, .trend-showcase, .warning-signs, .timeline-summary {
    background: var(--color-base);
    padding: 2rem;
    border-radius: var(--radius-small);
    margin: 2rem 0;
    border-left: 4px solid var(--color-accent);
    box-shadow: var(--shadow-light);
}

.decision-matrix h3, .trend-showcase h3, .warning-signs h3, .timeline-summary h2 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.article-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, #B8440F 100%);
    color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-medium);
    text-align: center;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-strong);
}

.article-cta h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.article-cta .btn {
    background: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-white);
    font-weight: 700;
}

.article-cta .btn:hover {
    background: var(--color-base);
    transform: translateY(-2px);
}

/* Service Page Styles */
.service-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 8rem 0 5rem;
    margin-top: 0;
}

.service-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.service-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.service-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.service-hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--color-accent);
    font-weight: bold;
}

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

.service-overview {
    padding: 5rem 0;
    background: var(--color-white);
}

.service-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Ensure consistent styling for all service overview content */
.overview-content,
.service-overview-content {
    max-width: 100%;
}

.overview-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

/* Clickable overview image hover effects */
.overview-image img.portfolio-clickable {
    cursor: pointer;
}

.overview-image img.portfolio-clickable:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.service-highlights {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.services-offered {
    padding: 5rem 0;
    background: var(--color-base);
}

.service-detail-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-detail-card .service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-detail-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-features {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.service-features li {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.service-process {
    padding: 5rem 0;
    background: var(--color-white);
}

.process-timeline {
    display: grid;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    background: var(--color-accent);
    color: var(--color-white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.service-gallery {
    padding: 5rem 0;
    background: var(--color-base);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Force consistent gallery overlay styling across all service pages */
.gallery-item .gallery-overlay,
.gallery-grid .gallery-item .gallery-overlay,
.service-gallery .gallery-item .gallery-overlay,
section .gallery-grid .gallery-item .gallery-overlay,
section .container .gallery-grid .gallery-item .gallery-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.9) 100%) !important;
    background-color: transparent !important;
    color: var(--color-white) !important;
    padding: 2rem 1.5rem 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(1px) !important;
    transform: none !important;
    transition: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure no portfolio overlay styles interfere with gallery items */
.gallery-item .gallery-overlay:not(.portfolio-overlay) {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.9) 100%) !important;
}

/* Nuclear option - target any div with gallery-overlay class inside gallery items */
div.gallery-overlay,
.gallery-item div.gallery-overlay,
.gallery-grid .gallery-item div.gallery-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.9) 100%) !important;
    background-color: transparent !important;
}

/* Override any potential conflicting portfolio styles */
.gallery-item:not(.portfolio-item) .gallery-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.9) 100%) !important;
}

/* Service CTA Section Styling */
.service-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(211, 84, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.service-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.service-cta h2 {
    color: var(--color-white);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

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

.service-cta .btn {
    min-width: 200px;
    font-size: 1.1rem;
    padding: 18px 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.service-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.gallery-overlay h4 {
    color: var(--color-white) !important;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

.gallery-overlay p {
    color: var(--color-white) !important;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.gallery-cta {
    text-align: center;
    padding-top: 3rem;
}

.compliance-section, .location-services {
    padding: 5rem 0;
}

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

.compliance-item, .location-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
}

.location-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.location-card ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.location-card ul li {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.location-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.location-link:hover {
    color: var(--color-accent-dark);
}

.service-contact {
    padding: 5rem 0;
    background: var(--color-base);
}

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

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.service-areas {
    margin-top: 2rem;
}

.service-areas h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-areas ul {
    list-style: none;
    padding-left: 0;
}

.service-areas ul li {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cost-guide-preview {
    padding: 5rem 0;
    background: var(--color-white);
}

.cost-factor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cost-factor {
    text-align: center;
    padding: 2rem;
    background: var(--color-base);
    border-radius: var(--radius-medium);
}

.cost-factor h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cost-guide-cta {
    text-align: center;
    background: var(--color-base);
    padding: 3rem;
    border-radius: var(--radius-medium);
}

.cost-guide-cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.service-guarantee {
    margin-top: 2rem;
}

.service-guarantee h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-guarantee ul {
    list-style: none;
    padding-left: 0;
}

.service-guarantee ul li {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.materials-industries {
    padding: 5rem 0;
    background: var(--color-white);
}

.materials-industries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.materials-section, .industries-section {
    background: var(--color-base);
    padding: 3rem;
    border-radius: var(--radius-medium);
}

.materials-section h3, .industries-section h3 {
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.materials-list, .industries-list {
    display: grid;
    gap: 1.5rem;
}

.material-item, .industry-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-light);
}

.material-item h4, .industry-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.material-item p, .industry-item p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

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

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    font-style: italic;
}

/* Responsive Design */
/* Intermediate breakpoint to fix hero section layout on tablets/small laptops */
@media (max-width: 950px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 600px;
    }
}

/* Specific adjustment for tablet range to reduce hero stats spacing */
@media (min-width: 769px) and (max-width: 950px) {
    .hero-content-overlay {
        height: 380px;
        padding: 0.5rem 2rem 1.5rem 2rem;
    }
    
    .hero-stats {
        margin-bottom: 0rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-primary);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-strong);
        padding: 0.75rem 0;
        overflow: visible;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.3rem 0;
    }
    
    /* Hide dropdown menu entirely on mobile */
    .dropdown-menu {
        display: none !important;
    }
    
    /* Remove dropdown arrow on mobile */
    .dropdown-toggle::after,
    .dropdown-toggle::before {
        display: none !important;
    }
    
    /* Style dropdown-toggle like regular nav-link on mobile */
    .dropdown-toggle {
        color: var(--color-white);
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all var(--transition-smooth);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero {
        padding-top: 100px !important;
        min-height: 80vh !important;
        padding-bottom: 60px !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .hero-content-overlay {
        height: 350px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text p {
        max-width: 100%;
    }
    
    .contact-top-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-overlay {
        position: static;
        margin-top: 1rem;
        max-width: none;
        background: rgba(47, 47, 47, 0.9);
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-hero-content h1,
    .articles-hero-content h2 {
        font-size: 2.2rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .full-article {
        padding: 2rem;
        margin: 0 0 2rem;
    }
    
    .article-header h1,
    .article-header h2 {
        font-size: 2rem;
    }

    .article-meta-full {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .article-cta {
        padding: 2rem;
    }

    /* Service Page Mobile Optimizations */
    .service-hero {
        padding: 6rem 0 4rem;
    }
    
    /* Service CTA Mobile Optimizations */
    .service-cta {
        padding: 4rem 0;
    }
    
    .service-cta h2 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .service-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .service-cta .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-hero-subtitle {
        font-size: 1rem;
    }
    
    .service-hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .service-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-highlights {
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-card {
        padding: 2rem 1.5rem;
    }
    
    .process-timeline {
        gap: 2rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .compliance-grid, .location-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cost-factor-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-guide-cta {
        padding: 2rem;
    }
    
    .manufacturing-cta-buttons {
        flex-direction: column;
    }
    
    .materials-industries-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .materials-section, .industries-section {
        padding: 2rem;
    }
    
    /* Additional Mobile Fixes for 768px */
    
    /* Fix container overflow */
    .container {
        max-width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    /* Fix image responsiveness */
    .service-gallery img,
    .overview-image img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Fix button alignment and styling */
    .service-hero-buttons,
    .gallery-cta,
    .manufacturing-cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .service-hero-buttons .btn,
    .gallery-cta .btn,
    .manufacturing-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Fix service card text overflow */
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix form width issues */
    .contact-form {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        box-sizing: border-box;
        width: 100%;
    }
    
    /* Fix text wrapping on technical terms */
    .service-features li,
    .compliance-item p,
    .location-card p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix gallery overlay text */
    .gallery-overlay h4 {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-content-overlay {
        height: 300px;
        padding: 0.5rem;
    }
    
    .hero-stats {
        padding: 1rem;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .articles-hero {
        padding: 5rem 0 3rem;
    }
    
    .articles-hero-content h1,
    .articles-hero-content h2 {
        font-size: 1.8rem;
    }
    
    .article-intro {
        padding: 1.5rem;
    }
    
    .decision-matrix, .trend-showcase, .warning-signs, .timeline-summary {
        padding: 1.5rem;
    }

    /* Service Page Small Mobile Optimizations */
    .service-hero {
        padding: 5rem 0 3rem;
    }
    
    .service-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .service-hero-subtitle {
        font-size: 0.9rem;
    }
    
    .service-hero-features {
        gap: 0.5rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    .service-overview, .services-offered, .service-process, 
    .service-gallery, .compliance-section, .location-services, 
    .service-contact, .cost-guide-preview, .materials-industries {
        padding: 3rem 0;
    }
    
    .service-detail-card {
        padding: 1.5rem;
    }
    
    .service-detail-card .service-icon {
        font-size: 2rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }
    
    .compliance-item, .location-card {
        padding: 1.5rem;
    }
    
    .contact-methods {
        margin: 1.5rem 0;
    }
    
    .cost-factor {
        padding: 1.5rem;
    }
    
    .materials-section, .industries-section {
        padding: 1.5rem;
    }
    
    .material-item, .industry-item {
        padding: 1rem;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    /* Comprehensive Service Page Mobile Fixes */
    
    /* Fix text overflow issues */
    .service-hero-content,
    .service-overview-grid,
    .services-offered .container,
    .service-process .container,
    .service-gallery .container,
    .compliance-section .container,
    .location-services .container,
    .service-contact .container,
    .cost-guide-preview .container,
    .materials-industries .container {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix long words and technical terms */
    .service-detail-card h3,
    .compliance-item h3,
    .location-card h3,
    .material-item h4,
    .industry-item h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    /* Fix service feature lists */
    .service-features li {
        font-size: 0.8rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    /* Optimise images for mobile */
    .service-gallery img,
    .overview-image img,
    .gallery-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: var(--radius-small);
    }
    
    .gallery-item {
        display: flex;
        flex-direction: column;
    }
    
    /* Fix form styling */
    .contact-form {
        width: 100%;
        max-width: none;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
        word-wrap: break-word;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 16px;
        min-height: 48px;
        font-size: 0.9rem;
        border-radius: var(--radius-small);
        border: 1px solid var(--color-border);
    }
    
    /* Fix button colors and styling for service pages */
    .service-hero-buttons .btn,
    .gallery-cta .btn,
    .manufacturing-cta-buttons .btn,
    .cost-guide-cta .btn {
        width: 100%;
        max-width: 280px;
        margin: 0.5rem 0;
        text-align: center;
        display: block;
    }
    
    .service-hero-buttons .btn-primary,
    .contact-form .btn-primary {
        background: var(--color-accent);
        color: var(--color-white);
        border: 2px solid var(--color-accent);
    }
    
    .service-hero-buttons .btn-primary:hover,
    .contact-form .btn-primary:hover {
        background: var(--color-accent-dark);
        border-color: var(--color-accent-dark);
    }
    
    .service-hero-buttons .btn-secondary,
    .gallery-cta .btn-secondary,
    .cost-guide-cta .btn-secondary {
        background: transparent;
        color: var(--color-accent);
        border: 2px solid var(--color-accent);
    }
    
    .service-hero-buttons .btn-secondary:hover,
    .gallery-cta .btn-secondary:hover,
    .cost-guide-cta .btn-secondary:hover {
        background: var(--color-accent);
        color: var(--color-white);
    }
    
    /* Fix service link styling */
    .service-link {
        display: inline-block;
        color: var(--color-accent);
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        margin-top: 1rem;
        padding: 0.5rem 0;
        border-bottom: 2px solid transparent;
        transition: var(--transition-fast);
    }
    
    .service-link:hover {
        color: var(--color-accent-dark);
        border-bottom-color: var(--color-accent);
    }
    
    /* Fix contact method links */
    .contact-method a {
        color: var(--color-accent);
        text-decoration: none;
        font-weight: 600;
        word-wrap: break-word;
    }
    
    .contact-method a:hover {
        color: var(--color-accent-dark);
        text-decoration: underline;
    }
    
    /* Fix location links */
    .location-link {
        color: var(--color-accent);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        margin-top: 1rem;
        display: inline-block;
        padding: 0.5rem 0;
    }
    
    .location-link:hover {
        color: var(--color-accent-dark);
        text-decoration: underline;
    }
    
    /* Fix table-like content */
    .cost-factor-grid {
        display: block;
    }
    
    .cost-factor {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        background: var(--color-base);
        border-radius: var(--radius-medium);
    }
    
    .cost-factor h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }
    
    .cost-factor p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Fix process timeline for mobile */
    .process-step .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }
    
    .process-step .step-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Fix materials and industries sections */
    .materials-list,
    .industries-list {
        display: block;
    }
    
    .material-item,
    .industry-item {
        margin-bottom: 1rem;
    }
    
    /* Fix FAQ section */
    .faq-question {
        font-size: 1rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Fix service areas lists */
    .service-areas ul,
    .service-guarantee ul {
        padding-left: 1rem;
    }
    
    .service-areas ul li,
    .service-guarantee ul li {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
    }
    
    /* Ensure no horizontal overflow */
    .service-hero,
    .service-overview,
    .services-offered,
    .service-process,
    .service-gallery,
    .compliance-section,
    .location-services,
    .service-contact,
    .cost-guide-preview,
    .materials-industries {
        overflow-x: hidden;
    }
    
    /* Fix breadcrumb on mobile */
    .breadcrumb-list {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
    
    .breadcrumb-item {
        margin: 0.2rem 0;
    }
    
    /* Additional mobile fixes for service pages */
    .service-hero-content {
        padding: 0 1rem;
    }
    
    .service-overview-content,
    .overview-content,
    .services-grid,
    .gallery-grid {
        padding: 0 1rem;
    }
    
    /* Ensure proper image sizing on mobile */
    .service-image img,
    .gallery-item img,
    .overview-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Fix any remaining text overflow issues */
    .service-hero h1,
    .section-header h2,
    .service-detail-card h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Mobile-specific gallery overlay improvements */
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-overlay h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Search Functionality */
.search-container {
    position: relative;
    margin-left: 1rem;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-small);
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: var(--color-white);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-strong);
    border: 2px solid var(--color-accent);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-smooth);
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box {
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-small);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

.search-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition-smooth);
}

.search-close:hover {
    color: var(--color-accent);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.search-result {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-smooth);
}

.search-result:hover {
    background: rgba(211, 84, 0, 0.05);
    color: var(--color-accent);
}

.search-result:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.search-result-category {
    font-size: 0.8rem;
    color: var(--color-white);
    background: var(--color-accent);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-small);
    display: inline-block;
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--color-text-light);
}

.search-suggestion {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.search-suggestion strong {
    color: var(--color-accent);
}

/* Responsive Search */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        gap: 1rem;
    }
    
    .search-container {
        margin-left: auto;
        margin-right: 1rem;
        order: 1;
    }
    
    .search-dropdown {
        position: fixed !important;
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        right: auto !important;
        left: 15px !important;
        top: 80px !important;
        transform: none !important;
        margin-left: 0;
        margin-right: 0;
        max-height: 60vh;
        overflow-y: auto;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-smooth);
    }
    
    .search-dropdown.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .search-box {
        padding: 0.75rem;
    }
    
    .search-box input {
        font-size: 16px;
        padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    }
    
    .hamburger {
        margin-left: 0;
        order: 2;
    }
    
    /* Mobile breadcrumb fix */
    .breadcrumb {
        margin-top: 90px !important;
        padding: 1.5rem 0 0.5rem 0 !important;
    }
    
    .breadcrumb-list {
        padding: 0 15px !important;
    }
}

/* Tablet responsive search */
@media (max-width: 1024px) and (min-width: 769px) {
    .search-dropdown {
        width: 380px;
        right: 20px;
    }
}

/* Reviews Section */
.reviews-section {
    background: var(--color-background);
    padding: 4rem 0;
}

/* Google Reviews Widget Styles */
.google-reviews-widget {
    background: var(--color-white);
    border-radius: var(--radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    margin: 2rem 0;
    border: 1px solid var(--color-border);
}

.reviews-header {
    margin-bottom: 2rem;
    text-align: center;
}

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

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

.average-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rating-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.review-count {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.google-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.google-link:hover {
    color: var(--color-accent-dark);
}

.stars-container {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.star {
    font-size: 1.2rem;
    line-height: 1;
}

.star-full {
    color: #ffd700;
}

.star-half {
    color: #ffd700;
    opacity: 0.5;
}

.star-empty {
    color: #e0e0e0;
}

.reviews-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-item {
    background: var(--color-background);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.review-rating .stars-container {
    gap: 0.05rem;
}

.review-rating .star {
    font-size: 1rem;
}

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

.reviews-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-medium);
    text-decoration: none;
    font-weight: 500;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.write-review-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

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

/* Google Reviews Responsive Design */
@media (max-width: 768px) {
    .google-reviews-widget {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .reviews-title h3 {
        font-size: 1.3rem;
    }
    
    .average-rating {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .reviewer-info {
        width: 100%;
    }
    
    .review-rating {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .google-reviews-widget {
        padding: 1rem;
        border-radius: var(--radius-medium);
    }
    
    .review-item {
        padding: 1rem;
    }
    
    .reviewer-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .write-review-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Service Page Mobile Optimizations for Very Small Screens */
    .service-hero {
        padding: 4rem 0 2rem;
    }
    
    /* Service CTA Small Mobile Optimizations */
    .service-cta {
        padding: 3rem 0;
    }
    
    .service-cta h2 {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
        padding: 0 1rem;
    }
    
    .service-cta .btn {
        font-size: 1rem;
        padding: 14px 24px;
        max-width: 280px;
    }
    
    .service-hero h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .service-hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }
    
    .service-hero-features {
        margin-bottom: 2rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
    
    .service-overview,
    .services-offered,
    .service-process,
    .service-gallery {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .service-detail-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .service-detail-card h3 {
        font-size: 1.2rem;
    }
    
    .service-detail-card p {
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-overlay {
        padding: 0.75rem;
    }
    
    .gallery-overlay h4 {
        font-size: 1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 14px 28px;
    }
    
    .gallery-item {
        cursor: pointer;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    .service-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Improve touch targets */
    .nav-link,
    .contact-method a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 6rem 0 4rem 0;
    background: var(--color-white);
    min-height: 80vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}

.legal-header h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.legal-date {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0.25rem 0;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1rem;
}

.legal-document h2 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem 0;
    font-family: var(--font-heading);
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.legal-document h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-document h3 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    font-family: var(--font-heading);
}

.legal-document p {
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

.legal-document ul, .legal-document ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-document li {
    margin-bottom: 0.75rem;
    color: var(--color-text-dark);
}

.legal-document strong {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-details {
    background: var(--color-base);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    border-left: 4px solid var(--color-accent);
    margin: 1.5rem 0;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    border: 1px solid var(--color-border);
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 3rem;
}

/* Legal Links in Footer */
.legal-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
}

.legal-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: var(--color-accent);
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 4rem 0 3rem 0;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-document h2 {
        font-size: 1.4rem;
    }
    
    .legal-document h3 {
        font-size: 1.2rem;
    }
    
    .legal-document {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-links {
        gap: 0.75rem;
    }
}

/* Areas We Service Section */
.service-areas {
    padding: var(--section-padding) !important;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
}

.service-areas .section-header h2 {
    color: var(--color-white) !important;
}

.service-areas .section-header p {
    color: var(--color-white) !important;
    opacity: 1 !important;
}

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

.area-card {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 2rem !important;
    border-radius: var(--radius-medium) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all var(--transition-smooth) !important;
    text-align: center !important;
}

.area-card:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-5px) !important;
}

.area-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.area-icon svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(255, 140, 0, 0.3));
    transition: transform var(--transition-smooth);
}

.area-card:hover .area-icon svg {
    transform: scale(1.1);
}

.area-card h3 {
    color: var(--color-white) !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

.area-card p {
    color: var(--color-white) !important;
    opacity: 1 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}

.suburb-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.suburb-list li {
    color: var(--color-white) !important;
    opacity: 1 !important;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
}

.suburb-list li:before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

.service-radius {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    padding: 2rem !important;
    border-radius: var(--radius-medium) !important;
    text-align: center !important;
    border: 2px solid var(--color-accent) !important;
    box-shadow: var(--shadow-strong) !important;
}

.service-radius h3 {
    color: var(--color-white) !important;
    margin-bottom: 1rem !important;
    font-size: 1.5rem !important;
}

.service-radius p {
    color: var(--color-white) !important;
    opacity: 0.9 !important;
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
}

.coverage-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.coverage-stats .stat-item {
    text-align: center;
    min-width: 120px;
}

.coverage-stats .stat-number {
    display: block !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    color: var(--color-accent) !important;
    margin-bottom: 0.5rem !important;
}

.coverage-stats .stat-label {
    color: var(--color-white);
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .coverage-stats {
        gap: 2rem;
    }
    
    .coverage-stats .stat-number {
        font-size: 1.5rem;
    }
}

/* Location Pages Styling */
.location-services {
    padding: var(--section-padding);
    background: var(--color-base);
}

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

.location-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-medium);
    box-shadow: 0 8px 24px rgba(47, 47, 47, 0.12), 0 4px 8px rgba(47, 47, 47, 0.08);
    transition: all var(--transition-smooth);
}

.local-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--color-accent);
}

.advantage-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.suburbs-served,
.local-projects,
.contact-local,
.landmark-expertise {
    padding: var(--section-padding);
}

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

.suburb-item,
.project-item,
.landmark-item {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-smooth);
}

.suburb-item:hover,
.project-item:hover,
.landmark-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.contact-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-card a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

/* CSS-only contact section animations */
.contact-local {
    opacity: 1;
}

.contact-local .section-header {
    animation: contactFadeUp 0.6s ease-out forwards;
}

.contact-local .contact-card:nth-child(1) {
    animation: contactFadeUp 0.6s ease-out 0.1s both;
}

.contact-local .contact-card:nth-child(2) {
    animation: contactFadeUp 0.6s ease-out 0.2s both;
}

.contact-local .contact-card:nth-child(3) {
    animation: contactFadeUp 0.6s ease-out 0.3s both;
}

.contact-local .cta-section {
    animation: contactFadeUp 0.6s ease-out 0.4s both;
}

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

/* Intersection Observer triggered animations */
.contact-local.animate .section-header,
.contact-local.animate .contact-card,
.contact-local.animate .cta-section {
    opacity: 0;
    transform: translateY(30px);
}

.contact-local.animate.visible .section-header {
    animation: contactFadeUp 0.6s ease-out forwards;
}

.contact-local.animate.visible .contact-card:nth-child(1) {
    animation: contactFadeUp 0.6s ease-out 0.1s both;
}

.contact-local.animate.visible .contact-card:nth-child(2) {
    animation: contactFadeUp 0.6s ease-out 0.2s both;
}

.contact-local.animate.visible .contact-card:nth-child(3) {
    animation: contactFadeUp 0.6s ease-out 0.3s both;
}

.contact-local.animate.visible .cta-section {
    animation: contactFadeUp 0.6s ease-out 0.4s both;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Mobile responsive for location pages */
@media (max-width: 768px) {
    /* Match home page hero padding on mobile */
    .location-hero {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-image {
        order: -1;
    }
    
    .location-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: var(--radius-medium);
        box-shadow: 0 8px 24px rgba(47, 47, 47, 0.12), 0 4px 8px rgba(47, 47, 47, 0.08);
        transition: all var(--transition-smooth);
    }
    
    .project-image img,
    .portfolio-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: var(--radius-medium);
        box-shadow: var(--shadow-medium);
    }
    
    .local-advantages {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .suburbs-grid,
    .projects-grid,
    .portfolio-grid,
    .landmarks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid .project-item {
        padding: 1.5rem;
    }
    
    .project-image {
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .portfolio-image {
        margin-bottom: 0;
        overflow: hidden;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantage-item,
    .suburb-item,
    .project-item,
    .landmark-item,
    .contact-card {
        padding: 1.5rem;
    }
    
    .location-image {
        order: -1;
    }
}

/* Desktop Article Page Breadcrumb Optimization */
@media (min-width: 769px) {
    .breadcrumb {
        padding: 1.5rem 0 1rem 0;
        margin-top: 85px;
    }
}

/* Desktop Optimization for Project Showcase Images */
@media (min-width: 769px) {
    .projects-grid,
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .project-item,
    .portfolio-item {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .project-image {
        height: 280px;
        overflow: hidden;
        border-radius: var(--radius-medium);
        margin-bottom: 1.5rem;
        flex-shrink: 0;
    }
    
    .portfolio-image {
        height: 280px;
        overflow: hidden;
        border-radius: var(--radius-medium);
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .project-image img,
    .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform var(--transition-smooth);
    }
    
    .project-item:hover .project-image img,
    .portfolio-item:hover .portfolio-image img {
        transform: scale(1.05);
    }
    
    .project-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .project-info h4 {
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
    
    .project-info p {
        line-height: 1.6;
        color: var(--color-text-light);
    }
}

/* Featured Project Styles */
.project-item.featured-project,
.portfolio-item.featured-project {
    border: 2px solid var(--color-accent);
    position: relative;
    overflow: visible;
}

.project-item.featured-project::before,
.portfolio-item.featured-project::before {
    content: "FEATURED PROJECT";
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius-small);
}

/* Make featured project tags smaller to fit in one row */
.project-item.featured-project .feature-tag,
.portfolio-item.featured-project .feature-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
}

/* Featured Project Image - Consistent with Other Cards */
.portfolio-item.featured-project .portfolio-image img {
    object-fit: cover; /* Same as other cards - fills container properly */
    object-position: center; /* Consistent centering */
}

/* Feature Tags */
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    background: var(--color-base);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.feature-tag:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

/* Mobile adjustments for feature tags */
@media (max-width: 768px) {
    .project-features {
        margin-top: 0.75rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .project-item.featured-project::before,
    .portfolio-item.featured-project::before {
        font-size: 0.7rem;
        padding: 3px 10px;
        top: -10px;
        left: 15px;
    }
    
    /* Featured Project Images - Consistent Mobile Behavior */
    .portfolio-item.featured-project .portfolio-image img {
        object-fit: cover; /* Ensure consistent behavior on mobile */
        object-position: center; /* Consistent centering on mobile */
    }
}

/* ===== LOCATION PAGES PROJECT SHOWCASE - EXACT REFERENCE DESIGN ===== */
/* Matching the exact layout from reference image: 3-column grid with precise styling */

/* Fixed 3-Column Grid Layout */
.local-projects .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exact 3 equal columns */
    gap: 2rem; /* Style guide element spacing (32px) */
    margin-top: 2rem; /* Consistent with style guide */
}

/* Style Guide Compliant Card Design */
.local-projects .portfolio-item {
    display: flex;
    flex-direction: column;
    height: 680px; /* Balanced height: 5% reduction from original with breathing room */
    background: var(--color-white);
    border-radius: 8px; /* Style guide medium border radius (8-12px range) */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.local-projects .portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Consistent Image Proportions */
.local-projects .portfolio-image {
    width: 100%;
    height: 260px; /* Optimized image area for better visual balance */
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    padding: 16px; /* Consistent 16px padding on all sides (style guide base unit) */
    box-sizing: border-box;
}

.local-projects .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    border-radius: 4px; /* Style guide small border radius (4-6px range) */
}

.local-projects .portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

/* Style Guide Compliant Content Section */
.local-projects .project-info {
    padding: 1.5rem 2rem 2rem 2rem; /* Balanced padding for better visual hierarchy */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Style Guide Compliant Typography */
.local-projects .project-info h3 {
    font-size: 1.4rem; /* H4 size from style guide (1.4rem) for card titles */
    font-weight: 700; /* Bold weight as specified */
    color: var(--color-primary); /* Use style guide color variable */
    text-transform: uppercase;
    letter-spacing: 1px; /* Increased letter spacing for headings */
    margin-bottom: 1.5rem; /* 24px spacing using base unit */
    line-height: 1.3;
}

.local-projects .project-info p {
    font-size: 1.0rem; /* Style guide body text size */
    line-height: 1.6; /* Style guide line height for readability */
    color: var(--color-text-light); /* Use style guide color variable */
    margin-bottom: 1.5rem; /* 24px spacing using base unit */
    flex-grow: 1;
}

/* Style Guide Compliant Feature Tags */
.local-projects .project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* 8px gap using base unit */
    margin-top: auto;
    align-items: flex-start; /* Improved alignment for wrapped tags */
}

.local-projects .feature-tag {
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.75rem; /* Improved readability */
    font-weight: 600;
    padding: 0.5rem 0.75rem; /* 8px 12px using base unit */
    border-radius: 4px; /* Style guide small border radius */
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.local-projects .feature-tag:hover {
    background: var(--color-accent-dark); /* Use style guide hover color variable */
    transform: translateY(-1px);
}

/* Featured Project - Professional Border Handling */
.local-projects .portfolio-item.featured-project {
    border: 3px solid var(--color-accent); /* Orange border around entire card */
    position: relative;
    background: var(--color-white);
    border-radius: 8px; /* Same as all other cards - professional consistency */
}

/* Featured Project Image - Consistent Styling (NO padding compensation) */
.local-projects .portfolio-item.featured-project .portfolio-image {
    padding: 16px; /* Same as all other cards - professional consistency */
}

.local-projects .portfolio-item.featured-project::before {
    content: "FEATURED PROJECT";
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 8px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 0 0 8px 0;
    z-index: 5;
}

/* Tablet Responsive (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .local-projects .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 2rem; /* Increased gap for better visual separation */
    }
    
    .local-projects .portfolio-item {
        height: 614px; /* Balanced height: 5% reduction from original with breathing room */
    }
    
    .local-projects .portfolio-image {
        height: 220px; /* Balanced image area for tablet */
        padding: 16px; /* Consistent padding across all devices */
    }
    
    .local-projects .project-info {
        padding: 1.25rem 1.5rem 1.5rem 1.5rem; /* Balanced padding for tablet */
    }
    
    .local-projects .project-info h3 {
        font-size: 1.2rem; /* Proportional reduction maintaining hierarchy */
        margin-bottom: 1rem; /* 16px spacing */
    }
    
    .local-projects .project-info p {
        font-size: 0.9rem; /* Slightly smaller but readable */
        margin-bottom: 1rem; /* 16px spacing */
    }
    
    .local-projects .feature-tag {
        font-size: 0.7rem; /* Improved readability */
        padding: 0.375rem 0.625rem; /* Better proportions for tablet */
    }
    
    /* Featured project border radius adjustment for tablet */
    .local-projects .portfolio-item.featured-project {
        border-radius: 11px; /* Maintain consistent visual radius */
    }
}

/* Mobile Responsive (767px and below) - Professional Design */
@media (max-width: 767px) {
    .local-projects .portfolio-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem; /* Optimized gap for mobile - professional spacing */
        margin-top: 2rem; /* Increased top margin for better visual separation */
    }
    
    .local-projects .portfolio-item {
        height: 491px; /* Balanced height: 5% reduction from original with breathing room */
        border-radius: 12px; /* Slightly larger radius for mobile touch experience */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Professional depth for mobile */
    }
    
    .local-projects .portfolio-image {
        height: 200px; /* Larger mobile images for impact and better proportions */
        padding: 16px; /* Consistent padding - no mobile-specific reduction */
    }
    
    .local-projects .project-info {
        padding: 1.25rem; /* Improved breathing room for mobile content */
    }
    
    .local-projects .project-info h3 {
        font-size: 1.1rem; /* Readable mobile heading size */
        margin-bottom: 1rem; /* Consistent spacing */
        letter-spacing: 0.5px;
        line-height: 1.2; /* Improved line height for mobile */
    }
    
    .local-projects .project-info p {
        font-size: 0.9rem; /* Improved mobile readability */
        line-height: 1.5; /* Consistent line height */
        margin-bottom: 1rem; /* Consistent spacing */
    }
    
    .local-projects .feature-tag {
        font-size: 0.7rem; /* Improved readability for mobile */
        padding: 0.375rem 0.75rem; /* Better touch targets and visual balance */
        margin-bottom: 0.25rem; /* Improved tag spacing for mobile wrap */
    }
    
    .local-projects .project-features {
        gap: 0.375rem; /* Optimized gap for mobile feature tags */
    }
    
    /* Featured project mobile optimization */
    .local-projects .portfolio-item.featured-project {
        border-radius: 12px; /* Same as standard mobile cards - professional consistency */
        border-width: 3px; /* Maintain border prominence on mobile */
    }
    
    .local-projects .portfolio-item.featured-project::before {
        padding: 6px 10px; /* Better proportions for mobile */
        font-size: 0.65rem; /* Improved mobile readability */
        border-radius: 0 0 12px 0; /* Consistent with mobile card radius */
    }
}

/* ===== END LOCATION PAGES IMPROVEMENTS ===== */


/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-strong);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
}

/* Hide scroll button when reCAPTCHA or contact form is visible */
.scroll-to-top.hidden-for-form {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.scroll-to-top:hover {
    background: var(--color-accent-dark);
    transform: translateY(0) scale(1.1);
    box-shadow: 0 8px 32px rgba(211, 84, 0, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

/* Mobile optimization for scroll button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
/* Simplified Modal - Hide all navigation elements */
.modal-nav,
.modal-prev,
.modal-next,
#modalPrev,
#modalNext {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure modal info is hidden for clean image-only display */
.modal-info,
.modal-title,
.modal-description,
.modal-counter,
#modalTitle,
#modalDescription,
#modalCounter {
    display: none !important;
    visibility: hidden !important;
}

/* Hide modal close button when modal is not visible */
.modal:not(.show) .modal-close,
.image-modal:not(.show) .modal-close {
    display: none !important;
    visibility: hidden !important;
}

/* Show modal close button only when modal is active */
.modal.show .modal-close,
.modal.active .modal-close,
.image-modal.show .modal-close,
.image-modal.active .modal-close {
    display: flex !important;
    visibility: visible !important;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 50px !important;
    height: 50px !important;
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-strong) !important;
    z-index: 1001 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth) !important;
    backdrop-filter: blur(10px) !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.back-to-top:hover {
    background: var(--color-accent) !important;
    transform: translateY(0) scale(1.1) !important;
    box-shadow: 0 8px 32px rgba(211, 84, 0, 0.4) !important;
}

.back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Mobile optimization for back-to-top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
}

/* Our Proven Fabrication Process Section */
.fabrication-process {
    margin: 80px 0;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius-large);
}

.process-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-header h2 {
    color: var(--color-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.process-header p {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.process-card {
    background: var(--color-white);
    border-radius: var(--radius-medium);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--color-accent);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
}

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

.step-badge {
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff8c00 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.card-header h4 {
    color: var(--color-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.card-content p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.process-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    background: rgba(255, 140, 0, 0.1);
    color: var(--color-accent);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.process-cta {
    background: var(--color-white);
    border-radius: var(--radius-medium);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-content h4 {
    color: var(--color-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

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

/* Tablet Responsive Design for Fabrication Process */
@media (max-width: 1024px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile Responsive Design for Fabrication Process */
@media (max-width: 768px) {
    .fabrication-process {
        margin: 40px 0;
        padding: 40px 0;
    }
    
    .process-header h2 {
        font-size: 2rem;
    }
    
    .process-flow {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .process-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .card-header h4 {
        font-size: 1.2rem;
    }
    
    .process-cta {
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* iPhone 14 and modern devices Navigation Fix */
@media (max-width: 414px) {
    .nav-menu {
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        padding: 0.5rem 0 !important;
    }
    
    .nav-menu li {
        margin: 0.25rem 0 !important;
    }
    
    .nav-link {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* iPhone SE Navigation Fix - Ultra-compact for smallest devices */
@media (max-width: 375px) {
    .nav-menu {
        padding: 0.4rem 0 !important;
    }
    
    .nav-menu li {
        margin: 0.2rem 0 !important;
    }
    
    .nav-link {
        padding: 6px 16px !important;
        font-size: 0.85rem !important;
        min-height: 34px !important;
    }
}

/* Professional Internal Linking Styles */
/* Base content links - subtle brand integration */
p a:not(.btn):not(.nav-link):not(.dropdown-link):not(.read-more):not(.footer-section a),
li a:not(.btn):not(.nav-link):not(.dropdown-link):not(.location-link):not(.footer-section a),
.article-body a:not(.btn):not(.nav-link):not(.dropdown-link):not(.footer-section a),
.content a:not(.btn):not(.nav-link):not(.dropdown-link):not(.footer-section a),
.legal-content a:not(.btn):not(.nav-link):not(.dropdown-link):not(.footer-section a) {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 1px;
    transition: all var(--transition-smooth);
    font-weight: 500;
}

p a:not(.btn):not(.nav-link):not(.dropdown-link):not(.read-more):not(.footer-section a):hover,
li a:not(.btn):not(.nav-link):not(.dropdown-link):not(.location-link):not(.footer-section a):hover,
.article-body a:not(.btn):not(.nav-link):not(.dropdown-link):not(.footer-section a):hover,
.content a:not(.btn):not(.nav-link):not(.dropdown-link):not(.footer-section a):hover,
.legal-content a:not(.btn):not(.nav-link):not(.dropdown-link):not(.footer-section a):hover {
    color: var(--color-accent);
    border-bottom-color: transparent;
    transform: translateY(-1px);
}

/* Subtle link class for minimal styling */
.subtle-link {
    color: var(--color-text-dark) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(211, 84, 0, 0.3) !important;
    transition: all var(--transition-smooth) !important;
}

.subtle-link:hover {
    color: var(--color-accent) !important;
    border-bottom-color: var(--color-accent) !important;
}

/* Highlight link class for service/location references */
.highlight-link {
    color: var(--color-accent) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 1px 3px !important;
    border-radius: var(--radius-small) !important;
    transition: all var(--transition-smooth) !important;
}

.highlight-link:hover {
    background: rgba(211, 84, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* CTA link class for important actions */
.cta-link {
    color: var(--color-accent) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    padding: 3px 6px !important;
    border-radius: var(--radius-small) !important;
    border: 1px solid var(--color-accent) !important;
    transition: all var(--transition-smooth) !important;
    display: inline-block !important;
}

.cta-link:hover {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-light) !important;
}

/* Enhanced existing link styles consistency */
.article-breadcrumb a,
.breadcrumb-item a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.article-breadcrumb a:hover,
.breadcrumb-item a:hover {
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent-dark);
}

/* Mobile link optimization */
@media (max-width: 768px) {
    p a:not(.btn):not(.nav-link):not(.dropdown-link):not(.read-more):not(.footer-section a),
    li a:not(.btn):not(.nav-link):not(.dropdown-link):not(.location-link):not(.footer-section a),
    .article-body a:not(.btn):not(.nav-link):not(.dropdown-link):not(.footer-section a),
    .content a:not(.btn):not(.nav-link):not(.dropdown-link):not(.footer-section a) {
        padding: 2px 1px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .cta-link {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 12px !important;
    }
}

/* Screen reader only utility class for accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* CSP Compliance - Classes to replace inline styles */
.image-full-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-closing-statement {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 2rem;
}

.emoji-icon-medium {
    font-size: 2rem;
}

.emoji-icon-large {
    font-size: 3rem;
}

/* CSP-compliant utility classes */
.cursor-pointer {
    cursor: pointer;
}

.modal-info-hidden {
    display: none;
}

.iframe-no-border {
    border: 0;
}

/* Animation delay classes for floating elements */
.animation-delay-0 {
    animation-delay: 0s;
}

.animation-delay-0-5 {
    animation-delay: 0.5s;
}

.animation-delay-1 {
    animation-delay: 1s;
}

.animation-delay-2 {
    animation-delay: 2s;
}
