/**
 * Hero Section Styles for PROJECT39 Theme
 */

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-banner .hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0%, -50%);
    width: auto;
    padding: 40px;
    z-index: 2;
    background: none;
}

.hero-banner .hero-content h1 {
    color: #ffffff;
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner .hero-content h1 span {
    color: var(--primary-color);
    font-weight: 900;
    display: block;
    margin-top: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner .hero-content h1 span.precision-parts {
    color: var(--primary-color);
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    text-shadow:
        -1px -1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        1px 1px 0 #ffffff,
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Promo Card Styles */
.promo-card {
    position: relative;
    width: 100%;
    height: 221px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
}

.promo-card:last-child {
    margin-bottom: 0;
}

.promo-card img {
    width: 100%;
    /* height: 100%; */
    object-fit: fill;
    object-position: center;
    display: block;
}

.promo-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 60%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 18px;
    z-index: 2;
}

.promo-card-content {
    width: 100%;
}

.promo-text-main {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.promo-text-sub {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 4px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.promo-text-sub:last-of-type {
    margin-bottom: 20px;
}

.promo-text-small {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.promo-text-large {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.1;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    text-shadow:
        -1px -1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        1px 1px 0 #ffffff,
        2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: -1px;
}

.btn-book-now {
    background: #000000;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-book-now:hover {
    background: #333333;
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Shop Now Button */
.btn-shop-now {
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-shop-now:hover {
    background: #f15f06;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 31, 38, 0.4);
}

/* Hero Section Container */
.hero-section {
    background: #ffffff;
    padding: 20px 0;
}

.hero-layout {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

/* Categories Sidebar */
.categories-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.categories-list {
    padding: 15px 0;
}

.categories-sidebar .category-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-sidebar .category-item {
    border-bottom: 1px solid #f5f5f5;
}

.categories-sidebar .category-item:last-child {
    border-bottom: none;
}

.categories-sidebar .category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition:
        background 0.2s,
        color 0.2s;
    text-transform: uppercase;
}

.categories-sidebar .category-link:hover {
    background: #f8f8f8;
    color: var(--primary-color);
}

.categories-sidebar .category-link i {
    color: #999999;
    font-size: 0.8rem;
}

.categories-sidebar .category-link.see-more {
    color: var(--primary-color);
    font-weight: 700;
}

.categories-sidebar .category-link.see-more:hover {
    background: #fff5f5;
}

/* Hero Main Content */
.hero-main-content {
    flex: 1;
    min-width: 0;
}

.hero-banners-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 600px;
}

/* Main Hero Banner */
.hero-main-banner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 40px;
    z-index: 2;
}

.hero-text-white {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.hero-text-red {
    color: var(--primary-color);
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 35px 0;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.btn-shop-now {
    background: var(--primary-color);
    color: #ffffff;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(243, 68, 68, 0.3);
}

.btn-shop-now:hover {
    background: #f15f06;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 68, 68, 0.4);
    color: #ffffff;
}

/* Side Banners Container */
.hero-side-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

/* Side Banners */
.side-banner {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 60%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 18px;
    z-index: 2;
}

/* Top Banner Content */
.banner-text-main {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-text-sub {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 25px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.btn-book-now {
    background: #000000;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-book-now:hover {
    background: #333333;
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Bottom Banner Content */
.banner-text-small {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.banner-text-large {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: -1px;
}

/* Categories Sidebar - Always visible on desktop, toggleable on mobile */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section > .container > .row {
        row-gap: 16px;
    }

    .hero-section > .container > .row > [class*="col-"] {
        margin-top: 0 !important;
    }

    .hero-section > .container > .row > .col-md-4 {
        width: 32%;
    }

    .hero-section > .container > .row > .col-md-5 {
        width: 44%;
    }

    .hero-section > .container > .row > .col-md-3 {
        width: 24%;
    }

    .hero-banner {
        height: 420px;
    }

    .hero-banner .hero-content {
        padding: 28px 24px;
    }

    .hero-banner .hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.15;
    }

    .hero-banner .hero-content h1 span {
        font-size: 2.4rem;
    }

    .promo-card {
        height: auto;
        min-height: 198px;
    }
}

@media (max-width: 992px) {
    .categories-sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        background: #ffffff;
    }

    .categories-sidebar.show {
        display: block;
    }

    /* Overlay for mobile */
    .categories-sidebar.show::before {
        content: "";
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .promo-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 15px 0;
    }

    .hero-layout {
        padding: 0 15px;
    }

    .hero-main-banner {
        height: 400px;
    }

    .hero-overlay {
        padding: 30px 20px;
    }

    .hero-text-white {
        font-size: 1.5rem;
    }

    .hero-text-red {
        font-size: 2.5rem;
    }

    .hero-banner {
        height: 400px;
    }

    .hero-banner .hero-content {
        padding: 30px 20px;
    }

    .hero-banner .hero-content h1 {
        font-size: 1.8rem;
        color: #ffffff;
    }

    .hero-banner .hero-content h1 span {
        font-size: 2.2rem;
        color: var(--primary-color);
    }

    .btn-shop-now {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .promo-card {
        height: auto;
    }

    .promo-card-overlay {
        padding: 18px 15px;
    }

    .promo-text-main {
        font-size: 1.2rem;
    }

    .promo-text-large {
        font-size: 1.8rem;
    }

    .side-banner {
        height: 250px;
    }

    .banner-overlay {
        padding: 18px 15px;
    }

    .banner-text-main {
        font-size: 1.2rem;
    }

    .banner-text-large {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-main-banner {
        height: 350px;
    }

    .hero-text-white {
        font-size: 1.2rem;
    }

    .hero-text-red {
        font-size: 2rem;
    }

    .btn-shop-now {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .side-banner {
        height: 220px;
    }

    .hero-banner {
        height: 350px;
    }

    .hero-banner .hero-content {
        padding: 30px 20px;
    }

    .hero-banner .hero-content h1 {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .hero-banner .hero-content h1 span {
        font-size: 1.8rem;
        color: var(--primary-color);
    }

    .promo-card-overlay {
        padding: 15px 12px;
    }

    .promo-text-main {
        font-size: 1rem;
    }

    .promo-text-sub {
        font-size: 0.85rem;
    }

    .promo-text-small {
        font-size: 0.85rem;
    }

    .promo-text-large {
        font-size: 1.5rem;
    }

    .btn-book-now {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}
