/* ===========================
   CSS Variables
   =========================== */
:root {
    --top-bar-height: 35px;
    --nav-height: 56px;
    --max-width: 1000px;
    --accent: #b45f06;
}

/* ===========================
   Font Faces
   =========================== */
@font-face {
    font-family: 'Damn Arvocado';
    src: url('/fonts/Arvocado-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abril Fatface';
    src: url('/fonts/AbrilFatface-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('/fonts/GlacialIndifference-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   Global Styles
   =========================== */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    font-family: 'Glacial Indifference', 'Tinos', serif; /* CHANGED */
    line-height: 1.6;
    color: #222;
    background-color: #fdf8f2;
    max-width: 100vw;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background-image: url('../images/platebg.jpg');*/
        background-image: url('../images/bg.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
    }

html {
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 80px;
}

/* ===========================
   Top Bar
   =========================== */
.top-bar {
    background: #296306;
    color: white;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    font-size: 0.85rem;
    width: 100%;
    font-family: 'Glacial Indifference', 'Tinos', serif; /* unify */
}

.top-bar, nav, header, main, section, footer {
    max-width: 100%;
    overflow-x: hidden;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .top-bar a:hover {
        color: var(--accent);
    }

.top-bar i {
    font-size: 0.9rem;
}

/* ===========================
   Navigation
   =========================== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    width: 100%;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

.nav-logo {
    font-family: 'Abril Fatface', 'Damn Arvocado', serif; /* CHANGED */
    font-weight: 400;
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
    z-index: 1000;
    word-spacing: -2px;
    color: #296306;
}

#backToTop.show {
    display: block;
}

.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    height: fit-content;
}

    .hamburger:hover {
        color: white;
    }

/* ===========================
   Responsive Styles (mobile)
   =========================== */
@media (max-width: 992px) {
    nav {
        padding: 0 0.5rem;
        position: relative;
        z-index: 4000;
    }

    .nav-logo {
        font-size: 1.3rem;
        gap: 0.2rem;
    }

    .nav-logo2 {
        font-size: 0.7rem;
        color: #296306;
    }

        .nav-logo2 img {
            height: 1.8em;
            vertical-align: -0.1em;
        }

    .hamburger {
        display: block;
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
        padding: 0.25rem 0.5rem;
        line-height: 1;
        height: fit-content;
        z-index: 4501;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: white;
        position: fixed;
        top: calc(var(--top-bar-height) + var(--nav-height));
        left: 0;
        right: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        z-index: 9999;
        overflow-y: auto;
        max-height: calc(100vh - (var(--top-bar-height) + var(--nav-height)));
        transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s linear 0.28s;
        transform-origin: top center;
        transform: translateY(-6px);
        opacity: 0;
        visibility: hidden;
        -webkit-overflow-scrolling: touch;
    }

        .nav-links.show {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
            transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s linear 0s;
        }

        .nav-links a {
            padding: 1rem;
            border-bottom: 1px solid #eee;
            display: block;
            text-align: center;
            color: rgba(0,0,0,0.85);
            font-weight: 700;
            font-family: 'Glacial Indifference', 'Tinos', serif;
        }

            .nav-links a:last-child {
                border-bottom: none;
            }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 4400;
        display: none;
        opacity: 0;
        transition: opacity 0.28s ease;
        pointer-events: none;
    }

        .mobile-menu-overlay.active {
            display: block;
            opacity: 1;
            pointer-events: auto;
        }

    .nav-links {
        z-index: 4500;
        position: fixed;
    }

    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .about-wrap {
        flex-direction: column;
        text-align: center;
    }

    .chef-photo {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    header .wrap p {
        margin: 0 auto;
        text-align: center;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

        .image-gallery img {
            height: 250px;
        }

    .top-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        height: auto;
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
    }

    .top-bar-left, .top-bar-right {
        flex-direction: row;
        gap: 1rem;
        width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
    }
}

.nav-logo2 {
    font-size: 0.85rem;
    color: #296306;
    white-space: nowrap;
}

    .nav-logo2 img {
        height: 2.2em;
        vertical-align: -0.4em;
        margin-right: 2px;
    }

.nicos-logo img {
    display: block;
    margin: 0 auto;
    height: 5.2em;
}

.nav-links a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.45);
    font-weight: 700;
    white-space: nowrap;
    padding: 0.45rem 0.8rem;
}

/* ===========================
   Header
   =========================== */
