/* ========================================
   ÍNDICE DE TRATAMENTOS
   Cards premium, diretos e identificáveis
   ======================================== */


/* ========================================
   CABEÇALHO DA SEÇÃO
   ======================================== */

.tile-header {
    max-width: 720px;
    margin: 0 0 48px;
}

.tile-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 17px;

    color: var(--champagne, #c89b6d);

    font-size: 0.7rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tile-header .eyebrow::before {
    content: "";

    width: 28px;
    height: 1px;

    background: currentColor;
}

.tile-header h2 {
    max-width: 680px;
    margin: 0;

    color: var(--green-950, #042f2a);

    font-family:
        var(--font-display, "Cormorant Garamond"),
        Georgia,
        serif;

    font-size: clamp(2.7rem, 4.3vw, 4.35rem);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.045em;

    text-wrap: balance;
}


/* ========================================
   GRID
   ======================================== */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* ========================================
   CARD
   ======================================== */

.treatment-tile {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    min-height: 330px;
    padding: 30px 28px 27px;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 92% 0%,
            rgba(200, 155, 109, 0.18),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            var(--green-950, #042f2a) 0%,
            #064c44 100%
        );

    color: #ffffff;
    text-decoration: none;

    box-shadow:
        0 24px 58px rgba(4, 47, 42, 0.2),
        0 7px 20px rgba(0, 0, 0, 0.04);

    isolation: isolate;

    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.4s ease,
        background-color 0.35s ease;
}


/* Linha superior dourada */

.treatment-tile::before {
    content: "";
    position: absolute;
    top: 0;
    right: 26px;
    left: 26px;
    z-index: 1;

    height: 2px;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 155, 109, 0.85) 45%,
        transparent 100%
    );

    opacity: 0;

    transform: scaleX(0.35);
    transform-origin: center;

    transition:
        opacity 0.35s ease,
        transform 0.4s ease;
}


/* Círculo decorativo inferior */

.treatment-tile::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -64px;
    z-index: 0;

    width: 160px;
    height: 160px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.025),
        transparent 68%
    );

    pointer-events: none;

    transition:
        transform 0.45s ease,
        border-color 0.35s ease;
}

.treatment-tile:hover {
    transform: translateY(-9px);

    border-color: rgba(200, 155, 109, 0.5);

    box-shadow:
        0 36px 80px rgba(4, 47, 42, 0.29),
        0 12px 28px rgba(0, 0, 0, 0.07);
}

.treatment-tile:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.treatment-tile:hover::after {
    border-color: rgba(200, 155, 109, 0.25);

    transform: scale(1.18);
}

.treatment-tile:focus-visible {
    outline: 3px solid rgba(200, 155, 109, 0.6);
    outline-offset: 5px;

    border-color: var(--champagne, #c89b6d);
}


/* ========================================
   NÚMERO EM MARCA-D'ÁGUA
   ======================================== */

.tile-watermark {
    position: absolute;
    top: 15px;
    right: 22px;
    z-index: 0;

    color: rgba(255, 255, 255, 0.085);

    font-family:
        var(--font-display, "Cormorant Garamond"),
        Georgia,
        serif;

    font-size: clamp(4.6rem, 5vw, 6.2rem);
    line-height: 0.8;
    font-weight: 700;
    letter-spacing: -0.05em;

    pointer-events: none;

    transition:
        color 0.35s ease,
        transform 0.4s ease;
}

.treatment-tile:hover .tile-watermark {
    color: rgba(200, 155, 109, 0.26);

    transform: translateY(-3px);
}


/* ========================================
   TÍTULO
   ======================================== */

.treatment-tile h3 {
    position: relative;
    z-index: 2;

    max-width: 210px;
    margin: 90px 0 16px;

    color: #c89b6d;

    font-family:
        var(--font-display, "Cormorant Garamond"),
        Georgia,
        serif;

    font-size: clamp(1.7rem, 2vw, 2.1rem);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.025em;

    text-wrap: balance;
}


/* ========================================
   TEXTO DE IDENTIFICAÇÃO
   ======================================== */

.tile-question {
    position: relative;
    z-index: 2;

    flex: 1;

    margin: 0;
    padding: 0;

    border: 0;

    color: rgba(255, 255, 255, 0.74);

    font-family:
        var(--font-body, "Manrope"),
        Arial,
        sans-serif;

    font-size: 0.88rem;
    line-height: 1.7;
    font-style: normal;
    font-weight: 500;

    transition: color 0.3s ease;
}

.treatment-tile:hover .tile-question {
    color: rgba(255, 255, 255, 0.9);
}


/* ========================================
   SETA
   ======================================== */

.tile-arrow {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-top: 24px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;

    font-size: 1rem;
    line-height: 1;

    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.treatment-tile:hover .tile-arrow {
    transform: translateX(6px);

    border-color: var(--champagne, #c89b6d);

    background: var(--champagne, #c89b6d);
    color: var(--green-950, #042f2a);

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.17);
}


/* ========================================
   ENTRADA ESCALONADA
   ======================================== */

.tile-grid .treatment-tile:nth-child(1) {
    --reveal-delay: 0.04s;
}

.tile-grid .treatment-tile:nth-child(2) {
    --reveal-delay: 0.11s;
}

.tile-grid .treatment-tile:nth-child(3) {
    --reveal-delay: 0.18s;
}

.tile-grid .treatment-tile:nth-child(4) {
    --reveal-delay: 0.25s;
}


/* ========================================
   DESKTOP MENOR
   ======================================== */

@media (max-width: 1180px) {
    .tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .treatment-tile {
        min-height: 290px;
    }

    .treatment-tile h3 {
        max-width: 300px;
        margin-top: 72px;
    }
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 800px) {
    .tile-header {
        margin-bottom: 38px;
    }

    .tile-header h2 {
        font-size: clamp(2.5rem, 8vw, 3.7rem);
    }

    .tile-grid {
        gap: 14px;
    }

    .treatment-tile {
        min-height: 275px;
        padding: 27px 25px 24px;

        border-radius: 24px;
    }

    .tile-watermark {
        top: 17px;
        right: 19px;
    }

    .treatment-tile h3 {
        margin-top: 66px;
    }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 580px) {
    .tile-header {
        margin-bottom: 32px;
    }

    .tile-grid {
        grid-template-columns: 1fr;
    }

    .treatment-tile {
        min-height: 255px;
        padding: 25px 23px 23px;

        border-radius: 22px;
    }

    .treatment-tile h3 {
        max-width: calc(100% - 85px);
        margin-top: 55px;

        font-size: 1.8rem;
    }

    .tile-question {
        max-width: 92%;

        font-size: 0.86rem;
        line-height: 1.65;
    }

    .tile-arrow {
        width: 40px;
        height: 40px;
        margin-top: 20px;
    }
}


/* ========================================
   MOBILE PEQUENO
   ======================================== */

@media (max-width: 390px) {
    .treatment-tile {
        min-height: 270px;
    }

    .treatment-tile h3 {
        margin-top: 58px;
    }

    .tile-question {
        max-width: 100%;
    }
}


/* ========================================
   ACESSIBILIDADE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .treatment-tile,
    .treatment-tile::before,
    .treatment-tile::after,
    .tile-watermark,
    .tile-question,
    .tile-arrow {
        transition: none;
    }

    .treatment-tile:hover,
    .treatment-tile:hover .tile-watermark,
    .treatment-tile:hover .tile-arrow {
        transform: none;
    }
}