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

html {
    scroll-behavior: smooth;
}

:root {
    /* paleta principal */
    --main-color: #FFFFFF;
    --brown: #7B4B2A;
    --pastel: #D7C49C;

    --navbar: #7B4B2A70;
    --navbar-after: #7B4B2A;
    --navbar-background: #7B4B2A20;
}

/* Hero  */
.hero-beauty {
    position: relative;
    background-image: url('../img/home7.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 80px 35px;
    overflow: hidden;
    text-align: right;
}

/* Overlay com gradient suave */
.hero-beauty::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Conteúdo */
.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.titulo-hero {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: #6b4a3b;
    margin-bottom: 10px;
}

.subtitulo-hero {
    font-size: 1.25rem;
    color: #7a6a5c;
    margin-bottom: 30px;
}

.btn-contactar {
    background-color: #d9c2a7;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-contactar:hover {
    background-color: #c2a888;
    color: #fff;
}

/* Parallax apenas em desktop */
@media (min-width: 992px) {
    .hero-beauty {
        background-attachment: fixed;
    }
}

/* Corrige o comportamento no iPhone e Android */
@media (max-width: 991px) {
    .hero-beauty {
        background-attachment: scroll;
        background-position: center top;
    }
}


/* Seta de scroll */
.scroll-down {
    position: absolute;
    bottom: 20px;
    right: 60px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

/* Responsivo */
@media (max-width: 991px) {
    .hero-beauty::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(255, 250, 245, 0.95) 0%, rgba(255, 250, 245, 0) 75%);
        pointer-events: none;
        z-index: 1;
    }

    .titulo-hero {
        font-size: 2.4rem;
        text-align: center;
    }

    .subtitulo-hero {
        text-align: center;
    }

    .btn-contactar {
        display: block;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
        padding-bottom: 60px;
    }

    .scroll-down {
        right: 50%;
        transform: translateX(50%);
    }
}


/* SOBRE */
.sobre-section {
    min-height: 100vh;
    background-color: #fffaf6;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

/* Wrapper com perspetiva 3D */
.sobre-imagem-wrapper {
    position: relative;
    perspective: 1200px;
    top: -30px;
    text-align: center;
}

/* Efeito 3D invertido (para o outro lado) */
.sobre-imagem {
    width: 100%;
    /* mantém proporção consistente */
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transform: rotateY(8deg) rotateX(2deg);
    /* inclinada para a esquerda */
    transform-origin: center;
    transition: all 0.5s ease;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.05));
}

/* Hover: imagem endireita e ganha destaque */
.sobre-imagem:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Tipografia e cores */
.subtitulo-sobre {
    font-size: 1rem;
    color: #d1c2a3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.titulo-sobre {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #6b4a3b;
    margin-bottom: 25px;
}

.texto-sobre {
    color: #6b4a3b;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-saber-mais {
    background-color: #d9c2a7;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-saber-mais:hover {
    background-color: #c2a888;
    color: #fff;
}

/* Responsivo */
@media (max-width: 991px) {
    .sobre-section {
        text-align: center;
        padding: 60px 20px;
    }

    .titulo-sobre {
        font-size: 2.2rem;
    }

    .sobre-imagem-wrapper {
        top: 0;
        perspective: 800px;
    }

    .sobre-imagem {
        width: 90%;
        transform: none;
    }

    /* Garante centralização total no mobile */
    .sobre-imagem-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }

    .sobre-imagem {
        width: 85%;
        max-width: 350px;
        transform: none;
        margin: 0 auto;
    }
}


/* =============================== */
/* MEET THE TEAM SECTION */
/* =============================== */

.team-section {
    position: relative;
    width: 100%;
}

/* Blocos principais */
.team-slide {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 1s ease;
}

/* Conteúdo interno */
.team-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 80%;
    max-width: 1000px;
}

/* Cores dos blocos */
.bloco-bege {
    background: var(--pastel);
    color: var(--main-color);
}

.bloco-brown {
    background: var(--brown);
    color: var(--main-color);
}

/* Texto */
.team-text {
    flex: 1;
    min-width: 280px;
}

.team-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-desc {
    font-size: 1rem;
    line-height: 1.6;
}

/* =============================== */
/* Imagem com efeito 3D */
/* =============================== */

.team-img {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1200px;
    /* cria o efeito 3D realista */
}

