/* 
 * Home Page CSS for Banbakur
 * Clean, organized, and properly structured
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --primary-orange: #FF6600;
    --primary-orange-hover: #E55A00;
    --primary-green: #009933;
    --primary-green-hover: #00802B;
    --primary-blue: #0066CC;
    --primary-blue-hover: #004D99;
    --primary-yellow: #FFCC00;
    --primary-yellow-hover: #E6B800;

    /* Background Colors */
    --bg-light: #FDFDFC;
    --bg-dark: #0a0a0a;
    --bg-card-light: #FFFFFF;
    --bg-card-dark: #161615;
    --bg-accent-light: #fff2f2;
    --bg-accent-dark: #1D0002;
    --bg-neutral-light: #eeeeec;
    --bg-neutral-dark: #3E3E3A;

    /* Text Colors */
    --text-primary-light: #1b1b18;
    --text-primary-dark: #EDEDEC;
    --text-secondary-light: #706f6c;
    --text-secondary-dark: #A1A09A;
    --text-muted-light: #666666;
    --text-muted-dark: #A1A09A;

    /* Border Colors */
    --border-light: #19140035;
    --border-light-hover: #1915014a;
    --border-dark: #3E3E3A;
    --border-dark-hover: #62605b;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0px 0px 1px 0px rgba(0, 0, 0, 0.03), 0px 1px 2px 0px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-inset: inset 0px 0px 0px 1px rgba(26, 26, 0, 0.16);
    --shadow-inset-dark: inset 0px 0px 0px 1px rgba(255, 250, 237, 0.18);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
.home-container {
    min-height: 100vh;
    background-color: var(--bg-light);
    color: var(--text-primary-light);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    padding: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .home-container {
        padding: 2rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .home-container {
        background-color: var(--bg-dark);
        color: var(--text-primary-dark);
    }
}

/* ============================================
   HEADER
   ============================================ */
.home-header {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto 1.5rem auto;
    font-size: 0.875rem;
}

.home-header.hidden {
    display: none;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary-orange);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon i {
    color: white;
    font-size: 1rem;
}

.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid;
}

.btn-login {
    color: var(--text-primary-light);
    border-color: transparent;
    background-color: transparent;
}

.btn-login:hover {
    border-color: var(--border-light);
}

.btn-register {
    color: var(--text-primary-light);
    border-color: var(--border-light);
    background-color: transparent;
}

.btn-register:hover {
    border-color: var(--border-light-hover);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.btn-secondary {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-orange-hover);
    border-color: var(--primary-orange-hover);
}

/* Dark mode button adjustments */
@media (prefers-color-scheme: dark) {
    .btn-login {
        color: var(--text-primary-dark);
    }

    .btn-login:hover {
        border-color: var(--border-dark);
    }

    .btn-register {
        color: var(--text-primary-dark);
        border-color: var(--border-dark);
    }

    .btn-register:hover {
        border-color: var(--border-dark-hover);
    }

    .btn-secondary {
        background-color: var(--bg-neutral-light);
        border-color: var(--bg-neutral-light);
        color: var(--text-primary-light);
    }

    .btn-secondary:hover {
        background-color: white;
        border-color: white;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.home-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 10rem);
    transition: opacity var(--transition-slow);
    opacity: 1;
}

.home-content {
    display: flex;
    flex-direction: column-reverse;
    max-width: 20.9375rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .home-content {
        max-width: 72rem;
        flex-direction: row;
    }
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 3rem;
    background-color: var(--bg-card-light);
    box-shadow: var(--shadow-inset);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
    .info-section {
        padding: 5rem;
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
        border-bottom-right-radius: 0;
    }
}

