/* Custom CSS for Alliance Broadband Landing Page */

/* Root Variables - Alliance Broadband Brand Colors */
:root {
    --primary-red: #EE2542;
    --secondary-black: #1D1E1D;
    --secondary-gray: #9F9F9F;
    --text-dark: #1D1E1D;
    --text-light: #9F9F9F;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #e9ecef;
    --success-color: #EE2542;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

/* Hero Section */
.hero-section {
    background: var(--secondary-black) url('hero-background.png') center center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 30, 29, 0.7);
    pointer-events: none;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-cta .btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    background: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15) !important;
    border-color: var(--light-blue);
}

.pain-point-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pain-point-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(238, 37, 66, 0.15);
    border-color: var(--primary-red);
}

.pain-point-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.pain-point-card h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.pain-point-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.solution-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(238, 37, 66, 0.15);
    border-color: var(--primary-red);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.solution-card h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Button Styles */
.btn-success {
    background: var(--primary-red);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(238, 37, 66, 0.3);
}

.btn-success:hover {
    background: #d41e3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 37, 66, 0.4);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}


/* Section Spacing */
section {
    padding: 80px 0;
}

.py-5 {
    padding: 80px 0 !important;
}

/* Typography */
.display-4, .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
}

.text-highlight {
    color: var(--primary-red);
    font-weight: 700;
}

/* Icon Styles */
.fa-3x {
    transition: all 0.3s ease;
}

.card:hover .fa-3x {
    transform: scale(1.1);
}

/* Visionary Proof Section */
.visionary-section {
    background: var(--secondary-black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.visionary-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--white);
}

.visionary-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.visionary-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.visionary-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.visionary-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Grant Funding Section */
.grant-funding-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 4rem 3rem;
    box-shadow: 0 10px 30px rgba(238, 37, 66, 0.1);
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(238, 37, 66, 0.15);
    border-color: var(--primary-red);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .benefit-icon {
        margin: 0 auto 1rem auto;
    }
}

.benefit-card h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* About Section */
.about-card {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem 0;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
    border-radius: 8px !important;
    border: 1px solid var(--border-gray);
    background: var(--white);
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(238, 37, 66, 0.25);
}

.accordion-item {
    border-radius: 8px !important;
    margin-bottom: 10px;
    border: 1px solid var(--border-gray);
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-gray);
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(238, 37, 66, 0.25);
    background: var(--white);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form-container {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(238, 37, 66, 0.1);
}

/* Footer Styles */
footer {
    background: var(--secondary-black) !important;
    color: var(--white);
}

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

footer a:hover {
    color: var(--primary-red) !important;
}

footer h5, footer h6 {
    color: var(--white);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 80vh;
        padding-top: 100px; /* Add padding to account for fixed navbar */
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }
    
    section {
        padding: 40px 0; /* Reduced from 60px to 40px */
    }
    
    .py-5 {
        padding: 40px 0 !important; /* Reduced from 60px to 40px */
    }
    
    /* Mobile centering */
    .container {
        text-align: center;
    }
    
    .row {
        justify-content: center;
    }
    
    .col-lg-8, .col-lg-6, .col-md-6, .col-md-4 {
        text-align: center;
    }
    
    .pain-point-card, .solution-card, .visionary-card, .benefit-card {
        margin-bottom: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    footer .row {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Mobile CTA Form Improvements */
    .contact-form-container {
        padding: 2rem 1.5rem; /* Reduced padding for mobile */
        margin: 0 10px; /* Add small margins */
    }
    
    .form-control {
        padding: 15px 18px; /* Increased padding for better touch targets */
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-success {
        padding: 15px 30px; /* Increased padding for better touch targets */
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Extra small mobile optimizations */
    section {
        padding: 30px 0; /* Further reduced spacing for very small screens */
    }
    
    .py-5 {
        padding: 30px 0 !important;
    }
    
    .contact-form-container {
        padding: 1.5rem 1rem; /* Further reduced padding */
        margin: 0 5px; /* Smaller margins */
    }
    
    .form-control {
        padding: 18px 20px; /* Even larger padding for better usability */
        font-size: 16px;
    }
    
    .btn-success {
        padding: 18px 30px; /* Larger button for better touch targets */
        font-size: 16px;
    }
}

/* Smooth Scroll Offset for Fixed Nav */
html {
    scroll-padding-top: 80px;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d41e3a;
}