/* Regras base para todas as imagens */
.bloco-bege .team-img img,
.bloco-brown .team-img img {
    width: 100%;
    max-width: 380px;
    height: auto;
    /* mantém proporção automática */
    border-radius: 12px;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Efeito 3D: inclinação alternada entre blocos */
.bloco-bege .team-img img {
    transform: rotateY(10deg) rotateX(2deg);
}

.bloco-brown .team-img img {
    transform: rotateY(-10deg) rotateX(2deg);
}

/* Hover: imagem endireita e ganha destaque */
.team-slide:hover .team-img img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* =============================== */
/* Título fixo */
/* =============================== */

.team-title {
    position: relative;
    background: #ffffff;
    border-radius: 10px 10px 0 0;
    color: #6e442a;
    font-size: 2.8rem;
    font-weight: 600;
    padding: 10px 30px;
    width: auto;
    z-index: 5;
}

/* =============================== */
/* Responsivo (mobile) */
/* =============================== */

@media (max-width: 991px) {

    /* Stack vertical */
    .team-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    /* Mantém 3D leve mas sem distorção */
    .team-img img {
        width: 85%;
        max-width: 320px;
        height: auto;
        transform: rotateY(5deg) rotateX(1deg);
        margin: 0 auto;
    }

    /* Bloco 1 (Ana) -> imagem abaixo do texto */
    .bloco-bege .team-content {
        flex-direction: column;
    }

    /* Bloco 2 (Julia) -> imagem acima do texto */
    .bloco-brown .team-content {
        flex-direction: column-reverse;
    }
}


/* CONTACTOS */
input,
textarea {
    background-color: #F1EADF !important;
    color: var(--brown) !important;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* corrige cor de texto e fundo em todos os estados */
input:focus,
textarea:focus,
input:active,
textarea:active,
input:valid,
textarea:valid,
input:not(:placeholder-shown),
textarea:not(:placeholder-shown) {
    background-color: #F1EADF !important;
    color: var(--brown) !important;
}

/* placeholders visíveis */
input::placeholder,
textarea::placeholder {
    color: var(--brown);
    opacity: 0.7;
}


/* iframe */
iframe {
    border-radius: 10px;
    width: 100%;
    height: 350px;
}

/* botões */
.btn-brown {
    background-color: var(--brown);
    color: #fffaf4;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-brown:hover {
    background-color: #62371d;
}

/* texto pastel */
.text-pastel {
    color: var(--pastel);
}

/* agendamento */
.agendamento-section {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    color: var(--brown);
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);

    /* Imagem + gradiente sobreposto */
    background:
        linear-gradient(rgba(255, 250, 245, 0.92),
            rgba(240, 230, 220, 0.85)),
        url('../img/team/4.jpg');

    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Efeito parallax só em desktop */
@media (min-width: 992px) {
    .agendamento-section {
        background-attachment: fixed;
    }
}

/* Corrige o bug em iPhone e Android */
@media (max-width: 991px) {
    .agendamento-section {
        background-attachment: scroll;
        background-position: center top;
    }
}


/* =============================== */
/* GALERIA */
/* =============================== */

.galeria-section {
    background-color: var(--main-color);
    color: var(--brown);
    padding-top: 5%;
}

/* Títulos */
.galeria-subtitulo {
    color: var(--pastel);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.galeria-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--brown);
    font-weight: 500;
    margin-bottom: 30px;
}

/* Grid de imagens */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
}

.galeria-item img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.galeria-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Botão */
.btn-vermais {
    display: inline-block;
    background-color: var(--pastel);
    color: var(--brown);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-radius: 10px;
    padding: 12px 34px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-vermais:hover {
    background-color: #cbb68f;
    color: #fff;
}

/* =============================== */
/* Responsivo */
/* =============================== */
@media (max-width: 991px) {
    .galeria-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .galeria-titulo {
        font-size: 2.2rem;
    }
}


/* =============================== */
/* GALERIA */
/* =============================== */

.galeria-section {
    background: var(--main-color);
    color: var(--brown);
}

.container-galeria {
    width: 88%;
    margin: 0 auto;
    text-align: center;
}

/* Títulos */
.galeria-header {
    margin-bottom: 40px;
    text-align: left;
}

.galeria-subtitulo {
    color: var(--pastel);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.galeria-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--brown);
    font-weight: 500;
}

/* Grid de imagens */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
    margin-bottom: 25px;
}

.galeria-item {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    /* mantém proporção vertical */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.galeria-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

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

/* Botão */
.galeria-botao {
    text-align: center;
}

.btn-vermais {
    display: inline-block;
    background-color: var(--pastel);
    color: var(--brown);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    padding: 12px 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-vermais:hover {
    background-color: #cbb68f;
    color: #fff;
}

/* =============================== */
/* Responsivo */
/* =============================== */
@media (max-width: 991px) {
    .galeria-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .galeria-item {
        max-width: 300px;
    }
}

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

    .galeria-titulo {
        font-size: 2.2rem;
    }

    .btn-vermais {
        font-size: 1rem;
        padding: 10px 30px;
    }
}


/* =============================== */
/* FOOTER COMPACTO */
/* =============================== */

.footer-section {
    background: var(--main-color);
    color: var(--brown);
    padding: 0;
    text-align: center;
    font-family: "Garamond", serif;
}

/* Card com bordas pequenas e pouco padding */
.footer-card {
    background-color: var(--pastel);
    border-radius: 10px;
    width: 92%;
    max-width: 1200px;
    margin: 40px auto 10px auto;
    padding: 40px 30px;
}

/* Grid compacto */
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
    text-align: left;
}

/* Coluna logo */
.footer-logo {
    font-family: "Playfair Display", serif;
}

.footer-brand {
    font-size: 2.2rem;
    font-weight: 400;
    font-family: "Dancing Script", cursive;
    color: #fff;
    margin-bottom: 10px;
}

.footer-brand span {
    font-family: "Playfair Display", serif;
    color: #fff;
}

.footer-line {
    border: 0;
    height: 1px;
    background-color: #a9865b;
    width: 100%;
    margin: 10px 0 15px 0;
}

.footer-location {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.5;
    font-family: Arial, Helvetica, sans-serif;
}

/* Colunas de links */
.footer-column h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    border-bottom: 1px solid #a9865b;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    font-family: Arial, Helvetica, sans-serif;
    margin: 6px 0;
    color: #fff;
    font-size: 1rem;
}

.footer-column a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #3e2415;
}

/* Créditos */
.footer-credits {
    color: var(--brown);
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* =============================== */
/* Responsivo */
/* =============================== */
@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-card {
        padding: 30px 25px;
    }

    .footer-column h4 {
        border-bottom: 0px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-card {
        padding: 25px 20px;
    }

    .footer-brand {
        font-size: 1.8rem;
    }

    .footer-credits {
        font-size: 0.85rem;
    }
}