/* 
   Universal Roofing - Main Stylesheet
   A professional website for a roofing company serving the 4 Corners area
*/

/* Base Styles & Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Main color scheme */
    --primary-color: #1a4d7c;
    /* Deep blue for professionalism */
    --secondary-color: #e63946;
    /* Accent red for CTAs */
    --light-color: #dce6eb;
    /* Darker off-white with blue undertone */
    --dark-color: #1d3557;
    /* Darker blue for text */
    --gray-color: #457b9d;
    /* Medium blue-gray for subtle elements */
    --light-gray: #f8f9fa;
    /* Light gray for subtle elements */
    --border-color: #ddd;

    /* Fonts */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;

    /* Spacing */
    --section-spacing: 5rem;
    --element-spacing: 1.5rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #d12736;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Modern Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    /* Reduced padding */
    width: 100%;
}

header>.container {
    width: 100%;
    max-width: 100%;
    padding: 0 3rem;
    /* Increased side padding */
    display: flex;
    align-items: center;
}

.modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo styles */
.logo {
    flex: 0 0 250px;
    /* Reduced from 300px */
    padding-right: 0.5rem;
    /* Reduced padding */
}

.logo-link {
    display: block;
    text-decoration: none;
    border: none;
    outline: none;
}

.logo-link:hover {
    opacity: 0.95;
}

.logo-image {
    height: auto;
    max-height: 45px;
    /* Reduced size */
    width: auto;
    display: block;
    margin-bottom: 2px;
    /* Reduced margin */
}

/* Navigation */
#main-nav-container {
    flex: 1 1 auto;
    background-color: transparent;
    padding: 0;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    /* Reduced from 2.5rem for more flexibility */
    /* Allows more room on smaller desktop screens */
}

.main-nav li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--secondary-color);
    background-color: transparent;
}

.main-nav li a.active {
    position: relative;
}

