/* 
 * Valdosta Food Delivery - Main Site Styles (Desktop)
 * Core Branding: Valdosta Green and Professional Dark Blue
 */

:root {
    --primary-green: #76b947;
    --dark-blue: #232f3e;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-color: #dddddd;
    --admin-border: #ccd0d4;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header & Status Banner --- */
.header-top {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo-area img {
    max-width: 150px;
    height: auto;
}

.status-indicator {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green { background-color: #28a745; }
.dot.red { background-color: #dc3545; }

/* --- Desktop Styles (Header & Nav) --- */
.navbar {
    background-color: #333;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Pushes Logo left, Links right */
    align-items: center;
    padding: 0 20px;
}

.logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex; /* Horizontal on desktop */
    list-style: none;
    margin: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* Hide the hamburger icon and checkbox on desktop */
.nav-toggle, .nav-toggle-label {
    display: none;
}

/* --- Mobile Styles (Screens smaller than 768px) --- */
@media screen and (max-width: 768px) {
    
    /* Show the hamburger icon on the right */
    .nav-toggle-label {
        display: block;
        cursor: pointer;
    }

    /* Create the 3 Bars */
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: white;
        height: 3px;
        width: 30px;
        position: relative;
        transition: all 0.4s;
    }

    .nav-toggle-label span::before { content: ""; top: 10px; } /* Bottom bar */
    .nav-toggle-label span::after { content: ""; bottom: 13px; } /* Top bar */

    /* The Dropdown Menu (Hidden initially) */
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: #444;
        flex-direction: column;
        align-items: center;
        max-height: 0; /* Starts at 0 height */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #555;
    }

    .nav-links a {
        padding: 20px;
        display: block;
    }

    /* The "Working" part: When checkbox is checked, expand menu */
    .nav-toggle:checked ~ .nav-links {
        max-height: 400px; /* Expands to show links */
    }

    /* Visual: Animate bars into an 'X' when open */
    .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked + .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle:checked + .nav-toggle-label span::after { transform: rotate(-45deg); bottom: 3px; }
}

/* --- Niche Section 3-Wide Grid --- */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Equal Columns */
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.niche-card {
    border: 1px solid #ddd;
    border-radius: 8px; /* Uniform Rounded Corners */
    padding: 30px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.niche-card:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.niche-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.niche-heading {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.niche-text {
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    flex-grow: 1; /* Ensures text area stays uniform */
}

.niche-btn {
    display: inline-block;
    background-color: #e65100; /* Your orange branding */
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 15px;
}

.niche-footer {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* --- Mobile Stack (Under 900px) --- */
@media screen and (max-width: 900px) {
    .niche-grid {
        grid-template-columns: 1fr; /* Stacks to 1-wide on phones/tablets */
    }
}

/* Centers all primary sub-headers and section titles */
h2, h3, h4 {
    text-align: center;
    margin-top: 0;
    width: 100%;
}

/* Specific centering for Section Dividers and Titles */
.section-title, .form-header h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

/* Override for Legal blocks - we want the container centered, 
   but sometimes the header looks better left-aligned with its 
   paragraph. If you want these centered too, keep this rule: */
.legal-block h3 {
    display: block;
    text-align: center;
    margin: 0 auto 15px auto;
}

/* Centers headers inside the 3-column grids */
.about-card h3, 
.benefit-card h3, 
.partner-card h3 {
    text-align: center;
    width: 100%;
}

/* --- Hero Section Background & Layout (index2.php) --- */
.hero-branding {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('/images/hero-banner.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px; 
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.main-title {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.sub-title {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    max-width: 900px;
}

/* --- Navigation --- */
.main-nav {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-bg);
    margin-bottom: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: bold;
    padding: 0 15px;
}

.main-nav a:hover {
    color: var(--primary-green);
}

/* --- Partner Grid (3-Container Setup) --- */
.partner-section {
    padding: 40px 0;
    text-align: center;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.partner-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
    background: #fff;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partner-logo {
    max-width: 120px;
    margin-bottom: 15px;
}

.order-btn {
    display: inline-block;
    background-color: #e44d26; 
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 15px 0;
}

/* --- Trust Boxes Section --- */
.trust-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.trust-box {
    background: var(--light-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.trust-box h4 {
    color: var(--dark-blue);
    margin: 0 0 10px 0;
}

/* --- About Page Centering & Grid Fixes --- */

/* Ensures the text in the mission statement is perfectly centered */
.centered-text {
    text-align: center;
    max-width: 800px;
    margin: 40px auto; /* Centering the container itself */
}

.mission-statement p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Fixes the 3-column About Grid and centers it */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px auto;
    text-align: center; /* Centers the text inside the cards */
}

.about-card {
    background: var(--light-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items inside the card */
    justify-content: center;
}

/* Centers the Call to Action section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    margin: 40px auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Global divider centering */
.section-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 40px auto;
    width: 100%;
}

/* --- Restaurant Partner Page Centering --- */

/* 3-Column Value Proposition Grid */
.partner-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px auto;
    max-width: 1100px;

}

.benefit-card {
    background: var(--light-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center; /* Centers text inside cards */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Driver Signup Page Centering --- */

/* Centers the main grid container */
.driver-signup-grid {
    display: grid;
    grid-template-columns: 1fr; /* Set to 1fr to center the info section below */
    gap: 40px;
    max-width: 900px;
    margin: 50px auto; /* Perfect horizontal centering */
}

/* Driver Info Section Styling */
.driver-info {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.driver-info h3 {
    color: var(--dark-blue);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center; /* Centers the heading */
}

/* Benefit List Alignment */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 700px; /* Keeps the list readable and centered */
}

.benefit-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.benefit-list li:last-child {
    border-bottom: none;
}

/* Small Trust Box for Insurance */
.trust-box-small {
    background: #fff9e6; /* Light warning yellow for importance */
    border-left: 5px solid #ffcc00;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

.trust-box-small h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

/* --- Contact Page Centering --- */

/* Centers the main contact grid container */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Set to 1fr to center the info box below */
    gap: 40px;
    max-width: 800px;
    margin: 50px auto; /* Perfect horizontal centering */
}

/* Contact Info Section Styling */
.contact-info-box {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center; /* Centers all text content within the box */
}

.contact-info-box h3 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.contact-info-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.contact-info-box strong {
    color: var(--primary-green);
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Local Support Trust Box Styling */
.contact-info-box .trust-box-small {
    background: var(--light-bg);
    border: 1px dashed var(--primary-green);
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
    text-align: left; /* Keeps the specific trust message readable */
}

.contact-info-box .trust-box-small h4 {
    margin: 0 0 10px 0;
    color: var(--dark-blue);
}

/* --- Privacy Page Centering & Typography --- */

/* Centers the entire legal content block */
.legal-content {
    max-width: 850px;
    margin: 40px auto; /* Perfect horizontal centering */
    padding: 0 20px;
}

/* Styles each individual section for readability */
.legal-block {
    margin-bottom: 40px;
    text-align: left; /* Keeps text readable while the container is centered */
    background: var(--white);
    padding: 20px 0;
}

.legal-block h3 {
    color: var(--dark-blue);
    font-size: 1.6rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-green);
    display: inline-block; /* Bottom border only spans text width */
    padding-bottom: 5px;
}

.legal-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* Centered link and secondary button */
.centered-link {
    text-align: center;
    margin: 60px 0;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--dark-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary-green);
}

/* --- Forms (Contact/Partner/Driver) --- */
.standard-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 40px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    width: 100%;
}

/* --- Footer --- */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 50px 0 20px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
    color: #888;
}