/* =========================================
   DRIVEPREP NIGERIA - Custom Styles
   Colors: #002B5B (Navy), #F2F2F2 (Light Gray), #000000 (Black)
   Fonts: Acumin Pro (headings), Inter (body)
   ========================================= */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --color-primary: #002B5B;
    --color-secondary: #F2F2F2;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset and Base Styles */
*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

/* Header Styles */
.header_twara {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-secondary);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo_language {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img,
.logo svg {
    height: 40px;
    width: auto;
}

/* Navigation Links */
.all-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.link a:hover {
    color: var(--color-black);
}

.link svg path,
.link svg rect,
.link svg polygon {
    fill: var(--color-primary);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu svg path {
    stroke: var(--color-primary);
}

/* Hero Section Styles */
.hero-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-white) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration img,
.hero-illustration svg {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #001d3d;
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

/* Hero Buttons Stack */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 280px;
}

/* Features Section */
.features-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 2rem;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-secondary);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.feature-item svg {
    color: var(--color-success);
}

.feature-item .checkmark {
    color: var(--color-primary);
    font-weight: bold;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 2rem;
    background-color: var(--color-white);
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
    font-size: 1.1rem;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* CBT Section */
.cbt-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--color-secondary);
}

.cbt-section h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cbt-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Find Schools Section */
.find-schools {
    padding: 3rem 2rem;
}

.find-schools h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.find-schools h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.find-schools p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--color-secondary);
    border-radius: 8px;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.sort-option select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--color-white);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.empty-state p {
    font-size: 0.9rem;
}

/* Footer Styles */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 3rem 2rem;
}

.logo-footer {
    margin-bottom: 2rem;
}

.logo-footer svg path {
    fill: var(--color-white);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-one h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-one-list {
    list-style: none;
}

.footer-one-list-element {
    margin-bottom: 0.5rem;
}

.footer-one-list-element a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-one-list-element a:hover {
    color: var(--color-white);
}

.footer-one-list-element svg {
    vertical-align: middle;
    margin-right: 0.5rem;
}

.footer-one-list-element svg path {
    stroke: var(--color-white);
}

.copyright {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.copyright h5 {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

/* ---- Page Loader (relaxing driving animation) ---- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 50%, #f0f4f8 100%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Road & car */
.loader-road {
    position: relative;
    width: 200px;
    height: 40px;
}

.loader-road-line {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: repeating-linear-gradient(
        90deg,
        #002B5B 0px,
        #002B5B 12px,
        transparent 12px,
        transparent 20px
    );
    opacity: 0.25;
}

.loader-car {
    position: absolute;
    bottom: 10px;
    animation: carDrive 2.4s ease-in-out infinite;
}

@keyframes carDrive {
    0%   { left: -10%;  transform: translateY(0); }
    25%  { transform: translateY(-2px); }
    50%  { left: 50%;   transform: translateX(-50%) translateY(0); }
    75%  { transform: translateY(-2px); }
    100% { left: 110%;  transform: translateY(0); }
}

/* Pulsing dots */
.loader-dots {
    display: flex;
    gap: 6px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #002B5B;
    opacity: 0.3;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.3); }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Profile Styles (inherited from original) */
.profile-container {
    display: flex;
    width: 50rem;
    margin: auto;
    padding: 2rem 0;
}

.vertical-line {
    display: inline-block;
    border-left: 1px solid #ccc;
    margin: 0 50px;
    height: 100%;
}

.profile-tabs {
    width: 25%;
}

.profile-content {
    width: 75%;
}

.profile-buttons {
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-buttons span {
    cursor: pointer;
    text-align: left;
    padding-left: 1rem;
}

.activated {
    border-left: solid var(--color-primary) 2px;
    color: var(--color-primary);
    font-weight: bold;
    transition: 0.5s;
}

.balance {
    display: flex;
    margin-top: 2rem;
    background-color: rgba(0, 43, 91, 0.1);
    justify-content: space-between;
    text-align: left;
    padding: 1.5rem 2.5rem;
    width: 400px;
    border-radius: 8px;
}

.balance-amount {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 20pt;
    line-height: 1.2;
    font-weight: 900;
    color: var(--color-primary);
}

.bikuza {
    width: 6rem;
    height: 2.5rem;
    margin-top: auto;
    margin-bottom: auto;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.bikuza:hover {
    background-color: #001d3d;
}

/* Form Styles */
input, select, textarea {
    font-family: var(--font-body);
}

.number-input {
    padding-left: 1rem;
    border: 1px solid #ddd;
    width: 14rem;
    height: 2.5rem;
    background-color: var(--color-secondary);
    border-radius: 4px;
}

.number-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Share Modal */
.share {
    z-index: 10000;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.6);
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
}

.sharing {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
}

.share-header h2 {
    color: var(--color-primary);
}

.share-app > a > div {
    background-color: var(--color-primary) !important;
}

/* Wrapper */
.wrapper-twara {
    min-height: calc(100vh - 200px);
    padding-bottom: 2rem;
}

/* Background Images (remove or customize) */
.bg-images {
    display: none;
}

/* Banner */
#banner {
    width: 100%;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    top: 0;
    left: 0;
    z-index: 1000;
}

.close-banner {
    cursor: pointer;
    font-size: 20px;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .all-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .all-links.active {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        margin: 0 auto;
    }
    
    .features-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-container {
        flex-direction: column;
        width: 100%;
        padding: 1rem;
    }
    
    .profile-tabs,
    .profile-content {
        width: 100%;
    }
    
    .vertical-line {
        display: none;
    }
    
    .balance {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .sort-controls {
        flex-direction: column;
        gap: 1rem;
    }
}
