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

/* Global Color Variables */
:root {
    /* Brand Colors */
    --color-primary: #072138;    /* Blue */
    --color-secondary: #d7722e;  /* Orange */
    
    /* Background Colors */
    --bg-light: #ffffff;
    --bg-dark: #072138;
    
    /* Text Colors */
    --text-on-light: #666666;  /* Dark text for light backgrounds */
    --text-on-dark: #ffffff;   /* Light text for dark backgrounds */
    
    /* Gradient */
    --gradient-primary: linear-gradient(to right, #072138, #d7722e);
    
    /* Utility */
    --shadow-default: 0 2px 5px rgba(0,0,0,0.1);
    
    /* RGB Values for opacity operations */
    --primary-rgb: 7, 33, 56;     /* #072138 in RGB */
    --secondary-rgb: 215, 114, 46; /* #d7722e in RGB */
}

/* Base styles */
body {
    font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
    font-size: 14px;
    color: var(--text-on-light);
    background-color: var(--bg-light);
    line-height: 1.7em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header styles */
.main-header {
    background-color: #002642; /* Dark navy background */
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo img {
    max-width: 150px; /* Slightly smaller logo */
    height: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #fff; /* White text */
    font-weight: 500;
    text-transform: uppercase; /* Matches the design */
}

.main-nav a:hover {
    color: #f4811f; /* Orange hover state */
}

.mobile-menu {
    display: none;
}

/* Buttons */
.cta-button {
    background-color: var(--color-secondary);
    color: var(--text-on-dark);
    padding: 12px 30px;
    border-radius: 3px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}

.cta-button:hover {
    background-color: var(--color-primary);
}

/* Section backgrounds */
.hero-section {
    background-image: url('images/webp/ATS Hero2.webp');
    background-size: cover;
    background-position: center;
    will-change: transform; /* Hardware acceleration */
    contain: layout paint; /* Optimize rendering */
    transform: translateZ(0); /* Force GPU rendering */
    position: relative;
    padding: 80px 0;
    color: var(--text-on-dark);
    min-height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.hero-section h5 {
    font-family: 'Raleway', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--text-on-dark) !important;
    letter-spacing: 0.5em;
    line-height: 1.8em;
    text-shadow: 0.08em 0.08em 0.08em rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.hero-section h1 {
    font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 700;
    font-size: 60px;
    color: var(--text-on-dark) !important;
    text-shadow: 0.08em 0.08em 0.08em rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

.hero-section .cta-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--color-secondary);
    color: var(--color-primary) !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.hero-section .cta-button:hover {
    transform: scale(1.05);
}

.hero-section .cta-button i {
    font-size: 12px;
    margin-right: 6px;
}

/* Media Queries */
@media only screen and (max-width: 980px) {
    .hero-section h5 {
        font-size: 14px;
    }
}

@media only screen and (max-width: 767px) {
    .hero-section h5 {
        font-size: 12px;
    }
}

/* Media Queries for h1 */
@media only screen and (max-width: 980px) {
    .hero-section h1 {
        font-size: 48px;
    }
}

@media only screen and (max-width: 767px) {
    .hero-section h1 {
        font-size: 32px;
    }
}

.services-section {
    width: 100%;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* Footer styles */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 20px 0;
    text-align: center;
}

.footer a {
    color: var(--color-secondary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text-on-dark);
}

/* Service items */
.service-item {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border: none;
    margin: 0;
}

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

.service-item h2 {
    font-size: 18px;
    color: var(--color-primary);
    margin-top: 15px;
}

/* Form elements */
input, textarea {
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

input:focus, textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
}

.submit-button {
    background: var(--color-secondary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--color-primary);
}

/* Container */
.container {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* Responsive */
@media (max-width: 980px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .container {
        width: 90%;
    }
} 

/* Services Grid */
.service-grid {
    display: flex;
    margin: 0;
    padding: 0;
}

.service-item img {
    max-width: 200px;
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    margin: 0;
    padding: 15px 0;
    display: block;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.about-image {
    margin: 0;
    padding: 0;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.about-content {
    margin: 0;
    padding: 0;
}

.about-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-on-dark);
    font-weight: 700;
}

.about-content p {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--text-on-dark);
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background: var(--color-secondary);
    padding: 30px;
    border-radius: 5px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.submit-button {
    background: var(--color-secondary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
}

/* Map Section */
.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Service Areas */
.service-areas {
    text-align: center;
    padding: 20px 0;
    background: var(--bg-light);
}

.service-links a {
    color: var(--color-primary);
    text-decoration: none;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-grid {
        flex-direction: column;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
} 

/* Services Grid */
.services-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

.service-item {
    width: 33.33%;
    min-width: 33.33%;
    flex: 0 0 33.33%;
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.service-item:last-child {
    border-right: none;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item img {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-item h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #333;
    line-height: 1.3;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-grid {
        flex-direction: column;
    }
    
    .service-item {
        width: 100%;
        flex: 0 0 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .service-item:last-child {
        border-bottom: none;
    }
}

/* About Section */
.about-section {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-on-dark);
}

.about-content p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Reset any default spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main content reset */
.main-content {
    margin: 0;
    padding: 0;
}

/* Reset all sections */
section {
    margin: 0;
    padding: 0;
    display: block;
}

/* Services section reset */
.services-grid {
    margin: 0;
    padding: 0;
    display: block;
}

/* About section specific */
.about-section {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    margin: 0;
    padding: 15px 0;
    display: block;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Map section reset */
.map-section {
    margin: 0;
    padding: 0;
    display: block;
} 

/* Services Section - Fixed 3 Column Layout */
.services-section {
    width: 100%;
    background: #fff;
    margin: 0;
    padding: 0;
}

.services-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

.service-item {
    width: 33.33%;
    min-width: 33.33%;
    flex: 0 0 33.33%;
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:last-child {
    border-right: none;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item img {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-item h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    color: #333;
    line-height: 1.3;
    font-weight: 500;
} 

/* Call to Action Bar */
.cta-bar {
    background-color: var(--bg-dark);
    padding: 30px 0;
    text-align: center;
}

.cta-bar .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-secondary);
    color: var(--text-on-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-bar .cta-button:hover {
    transform: scale(1.05);
    background-color: var(--color-primary);
}

.cta-bar .cta-button i {
    margin-right: 10px;
} 

/* Footer Styles */
.footer-bottom {
    background: var(--bg-dark);
    padding: 20px 0;
    color: var(--text-on-dark);
}

.footer-content-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-section {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sitemap-link {
    color: var(--text-on-dark);
    text-decoration: none;
}

.sitemap-link:hover {
    color: var(--color-secondary);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.powered-by img {
    display: block;
    height: auto;
}

@media (max-width: 768px) {
    .footer-content-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .copyright-section {
        flex-direction: column;
        gap: 10px;
    }
} 

/* Comprehensive Service Description Styles */
.service-description-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.service-description-section h2 {
    color: var(--color-primary);
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-description-section h3 {
    color: var(--color-primary);
    font-size: 24px;
    margin: 30px 0 20px;
}

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

.main-description {
    margin-bottom: 40px;
}

.main-description p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-highlights ul,
.why-choose ul {
    list-style: none;
    padding: 0;
}

.service-highlights li,
.why-choose li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.service-highlights li:before,
.why-choose li:before {
    content: "•";
    color: var(--color-secondary);
    position: absolute;
    left: 0;
    font-size: 20px;
}

.service-areas {
    background: rgba(7, 33, 56, 0.05);
    padding: 30px;
    border-radius: 5px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .service-description-section {
        padding: 40px 20px;
    }
    
    .service-description-section h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .service-description-section h3 {
        font-size: 22px;
    }
} 

/* Sitemap Styles */
.sitemap-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

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

.sitemap-column a {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.sitemap-column a:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Media Queries - Only affects mobile devices */
@media only screen and (max-width: 768px) {
    /* Container adjustments */
    .container {
        width: 100%;
        padding: 0 10px;
    }

    /* Typography adjustments */
    h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    /* Hero section mobile adjustments */
    .hero-section {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .hero-section .container {
        width: 95%;
        padding-left: 0;
        padding-right: 0;
        margin: 0 auto;
    }

    .hero-section h1 {
        font-size: 48px;
        letter-spacing: 0.02em;
    }

    .hero-section h5 {
        font-size: 20px;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        padding-top: 20px;
    }

    .hero-section .cta-button {
        width: 70%;
        text-align: center;
        display: block;
        margin: 20px auto;
        padding-bottom: 20px;
    }

    /* Services section mobile */
    .services-grid {
        flex-direction: column;
    }

    .service-item {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }

    /* About section mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Contact section mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 20px;
    }

    /* Footer mobile adjustments */
    .footer-content-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .copyright-section {
        flex-direction: column;
        gap: 10px;
    }

    /* Navigation mobile */
    .main-nav {
        padding: 10px 0;
    }

    /* CTA button mobile */
    .cta-button {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    /* Hide services section on mobile */
    .services-section,
    .services-grid,
    .service-grid {
        display: none;
    }

    /* Call Now Button */
    .mobile-call-button {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        background-color: #FF6B00;
        color: white;
        padding: 12px 24px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .mobile-call-button:hover {
        background-color: #FF8533;
    }

    /* Hero section mobile adjustments */
    .hero-section .container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin: 0 auto;
    }

    .hero-section h1 {
        font-size: 48px;
    }

    .hero-section h5 {
        font-size: 20px;
    }

    .hero-section .cta-button {
        width: 70%;
        text-align: center;
        display: block;
        margin: 20px auto;
    }
}

/* Additional breakpoint for very small devices */
@media only screen and (max-width: 480px) {
    .hero-section h1 {
        font-size: 48px;
    }

    .hero-section h5 {
        font-size: 20px;
    }

    .service-item h2 {
        font-size: 20px;
    }
}

/* Mobile Media Queries - Only affects mobile devices */
@media only screen and (max-width: 768px) {
    /* Typography adjustments */
    h2,
    .service-item h2,
    .about-content h2,
    .service-description-section h2,
    .contact-section h2,
    .footer h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    h3,
    .service-item h3,
    .about-content h3,
    .service-description-section h3,
    .contact-section h3,
    .footer h3 {
        font-size: 26px;
        line-height: 1.3;
    }
}

/* Additional breakpoint for very small devices */
@media only screen and (max-width: 480px) {
    h2,
    .service-item h2,
    .about-content h2,
    .service-description-section h2,
    .contact-section h2,
    .footer h2 {
        font-size: 24px;
    }

    h3,
    .service-item h3,
    .about-content h3,
    .service-description-section h3,
    .contact-section h3,
    .footer h3 {
        font-size: 22px;
    }
}

/* Hide call button by default (desktop) */
.mobile-call-button {
    display: none;
}

/* Mobile Media Queries - Only affects mobile devices */
@media only screen and (max-width: 768px) {
    /* Call Now Button */
    .mobile-call-button {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        background-color: #FF6B00;
        color: white;
        padding: 12px 24px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .mobile-call-button:hover {
        background-color: #FF8533;
    }
}

/* Consider adding a low-res placeholder */
.hero-section {
    background-color: #2a2a2a; /* Matching color to prevent flash */
}