header {
    height: calc(100vh - var(--nav-height) - var(--top-bar-height));
    color: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 12px;
    margin: 1rem auto;
    max-width: var(--max-width);
    font-family: 'Glacial Indifference', 'Tinos', serif; /* ensure section font */
}

    header .wrap p {
        font-size: clamp(0.95rem, 2.2vw, 1.2rem);
        background: rgba(0, 0, 0, 0.35);
        display: inline-block;
        padding: 0.6rem 0.8rem;
        border-radius: 8px;
        margin: 0 auto;
        text-align: center;
        font-family: 'Glacial Indifference', 'Tinos', serif;
    }

/* ===========================
   Main Content
   =========================== */
main {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

section {
    padding: 3rem 2rem;
    border-bottom: 1px solid #eee;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Glacial Indifference', 'Tinos', serif; /* CHANGED */
}

    section:last-of-type {
        border-bottom: none;
    }

h2 {
    text-align: center;
    margin: 0 0 1rem;
    font-size: 1.8rem;
    color: #296306;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

    h2 .tagline {
        font-size: 0.9rem;
        color: #9a4805;
        display: block;
        font-weight: normal;
        margin-top: 0.5rem;
        font-family: inherit;
    }

p.lead {
    text-align: center;
    max-width: 70ch;
    margin: 0.5rem auto 0;
    color: #444;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

/* ===========================
   About Section
   =========================== */
.about-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 800px;
    margin: auto;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

.chef-photo {
    width: 227px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.about-wrap p {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    padding-top: 0.5rem;
}

/* ===========================
   Services Section
   =========================== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

.service {
    text-align: center;
}

    .service img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.9);
    }

/* ===========================
   Nico's Section
   =========================== */
.nicos-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    background: #faf6f1;
    border-radius: 12px;
}

    .process-step h3 {
        color: #9a4805;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        font-family: inherit;
    }

    .process-step p {
        color: #555;
        font-size: 0.95rem;
        margin: 0;
    }

.nicos-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

.feature-box {
    background: #f0e7de;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

    .feature-box h4 {
        color: #296306;
        font-size: 1.1rem;
        margin: 0 0 0.5rem 0;
        font-family: inherit;
    }

    .feature-box p {
        color: #555;
        margin: 0;
    }

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #b45f06;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

    .cta-button:hover {
        background: #9a4805;
        transform: translateY(-2px);
    }

/* ===========================
   Gallery Section
   =========================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

    .image-gallery img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.8);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        position: relative;
    }

        .image-gallery img:hover {
            transform: scale(1.05);
            filter: brightness(0.4);
        }

/* ===========================
   Modal
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transition: color 0.2s;
}

    .nav:hover {
        color: #ddd;
    }

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================
   Testimonials Section
   =========================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

.testimonial {
    background: #faf6f1;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

    .testimonial p {
        margin: 0.5rem 0;
        color: #333;
        font-style: italic;
    }

        .testimonial p strong {
            display: block;
            margin-top: 0.5rem;
            color: #9a4805;
            font-style: normal;
        }

/* ===========================
   Contact Section
   =========================== */
#contact p {
    text-align: center;
    font-size: 1.05rem;
    margin: 0.5rem 0 1rem;
}

.contact-small {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

#contactResult p {
    background: #fff8f2;
    color: #296306;
    font-size: 1.18rem;
    font-family: 'Glacial Indifference', 'Tinos', serif;
    font-weight: 600;
    border: 2px solid #b45f06;
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    margin: 2rem auto 0 auto;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 2px 12px rgba(180, 95, 6, 0.07);
    letter-spacing: 0.01em;
    transition: background 0.3s, color 0.3s, border 0.3s;
}

    #contactResult p[style*="red"] {
        background: #fff3f3;
        color: #b45f06;
        border-color: #e0b7a1;
        box-shadow: 0 2px 12px rgba(180, 95, 6, 0.09);
    }

.chip {
    background: #faf6f1;
    border: 1px solid #f0e7de;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    color: #333;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

input,
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

button {
    padding: 0.75rem;
    font-size: 1rem;
    background: #b45f06;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

    button:hover {
        background: #9a4805;
    }

/* ===========================
   Footer
   =========================== */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin: 1rem auto;
    max-width: var(--max-width);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Glacial Indifference', 'Tinos', serif;
}

/* ===========================
   Back to Top Button
   =========================== */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: none;
    z-index: 1000;
    font-family: 'Glacial Indifference', 'Tinos', serif;
}
