/* ===== VARIÁVEIS DE CORES ===== */
:root {
    --azul-principal: #2563eb;
    --azul-escuro: #1e40af;
    --azul-fundo: #eef3fb;
    
    --laranja-principal: #f97316;
    --laranja-fundo: #ffedd5;
    
    --texto-escuro: #1f2937;
    --texto-cinza: #4b5563;
}

html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', Arial, sans-serif;
}

body {
    background: #f5f9ff;
    color: var(--texto-escuro);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 8%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo { height: 52px; }

.header-title {
    color: var(--azul-escuro);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav a {
    text-decoration: none;
    color: var(--azul-principal);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 100px;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

nav a:hover { 
    background: var(--laranja-fundo); 
    color: var(--laranja-principal);
    transform: translateY(-1px);
}
nav a.active { background: var(--azul-principal); color: white; }
nav a.active:hover { background: var(--laranja-principal); color: white; }

/* Botão Hambúrguer (Escondido em Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--azul-escuro);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.hamburger.ativo span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
    background-color: var(--laranja-principal);
}

.hamburger.ativo span:nth-child(2) {
    opacity: 0;
}

.hamburger.ativo span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
    background-color: var(--laranja-principal);
}

/* ===== HERO ===== */
.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 120px 8% 60px;
    gap: 40px;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--azul-principal);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--azul-escuro);
    margin-bottom: 22px;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--texto-cinza);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 32px;
    background: var(--azul-principal);
    color: white;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s, border-color 0.3s;
}

.btn:hover {
    background: var(--laranja-principal);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-secundario {
    background: transparent;
    color: var(--azul-principal);
    border: 2px solid var(--azul-principal);
    box-shadow: none;
}

.btn-secundario:hover {
    background: var(--laranja-principal);
    border-color: var(--laranja-principal);
    color: white;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-media-frame {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 4/5;
    border-radius: 42% 58% 63% 37% / 47% 40% 60% 53%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(30,58,138,0.2);
    border: 6px solid white;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== GERAL E TÍTULOS ===== */
section { padding: 90px 10%; }

.secao-sombreada { background: var(--azul-fundo); }

h2 {
    position: relative;
    display: table;
    margin: 0 auto 28px;
    color: var(--azul-escuro);
    font-size: 2.3rem;
    font-weight: 900;
    text-align: center;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-principal), var(--laranja-principal));
    border-radius: 4px;
    margin: 10px auto 0;
    transition: width 0.3s ease;
}

section:hover h2::after {
    width: 90px;
}

.subtitulo {
    text-align: center;
    color: var(--texto-cinza);
    margin-top: -12px;
    margin-bottom: 56px; 
    font-size: 1.25rem; 
}

/* ===== SOBRE ===== */
.sobre-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 20px;
}

.sobre-texto p {
    font-size: 1.25rem; 
    line-height: 1.8;
    color: var(--texto-escuro);
    margin-bottom: 20px;
}

.sobre-texto strong {
    color: var(--azul-escuro);
    font-size: 1.25rem;
}

.pull-quote {
    background: var(--azul-escuro);
    color: white;
    border-radius: 20px;
    padding: 36px 32px;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 10px 30px rgba(30,64,175,0.15);
}

.pull-quote-centro {
    background: var(--laranja-principal);
    max-width: 700px;
    margin: 64px auto 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 18px;
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
    font-family: Georgia, serif;
}

.pull-quote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
}

/* ===== VALORES ===== */
h2.titulo-valores {
    margin-top: 80px;
    margin-bottom: 40px;
}

.valores-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.valor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
}

