/* =========================================
   PALAIZA MADEIRA — HEAD SPA
   CSS RESPONSIVO
========================================= */

/* ---------- VARIÁVEIS ---------- */

:root {
    color-scheme: light;

    --bg: #f5efe6;
    --paper: #ece2d3;
    --ink: #3f3a35;
    --muted: #746b62;
    --gold: #8a6d40;
    --rose: #c8a496;
    --deep: #e3d8c5;
    --on-deep: #3f3a35;
    --line: #d5c6b3;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "DM Sans", Arial, sans-serif;

    --container: 1160px;
    --header-height: 76px;

    --radius: 8px;
    --transition: .3s ease;
}

/* ---------- RESET ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 15px);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: env(safe-area-inset-top, 0px);
    background: var(--bg);
    z-index: 100;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.5px;
}

p {
    overflow-wrap: break-word;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* ---------- CONTAINER ---------- */

.w {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

/* ---------- CABEÇALHO ---------- */

header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    width: 100%;
    z-index: 100;
    background: rgba(245, 239, 230, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    flex-shrink: 0;
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--ink);
}

.logo small {
    display: block;
    margin-top: 5px;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

/* Navegação */

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

nav a {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--transition);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

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

nav a:hover::after {
    width: 100%;
}

/* Botão do menu mobile */

.mb {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 23px;
    cursor: pointer;
    transition: background var(--transition);
}

.mb:hover {
    background: var(--paper);
}

/* ---------- BOTÕES ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 27px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: var(--gold);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    background: #735a35;
    border-color: #735a35;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(63, 58, 53, .12);
}

.btn.out {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn.out:hover {
    background: var(--paper);
    border-color: var(--gold);
    color: var(--gold);
}

.nav>.btn {
    min-height: 43px;
    padding: 10px 20px;
    white-space: nowrap;
}

/* ---------- HERO ---------- */

.hero {
    padding: 75px 0 85px;
}

.hero .w {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 65px;
}

.hero h1 {
    max-width: 590px;
    margin-bottom: 24px;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.08;
}

.hero p {
    max-width: 475px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Imagens do destaque */

.coll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.2fr .8fr;
    gap: 13px;
    height: 550px;
    min-width: 0;
}

.coll div {
    min-width: 0;
    overflow: hidden;
    background: var(--paper);
}

.coll img {
    transition: transform .7s ease;
}

.coll div:hover img {
    transform: scale(1.04);
}

.c1 {
    grid-row: 1 / 3;
    border-radius: 200px 200px 6px 6px;
}

.c2 {
    border-radius: 6px 6px 6px 120px;
}

.c3 {
    border-radius: 6px;
}

/* ---------- FORMAÇÕES ---------- */

.creds {
    padding: 23px 0;
    background: var(--paper);
    color: var(--muted);
    font-size: 14px;
}

.creds .w {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 38px;
}

.creds span {
    text-align: center;
}

.creds b {
    color: var(--ink);
    font-weight: 600;
}

/* ---------- SEÇÕES ---------- */

section {
    padding: 95px 0;
}

.sec-h {
    max-width: 620px;
    margin-bottom: 55px;
}

.sec-h h2 {
    margin-bottom: 15px;
    font-size: clamp(34px, 4.5vw, 53px);
}

.sec-h p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* ---------- SERVIÇOS ---------- */

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    margin-bottom: 95px;
}

.row:last-of-type {
    margin-bottom: 75px;
}

.row.rev .ph {
    order: 2;
}

.row h3 {
    margin-bottom: 18px;
    font-size: clamp(30px, 3.5vw, 43px);
}

.row p {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.9;
}

.row ul {
    margin-top: 23px;
    border-top: 1px solid var(--line);
    list-style: none;
}

.row li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.row li::before {
    content: "✦";
    margin-right: 10px;
    color: var(--gold);
}

/* Imagens dos serviços */

.ph {
    display: grid;
    gap: 13px;
    min-width: 0;
}

.ph.two {
    grid-template-columns: 1fr 1fr;
}

