/* 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;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nav a.nav-cta::before {
        animation: none;
    }
}

/* 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: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 30px rgba(0, 59, 114, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.4s ease-in-out;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.18) 28%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0.24) 100%);
    pointer-events: none;
}

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

.logo {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    color: var(--orange-start);
    transform: translateY(-1px);
}

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

.nav a {
    color: rgba(51, 51, 51, 0.92);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background: rgba(0, 59, 114, 0.08);
    color: var(--primary-blue);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav a.nav-cta {
    background: linear-gradient(135deg, rgba(242, 105, 48, 0.95) 0%, rgba(0, 167, 209, 0.92) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 28px rgba(0, 59, 114, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    white-space: nowrap;
}

.nav a.nav-cta::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 2px solid rgba(0, 167, 209, 0.42);
    box-shadow: 0 0 0 0 rgba(242, 105, 48, 0.2);
    opacity: 0;
    animation: nav-cta-ring 2.5s ease-out infinite;
    pointer-events: none;
}

.nav a.nav-cta:hover {
    background: linear-gradient(135deg, rgba(255, 127, 61, 0.98) 0%, rgba(0, 186, 225, 0.96) 100%);
    color: white;
    box-shadow: 0 16px 34px rgba(0, 59, 114, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.nav a.nav-cta:hover::before,
.nav a.nav-cta:focus-visible::before {
    animation-play-state: paused;
}

.nav a.nav-cta:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

@keyframes nav-cta-ring {
    0% {
        transform: scale(0.94);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(242, 105, 48, 0.18);
    }

    18% {
        opacity: 0.95;
    }

    72% {
        transform: scale(1.12);
        opacity: 0;
        box-shadow: 0 0 0 14px rgba(242, 105, 48, 0);
    }

    100% {
        transform: scale(1.12);
        opacity: 0;
        box-shadow: 0 0 0 14px rgba(242, 105, 48, 0);
    }
}

/* 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;
}

.hero-contact-form {
    width: 100%;
    max-width: 440px;
    margin-top: 8px;
}

.hero-contact-form .contact-form {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    box-shadow: 0 10px 24px rgba(17, 34, 68, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-contact-form .contact-form::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.hero-contact-form .contact-form > form {
    position: relative;
    z-index: 1;
}

.hero-contact-form .form-group {
    margin-bottom: 18px;
}

.hero-contact-form .form-control {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: var(--text-dark);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-contact-form .form-control:focus {
    outline: none;
    border-color: rgba(0, 59, 114, 0.32);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.hero-contact-form .captcha-container {
    align-items: center;
    gap: 12px;
}

.hero-contact-form .captcha-question {
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 14px rgba(0, 59, 114, 0.06);
}

.hero-contact-form .captcha-input {
    max-width: 100px !important;
    background: rgba(255, 255, 255, 0.7);
}

.hero-contact-form .form-text {
    color: rgba(51, 51, 51, 0.72);
}

.hero-contact-form .btn-submit {
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-blue);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(17, 34, 68, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.hero-contact-form .btn-submit:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-blue);
    box-shadow: 0 12px 22px rgba(17, 34, 68, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.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 {
    scroll-margin-top: 96px;
    padding: 90px 0 68px;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.86) 0%, rgba(255, 255, 255, 1) 18%);
}

.final-contact-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    gap: 34px;
}

.contact-section-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

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

.contact-section-heading h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 0;
}

.contact-section-lead {
    margin: 16px auto 0;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-light);
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.contact-panel__form {
    min-width: 0;
}

.contact-panel__form .contact-form {
    max-width: none;
    width: 100%;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(0, 59, 114, 0.08);
    box-shadow: 0 24px 48px rgba(0, 59, 114, 0.08);
}

.contact-panel__details {
    border-radius: 24px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 84, 135, 0.08) 0%, rgba(242, 105, 48, 0.05) 100%);
    border: 1px solid rgba(0, 59, 114, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.contact-panel__details h3 {
    font-size: 24px;
    line-height: 1.2;
    color: var(--text-dark);
}

.contact-panel__details p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

.contact-panel__details a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
}

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

.company-logo-section {
    padding: 54px 0 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 245, 245, 0.96) 100%);
    text-align: center;
    border-top: 1px solid rgba(0, 59, 114, 0.08);
    box-shadow: inset 0 16px 30px rgba(0, 59, 114, 0.03);
}

.company-logo-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* 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;
    }

    .hero-contact-form {
        max-width: 100%;
    }

    .hero-contact-form .contact-form {
        padding: 24px;
        border-radius: 22px;
    }

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

    .contact-section-heading {
        text-align: center;
    }

    .contact-panel__form .contact-form {
        padding: 24px;
    }

    .contact-panel__details {
        padding: 24px;
    }
    
    .footer-contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        max-width: 100%;
        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-size: 12px;
    margin-top: 5px;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdG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