.valor-item.animar-click {
    animation: pulseCard 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseCard {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.valor-item-icone {
    width: 60px;
    height: 60px;
    background: var(--azul-fundo);
    color: var(--azul-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.valor-item:hover .valor-item-icone {
    transform: scale(1.1);
}

.valor-item.ativo-laranja .valor-item-icone {
    background: var(--laranja-principal);
    color: white;
}

.valor-item-icone svg {
    width: 28px;
    height: 28px;
}

.valor-item-texto strong {
    display: block;
    color: var(--azul-escuro);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.valor-item-texto p {
    color: var(--texto-cinza);
    font-size: 1.1rem; 
    line-height: 1.5;
}

/* ===== SERVIÇOS (GRELHA SIMÉTRICA DE 10 ITENS) ===== */
.servicos-grelha {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colunas exatas para 2 filas perfeitas */
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}

.servico-card {
    position: relative;
    height: 240px; /* Altura proporcional para 5 colunas */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.servico-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.18);
}

.servico-card-media {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.servico-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.servico-card:hover .servico-card-media img {
    transform: scale(1.08);
}

/* Sombra gradual na base para contraste do texto */
.servico-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.05) 100%);
    transition: opacity 0.3s ease;
}

.servico-card-conteudo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.servico-card-tag {
    background: var(--laranja-principal);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 9px;
    border-radius: 100px;
    transition: background 0.3s ease;
}

.servico-card:hover .servico-card-tag {
    background: var(--azul-principal);
}

.servico-card-nome {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ===== AJUSTE RESPONSIVO (TABLET E TELÉMOVEL) ===== */
@media (max-width: 1024px) {
    .servicos-grelha {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas x 5 filas */
        gap: 16px;
        max-width: 700px;
    }

    .servico-card {
        height: 220px;
    }
}

@media (max-width: 520px) {
    .servicos-grelha {
        grid-template-columns: repeat(2, 1fr); /* Mantém 2 colunas alinhadas no telemóvel */
        gap: 12px;
    }

    .servico-card {
        height: 185px; /* Compacto para ecrãs de telemóvel */
        border-radius: 14px;
    }

    .servico-card-conteudo {
        padding: 12px 10px;
    }

    .servico-card-nome {
        font-size: 0.88rem;
    }

    .servico-card-tag {
        font-size: 0.58rem;
        padding: 3px 7px;
    }
}

/* ===== GALERIA & LIGHTBOX ===== */
.galeria-masonry {
    columns: 3 220px;
    column-gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.masonry-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.masonry-item.tall img {
    height: 300px;
}

.masonry-item:hover img {
    transform: scale(1.08);
}

.masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.25) 38%, rgba(15,23,42,0) 62%);
    pointer-events: none;
}

.masonry-legenda {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.ativo {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.ativo img {
    transform: scale(1);
}

.lightbox-fechar {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-fechar:hover {
    color: var(--laranja-principal);
}

#lightbox-legenda {
    color: white;
    margin-top: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ===== SECCAO NOVIDADES (JUICER) ===== */
.facebook-feed-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.juicer-feed {
    background: transparent !important;
}

.juicer-feed .feed-item {
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    border: none !important;
}

.juicer-feed .feed-item:nth-child(n+4) {
    display: none !important;
}

.juicer-feed .j-paginate,
.juicer-feed .juicer-button,
.juicer-feed .referral,
.juicer-feed .j-stack-btn {
    display: none !important;
}

/* ===== VISITE-NOS ===== */
.visite-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
}

#map {
    height: 420px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.visite-cartao {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.visite-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--azul-fundo);
}

.visite-item:last-of-type { border-bottom: none; }

.visite-item strong {
    display: block;
    font-size: 0.78rem;
    color: var(--azul-principal);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.visite-item p, .visite-item a {
    color: var(--texto-escuro);
    font-weight: 600;
    font-size: 1.05rem; 
    text-decoration: none;
    transition: color 0.2s;
}

.visite-item a:hover {
    color: var(--laranja-principal);
}

.visite-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.visite-social a {
    width: 44px;
    height: 44px;
    background: var(--azul-fundo);
    color: var(--azul-principal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

.visite-social a:hover { 
    background: var(--laranja-principal); 
    color: white;
    transform: translateY(-2px);
}

.visite-social svg { width: 20px; height: 20px; }

/* ===== FAQ ===== */
.faq-colunas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 900px;
    margin: 20px auto 0;
}

.faq-coluna {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.faq-pergunta {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 22px;
    text-align: left;
    font-size: 1.02rem; 
    font-weight: 700;
    color: var(--azul-escuro);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}

.faq-seta {
    font-size: 1.4rem;
    color: var(--azul-principal);
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s;
    flex-shrink: 0;
    line-height: 1;
}

.faq-pergunta:hover .faq-seta { color: var(--laranja-principal); }

.faq-item.aberto .faq-seta { 
    transform: rotate(45deg); 
    color: var(--laranja-principal); 
}

.faq-item.aberto .faq-pergunta {
    color: var(--laranja-principal);
}

.faq-resposta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
}

.faq-item.aberto .faq-resposta {
    max-height: 300px;
    padding: 0 22px 20px;
}

.faq-resposta p {
    color: var(--texto-cinza);
    line-height: 1.6;
    border-top: 1px solid var(--azul-fundo);
    padding-top: 14px;
    font-size: 1rem; 
}

/* ===== FOOTER ===== */
footer {
    background: var(--azul-escuro);
    color: white;
    padding: 24px 8%;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
}

.footer-logo-wrapper {
    background: white;
    padding: 6px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-footer {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply; 
}

/* Botão Livro de Reclamações com comportamento idêntico às redes sociais */
.livro-reclamacoes-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 12px;
    transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.livro-reclamacoes-link img {
    height: 28px;
    width: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
}

.livro-reclamacoes-link:hover {
    background: var(--laranja-principal);
    border-color: var(--laranja-principal);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

/* ===== ANIMAÇÕES (REVEAL ON SCROLL) ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVIDADE E OTIMIZAÇÃO MÓVEL ===== */
@media (max-width: 900px) {
    header {
        padding: 12px 6%;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    nav.ativo {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 30px;
        gap: 16px;
        text-align: center;
    }

    nav a {
        font-size: 1.1rem;
        padding: 12px 20px;
        display: block;
    }

    section {
        padding: 70px 6%;
    }

    h2 {
        font-size: 1.9rem;
    }

    .hero { 
        grid-template-columns: 1fr; 
        min-height: auto; 
        padding-top: 110px; 
        padding-bottom: 50px;
        text-align: center; 
    }
    
    .hero-eyebrow { margin: 0 auto 14px; }
    
    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .hero-content p { 
        margin: 0 auto 28px; 
        font-size: 1.15rem;
    }
    
    .hero-buttons { 
        justify-content: center; 
        margin-bottom: 30px;
    }
    
    .hero-media-frame { 
        max-width: 400px; 
        margin: 0 auto; 
    }

    .sobre-layout { 
        grid-template-columns: 1fr; 
        gap: 28px; 
    }

    .visite-layout { 
        grid-template-columns: 1fr; 
    }

    #map {
        height: 300px; 
    }

    .servicos-grelha { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .faq-colunas { 
        grid-template-columns: 1fr; 
    }
    
    .galeria-masonry { 
        columns: 2 160px; 
    }

    .footer-container { 
        flex-direction: column; 
        text-align: center; 
    }
}

@media (max-width: 480px) {
    .hero h1 { 
        font-size: 2.1rem; 
    }
    
    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
    }
    
    .hero-buttons .btn { 
        width: 100%; 
        text-align: center; 
    }
    
    .galeria-masonry { 
        columns: 1; 
    }
    
    .servicos-grelha { 
        grid-template-columns: 1fr; 
    }
    
    .header-title { 
        display: none; 
    }
}