/* ============================================
   CALTRANS LEAD COMPLIANCE PLAN - STYLES
   ============================================ */

/* CSS Variables */
:root {
    --navy-blue: #003366;
    --caltrans-gold: #FFB81C;
    --safety-orange: #FF6600;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #2C3E50;
    --medium-gray: #6C757D;
    --green: #28A745;

    --text-muted: #4A5568;
    --text-on-dark: rgba(255,255,255,0.95);
    --navy-light: #004D99;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --container-width: 1200px;
    --section-padding: 80px 20px;
    --mobile-padding: 40px 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

h1 { font-size: 42px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.3; }
h3 { font-size: 24px; line-height: 1.4; }

p { margin-bottom: 1.2em; }

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

a:hover { color: var(--caltrans-gold); }

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

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

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy-blue);
    text-decoration: none;
    align-items: flex-start;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    margin-bottom: 4px;
}

.logo-division {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-gray);
}

.nav-menu a:hover { color: var(--caltrans-gold); }

.nav-menu a.btn-primary {
    background-color: var(--caltrans-gold);
    color: var(--navy-blue);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
}

.nav-menu a.btn-primary:hover {
    background-color: #E6A619;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--navy-blue);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--caltrans-gold);
    color: var(--navy-blue);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #E6A619;
    color: var(--navy-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
}

.btn-secondary:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

.hero .btn-secondary,
.cta-section .btn-secondary {
    border: 2px solid var(--white);
    color: var(--white);
    background-color: transparent;
}

.hero .btn-secondary:hover,
.cta-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--navy-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 64, 128, 0.85) 100%),
                url('images/hero-lead-compliance.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 48px;
    margin-bottom: 1rem;
}

.hero-subheading {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--caltrans-gold);
}

.hero-text {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    font-size: 18px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Sections */
section {
    padding: var(--section-padding);
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

section h2 {
    text-align: center;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 18px;
    color: var(--text-muted);
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.intro-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.intro-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 184, 28, 0.15) 0%, rgba(255, 184, 28, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--caltrans-gold);
    stroke-width: 1.5;
    fill: none;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.15);
    border-top-color: var(--caltrans-gold);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 184, 28, 0.15) 0%, rgba(255, 184, 28, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--caltrans-gold);
    stroke-width: 1.5;
    fill: none;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--caltrans-gold);
    font-weight: bold;
}

/* DVBE Section */
.dvbe-section {
    background-color: var(--navy-blue);
    color: var(--white);
}

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

.dvbe-section .section-intro {
    color: rgba(255,255,255,0.85);
}

.dvbe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.dvbe-card {
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.dvbe-card.highlight {
    background-color: var(--caltrans-gold);
    color: var(--navy-blue);
    border-color: var(--caltrans-gold);
}

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

.dvbe-card.highlight h3 {
    color: var(--navy-blue);
}

.dvbe-percentage {
    font-size: 64px;
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.dvbe-certification {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
}

/* Districts Section */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.district-column {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.district-column h3 {
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--caltrans-gold);
}

.district-column ul {
    list-style: none;
}

.district-column li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.district-column li:last-child {
    border-bottom: none;
}

/* Process Section */
.process-timeline {
    max-width: 800px;
    margin: 3rem auto 0;
}

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

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--caltrans-gold) 0%, #E6A619 100%);
    color: var(--navy-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E0E0E0;
}

.process-step:last-child .step-content {
    border-bottom: none;
    padding-bottom: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* Credentials Section */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.credentials-column {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.credentials-column h3 {
    margin-bottom: 1.5rem;
    color: var(--navy-blue);
}

.credentials-column ul {
    list-style: none;
}

.credentials-column li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    padding-left: 1.5rem;
    position: relative;
}

.credentials-column li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--caltrans-gold);
    font-weight: bold;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.faq-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--caltrans-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-item h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-size: 18px;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 64, 128, 0.9) 100%),
                url('images/cta-background.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

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

.cta-section p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 18px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

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

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

.dvbe-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: var(--caltrans-gold);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 60px 20px 20px;
}

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

.footer-column h3,
.footer-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

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

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

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

.footer-column a:hover {
    color: var(--caltrans-gold);
}

.footer-main-link {
    color: var(--caltrans-gold) !important;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        z-index: 999;
        padding: 12px 20px;
        border-top: 2px solid var(--caltrans-gold);
    }

    .mobile-sticky-cta-content {
        display: flex;
        gap: 10px;
    }

    .mobile-sticky-cta .btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
    }

    body {
        padding-bottom: 80px;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }

    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 36px; }
    .hero-subheading { font-size: 20px; }

    section { padding: var(--mobile-padding); }

    .logo-img { height: 40px; max-width: 160px; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .nav-menu.active { display: flex; }
    .mobile-menu-toggle { display: flex; }

    .services-grid,
    .intro-grid,
    .dvbe-grid,
    .districts-grid,
    .credentials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .btn { width: 100%; }

    .process-step {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .container { padding: 0 15px; }
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    .hero h1 { font-size: 32px; }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}
