/* =========================================
   1. GLOBAL SETTINGS & VARIABLES
   ========================================= */
:root {
    --primary-color: #0b3d91;
    --accent-color: #d32f2f;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --bg-gray: #f4f7f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--bg-gray); color: var(--text-dark); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* =========================================
   2. HIGH-VISIBILITY NAVIGATION
   ========================================= */
.navbar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0.5rem 5%; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; top: 0; z-index: 1000; 
    min-height: 130px; /* Thicker bar for desktop */
}

.logo-container { display: flex; align-items: center; height: 100%; }
.header-logo { 
    height: 110px; /* Larger logo on desktop */
    width: auto; 
    object-fit: contain; 
    display: block; 
    transition: transform 0.3s ease; 
}
.header-logo:hover { transform: scale(1.02); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: color 0.2s; font-size: 1.05rem; }
.nav-link:hover, .nav-link.active { color: var(--accent-color); }

.header-actions { display: flex; align-items: center; gap: 1.5rem; }

/* --- Mobile Menu Button Styling (The "Big Clickable Pill") --- */
.hamburger { 
    display: none; 
    background: #f4f7f6; 
    border: 1px solid var(--primary-color); 
    border-radius: 5px;
    padding: 8px 15px; 
    font-size: 1.2rem; 
    cursor: pointer; 
    color: var(--primary-color); 
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}
.hamburger:active {
    background-color: #d1d9d7;
    transform: scale(0.95);
}
.menu-text { 
    font-size: 1rem; 
    font-weight: 800; 
    margin-right: 8px; 
    pointer-events: none; 
}

/* Responsive Text Utility Classes */
.show-on-mobile { display: none; }

/* =========================================
   3. BUTTONS
   ========================================= */
.btn { padding: 0.75rem 1.5rem; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.2s; font-size: 1rem; text-align: center; }
.call-btn { background: var(--accent-color); color: white; }
.primary-btn { background: var(--primary-color); color: white; }
.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* =========================================
   4. BRAND HEADER (Fixed Centering & Scale)
   ========================================= */
