/* Custom properties for Bandhige colors */
:root {
    --bandhige-primary: #FDB827; /* Taxi Yellow-Orange */
    --bandhige-midnight: #1A1A1A; /* Midnight Black */
    --bandhige-steel: #4B4B4B;   /* Steel Grey */
    --bandhige-light-gray: #f0f4f8; /* A light, neutral background */
    --bandhige-medium-gray: #e2e8f0; /* For section backgrounds */
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--bandhige-steel);
    background-color: var(--bandhige-light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bandhige-midnight);
    margin-bottom: 3rem;
    text-align: center;
}

.section-paragraph {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--bandhige-steel);
    margin-bottom: 1rem;
}

/* Navigation Bar */
.navbar {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bandhige-midnight);
    text-decoration: none;
}

.logo-img {
    height: 2.5rem;
    width: 2.5rem;
    margin-right: 0.5rem;
    border-radius: 50%;
}

.menu-button {
    display: none; /* Hidden on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bandhige-steel);
    padding: 0.5rem;
}
.menu-button svg {
    height: 1.5rem;
    width: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--bandhige-steel);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--bandhige-primary);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-image: url('../assets/hero-car-ad.png'); /* Changed to car image */
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 4rem; /* To account for fixed navbar */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--bandhige-midnight);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 3rem;
    max-width: 60rem;
    margin: 0 auto;
    border-radius: 0.75rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-button {
    background-color: var(--bandhige-primary);
    color: var(--bandhige-midnight);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px; /* Fully rounded */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-button:hover {
    background-color: rgba(253, 184, 39, 0.9); /* Slightly darker primary on hover */
    transform: scale(1.05);
}

/* About Us Section */
.bg-light-gray {
    background-color: var(--bandhige-light-gray);
}

.flex-container {
    display: flex;
    flex-direction: column; /* Default for mobile */
    align-items: center;
    gap: 3rem;
}

.about-image-wrapper {
    flex: 1;
    max-width: 100%;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

.about-text-content {
    flex: 1;
    max-width: 100%;
}

/* Services Section */
.bg-white {
    background-color: #fff;
}

.grid-layout {
    display: grid;
    gap: 2.5rem;
}

.three-col-grid {
    grid-template-columns: 1fr; /* Default to single column */
}

.service-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: rgba(253, 184, 39, 0.05); /* Light primary background on hover */
}

.service-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon {
    height: 4rem;
    width: 4rem;
    color: var(--bandhige-primary);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bandhige-midnight);
}

.card-paragraph {
    color: var(--bandhige-steel);
}

/* Why Us Section */
.bg-medium-gray {
    background-color: var(--bandhige-medium-gray);
}

.why-us-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.why-us-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.why-us-icon {
    height: 4rem;
    width: 4rem;
    color: var(--bandhige-primary);
    margin-bottom: 1rem;
}

/* Advertisers Apply Section (Contact Form) */
.advertiser-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-block {
    background-color: var(--bandhige-light-gray);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-block h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--bandhige-midnight);
    margin-bottom: 0.75rem;
}

.info-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bandhige-steel);
}

.form-wrapper {
    max-width: 45rem;
    margin: 0 auto;
    background-color: var(--bandhige-light-gray);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#advertiser-apply-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 3rem;
    width: 100%;
}

.form-group {
    flex: 1; /* Ensures equal width distribution within form-row */
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: none; /* Override flex:1 for full width */
    width: 100%;
}

.form-group label {
    font-weight: 600;
    color: var(--bandhige-midnight);
    margin-bottom: 0.5rem;
    display: block;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"], /* Added for phone number */
.form-group textarea,
.form-group select { /* Added for the select dropdown */
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--bandhige-midnight);
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder, /* Added for phone number */
.form-group textarea::placeholder {
    color: #a0a0a0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { /* Added for select focus */
    outline: none;
    border-color: var(--bandhige-primary);
    box-shadow: 0 0 0 3px rgba(253, 184, 39, 0.3);
}

.submit-button {
    width: 100%;
    background-color: var(--bandhige-primary);
    color: var(--bandhige-midnight);
    font-weight: 600;
    padding: 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.125rem;
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: rgba(253, 184, 39, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.form-help-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--bandhige-steel);
    font-size: 0.95rem;
}

.form-response-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.form-response-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-response-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.form-response-message.hidden {
    display: none;
}


/* Footer */
.footer {
    background-color: var(--bandhige-midnight);
    color: #d1d5db;
    padding: 3rem 0;
}

.footer p {
    font-size: 0.875rem;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .menu-button {
        display: block; /* Show menu button on small screens */
    }

    .nav-menu {
        display: none; /* Hide menu by default on small screens */
        flex-direction: column;
        position: absolute;
        top: 4.5rem; /* Adjust based on navbar height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .nav-menu.show {
        display: flex; /* Show when 'show' class is added by JS */
    }

    .nav-menu a {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid #eee;
    }
    .nav-menu a:last-child {
        border-bottom: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .flex-container {
        flex-direction: column;
    }

    .about-text-content {
        text-align: center;
    }

    .three-col-grid {
        grid-template-columns: 1fr;
    }

    .advertiser-info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0; /* Remove gap for vertical stacking */
    }

    .form-group {
        width: 100%;
        margin-bottom: 1.5rem; /* Add margin between stacked groups */
    }
    .form-group:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 769px) {
    .flex-container {
        flex-direction: row;
    }

    .about-image-wrapper,
    .about-text-content {
        flex: 1;
    }

    .about-image-wrapper {
        margin-right: 3rem;
    }
    .about-text-content {
        margin-left: 3rem;
    }

    .three-col-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .advertiser-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Added for spacing on larger screens */
    .form-row {
        margin-bottom: 1.5rem; /* Add spacing between rows on larger screens */
    }
    .form-row:last-of-type {
        margin-bottom: 0; /* No margin after the last row before full-width elements */
    }

    /* Adjust padding for the form wrapper to give more space */
    .form-wrapper {
        padding: 4rem; /* Increased padding for better spacing */
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}