/* Define Fonts */

    @font-face {
        font-family: "Didact Gothic";
        src: url("../fonts/DidactGothic-Regular.woff2") format("woff2");
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: "Playfair";
        src: url("../fonts/Playfair_144pt-Regular.woff2") format("woff2");
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: "Playfair";
        src: url("../fonts/Playfair_144pt-Bold.woff2") format("woff2");
        font-weight: 700;
        font-style: normal;
        font-display: swap;
    }

    /* Non-critical UI font */
    @font-face {
        font-family: "Libertinus Sans";
        src: url("../fonts/LibertinusSans-Regular.woff2") format("woff2");
        font-weight: 400;
        font-style: normal;
        font-display: swap;
    }

    @font-face {
        font-family: "Libertinus Sans";
        src: url("../fonts/LibertinusSans-Bold.woff2") format("woff2");
        font-weight: 700;
        font-style: normal;
        font-display: swap;
    }


/* root variables */
:root {
    /* Colors */
    --primary-orange: #FF6B00; 
    --accent-orange: #D35400;

    --primary-black: #212121;
    --primary-green: #06923E;
    --primary-white: #FFFFFF;
    --warm-sand: #EFD9B4;

    /* Fonts */
    --font-body: "Didact Gothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ui: "Libertinus Sans", system-ui, sans-serif;
    --font-heading: "Playfair", Georgia, serif;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: var(--primary-white);
    font-family: var(--font-body);
}

/* Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-white); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
    /* prevent any potential overflow */
    overflow: hidden;
    max-width: 100vw;
}

.loader {
    animation: rotate 3s infinite;
    height: 50px;
    width: 50px;
}

.loader:before,
.loader:after {
    border-radius: 50%;
    content: "";
    display: block;
    height: 20px;
    width: 20px;
}

.loader:before {
    animation: ball1 1s infinite;
    background-color: var(--primary-black);
    box-shadow: 30px 0 0 var(--primary-orange);
    margin-bottom: 10px;
}

.loader:after {
    animation: ball2 1s infinite;
    background-color: var(--primary-orange);
    box-shadow: 30px 0 0 var(--primary-black);
}

@keyframes rotate {
    0% { transform: rotate(0deg) scale(0.8) }
    50% { transform: rotate(360deg) scale(1.2) }
    100% { transform: rotate(720deg) scale(0.8) }
}

@keyframes ball1 {
    0% {
        box-shadow: 30px 0 0 var(--primary-orange);
    }
    50% {
        box-shadow: 0 0 0 var(--primary-orange);
        margin-bottom: 0;
        transform: translate(15px, 15px);
    }
    100% {
        box-shadow: 30px 0 0 var(--primary-orange);
        margin-bottom: 10px;
    }
}

@keyframes ball2 {
    0% {
        box-shadow: 30px 0 0 var(--primary-black);
    }
    50% {
        box-shadow: 0 0 0 var(--warm-sand);
        margin-top: -20px;
        transform: translate(15px, 15px);
    }
    100% {
        box-shadow: 30px 0 0 var(--primary-orange);
        margin-top: 0;
    }
}