.info-title {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.info-subtitle {
    margin-bottom: 0.5rem;
    color: var(--text-secondary-light);
    font-size: 1rem;
}

/* Dark mode info section */
@media (prefers-color-scheme: dark) {
    .info-section {
        background-color: var(--bg-card-dark);
        color: var(--text-primary-dark);
        box-shadow: var(--shadow-inset-dark);
    }

    .info-subtitle {
        color: var(--text-secondary-dark);
    }
}

/* ============================================
   FEATURES
   ============================================ */
.features-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon.fast {
    background-color: var(--primary-orange);
}

.feature-icon.secure {
    background-color: var(--primary-green);
}

.feature-icon.support {
    background-color: var(--primary-blue);
}

.feature-icon i {
    color: white;
    font-size: 1.25rem;
}

.feature-content h3 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: var(--text-muted-light);
    font-size: 0.875rem;
}

@media (prefers-color-scheme: dark) {
    .feature-content p {
        color: var(--text-muted-dark);
    }
}

/* ============================================
   SERVICES
   ============================================ */
.services-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-accent-light);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
}

.service-tag i {
    color: var(--primary-orange);
}

@media (prefers-color-scheme: dark) {
    .service-tag {
        background-color: var(--bg-accent-dark);
    }
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.action-buttons a {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    background-color: var(--bg-accent-light);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    aspect-ratio: 335/376;
    width: 100%;
    overflow: hidden;
    margin-bottom: -1px;
}

@media (min-width: 1024px) {
    .hero-section {
        width: 27.375rem;
        flex-shrink: 0;
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        border-top-left-radius: 0;
        aspect-ratio: auto;
        margin-left: -1px;
        margin-bottom: 0;
    }
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.truck-svg {
    width: 100%;
    height: auto;
    transition: all var(--transition-slow);
    transform: translateY(0);
    opacity: 1;
}

.floating-icon {
    position: absolute;
    width: 4rem;
    height: 4rem;
    background-color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icon i {
    font-size: 1.5rem;
}

.floating-icon.clock {
    top: 5rem;
    left: 5rem;
}

.floating-icon.clock i {
    color: var(--primary-orange);
}

.floating-icon.location {
    bottom: 5rem;
    right: 5rem;
}

.floating-icon.location i {
    color: var(--primary-blue);
}

.floating-icon.check {
    top: 8rem;
    right: 8rem;
}

.floating-icon.check i {
    color: var(--primary-green);
}

/* Stats Overlay */
.stats-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--bg-card-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 6rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-value.hours {
    color: var(--primary-orange);
}

.stat-value.satisfaction {
    color: var(--primary-green);
}

.stat-value.operational {
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted-light);
}

/* Slogan */
.slogan {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    text-align: center;
}

.slogan-content {
    display: inline-block;
    background-color: var(--bg-card-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.slogan-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.slogan-content i {
    margin: 0 0.5rem;
}

/* Dark mode hero section */
@media (prefers-color-scheme: dark) {
    .hero-section {
        background-color: var(--bg-accent-dark);
    }

    .stat-card {
        background-color: var(--bg-card-dark);
    }

    .stat-label {
        color: var(--text-muted-dark);
    }

    .slogan-content {
        background-color: var(--bg-card-dark);
    }
}

.hero-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-inset);
}

@media (prefers-color-scheme: dark) {
    .hero-border {
        box-shadow: var(--shadow-inset-dark);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.home-footer {
    width: 100%;
    max-width: 72rem;
    margin: 2rem auto 0 auto;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1024px) {
    .footer-content {
        flex-direction: row;
    }
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i.fa-phone {
    color: var(--primary-orange);
}

.contact-item i.fa-envelope {
    color: var(--primary-blue);
}

.contact-item i.fa-map-marker-alt {
    color: var(--primary-green);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.75rem;
}

@media (prefers-color-scheme: dark) {
    .home-footer {
        color: var(--text-muted-dark);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.fade-in {
    animation: fadeIn 0.75s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    .home-container {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .stats-overlay {
        gap: 0.75rem;
    }

    .stat-card {
        min-width: 5rem;
        padding: 0.5rem;
    }

    .contact-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        justify-content: center;
    }

    .floating-icon {
        width: 3rem;
        height: 3rem;
    }

    .floating-icon i {
        font-size: 1.25rem;
    }
}