/* ==========================================================================
   Design System & Variables
   ========================================================================== */

:root {
    --primary-brown: #4c230b;
    --gold: #ffb700;
    --gold-hover: #ffae00;
    --white: #FFFFFF;
    --black: #000000;
    --text-dark: #333333;
    --text-light: #8d8d8d;
    --light-gray: #F9F9F9;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --container-padding: 0 20px;
    --header-height: 90px;
    --header-height-scrolled: 70px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height-scrolled);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.container-narrow {
    max-width: 800px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #8d8d8d;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-left {
    text-align: left;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 10px 60px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--primary-brown);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 0, 0.3);
}

.btn-large {
    padding: 10px 60px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background: transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.header-main.scrolled {
    height: var(--header-height-scrolled);
    background: #4c230be3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-logo img {
    height: 125px;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.scrolled .header-logo img {
    height: 105px;
}

.header-nav ul {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
}

.header-nav a:hover {
    color: var(--gold);
}

.header-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.header-mobile-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* ==========================================================================
   Home Section
   ========================================================================== */

.home-main {
    height: 100vh;
    min-height: 600px;
    background: url('../Assets/Imagens/restaurante_home.webp') no-repeat center center/cover fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 0;
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2;
}

.home-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white) !important;
}

.home-p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.home-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.home-divider svg {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Clientes Section
   ========================================================================== */

.clientes-main {
    background-color: var(--white);
    padding-top: 80px;
}

.clientes-carousel-container {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    /* Soft fade on edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.clientes-grid {
    display: flex;
    width: max-content;
    gap: 80px;
    align-items: center;
    animation: clientes-scroll 35s linear infinite;
    padding-left: 40px;
}


.clientes-grid img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: none;
    /* Original colors as requested */
    opacity: 1;
    cursor: pointer;
}

.clientes-grid img:hover {
    transform: scale(1.2);
}

@keyframes clientes-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-30%);
    }
}

/* ==========================================================================
   Sobre Nós Section
   ========================================================================== */

.sobre-nos-main {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../Assets/Imagens/quem_somos.webp') no-repeat center center/cover;
    background-blend-mode: multiply;
}



.sobre-nos-main .section-title {
    color: var(--white);
    letter-spacing: 5px;
    font-weight: 700;
    margin-bottom: 60px;
}

.sobre-nos-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.sobre-nos-image-container {
    flex: 1;
    position: relative;
    z-index: 3;
    padding-right: 50px;
}

.sobre-nos-image-border {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 30px;
    bottom: -20px;
    border: 2px solid var(--gold);
    border-radius: 60px;
    z-index: -1;
}

.sobre-nos-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.sobre-nos-content {
    flex: 1.5;
    background-color: #43210b;
    padding: 60px 0 35px 10em;
    border-radius: 60px;
    color: var(--white);
    margin-left: -150px;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.sobre-nos-text p {
    max-width: 90%;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.95;
    text-align: left;
}

.sobre-nos-text p strong {
    color: var(--white);
    font-weight: 700;
}

/* ==========================================================================
   Diferenciais Section
   ========================================================================== */

.diferenciais-main {
    background-color: var(--light-gray);
}

#container-diferenciais {
    max-width: 1400px;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 50px;
    width: 100%;
    align-items: stretch;
}

.diferenciais-card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    min-width: 0;
    /* Prevents long text from stretching the card */
}

.diferenciais-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.diferenciais-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.diferenciais-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Filter to reach #8d8d8d (var(--text-light)) */
    filter: invert(64%) sepia(0%) saturate(14%) hue-rotate(167deg) brightness(88%) contrast(92%);
}

.diferenciais-card h3 {
    font-size: 0.95rem;
    /* Reduced to fit square */
    color: #555;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.2;
}

.diferenciais-card p {
    color: #777;
    font-size: 0.75rem;
    /* Reduced to fit square */
    line-height: 1.4;
    margin: 0;
}

.diferenciais-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-xl {
    padding: 10px 60px;
    font-size: 1.1rem;
    border-radius: 50px;
    background-color: var(--primary-brown);
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-xl:hover {
    background-color: var(--primary-brown);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Produtos Section
   ========================================================================== */

.produtos-main {
    background-color: var(--white);
}

.produtos-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.produtos-link {
    background: none;
    border: 2px solid #ddd;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.produtos-link.active,
.produtos-link:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--primary-brown);
    transform: scale(1.05);
}

.produtos-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.produtos-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
}

.produtos-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    /* Contain for product images to show full item */
    padding: 20px;
    transition: var(--transition);
}

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

/* ==========================================================================
   Nossos Projetos Section
   ========================================================================== */

.projetos-main {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.projetos-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../Assets/Imagens/pattern.webp);
    background-size: contain;
    background-position: center;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    opacity: 0.4;
    z-index: 0;
    filter: grayscale(1);
}

.projetos-main .container {
    position: relative;
    z-index: 1;
}

.projetos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.projetos-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

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

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

/* ==========================================================================
   Dúvidas Section
   ========================================================================== */

.duvidas-main {
    background-color: var(--white);
}

.duvidas-accordion {
    max-width: 1200px;
    margin: 0 auto;
}

.duvidas-header {
    width: 100%;
    padding: 22px 25px;
    background: #f8f8f8;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-brown);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.duvidas-header:hover {
    color: var(--gold);
}

.duvidas-item.active .duvidas-header {
    background: #f0f0f0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.duvidas-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.duvidas-item.active .duvidas-body {
    font-weight: 500;
    max-height: fit-content;
    padding-bottom: 50px;
    padding-left: 20px;
}

.duvidas-item.active .duvidas-header span {
    transform: rotate(45deg);
    color: var(--gold);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.footer-main {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 150px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-info p {
    max-width: 300px;
}

.footer-contact-title,
.footer-social-title,
.footer-links-title {
    color: var(--gold);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.footer-ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-ul a {
    font-size: 0.95rem;
}

.footer-ul a:hover {
    opacity: 1;
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-float img {
    width: 35px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .home-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-brown);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
    }

    .header-nav.open {
        right: 0;
    }

    .header-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .sobre-nos-wrapper {
        flex-direction: column;
    }

    .sobre-nos-image-container {
        padding-right: 0;
        margin-bottom: 50px;
        width: 100%;
    }

    .sobre-nos-content {
        margin-left: 0;
        padding: 40px 30px;
        border-radius: 40px;
        width: 100%;
    }

    .sobre-nos-img {
        height: 350px;
    }

    .sobre-nos-image-border {
        right: -10px;
        left: -10px;
    }

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

    .home-title {
        font-size: 2.2rem;
    }

    .home-p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

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

@media (max-width: 480px) {
    .diferenciais-grid {
        grid-template-columns: 1fr;
    }

    .produtos-gallery {
        grid-template-columns: 1fr;
    }
}