/* ==========================================
   TXDMV ONLINE - STYLES
   Texas Intrastate Motor Carrier Registration
   ========================================== */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --primary-blue: #0033A0;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --bg-light: #F5F5F7;
    --bg-white: #FFFFFF;
    --border-color: #D2D2D7;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: 4rem 0;
    background: var(--bg-white);
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-service {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-service:hover {
    background: #002570;
    color: white;
    transform: scale(1.02);
}

/* ==========================================
   INFO SECTION
   ========================================== */
.info-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.info-card {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    height: 100%;
}

.info-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.info-card p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.image-container {
    position: relative;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.highlight-box {
    background: rgba(0, 51, 160, 0.05);
    border-left: 4px solid var(--primary-blue);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    display: flex;
    align-items: start;
}

/* ==========================================
   REQUIREMENT CARDS
   ========================================== */
.requirement-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.requirement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.requirement-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.requirement-icon i {
    font-size: 2rem;
    color: white;
}

.requirement-icon.hazmat {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.requirement-icon.farm {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.requirement-icon.bus {
    background: linear-gradient(135deg, #ca8a04, #a16207);
}

.requirement-icon.moving {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
}

.requirement-icon.interstate-icon {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.requirement-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.requirement-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.requirement-card.interstate {
    border: 2px solid var(--primary-blue);
    background: linear-gradient(to bottom, var(--bg-white), rgba(0, 51, 160, 0.02));
}

/* ==========================================
   PROCESS CARDS
   ========================================== */
.process-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.process-number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-card h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.process-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   COMPLIANCE LIST
   ========================================== */
.compliance-list {
    margin-top: 1.5rem;
}

.compliance-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.compliance-item i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.compliance-item span {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   INTERSTATE BANNER
   ========================================== */
.interstate-banner {
    background: linear-gradient(135deg, var(--primary-blue), #002570);
    color: white;
    padding: 3rem;
    border-radius: 18px;
    margin-bottom: 3rem;
}

.interstate-banner h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.interstate-banner p {
    font-size: 1.0625rem;
    opacity: 0.95;
    line-height: 1.7;
}

.interstate-banner .btn-light {
    background: white;
    color: var(--primary-blue);
    border: none;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 980px;
}

.interstate-banner .btn-light:hover {
    background: var(--bg-light);
    transform: scale(1.02);
}

/* ==========================================
   CTA BOX
   ========================================== */
.cta-box {
    background: var(--bg-white);
    border: 2px solid var(--primary-blue);
    border-radius: 18px;
    padding: 4rem 3rem;
}

.cta-box h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-box .lead {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 980px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ==========================================
   MODAL STYLING
   ========================================== */
.modal-content {
    border-radius: 18px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.btn-close {
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9375rem;
}

footer a:hover {
    color: white;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand .h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: white;
}

.footer-links p {
    margin-bottom: 0.75rem;
}

footer .livechat_button a {
    color: var(--primary-blue);
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 980px;
    display: inline-block;
    font-weight: 600;
    margin-top: 1rem;
}

footer .livechat_button a:hover {
    background: var(--bg-light);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
    }
    
    footer {
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 2rem;
    }
}