.brand-header { 
    background: #ffffff;
    padding: 2rem 5% 5rem 5%; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.brand-header-logo {
    width: auto;
    max-width: 90%; 
    height: auto;
    max-height: 250px; 
    margin: 0 auto 1.5rem auto; 
    display: block;
}

.brand-title { 
    font-size: 2rem; 
    margin-bottom: 1rem; 
    color: var(--primary-color); 
    max-width: 900px;
}

.brand-subtitle { 
    color: var(--primary-color); 
    font-size: 1.1rem; 
    max-width: 700px; 
    font-weight: 600; 
    line-height: 1.4;
    margin: 0 auto; 
}

/* =========================================
   5. OVERLAPPING CARDS GRID
   ========================================= */
.overlapping-section { margin-top: -4rem; padding-top: 0; z-index: 10; position: relative; }
.container { padding: 4rem 5%; max-width: 1200px; margin: auto; }
.narrow-container { max-width: 800px; margin: auto; padding: 4rem 5%; }
.section-title { text-align: center; color: var(--primary-color); font-size: 2.5rem; margin-bottom: 1rem; }
.intro-text { text-align: center; margin-bottom: 3rem; font-size: 1.1rem; color: #555; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: white; border-radius: 8px; padding: 2rem; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-top: 4px solid var(--accent-color); display: flex; flex-direction: column; }
.card-tag { font-size: 0.75rem; font-weight: bold; text-transform: uppercase; color: var(--accent-color); margin-bottom: 0.5rem; letter-spacing: 1px; }
.card h2 { color: var(--primary-color); margin-bottom: 0.75rem; font-size: 1.4rem; }
.card p { font-size: 0.95rem; color: #555; line-height: 1.5; }

/* =========================================
   6. COMPONENTS (Forms, Accordion, Footer)
   ========================================= */
.accordion-item { background: white; margin-bottom: 1rem; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; }
.accordion-header { width: 100%; text-align: left; padding: 1.5rem; font-size: 1.1rem; font-weight: bold; background: white; border: none; cursor: pointer; color: var(--primary-color); display: flex; justify-content: space-between; }
.accordion-header::after { content: '+'; font-size: 1.5rem; }
.accordion-header.active::after { content: '-'; }
.accordion-content { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-content p { padding-bottom: 1.5rem; color: #555; }

.form-container { background: white; padding: 2.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: bold; margin-bottom: 0.5rem; color: var(--primary-color); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }

.footer { background: var(--text-dark); color: white; padding: 3rem 5%; text-align: center; margin-top: auto; }

/* =========================================
   7. DUI SURVIVAL GUIDE (Timeline & Tables)
   ========================================= */
.phase-tag { background: var(--primary-color); color: white; padding: 0.2rem 0.8rem; border-radius: 4px; display: inline-block; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-bottom: 0.5rem; }

.alert-box { background: #fff3f3; border-left: 5px solid var(--accent-color); padding: 1.5rem; margin: 1.5rem 0; border-radius: 4px; }
.alert-box strong { color: var(--accent-color); display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }

.info-note { background: #eef4ff; border-left: 5px solid var(--primary-color); padding: 1.5rem; margin: 1.5rem 0; border-radius: 4px; }
.benefit-box { background: #f4f7f6; border: 1px dashed var(--primary-color); padding: 1.5rem; border-radius: 8px; margin: 1.5rem 0; }

.guide-list { list-style: none; margin-top: 1rem; }
.guide-list li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
.guide-list li::before { content: "➔"; position: absolute; left: 0; color: var(--accent-color); }

.warning-text { color: var(--accent-color); font-weight: bold; border: 1px solid var(--accent-color); padding: 1rem !important; border-radius: 4px; margin-top: 2rem; }

.timeline { border-left: 4px solid var(--primary-color); padding-left: 2rem; margin-left: 1rem; }
.timeline-item { margin-bottom: 3rem; position: relative; }
.timeline-item::before { 
    content: ''; position: absolute; left: -2.75rem; top: 0; width: 20px; height: 20px; 
    background: var(--accent-color); border-radius: 50%; border: 4px solid white; box-shadow: 0 0 0 2px var(--primary-color); 
}
.timeline-item h3 { color: var(--primary-color); margin-bottom: 0.5rem; }

.table-container { overflow-x: auto; margin: 2rem 0; }
.guide-table { width: 100%; border-collapse: collapse; background: white; font-size: 0.9rem; }
.guide-table th, .guide-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; }
.guide-table th { background: var(--primary-color); color: white; }
.highlight-row { background: #fffafa; font-weight: bold; }

.disclaimer { font-size: 0.8rem; color: #888; text-align: center; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid #ddd; }

/* =========================================
   8. MEDIA QUERIES & MOBILE FIXES
   ========================================= */
@media (max-width: 1024px) {
    .brand-header-logo { max-width: 350px; }
    .brand-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    /* Navbar Mobile Adjustments */
    .navbar { min-height: 90px; }
    .header-logo { height: 65px; } 
    .header-actions { gap: 0.75rem; }
    
    /* Toggle Mobile Button Text */
    .hide-on-mobile { display: none; }
    .show-on-mobile { display: inline; }
    
    /* Make call button fit next to menu */
    .header-call-btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
    .hamburger { display: flex; }
    
    /* Hero Section Mobile Adjustments */
    .brand-header { padding: 1.5rem 5% 4rem 5%; }
    .brand-header-logo { max-height: 180px; } 
    .brand-title { font-size: 1.5rem; }
    .brand-subtitle { font-size: 1rem; }
    .overlapping-section { margin-top: -3rem; }
    
    /* Mobile Menu Dropdown */
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 2rem 5%; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.show { display: flex; }
    .nav-link { margin-bottom: 1rem; font-size: 1.1rem; }
}

@media (max-width: 600px) {
    .guide-table { font-size: 0.8rem; }
    .guide-table th, .guide-table td { padding: 0.5rem; }
}

.reorg-banner {
    background-color: #ffc107; /* Warning Amber */
    color: #000; /* High-contrast black text */
    padding: 12px 20px;
    text-align: center;
    font-family: sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    border-bottom: 2px solid #e0a800;
    width: 100%;
    z-index: 10000; /* Ensures it stays above the navbar */
}

.reorg-content strong {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-cta {
    display: block; /* Moves phone number to new line on small screens */
    font-weight: 700;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .banner-cta {
        display: inline; /* Keeps it on one line for desktop */
        margin-left: 10px;
    }
}
/* =========================================
   9. ADMIN DASHBOARD STYLES
   ========================================= */
.admin-tab { flex: 1; padding: 15px; border: none; background: #f8f9fa; font-weight: bold; cursor: pointer; border-bottom: 3px solid transparent; color: #555; font-size: 1rem;}
.admin-tab.active { background: white; border-bottom-color: var(--primary-color); color: var(--primary-color); }
.admin-card { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 1rem; border-left: 4px solid var(--primary-color); }
.admin-card p { margin-bottom: 0.2rem; font-size: 0.95rem; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; background: #eee; }
.badge-cash { background: #d4edda; color: #155724; }
.badge-card { background: #cce5ff; color: #004085; }