/* Da Fabri - Minimalist Design (NAP Style) */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;700&display=swap');

:root {
    --primary-color: #1a1a1a;
    /* Almost Black */
    --secondary-color: #333333;
    --bg-color: #faf9f6;
    /* Off-white / Eggshell */
    --text-color: #1a1a1a;
    --nav-text-initial: #ffffff;
    /* White text on hero */
    --nav-text-scrolled: #1a1a1a;
    /* Black text on scroll */
    --footer-bg: #000000;
    --heading-font: 'Montserrat', sans-serif;
    /* Switched to Sans-Serif */
    --body-font: 'Lato', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 700;
    /* Bolder for sans-serif */
    text-transform: uppercase;
    /* Modern sans feel */
    letter-spacing: 0.05em;
}

/* Navbar */
/* Navbar */
.navbar {
    background-color: transparent;
    padding: 1rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background-color: #ffffff;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    padding: 0;
    transition: all 0.4s ease;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    border-radius: 0;
    transition: all 0.4s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 50px;
    filter: none;
}

.nav-link {
    font-family: var(--body-font);
    font-weight: 400;
    color: var(--nav-text-initial) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    margin: 0 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.4s ease;
}

.navbar.scrolled .nav-link {
    color: var(--nav-text-scrolled) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--nav-text-initial);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar.scrolled .nav-link::after {
    background-color: var(--nav-text-scrolled);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler-icon {
    filter: invert(1);
    transition: filter 0.4s ease;
}

.navbar.scrolled .navbar-toggler-icon {
    filter: invert(0);
}

/* Mobile Fullscreen Menu */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        /* Padding for the top bar (Optional: to avoid overlap with logo/toggler if visible) */
        padding-top: 60px;
    }

    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
        /* Force flex display when shown */
        display: flex !important;
    }

    .nav-link {
        color: var(--primary-color) !important;
        font-size: 1.5rem;
        margin: 15px 0;
        text-align: center;
    }

    .nav-link::after {
        background-color: var(--primary-color);
    }

    /* Adjust logo in mobile menu if needed, though usually hidden */
    .navbar-brand.d-lg-none {
        z-index: 1001;
        /* Ensure logo stays above menu */
        position: relative;
    }

    .navbar-toggler {
        z-index: 1001;
        /* Ensure toggler stays above menu */
        position: relative;
    }

    /* When menu is open, make toggler black if background is white */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        filter: invert(0);
    }

    /* Hide the desktop centered logo in mobile menu structure explicitly if flex rules leak */
    .collapse .navbar-brand {
        display: none !important;
    }
}

/* Desktop Specific Adjustments */
@media (min-width: 992px) {

    .nav-left,
    .nav-right {
        flex: 1;
        display: flex;
    }

    .nav-left {
        justify-content: flex-end;
        padding-right: 2rem;
    }

    .nav-right {
        justify-content: flex-start;
        padding-left: 2rem;
    }

    /* Ensure center logo doesn't shrink */
    .navbar-brand.d-none.d-lg-block {
        flex: 0 0 auto;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    font-style: italic;
    font-weight: 400;
}

/* Sections */
.section-padding {
    padding: 120px 0;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* History Carousel */
#history-carousel-img {
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Menu Section */
.pizza-card {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    transition: transform 0.3s ease;
}

.pizza-card:hover {
    transform: translateY(-5px);
}

.pizza-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pizza-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.pizza-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Delivery Section */
.delivery-section {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.delivery-text {
    z-index: 2;
    position: relative;
}

.delivery-peel-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.delivery-peel-img {
    width: 120%;
    /* Slightly larger to allow movement */
    max-width: 800px;
    transition: transform 0.1s linear;
    /* Smooth scrolling follow */
    transform: translateX(100px);
    /* Start slightly off-screen */
}

/* Instagram Grid */
.insta-grid-item {
    padding: 5px;
    overflow: hidden;
}

.insta-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insta-img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 80px 0 40px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-social-link {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.footer-social-link:hover {
    opacity: 0.6;
}

/* Review Badge */
.review-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--body-font);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    gap: 10px;
}

.review-badge .stars {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

.review-badge .rating-text {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Google-Style Menu Modal */
.menu-item-title {
    font-weight: 600;
    color: var(--nav-text-scrolled);
    /* Black */
    font-size: 1rem;
}

.menu-item-price {
    font-weight: 600;
    color: var(--primary-color);
    /* Matches theme */
    font-size: 0.95rem;
}

.menu-item-desc {
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Modal Tab Styling */
.modal-body .nav-tabs .nav-link {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
}

.modal-body .nav-tabs .nav-link:hover {
    color: #000;
    border-color: transparent;
    /* No box border */
    background: #f8f9fa;
}

.modal-body .nav-tabs .nav-link.active {
    color: var(--primary-color);
    /* Highlight color */
    background: transparent;
    border-color: transparent;
    border-bottom: 3px solid var(--primary-color);
}

/* Fix mobile modal height if bootstrap class fails or for custom override */
@media (max-width: 576px) {
    .modal-fullscreen-sm-down .modal-content {
        height: 100vh;
        border-radius: 0;
    }
}