* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
}

html {
    scroll-behavior: smooth;
}


:root {
    --primary-color: #00AFAA;
    --secondary-color: #FA8D29;
    --background-color: #ffffff;
    --text-color: #1f2426;
}

/* Animações de entrada */
@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.fade-in-top.active {
    animation: fadeInTop 1s ease-out forwards;
}

.fade-in-bottom.active {
    animation: fadeInBottom 1s ease-out forwards;
}

.fade-in-left.active {
    animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right.active {
    animation: fadeInRight 1s ease-out forwards;
}

/* Garantir que elementos de entrada comecem invisíveis para evitar jank */
.fade-in-top,
.fade-in-bottom,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 260ms ease, transform 260ms ease;
}



/* --- CABEÇALHO E NAVEGAÇÃO --- */
.main-header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 1rem;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.1rem;
    /* Aumenta um pouco o padding interno */
    gap: clamp(0.5rem, 2vw, 1rem);
    /* Gradiente sutil para simular luz vindo de cima */
    background-image: linear-gradient(to bottom, rgba(116, 115, 115, 0.25), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    /* Borda clara para "pegar" a luz */
    /* Sombra mais complexa para dar profundidade */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    flex-shrink: 1;
    min-width: 0;
}

.nav-menu li {
    padding: 0 clamp(1.4rem, 1.5vw, 2rem);
}


