/* 
   ATTOCK RESTAURANT - HOME SPECIFIC STYLES (home.css)
   Premium Animations & Layouts
*/

/* Navbar Refinement */
#navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    padding: 10px 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s, top 0.6s;
}

#navbar.nav-floating {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    padding: 12px 0;
}

#navbar.scrolled {
    top: 15px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

#navbar.nav-hidden {
    transform: translate(-50%, -150%);
}

.container-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* Logo Unique Design */
.logo-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-main {
    font-family: var(--ff-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1;
    color: var(--clr-black);
}

.logo-sub {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-gold);
    margin-top: 4px;
    font-weight: 600;
}

.logo-sub i {
    font-style: italic;
    font-weight: 400;
    opacity: 0.7;
}

/* Nav Link Effects */
.nav-links {
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.03);
    padding: 5px;
    border-radius: 100px;
}

.nav-item {
    position: relative;
}

.magnetic-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-black);
    transition: var(--transition-smooth);
}

.magnetic-item.active {
    background: var(--clr-white);
    color: var(--clr-black);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-dot {
    width: 4px;
    height: 4px;
    background: var(--clr-gold);
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.magnetic-item.active .nav-dot {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Right Nav Actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-glass {
    background: var(--clr-black);
    color: var(--clr-white);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
    background: var(--clr-gold);
    transform: translateY(-2px);
}

.menu-burger {
    width: 44px;
    height: 44px;
    background: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.menu-burger:hover {
    transform: scale(1.1);
}

.burger-lines {
    width: 18px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-lines span {
    width: 100%;
    height: 2px;
    background: var(--clr-black);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.burger-lines span:last-child {
    width: 70%;
    align-self: flex-end;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--clr-white);
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    animation: heroImgReveal 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroImgReveal {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Super Smooth Master Blend: Fades the image from solid white to transparent */
    background: linear-gradient(90deg,
            #ffffff 0%,
            #ffffff 5%,
            rgba(255, 255, 255, 0.8) 20%,
            rgba(255, 255, 255, 0.3) 40%,
            transparent 100%);
    z-index: 2;
}

/* Subtle extra glow for the dish area */
.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 60%);
    z-index: 3;
    pointer-events: none;
}

.hero-parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.hero-section:hover .hero-parallax-img {
    transform: scale(1.05);
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    font-family: var(--ff-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--clr-gold);
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-badge::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--clr-gold);
}

.hero-content h1 {
    font-size: 84px;
    line-height: 0.95;
    margin-bottom: 30px;
    color: var(--clr-black);
    font-weight: 800;
}

.hero-content h1 span {
    display: block;
    color: var(--clr-gold);
    font-style: italic;
    font-weight: 300;
}

.hero-content p {
    font-size: 18px;
    color: var(--clr-grey);
    line-height: 1.6;
    margin-bottom: 45px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 35px;
}

.btn-primary-alt {
    padding: 18px 40px;
    background: var(--clr-black);
    color: var(--clr-white);
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary-alt:hover {
    background: var(--clr-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.3);
}

.btn-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-black);
}

.btn-link i {
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-gold);
    animation: scrollIndicator 2s infinite cubic-bezier(.76, 0, .3, 1);
}

@keyframes scrollIndicator {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.hero-scroll-indicator span {
    font-family: var(--ff-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    transform: rotate(-90deg);
    margin-top: 20px;
}

@media (max-width: 991px) {
    .hero-image-container {
        width: 100%;
        clip-path: none;
        opacity: 0.4;
    }

    .hero-img-overlay {
        background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0.8) 50%, #fff 100%);
    }

    .hero-content h1 {
        font-size: 64px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-scroll-indicator {
        opacity: 0;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* About Section */
.about-image {
    position: relative;
}

.image-wrapper {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover img {
    transform: scale(1.1);
}

.about-features {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--clr-gold);
    width: 24px;
    height: 24px;
}

.feature-item span {
    font-weight: 600;
    font-size: 14px;
}

/* Featured Section */
.featured-section .section-header {
    margin-bottom: 10px;
}

.featured-grid {
    display: flex;
    gap: 24px;
    margin-top: 50px;
    perspective: 1000px;
    align-items: stretch;
}

.featured-card {
    flex: 1;
    background: var(--clr-white);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.featured-card.active {
    flex: 1.6;
    background: var(--clr-black);
    color: var(--clr-white);
    border-color: var(--clr-gold);
}

.featured-card.active h3,
.featured-card.active .price {
    color: var(--clr-white);
}

.featured-card.active p {
    color: rgba(255, 255, 255, 0.7);
}

.featured-img-wrap {
    height: 250px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-img-wrap img {
    transform: scale(1.08);
}

.featured-info h3 {
    font-size: 22px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.featured-info p {
    font-size: 14px;
    color: var(--clr-grey);
    margin-bottom: 16px;
    line-height: 1.5;
}

.featured-info .price {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-gold);
    background: rgba(197, 160, 89, 0.08);
    padding: 6px 18px;
    border-radius: 100px;
}

.featured-card.active .featured-info .price {
    background: rgba(197, 160, 89, 0.2);
}

/* Menu Tabs */
.menu-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 60px;
    /* Pill track */
    background: var(--clr-grey-light);
    border-radius: 100px;
    padding: 6px;
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.menu-tab {
    flex-shrink: 0;
    padding: 10px 26px;
    border: none;
    background: transparent;
    border-radius: 100px;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--clr-grey);
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.menu-tab::after {
    display: none; /* replaced by pill fill */
}

.menu-tab.active {
    background: var(--clr-white);
    color: var(--clr-black);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.menu-tab:not(.active):hover {
    color: var(--clr-black);
    background: rgba(255, 255, 255, 0.5);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.menu-item {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #ddd;
    transition: var(--transition-smooth);
}

.menu-item:hover {
    transform: translateX(10px);
}

.menu-item-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-info {
    flex-grow: 1;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.menu-item-header h4 {
    font-size: 18px;
}

.menu-item-header .price {
    font-weight: 700;
    color: var(--clr-gold);
}

.menu-item-info p {
    font-size: 14px;
    color: var(--clr-grey);
}

/* Reservation */
.reservation-box {
    background: var(--clr-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
}

.reservation-info {
    padding-right: 40px;
}

.contact-links {
    margin-top: 40px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-links i {
    color: var(--clr-gold);
}

.reservation-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    background: #fcfcfc;
    border-radius: 4px;
    font-family: var(--ff-body);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--clr-gold);
    background: var(--clr-white);
}

/* Location & Contact Section */
.contact-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--clr-white);
    overflow: hidden;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: grayscale(1) invert(0.9) contrast(0.8);
    opacity: 0.3;
}

.contact-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 60px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-card h3 {
    font-size: 32px;
    margin-bottom: 30px;
}

.contact-card p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--clr-black);
}

.contact-card p i {
    color: var(--clr-gold);
    width: 20px;
}

.opening-hours {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.opening-hours h4 {
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.opening-hours ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--clr-grey);
}

.opening-hours ul li span:last-child {
    font-weight: 700;
    color: var(--clr-black);
}

/* Featured Section Fixes */
.featured-section {
    position: relative;
    background: var(--clr-white);
    overflow: hidden;
}

/* ─── Featured: Tablet (≤ 991px) — vertical stack ──── */
@media (max-width: 991px) and (min-width: 577px) {
    .featured-grid {
        flex-direction: column;
        gap: 20px;
        margin-top: 36px;
    }

    .featured-card {
        flex: unset !important;
        width: 100%;
    }

    .featured-card.active {
        flex: unset !important;
        order: -1;
        /* highlighted card always on top */
    }

    .featured-img-wrap {
        height: 220px;
    }

    .featured-info h3 {
        font-size: 20px;
    }
}

/* ─── Featured: Mobile (≤ 576px) — swipeable scroll ─ */
@media (max-width: 576px) {
    .featured-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE */
        padding-bottom: 12px;
    }

    .featured-carousel::-webkit-scrollbar {
        display: none;
    }

    .featured-grid {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        margin-top: 28px;
        padding: 4px 4px 8px;
        /* allow cards to be seen peek-style */
        width: max-content;
        align-items: flex-start;
    }

    .featured-card {
        flex: none !important;
        width: calc(85vw - 32px);
        /* ~85% viewport, comfortable one-at-a-time */
        max-width: 340px;
        scroll-snap-align: start;
        border-radius: 20px;
    }

    .featured-card.active {
        order: -1;
        /* active card first */
    }

    .featured-img-wrap {
        height: 190px;
    }

    .featured-info h3 {
        font-size: 18px;
    }

    .featured-info .price {
        font-size: 18px;
    }

    /* Scroll hint dots */
    .featured-carousel::after {
        content: '← swipe →';
        display: block;
        text-align: center;
        font-size: 11px;
        letter-spacing: 2px;
        color: var(--clr-gold);
        font-family: var(--ff-heading);
        font-weight: 600;
        text-transform: uppercase;
        margin-top: 14px;
        opacity: 0.7;
    }
}

@media (max-width: 991px) {
    .contact-section .container {
        justify-content: center;
    }

    .contact-card {
        padding: 40px 30px;
    }

    .map-container {
        opacity: 1;
    }
}

/* Gallery Section */
.gallery-section {
    position: relative;
    padding: var(--section-padding) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(197, 160, 89, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Footer */
footer {
    background: var(--clr-black);
    color: var(--clr-white);
    padding: 100px 0 40px;
}

/* Footer Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

footer .logo {
    color: var(--clr-white);
    margin-bottom: 20px;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

footer h4 {
    color: var(--clr-white);
    margin-bottom: 30px;
    font-size: 18px;
    position: relative;
    padding-bottom: 15px;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--clr-gold);
}

footer ul li {
    margin-bottom: 15px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.5);
}

footer ul li a:hover {
    color: var(--clr-gold);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--clr-white);
}

.social-icons a:hover {
    background: var(--clr-gold);
    border-color: var(--clr-gold);
}

/* Why Choose Us 3D Section */
.why-section {
    perspective: 1500px;
}

.why-item {
    background: var(--clr-white);
    padding: 35px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
    cursor: default;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.why-item:hover {
    box-shadow: 0 40px 100px rgba(197, 160, 89, 0.1);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--clr-grey-light);
    color: var(--clr-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 30px;
    transition: var(--transition-smooth);
    transform: translateZ(50px);
    /* 3D Displacement */
}

.why-item:hover .icon-box {
    background: var(--clr-black);
    color: var(--clr-white);
    transform: translateZ(80px) scale(1.1);
}

.why-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    transform: translateZ(30px);
}

.why-item p {
    font-size: 14px;
    color: var(--clr-grey);
    transform: translateZ(20px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 52px;
    }

    #canvas-container {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reservation-box {
        padding: 40px 20px;
    }
}

/* ─── Menu Tabs: Mobile (≤ 576px) — horizontal scroll ─ */
@media (max-width: 576px) {
    .menu-tabs {
        /* Reset centering — become a full-width scroll container */
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
        border-radius: 100px;
        gap: 4px;
        padding: 5px 6px;
        /* Horizontal scroll */
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* Side padding so first/last tabs aren't flush to edge */
        padding-left: 4px;
        padding-right: 4px;
        margin-bottom: 36px;
    }

    .menu-tabs::-webkit-scrollbar {
        display: none;
    }

    .menu-tab {
        scroll-snap-align: start;
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop nav — sidebar handles mobile nav */
    .nav-links {
        display: none !important;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   MOBILE SIDEBAR DRAWER
═══════════════════════════════════════════ */

/* Backdrop overlay */
#sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Sidebar panel */
#mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;           /* dynamic viewport height — handles iOS chrome */
    background: var(--clr-white);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

#mobile-sidebar.open {
    transform: translateX(0);
}

/* ── Sidebar Header ── */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
}

/* Close button — animated X */
.sidebar-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--clr-grey-light);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.sidebar-close:hover {
    background: var(--clr-black);
    transform: rotate(90deg);
}

.sidebar-close span {
    position: absolute;
    width: 16px;
    height: 2px;
    background: var(--clr-black);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.sidebar-close:hover span {
    background: var(--clr-white);
}

.sidebar-close span:first-child {
    transform: rotate(45deg);
}

.sidebar-close span:last-child {
    transform: rotate(-45deg);
}

/* ── Sidebar Nav Links ── */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 16px 30px;
    font-family: var(--ff-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-black);
    letter-spacing: 0.5px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, padding-left 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

/* Slide-in animation for links — triggered by open class */
#mobile-sidebar.open .sidebar-link {
    opacity: 1;
    transform: translateX(0);
}

#mobile-sidebar.open .sidebar-link:nth-child(1) { transition: border-color 0.3s, color 0.3s, background 0.3s, padding-left 0.3s, opacity 0.4s 0.15s ease, transform 0.4s 0.15s ease; }
#mobile-sidebar.open .sidebar-link:nth-child(2) { transition: border-color 0.3s, color 0.3s, background 0.3s, padding-left 0.3s, opacity 0.4s 0.22s ease, transform 0.4s 0.22s ease; }
#mobile-sidebar.open .sidebar-link:nth-child(3) { transition: border-color 0.3s, color 0.3s, background 0.3s, padding-left 0.3s, opacity 0.4s 0.29s ease, transform 0.4s 0.29s ease; }
#mobile-sidebar.open .sidebar-link:nth-child(4) { transition: border-color 0.3s, color 0.3s, background 0.3s, padding-left 0.3s, opacity 0.4s 0.36s ease, transform 0.4s 0.36s ease; }
#mobile-sidebar.open .sidebar-link:nth-child(5) { transition: border-color 0.3s, color 0.3s, background 0.3s, padding-left 0.3s, opacity 0.4s 0.43s ease, transform 0.4s 0.43s ease; }

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--clr-gold);
    border-left-color: var(--clr-gold);
    background: rgba(197, 160, 89, 0.05);
    padding-left: 36px;
}

/* ── Sidebar Footer ── */
.sidebar-footer {
    padding: 24px 28px 36px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-grey);
    text-decoration: none;
}

.sidebar-contact-link i {
    color: var(--clr-gold);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-order-btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border-radius: 100px;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ── Burger: Active state (X morph) ── */
.menu-burger.active .burger-lines span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-burger.active .burger-lines span:last-child {
    width: 100%;
    transform: rotate(-45deg) translate(2px, -2px);
}

/* Only show burger on mobile */
@media (min-width: 769px) {
    .menu-burger {
        display: none;
    }

    #mobile-sidebar,
    #sidebar-overlay {
        display: none !important;
    }
}