/* Help Advertising Color Palette */
:root {
    --primary-blue: #003b72;
    --dark-blue-start: #00547B;
    --dark-blue-end: #00406B;
    --orange-start: #F26930;
    --orange-mid: #FAB040;
    --cyan-blue: #00A7D1;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #F5F5F5;
}

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 14px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 1px 0 rgba(0,0,0,.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.4s ease-in-out;
}

.header-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 66px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    background: 
        linear-gradient(130deg, rgba(242,105,48,0.53) 0%, rgba(250,176,64,0.77) 19%, rgba(0,167,209,0.79) 58%, rgba(0,84,135,0.88) 100%),
        url('/images/intersection.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, fixed; /* Keep parallax on the background image */
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 66px;
    position: relative;
}

.hero-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.hero-logo {
    max-width: 100%;
    height: auto;
}

.hero-content {
    color: white;
}

.hero-content h1 {
    font-size: 72px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: none;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: var(--text-light);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 30px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: rgba(46, 163, 242, 0.05);
}

/* Statistics Section */
.stats-section {
    padding: 80px 0;
    background: white;
}

.stats-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
    fill: var(--primary-blue);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
}

.stat-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Content Section */
.content-section {
    padding: 80px 0;
    background: var(--background-light);
}

.content-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 400;
}

.content-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Video Player */
.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-overlay:hover {
    opacity: 0.8;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(46, 163, 242, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    padding-left: 6px; /* Offset to center the triangle visually */
}

.play-button:hover {
    transform: scale(1.1);
}

.video-overlay.hidden {
    display: none;
}

/* Parallax Section */
.parallax-section {
    background-image: url('/images/billboard-wide-1.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 400px;
    background-repeat: no-repeat;
}

/* Final Contact Section */
.final-contact-section {
    padding: 80px 0;
    background: white;
}

.final-contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.final-contact-container h4 {
    font-size: 16px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.final-contact-container h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* Footer Contact Section */
.footer-contact-section {
    background: linear-gradient(105deg, rgba(0,84,135,0.79) 0%, #00406b 100%);
    padding: 60px 0;
    color: white;
}

.footer-contact-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
}

.footer-contact-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-contact-item p {
    font-size: 16px;
}

.footer-contact-item a {
    color: white;
    text-decoration: none;
}

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

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile-specific hero section fixes - disable parallax for mobile Safari */
    .hero-section {
        background: 
            -webkit-linear-gradient(130deg, rgba(242,105,48,0.53) 0%, rgba(250,176,64,0.77) 19%, rgba(0,167,209,0.79) 58%, rgba(0,84,135,0.88) 100%),
            url('/images/intersection.png');
        background: 
            linear-gradient(130deg, rgba(242,105,48,0.53) 0%, rgba(250,176,64,0.77) 19%, rgba(0,167,209,0.79) 58%, rgba(0,84,135,0.88) 100%),
            url('/images/intersection.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll; /* Disable parallax on mobile for better performance */
    }

    /* Mobile-specific parallax section fixes */
    .parallax-section {
        background-attachment: scroll; /* Disable fixed attachment on mobile */
        background-size: cover;
        background-position: center;
        height: 300px; /* Slightly shorter on mobile */
        background-image: url('/images/billboard-wide-1.png');
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 48px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        max-width: 100%;
    }

    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-question {
        text-align: center;
    }
    
    /* iOS Safari specific fixes */
    .hero-section, .parallax-section {
        -webkit-transform: translate3d(0,0,0); /* Force hardware acceleration */
        transform: translate3d(0,0,0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Form Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font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