.nav-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- ÍCONES E O CÍRCULO PERFEITO --- */
.nav-menu i {
    font-size: 1.1rem;
    background-color: transparent;
    padding: clamp(0.6rem, 0.5vw, 0.2rem);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-menu span {
    font-size: clamp(0.8rem, 1vw, 0.7rem);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* --- EFEITOS HOVER --- */
.nav-menu a:hover i {
    transform: translateY(-4px);
    color: var(--primary-color);
    border-color: var(--primary-color);
    /* Borda fica laranja */
}

.nav-menu a:hover span {
    color: var(--primary-color);
    /* Texto fica laranja */
}

/* --- BOTÃO DE AGENDAMENTO --- */
.cta-button {
    /* Usando um gradiente sutil em vez de uma cor sólida */
    background-image: linear-gradient(to bottom, #FA8D29, #E66000);
    color: var(--white-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    white-space: nowrap;
    padding: clamp(0.5rem, 1.2vw, 0.7rem) clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    border: 1px solid #FB9E4A;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease-in-out;
}

.cta-button:hover {
    /* Inverte o gradiente e expande */
    background-image: linear-gradient(to top, #00C2C2, #008F8F);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
    transform: scale(1);
    /* Retorna ao tamanho normal ao clicar */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/*
==================================================
    MENU HAMBÚRGUER E NAVEGAÇÃO MOBILE
==================================================
*/

/* 1. Estilo do Botão Hambúrguer */
.hamburger-menu {
    display: none;
    /* Escondido por padrão */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
    /* Acima de outros elementos */
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* 2. Estilo do Menu Mobile (escondido fora da tela) */
.mobile-nav {
    position: fixed;
    top: 50px;
    right: 20px;
    width: calc(100% - 50px);
    /* Não encosta nas margens */
    max-width: 1050px;
    /* Largura máxima */
    height: auto;
    background-color: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    padding: 20px 30px;
    z-index: 1000;

    /* Animação */
    transform: translateY(-150%);
    /* Começa fora da tela, acima */
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav.active {
    transform: translateY(0);
    /* Posição final quando ativo */
}

/* 3. Conteúdo do Menu Mobile */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-nav-header .logo img {
    height: 35px;
    width: auto;
}

.close-menu {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2.5rem;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin-bottom: 1.5rem;
}

/* Animação: ícone e texto (por padrão) */
.mobile-nav-menu a i,
.mobile-nav-menu a span {
    display: inline-block;
    /* permite transform */
    transform: translateX(0);
    transition: transform 220ms cubic-bezier(.2, .9, .3, 1), color 200ms ease;
    color: inherit;
}

/* Aplicar movimento e cor somente nos 4 primeiros itens */
.mobile-nav-menu li:nth-child(-n+4) a:hover i,
.mobile-nav-menu li:nth-child(-n+4) a:hover span {
    transform: translateX(-8px);
    color: var(--background-color);
}

.mobile-nav-menu i {
    font-size: 1.5rem;
}

.mobile-nav-menu a {
    background-color: transparent;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.mobile-nav-menu a:hover {
    background-color: var(--secondary-color);
}

.mobile-nav-menu a i {
    color: var(--secondary-color);
}

.mobile-nav-menu a :hover i {
    color: var(--primary-color);
}

.location-button {
    display: inline-flex;
    /* não preencher largura */
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.4rem 0.8rem;
    /* padding reduzido */
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    /* 3D button visual: cores e sombras suaves */
    background: linear-gradient(180deg, rgba(0, 191, 170, 1) 0%, rgba(0, 167, 160, 1) 100%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform 200ms cubic-bezier(.2, .9, .3, 1), box-shadow 200ms ease, filter 160ms ease;
    width: auto;
    max-width: 320px;
    /* limita largura máxima */
    align-self: flex-start;
    /* evita esticar em containers flex */
}

.location-button:hover {
    background: linear-gradient(180deg, rgba(250, 141, 41, 1) 0%, rgba(230, 96, 0, 1) 100%);
}

.location-button i {
    color: var(--background-color);
}

/* Press/active state to simulate press into depth */
/* hover: levanta e aumenta sombra (animação) */
.location-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 6px 14px rgba(0, 0, 0, 0.06);
    filter: brightness(1.03);
}

/* Press/active state: afunda levemente */
.location-button:active,
.location-button:focus {
    transform: translateY(2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
    outline: none;
}

/* decorative bottom edge for stronger 3D effect */
.location-button::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -8px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.04));
    border-radius: 8px;
    z-index: -1;
    transition: transform 200ms ease, opacity 200ms ease;
}

.location-button:hover::after {
    transform: translateY(6px) scaleX(1.04);
    opacity: 1;
}

/* 4. Media Query para ativar em telas menores */
@media (max-width: 800px) {

    .nav-menu,
    .cta-button {
        display: none;
        /* Esconde o menu de desktop */
    }

    .hamburger-menu {
        display: flex;
        /* Mostra o botão hambúrguer */
    }
}


.home-icon-link {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #181818;
    z-index: 100;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.2s;
}

.home-icon-link i {
    font-size: 2rem;
    margin-bottom: 2px;
}

.home-icon-link:hover {
    color: var(--secondary-color);
}


.project-page-container {
    padding-top: clamp(6rem, 15vh, 10rem);
    /* Espaço para o header fixo */
    padding-bottom: clamp(3rem, 8vw, 6rem);
    background-color: var(--background-color);
}

.project-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

/* --- TÍTULO DO PROJETO --- */
.project-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    color: var(--secondary-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* --- VÍDEO DO PROJETO --- */
.project-video-wrapper {
    max-width: 1500px;
    margin: 0 auto clamp(3rem, 6vw, 5rem) auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    /* Garante que o vídeo respeite o border-radius */
}

.project-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- DESCRIÇÃO E LINKS --- */
.project-description {
    width: 100%;
    line-height: 1.7;
    margin-top: 200px;
}

/* Ajuste responsivo: reduzir margem superior da descrição em telas pequenas */
@media (max-width: 768px) {
    .project-description {
        margin-top: 100px;
    }
}

.project-description h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

.project-description p {
    margin-bottom: 1.5rem;
    color: #333;
}

.project-description ul {
    list-style: none;
    padding-left: 0;
}

.project-description ul li {
    margin-bottom: 0.5rem;
}

.project-description ul a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.project-description ul a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- GALERIA DE IMAGENS --- */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 2fr));
    gap: 1.5rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid transparent;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.9);
    border: 4px solid var(--primary-color);
}

/* --- FICHA TÉCNICA E PRÊMIOS --- */
.project-details {
    gap: 3rem;
    /* Aumentei um pouco o gap para telas maiores */
    margin-top: clamp(3rem, 6vw, 5rem);
}


.project-details h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.ficha-tecnica-grid {
    display: grid;
    /* Cria colunas que se ajustam automaticamente */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem 2.5rem;
    /* 1.5rem de espaço vertical, 2.5rem horizontal */
    margin-top: 2rem;
    /* Espaço abaixo do título "FICHA TÉCNICA" */
}

.ficha-tecnica h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.ficha-tecnica p {
    line-height: 1.6;
    color: #444;
}

.premios ul {
    list-style: none;
    padding-left: 0;
}

.premios li {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    line-height: 1.5;
}


/*FOOTER*/

.project-footer {
    background: #181818;
    color: #fff;
    padding: 32px 16px 16px 16px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .project-footer {
        padding-bottom: 48px;
    }
}

.project-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.project-footer .footer-logo-area {
    flex: 1 1 420px;
    min-width: 180px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.project-footer .footer-logo-area img {
    max-width: 120px;
    height: auto;
}

.project-footer .footer-contact-area,
.project-footer .footer-social-area {
    flex: 1 1 220px;
    min-width: 180px;
    text-align: left;
}

.project-footer .footer-contact-area h3,
.project-footer .footer-social-area h3 {
    margin-bottom: 8px;
    font-size: 1.8rem;
    color: #00bfae;
}

.project-footer .footer-contact-area a {
    color: #fff;
    text-decoration: underline;
    display: block;
    margin-bottom: 4px;
    word-break: break-all;
}

.project-footer .footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.project-footer .footer-social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.project-footer .footer-social-icons a:hover {
    color: #00bfae;
}

.footer-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 24px 0 12px 0;
    width: 100%;
}

.project-footer .footer-bottom {
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    opacity: 0.7;
    margin: 0 auto;
    display: block;
}

.footer-contact-details p {
    margin: 0.5rem 0;
}

.footer-contact-details a {
    color: var(--primary-color) !important;
    /* Cor laranja padrão do link */
    text-decoration: none !important;
    /* Remove o sublinhado */
    transition: transform 0.4s ease, color 0.4s ease !important;
    /* Adiciona uma transição suave na cor */
}

.footer-contact-details a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(10px);
}

/* --- GALERIA ESCÓRIA: imagens grandes, retangulares e sem corte --- */
.project-gallery-escoria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 2.5vw;
    margin: 0 auto clamp(3rem, 6vw, 5rem) auto;
    max-width: 1400px;
    padding: 0 3vw;
    box-sizing: border-box;
}

.project-gallery-escoria img {
    width: 100%;
    aspect-ratio: 3/4;
    height: auto;
    object-fit: cover;
    background: #181818;
    border: 4px solid transparent;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    display: block;
    margin: 0;
    min-height: 220px;
    max-height: 70vh;
}

.project-gallery-escoria img:hover {
    transform: scale(1.04);
    box-shadow: 0 16px 48px rgba(0,0,0,0.32);
    border: 4px solid var(--primary-color);
}

/* --- Amostra gratuita: botão download PDF --- */
.project-sample {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0 2rem 0;
    flex-wrap: wrap;
}
.sample-thumb {
    width: 300px;
    max-width: 90vw;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    transition: none;
    cursor: default;
    pointer-events: none;
}
.project-sample .sample-text {
    flex: 1;
    min-width: 220px;
}
.download-pdf-btn {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.7rem 1.5rem;
    background: #FA8D29;
    color: #fff;
    font-weight: 900;
    border: none;
    border-radius: 16px;
    font-size: 1.08rem;
    text-decoration: none;
    box-shadow: 0 8px 0 #c96a0a, 0 2px 12px rgba(0,0,0,0.15), 0 4px 16px rgba(250,141,41,0.10);
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s, border 0.2s;
    cursor: pointer;
    letter-spacing: 0.02em;
    filter: drop-shadow(0 2px 8px #fa8d2940);
    position: relative;
    overflow: hidden;
}
.download-pdf-btn:active {
    background: #e66000;
    transform: translateY(6px) scale(0.97);
    box-shadow: 0 2px 0 #c96a0a, 0 1px 4px rgba(0,0,0,0.13);
}
.download-pdf-btn:hover {
        background: var(--primary-color);
        transform: scale(1.04) translateY(-2px);
        box-shadow: 0 16px 0 #01928d, 0 8px 32px rgba(250,141,41,0.18);
}

@media (max-width: 600px) {
    .download-pdf-btn {
        padding: 0.5rem 1rem;
        font-size: 0.98rem;
        border-radius: 12px;
    }
}