.ph div {
    overflow: hidden;
    border-radius: 6px;
    background: var(--paper);
}

.ph img {
    transition: transform .7s ease;
}

.ph div:hover img {
    transform: scale(1.04);
}

.ph.two div {
    aspect-ratio: 3 / 4;
}

.ph.one div {
    aspect-ratio: 5 / 4;
}

.ph .off {
    margin-top: 36px;
}

/* ---------- OUTROS SERVIÇOS ---------- */

.more {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 65px;
    border-top: 1px solid var(--line);
}

.more div {
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.more h3 {
    margin-bottom: 8px;
    font-size: 26px;
}

.more p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

/* ---------- AMBIENTE ---------- */

.amb {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 490px;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
}

.amb img {
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.amb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(236, 226, 211, .97) 0%,
            rgba(236, 226, 211, .55) 35%,
            rgba(236, 226, 211, .05) 100%);
}

.amb .w {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 55px;
}

.amb h2 {
    max-width: 650px;
    font-size: clamp(35px, 4.5vw, 55px);
    line-height: 1.15;
}

/* ---------- SOBRE ---------- */

.about {
    background: var(--paper);
}

.about .w {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 75px;
}

.about .ph {
    max-width: 430px;
}

.about .ph div {
    aspect-ratio: 3 / 4;
    border-radius: 200px 200px 6px 6px;
}

.about h2 {
    max-width: 600px;
    margin-bottom: 23px;
    font-size: clamp(36px, 4.5vw, 54px);
}

.about p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.95;
}

/* ---------- AVALIAÇÕES ---------- */

.rv {
    background: var(--deep);
    color: var(--on-deep);
}

.rv .sec-h p {
    color: var(--muted);
}

.track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 5px 2px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
    -webkit-overflow-scrolling: touch;
}

.q {
    flex: 0 0 min(380px, 85%);
    padding-top: 23px;
    border-top: 2px solid var(--gold);
    scroll-snap-align: start;
}

.q p {
    margin-bottom: 17px;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.5;
}

.q span {
    color: var(--muted);
    font-size: 13px;
}

.q i {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 15px;
    font-style: normal;
    letter-spacing: 3px;
}

/* ---------- GALERIA ---------- */

.gal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gal a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
    background: var(--paper);
}

.gal img {
    transition: transform .6s ease;
}

.gal a:hover img {
    transform: scale(1.07);
}

/* ---------- CONTATO ---------- */

.ct {
    text-align: center;
}

.ct h2 {
    max-width: 850px;
    margin: 0 auto 18px;
    font-size: clamp(36px, 5vw, 65px);
}