/* Hide content until loader finishes */
.content {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Navbar ======================================================================================================================== */
.custom-navbar {
    background: var(--primary-white);
    backdrop-filter: 1.5;
    padding: 11px 0;
}

.brand-icon {
    height: 40px;
    width: 40px;
    background-color: var(--primary-orange);
    border-radius: 7px;
    color: var(--primary-white);
}

.brand-icon i {
    transform: rotate(20px);
}

.navbar-brand p {
    margin: 0;
    color: var(--primary-black);
    font-weight: 800;
}

.nav-link {
    color: var(--primary-black);
    opacity: .8;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-link:not(.activated) {
    padding: 6px 15px;
}

.nav-link:hover:not(.activated) {
    color: var(--primary-orange);
    opacity: 1;
}

.nav-link.activated {
    opacity: 1;
    background-color: var(--accent-orange);
    color: var(--primary-white);
    padding: 8px 25px !important;
    border-radius: 50px;
    font-weight: 500;
    transition: all .4s ease;
}

.nav-link.activated:hover, 
.nav-link.activated:focus {
    background-color: var(--primary-orange);
} 

/* HAMBURGER MENU */
.custom-toggler {
    border: none;
    background: transparent;
    width: 50px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.custom-toggler:focus,
.custom-toggler:active,
.custom-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.custom-toggler span {
    height: 3px;
    width: 100%;
    background: var(--accent-orange);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* OFFCANVAS */
.mobile-menu {
    width: 280px;
    background: var(--warm-sand);
}

.mobile-menu .nav-link {
    font-size: .9rem;
    color: var(--primary-black);
    width: fit-content;
}

.mobile-menu .nav-link:hover {
    color: var(--accent-orange);
}

.mobile-menu .nav-link.nav-link.activated {
    color: var(--primary-white);
}

@media (max-width: 991px) {
    .navbar-brand .logo {
        height: 30px;
    }
}

.footer {
    background: var(--primary-black);
    color: var(--primary-white);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-orange));
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon i {
    color: var(--primary-white);
}

.brand-title {
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-white);
}

.brand-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link.whatsapp:hover {
    background: #25D366;
}

.social-link.facebook:hover {
    background: #1877F2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-link i {
    font-size: 1.1rem;
}

.footer-title {
    color: var(--primary-white);
    font-weight: 600;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--warm-sand);
}

.quick-links .footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.quick-links .footer-link:hover {
    color: var(--primary-white);
    transform: translateX(5px);
}

.quick-links .footer-link i {
    color: var(--primary-orange);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.quick-links .footer-link:hover i {
    transform: translateX(3px);
}

.hours-item .days {
    color: var(--primary-white);
    font-size: 0.95rem;
}

.hours-item .hours {
    font-weight: 600;
    font-size: 0.95rem;
}

.text-primary-green {
    color: var(--primary-green) !important;
}

.reservation-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.reservation-note i {
    font-size: 1.2rem;
}


/* Menu Styles ======================================================================================================================== */
.menu-title {
    padding: 3rem 1rem;
    background-image: url(../imgs/food.webp);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
}

.menu-title::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(244, 242, 242, 0.50) 0%,
        rgba(241, 237, 237, 0.50) 25%,
        rgba(242, 238, 238, 0.60) 45%,
        rgba(244, 241, 241, 0.65) 65%,
        rgba(250, 247, 247, 0.6) 80%,
        rgba(249, 247, 247, 0.6) 90%,
        rgba(245, 242, 242, .4) 100%
    );
    z-index: 1;
}

.menu-title .text {
    z-index: 2;
}

.menu-title .text h1 {
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: clamp(30px, 50px, 70px);
    color: var(--accent-orange);
}

.menu-title .text p span {
    font-weight: 800;
}

.menu-filter .filter-btn {
    border: none;
    background: none;
    border-radius: 50px;
}

.menu-filter .filter-btn.active {
    background-color: var(--accent-orange);
    color: var(--primary-white);
}

.menu-item {
    transition: all 0.3s ease;
}

.item-card {
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    background-color: #eae5dd;
}

.item-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    margin-bottom: 1.5rem;
}

.item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.item-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item-card:hover .item-image img {
    transform: scale(1.05);
}

.item-details {
    padding: 1.5rem;
    position: relative;
}

.item-details h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    color: var(--primary-black);
}

.item-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    font-family: var(--font-heading);
}

.item-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.item-meta span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
}

.item-meta i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cart:hover {
    background-color: #ff5252;
    transform: scale(1.05);
    color: white;
}

.btn-cart i {
    margin-right: 8px;
}

.btn-favorite {
    background-color: transparent;
    border: 2px solid #eee;
    color: #bbb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-favorite:hover, .btn-favorite.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rating {
    display: flex;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.rating .text-muted {
    color: #999;
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .item-image {
        height: 200px;
    }
    
    .item-details {
        padding: 1.25rem;
    }
}