/**
 * Homepage Styles
 *
 * Hero slider, food grids, parallax banners, story, location, Instagram.
 *
 * @package Smokeboxx
 */

/* ==================== HERO SLIDER ==================== */

.sb-hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    max-width: 100vw;
}

.sb-hero-slider {
    height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.sb-hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1);
}

.sb-hero-slide.active .sb-hero-slide-bg {
    animation: sbSlowZoom 8s ease-out forwards;
}

@keyframes sbSlowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.sb-hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.sb-hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.sb-hero-slide h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    opacity: 0;
    transform: translateY(30px);
}

.sb-hero-slide.active h1 {
    animation: sbFadeSlideUp 0.5s ease-out forwards;
}

.sb-hero-slide h1 span {
    color: var(--sb-orange);
}

.sb-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.sb-hero-slide.active .sb-hero-buttons {
    animation: sbFadeSlideUp 0.5s ease-out 0.15s forwards;
}

@keyframes sbFadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slider Controls */
.sb-slider-controls {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.sb-slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.sb-slider-dot.active {
    background: var(--sb-orange);
    width: 40px;
}

/* ==================== FOOD GRIDS ==================== */

.sb-menu-section {
    padding: 6rem 3rem;
    background: var(--sb-dark);
}

.sb-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sb-menu-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.sb-menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.sb-menu-item:hover img {
    transform: scale(1.1);
}

.sb-menu-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    transition: all 0.3s;
}

.sb-menu-item:hover .sb-menu-item-overlay {
    background: linear-gradient(to top, var(--sb-orange) 0%, transparent 100%);
}

.sb-menu-item h3 {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.sb-menu-item p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* ==================== PARALLAX BANNERS ==================== */

.sb-parallax-banner {
    height: 60vh;
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sb-parallax-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.sb-parallax-meals {
    background-image: url('../images/waffle-full.png');
}

.sb-parallax-drinks {
    background-image: url('https://images.unsplash.com/photo-1544145945-f90425340c7e?w=1600&q=80');
}

.sb-parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.sb-parallax-content h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.sb-parallax-content h2 span {
    color: var(--sb-orange);
}

.sb-parallax-content p {
    font-size: 1.2rem;
    color: var(--sb-gray);
    margin-bottom: 2rem;
}

/* ==================== DRINKS GRID ==================== */

.sb-drinks-section {
    padding: 6rem 3rem;
    background: var(--sb-black);
}

.sb-drinks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sb-drink-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.sb-drink-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.sb-drink-item:hover img {
    transform: scale(1.1);
}

.sb-drink-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.sb-drink-item h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* ==================== INSTAGRAM ==================== */

.sb-instagram-section {
    padding: 6rem 3rem;
    background: var(--sb-dark-gray);
}

.sb-instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sb-instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    display: block;
}

.sb-instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, opacity 0.3s;
}

.sb-instagram-item:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.sb-instagram-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.3s;
    pointer-events: none;
}

.sb-instagram-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* ==================== LOYALTY ==================== */

.sb-loyalty-section {
    padding: 6rem 3rem;
    background: var(--sb-orange);
    text-align: center;
}

.sb-loyalty-content {
    max-width: 800px;
    margin: 0 auto;
}

.sb-loyalty-content h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--sb-white);
    margin-bottom: 1rem;
}

.sb-loyalty-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* ==================== STORY ==================== */

.sb-story-section {
    padding: 6rem 3rem;
    background: var(--sb-black);
}

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

.sb-story-image {
    position: relative;
}

.sb-story-image img {
    width: 100%;
}

.sb-story-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--sb-orange);
    padding: 1.5rem 2rem;
    text-align: center;
}

.sb-story-badge span {
    display: block;
    font-weight: 900;
    text-transform: uppercase;
}

.sb-story-badge-big {
    font-size: 2.5rem;
    line-height: 1;
}

.sb-story-badge-small {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.sb-story-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.sb-story-content h2 span {
    color: var(--sb-orange);
}

.sb-story-content p {
    color: var(--sb-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sb-story-signature {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sb-orange);
    margin-top: 2rem;
}

/* ==================== LOCATION ==================== */

.sb-location-section {
    padding: 6rem 3rem;
    background: var(--sb-dark-gray);
}

.sb-location-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: stretch;
}

.sb-location-info h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.sb-location-info h2 span {
    color: var(--sb-orange);
}

.sb-location-details {
    margin-bottom: 2rem;
}

.sb-location-detail {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sb-location-detail:last-child {
    border-bottom: none;
}

.sb-location-detail h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sb-orange);
    margin-bottom: 0.5rem;
}

.sb-location-detail p {
    font-size: 1.15rem;
    font-weight: 600;
}

.sb-location-detail a {
    color: var(--sb-white);
    text-decoration: none;
}

.sb-location-detail a:hover {
    color: var(--sb-orange);
}

.sb-location-map {
    border: 4px solid var(--sb-orange);
    min-height: 400px;
}

.sb-location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    filter: grayscale(100%) invert(92%) contrast(85%);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1200px) {
    .sb-menu-grid,
    .sb-drinks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sb-instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .sb-hero {
        height: calc(100vh - 160px);
        margin-top: 160px;
    }

    .sb-hero-buttons .btn-primary {
        display: none;
    }

    .sb-story-container,
    .sb-location-container {
        grid-template-columns: 1fr;
    }

    .sb-story-image {
        order: -1;
    }

    .sb-parallax-banner {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .sb-menu-grid,
    .sb-drinks-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .sb-instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sb-hero-slide h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .sb-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sb-menu-section,
    .sb-drinks-section,
    .sb-instagram-section,
    .sb-loyalty-section,
    .sb-story-section,
    .sb-location-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .sb-menu-grid,
    .sb-drinks-grid {
        grid-template-columns: 1fr;
    }
}