.ct p {
    max-width: 520px;
    margin: 0 auto 32px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.ct .cta {
    justify-content: center;
}

/* ---------- RODAPÉ ---------- */

footer {
    padding: 32px 24px 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

/* ---------- BOTÃO FLUTUANTE WHATSAPP ---------- */

.fab {
    position: fixed;
    right: 25px;
    bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    z-index: 150;

    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    border: 1px solid #d5c6b3;
    border-radius: 50%;

    background: #e8dcc9;
    color: #786044;

    box-shadow: 0 6px 22px rgba(63, 58, 53, .17);

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.fab:hover {
    background: #ded0ba;
    transform: translateY(-4px);
    box-shadow: 0 9px 25px rgba(63, 58, 53, .22);
}

.fab svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: currentColor;
}

/* =========================================
   RESPONSIVIDADE — TABLETS
========================================= */

@media (max-width: 1024px) {

    :root {
        --container: 100%;
    }

    .w {
        width: min(100% - 48px, 900px);
    }

    .hero .w {
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(40px, 5vw, 57px);
    }

    .coll {
        height: 470px;
    }

    .row {
        gap: 40px;
    }

    .about .w {
        gap: 45px;
    }

    nav ul {
        gap: 19px;
    }
}

/* =========================================
   RESPONSIVIDADE — TABLETS E CELULARES
========================================= */

@media (max-width: 860px) {

    :root {
        --header-height: 70px;
    }

    .w {
        width: min(100% - 40px, 680px);
    }

    /* Cabeçalho */

    .nav {
        min-height: var(--header-height);
        gap: 12px;
    }

    .logo {
        font-size: 22px;
    }

    .nav>.btn {
        display: none;
    }

    .mb {
        display: grid;
        place-items: center;
    }

    nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        margin: 0;
    }

    nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        width: 100%;
        padding: 12px 24px 20px;

        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 20px rgba(63, 58, 53, .07);
    }

    nav ul.open {
        display: flex;
    }

    nav li {
        border-bottom: 1px solid var(--line);
    }

    nav li:last-child {
        border-bottom: 0;
    }

    nav a {
        display: block;
        padding: 13px 0;
        font-size: 15px;
    }

    nav a::after {
        display: none;
    }

    /* Hero */

    .hero {
        padding: 60px 0 65px;
    }

    .hero .w {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero h1 {
        max-width: 620px;
        font-size: clamp(40px, 7vw, 60px);
    }

    .hero p {
        max-width: 600px;
    }

    .coll {
        width: 100%;
        height: 470px;
    }

    /* Formação */

    .creds .w {
        gap: 13px 25px;
    }

    /* Seções */

    section {
        padding: 70px 0;
    }

    .sec-h {
        margin-bottom: 40px;
    }

    /* Serviços */

    .row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 65px;
    }

    .row.rev .ph {
        order: 0;
    }

    .row h3 {
        font-size: 36px;
    }

    .row p {
        font-size: 15px;
    }

    .ph {
        max-width: 600px;
    }

    .ph.one div {
        aspect-ratio: 16 / 10;
    }

    .ph.two div {
        aspect-ratio: 4 / 5;
    }

    .ph .off {
        margin-top: 25px;
    }

    /* Outros serviços */

    .more {
        gap: 0 35px;
    }

    /* Ambiente */

    .amb {
        min-height: 400px;
    }

    /* Sobre */

    .about .w {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about .ph {
        max-width: 390px;
        margin: 0 auto;
    }

    .about .ph div {
        aspect-ratio: 4 / 5;
    }

    /* Galeria */

    .gal {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* =========================================
   RESPONSIVIDADE — CELULARES
========================================= */

@media (max-width: 600px) {

    body {
        font-size: 15px;
    }

    .w {
        width: calc(100% - 36px);
    }

    /* Cabeçalho */

    .nav {
        min-height: 66px;
    }

    .logo {
        font-size: 21px;
    }

    .logo small {
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .mb {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    nav ul {
        padding: 10px 20px 17px;
    }

    /* Hero */

    .hero {
        padding: 48px 0 52px;
    }

    .hero .w {
        gap: 30px;
    }

    .hero h1 {
        margin-bottom: 18px;
        font-size: clamp(37px, 10vw, 49px);
        line-height: 1.12;
        letter-spacing: -.8px;
    }

    .hero p {
        margin-bottom: 23px;
        font-size: 15px;
        line-height: 1.8;
    }

    .cta {
        gap: 10px;
    }

    .hero .cta {
        align-items: stretch;
        flex-direction: column;
    }

    .hero .cta .btn {
        width: 100%;
    }

    .btn {
        min-height: 47px;
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Imagens do destaque */

    .coll {
        height: 350px;
        gap: 8px;
    }

    .c1 {
        border-radius: 130px 130px 5px 5px;
    }

    .c2 {
        border-radius: 5px 5px 5px 75px;
    }

    .c3 {
        border-radius: 5px;
    }

    /* Formação */

    .creds {
        padding: 20px 0;
        font-size: 12px;
    }

    .creds .w {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 10px;
    }

    .creds span {
        line-height: 1.6;
    }

    /* Seções */

    section {
        padding: 58px 0;
    }

    .sec-h {
        margin-bottom: 32px;
    }

    .sec-h h2 {
        margin-bottom: 12px;
        font-size: 35px;
        line-height: 1.15;
    }

    .sec-h p {
        font-size: 14px;
        line-height: 1.8;
    }

    /* Serviços */

    .row {
        gap: 25px;
        margin-bottom: 55px;
    }

    .row h3 {
        margin-bottom: 13px;
        font-size: 32px;
    }

    .row p {
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.85;
    }

    .row li {
        padding: 11px 0;
        font-size: 13px;
    }

    .ph {
        gap: 8px;
    }

    .ph.two {
        grid-template-columns: 1fr 1fr;
    }

    .ph.two div {
        aspect-ratio: 3 / 4;
    }

    .ph .off {
        margin-top: 22px;
    }

    .ph.one div {
        aspect-ratio: 4 / 3;
    }

    /* Outros serviços */

    .more {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .more div {
        padding: 21px 0;
    }

    .more h3 {
        font-size: 24px;
    }

    .more p {
        font-size: 14px;
        line-height: 1.8;
    }

    /* Ambiente */

    .amb {
        min-height: 340px;
    }

    .amb .w {
        padding-bottom: 30px;
    }

    .amb h2 {
        max-width: 450px;
        font-size: 35px;
        line-height: 1.2;
    }

    .amb::after {
        background: linear-gradient(0deg,
                rgba(236, 226, 211, .97) 0%,
                rgba(236, 226, 211, .65) 45%,
                rgba(236, 226, 211, .08) 100%);
    }

    /* Sobre */

    .about .w {
        gap: 28px;
    }

    .about .ph {
        max-width: 300px;
    }

    .about .ph div {
        aspect-ratio: 4 / 5;
    }

    .about h2 {
        margin-bottom: 17px;
        font-size: 36px;
    }

    .about p {
        margin-bottom: 13px;
        font-size: 14px;
        line-height: 1.9;
    }

    /* Avaliações */

    .track {
        gap: 17px;
        margin-right: -18px;
        padding-right: 18px;
    }

    .q {
        flex-basis: 88%;
        padding-top: 18px;
    }

    .q p {
        font-size: 20px;
    }

    /* Galeria */

    .gal {
        gap: 8px;
    }

    .gal a {
        border-radius: 4px;
    }

    /* Contato */

    .ct h2 {
        font-size: 38px;
        line-height: 1.15;
    }

    .ct p {
        margin-bottom: 25px;
        font-size: 14px;
        line-height: 1.8;
    }

    .ct .cta {
        flex-direction: column;
        align-items: stretch;
    }

    .ct .cta .btn {
        width: 100%;
    }

    /* Rodapé */

    footer {
        padding: 25px 20px 35px;
        font-size: 12px;
    }

    /* WhatsApp */

    .fab {
        right: 17px;
        bottom: calc(17px + env(safe-area-inset-bottom, 0px));
        width: 53px;
        height: 53px;
    }

    .fab svg {
        width: 25px;
        height: 25px;
    }
}

/* =========================================
   CELULARES PEQUENOS
========================================= */

@media (max-width: 380px) {

    .w {
        width: calc(100% - 30px);
    }

    .logo {
        font-size: 19px;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero p {
        font-size: 14px;
    }

    .coll {
        height: 300px;
    }

    .sec-h h2 {
        font-size: 31px;
    }

    .row h3 {
        font-size: 29px;
    }

    .amb h2 {
        font-size: 31px;
    }

    .about h2 {
        font-size: 32px;
    }

    .ct h2 {
        font-size: 34px;
    }

    .creds .w {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* =========================================
   TELAS GRANDES
========================================= */

@media (min-width: 1440px) {

    .w {
        max-width: 1220px;
    }

    .hero {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .coll {
        height: 600px;
    }

    section {
        padding: 110px 0;
    }
}

/* =========================================
   ACESSIBILIDADE E MOVIMENTAÇÃO
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Evita seleção acidental em elementos de interface */

button,
.fab {
    -webkit-tap-highlight-color: transparent;
}

/* Garante que imagens e textos não provoquem
   rolagem horizontal em telas pequenas */

main,
section,
header,
footer {
    max-width: 100%;
}