/**
 * ARBD Möbel - Custom Styles
 * Bootstrap 5 is used extensively. Custom CSS only where Bootstrap is insufficient.
 */

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 62px;
}

main {
    margin-top: 0;
    padding-top: 0;
}

.carousel {
    margin-top: 0;
}

/* Custom: Brand colors override Bootstrap primary */
:root {
    --bs-primary: #003d6f;
    --bs-primary-rgb: 0, 61, 111;
}

.bg-primary {
    background-color: #003d6f !important;
}

.text-primary {
    color: #003d6f !important;
}

.btn-primary {
    background-color: #003d6f !important;
    border-color: #003d6f !important;
}

.btn-primary:hover {
    background-color: #002a4d !important;
    border-color: #002a4d !important;
}

.btn-outline-primary {
    color: #003d6f !important;
    border-color: #003d6f !important;
}

.btn-outline-primary:hover {
    background-color: #003d6f !important;
    border-color: #003d6f !important;
    color: #ffffff !important;
}

.border-primary {
    border-color: #003d6f !important;
}

/* Custom: Sticky header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Custom: Hero banner gradient background */
/* Why: Bootstrap doesn't provide gradient backgrounds out of the box */
.hero-banner {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #001f3f 100%);
}

/* Custom: Card hover effect for all cards */
/* Why: Adds interactivity beyond Bootstrap's default card styles */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem !important;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2) !important;
}

.card .card-img-top {
    border-radius: 0 !important;
}

a:focus .card-img-top,
a:focus-visible .card-img-top {
    outline: none;
    box-shadow: none;
    border: none;
}

/* Custom: USP section icons spacing */
/* Why: Better visual hierarchy than default Bootstrap spacing */
.usp-section i {
    display: block;
}

/* Custom: SEO content typography */
/* Why: Better readability for long-form content */
.seo-content .content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Custom: Banner carousel captions */
.carousel-caption {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 4rem 0 2rem 0;
}

.carousel-caption h2,
.carousel-caption p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Custom: Category cards */
.category-card {
    transition: transform 0.2s ease;
    border-left: 4px solid var(--bs-primary);
}

.category-card:hover {
    transform: translateY(-4px);
}

/* Custom: Sidebar navigation */
.products-collection .nav-link {
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.products-collection .nav-link:hover {
    color: var(--bs-primary);
    background-color: #f8f9fa;
    border-left-color: var(--bs-primary);
}

.products-collection .nav-link.active {
    color: var(--bs-primary);
    font-weight: 600;
    background-color: #f8f9fa;
    border-left-color: var(--bs-primary);
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .hero-banner h1 {
        font-size: 2rem;
    }

    .hero-banner .lead {
        font-size: 1rem;
    }

    /* Banner carousel mobile optimization */
    .carousel-caption h2 {
        font-size: 1.5rem !important;
    }

    .carousel-caption p {
        font-size: 0.875rem !important;
    }

    .carousel-caption .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .carousel-caption {
        padding: 2rem 0 1rem 0;
    }

    /* Stats section mobile optimization */
    .stats-section .display-1 {
        font-size: 3rem !important;
    }

    .stats-section .fs-4 {
        font-size: 1rem !important;
    }

    .stats-section .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
    }

    .stats-section .display-1.me-4 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    /* Body padding adjustment for mobile */
    body {
        padding-top: 62px;
    }

    /* Card adjustments for mobile */
    .card-body h5 {
        font-size: 1rem;
    }

    .card-body .text-muted {
        font-size: 0.875rem;
    }
}