.main-nav li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Contact info */
.contact-info {
    flex: 0 0 250px;
    /* Reduced from 300px */
    text-align: right;
    padding-left: 0.5rem;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phone-number {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.phone-number i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.call-to-action {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 1rem;
    /* Add space between logo and toggle */
}

/* iPad-specific menu styles (768px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Show mobile menu toggle on iPad */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide desktop navigation on iPad */
    #main-nav-container {
        height: 0;
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    #main-nav-container.show {
        height: auto;
        padding: 0.5rem 0;
    }

    /* Adjust navigation items on iPad */
    .main-nav {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav li a {
        display: block;
        padding: 0.75rem 1.5rem;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .main-nav li a.active::after {
        display: none;
    }

    /* Move phone number closer to menu button only */
    .contact-info {
        margin-right: -6.5rem; /* Pull closer to menu button */
        padding-left: 0; /* Remove left padding */
    }
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color);
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    background-image: url('../images/rooftop-hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 12rem 1rem;
    /* Increased padding for more height */
    position: relative;
    min-height: 800px;
    /* Set minimum height to ensure it's larger */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 4.0rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Services Section */
.services {
    padding: var(--section-spacing) 0;
    background-color: var(--light-color);
    contain: layout style;
    will-change: scroll-position;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    contain: layout;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(220, 230, 235, 0.4);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.service-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    height: 200px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-card h3 {
    font-size: 1.3rem;
    padding: 1rem 1rem 0.5rem;
    color: var(--primary-color);
}

.service-card p {
    padding: 0 1rem 1.5rem;
    color: #555;
}

/* Materials Section */
.materials-section {
    margin-bottom: 3rem;
}

.materials-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.material-item {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
    /* Ensure images don't overflow on zoom */
    cursor: pointer;
    /* Add pointer cursor to indicate interactivity */
}

.material-item:hover {
    transform: translateY(-8px);
    /* Increased lift for visibility */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    /* Stronger shadow */
    background-color: #f9f9f9;
    /* Subtle background change */
}

.material-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    transition: transform 0.4s ease;
    transform-origin: center center;
}

.material-item:hover img {
    transform: scale(1.1);
    /* Increased zoom for visibility */
}

.material-item p {
    font-weight: 600;
    color: var(--primary-color);
}

/* Additional Services */
.additional-services {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    color: white;
}

.additional-services h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.services-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1rem;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.services-list li {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex: 1;
    white-space: nowrap;
}

.services-list li:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.services-list i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: var(--section-spacing) 0;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-text h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.feature-list i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Areas We Serve */
.service-areas {
    padding: var(--section-spacing) 0;
    background-color: var(--light-color);
}

.area-map {
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 450px;
}

.service-locations {
    margin-top: 2rem;
    text-align: center;
}

.service-locations h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.locations-wrapper {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.locations-map {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.locations-map i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.locations-map h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.locations-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.location-item {
    background-color: var(--light-color);
    padding: 1.0rem 2.0rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.location-item:hover {
    transform: translateY(-4px);
    background-color: var(--primary-color);
}

.location-item:hover i,
.location-item:hover span {
    color: white;
}

.location-item i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.location-item span {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .locations-wrapper {
        padding: 1.5rem;
    }

    .location-item {
        padding: 0.6rem 1.2rem;
    }
}

/* Contact Section */
.contact {
    padding: var(--section-spacing) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-box {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-method {
    text-align: center;
}

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

.contact-method h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.contact-method p {
    color: #555;
}

.phone-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.7rem;
    font-weight: 700;
    font-family: var(--heading-font);
}

.testimonial {
    background-color: white;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 5px;
    left: 10px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.testimonial .author {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Call to Action */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

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

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

footer h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer ul li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.credentials {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Modern header mobile styles */
    header>.container {
        padding: 0 1rem;
        /* Reduce padding on mobile */
    }

    .modern-header {
        flex-wrap: wrap;
        position: relative;
        justify-content: center;
        /* Center the logo */
    }

    .logo {
        order: 2;
        /* Put logo in center */
        flex: none;
        margin: 0;
    }

    .logo-image {
        max-height: 45px;
        /* Slightly smaller on mobile */
        margin: 0;
    }

    .contact-info {
        display: none;
        /* Hide on mobile */
    }

    /* Mobile Navigation Styling */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        order: 3;
    }

    #main-nav-container {
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        padding: 0;
        margin: 0;
        width: 100%;
        background-color: white;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        order: 4;
        flex-basis: 100%;
    }

    #main-nav-container.show {
        height: auto;
        padding: 0.5rem 0;
    }

    .main-nav {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .main-nav li a {
        display: block;
        padding: 0.75rem 1.5rem;
        text-align: left;
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1rem;
        font-weight: 500;
        color: var(--dark-color);
    }

    .main-nav li a.active {
        color: var(--secondary-color);
        font-weight: 700;
    }

    .main-nav li a.active::after {
        display: none;
    }

    .main-nav li a:hover {
        background-color: rgba(0, 0, 0, 0.02);
        color: var(--secondary-color);
    }

    /* Add phone number and call-to-action to mobile menu */
    .main-nav::after {
        content: "(970) 759-6008";
        display: block;
        padding: 0.75rem 1.5rem 1rem;
        font-weight: bold;
        color: var(--primary-color);
        text-align: center;
        background-color: rgba(0, 0, 0, 0.02);
        position: relative;
    }

    .main-nav::before {
        content: "FREE Estimates";
        display: block;
        position: absolute;
        bottom: 0.3rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        color: var(--secondary-color);
        font-weight: 600;
        text-align: center;
        width: 100%;
    }

    .services-grid,
    .materials-grid,
    .states-list {
        grid-template-columns: 1fr;
    }

    .services-list {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .services-list li {
        width: 100%;
        padding: 0.65rem 1rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero h3 {
        font-size: 1.5rem;
    }

    /* Area Map Mobile Optimization */
    .area-map {
        height: 200px;
        /* Reduce height for mobile */
        margin: 0 auto 2rem;
        border-radius: 6px;
    }

    .area-map img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .service-areas {
        padding: 3rem 0;
    }

    .locations-wrapper {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .locations-map {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .locations-map i {
        font-size: 2rem;
    }

    .locations-map h4 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .locations-container {
        gap: 0.75rem;
        justify-content: center;
    }
}

/* Medium Screen Navigation Adjustments */
@media (min-width: 993px) and (max-width: 1200px) {
    .main-nav {
        gap: 1.2rem;
        /* Further reduce gap on medium screens */
    }

    .logo {
        flex: 0 0 220px;
        /* Smaller logo area */
    }

    .contact-info {
        flex: 0 0 220px;
        /* Smaller contact area */
    }

    .main-nav li a {
        padding: 0.3rem 0.5rem;
        /* Slightly less padding */
        font-size: 0.85rem;
        /* Slightly smaller font */
    }

    /* Materials Grid 2 rows x 3 columns for Medium Screens */
    .materials-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Additional Responsive Navigation */
@media (min-width: 768px) and (max-width: 992px) {
    nav ul {
        flex-wrap: wrap;
    }

    /* Area Map Tablet Optimization */
    .area-map {
        height: 350px;
        margin: 0 auto 2.5rem;
    }

    .locations-wrapper {
        padding: 2rem;
        max-width: 700px;
    }

    .location-item {
        padding: 0.9rem 1.8rem;
    }

    /* Fix Additional Services for Tablet */
    .services-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .services-list li {
        flex: 0 1 calc(50% - 0.5rem);
        /* 2 items per row on tablet */
        min-width: 200px;
        white-space: normal;
        /* Allow text wrapping */
        padding: 0.8rem 1.2rem;
    }

    /* Materials Grid 2 rows x 3 columns for iPad - Keep Current Size */
    .materials-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
}