/* Dr. Mateus Souto — Cirurgia Plástica
   Global resets, keyframe animations and link states.
   Note: per-element visual styling (colors, spacing, layout) is authored
   inline on each element by design-system requirement, so this file only
   holds the rules that cannot be expressed inline. */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--c-black, #030303);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-gray-mid, #ACACAC);
}

::selection {
  background: #030303;
  color: #fff;
}

@keyframes faqFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(3, 3, 3, 0.28);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(3, 3, 3, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(3, 3, 3, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

    .problema-section {
        background: #030303;
        color: #ffffff;
        padding: clamp(64px, 10vw, 140px) clamp(24px, 6vw, 80px);
    }

    .problema-container {
        max-width: 1120px;
        margin: 0 auto;
    }

    .problema-apresentacao {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
        align-items: center;
        gap: clamp(40px, 7vw, 90px);
        margin-bottom: clamp(60px, 8vw, 95px);
    }

    .problema-label {
        display: inline-block;
        margin-bottom: 22px;
        color: #acacac;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .problema-conteudo h2 {
        max-width: 22ch;
        margin: 0 0 20px;
        font-family: "Bodoni Moda", serif;
        font-size: clamp(1.9rem, 3.6vw, 3rem);
        font-weight: 500;
        line-height: 1.2;
    }

    .problema-descricao {
        max-width: 62ch;
        margin: 0;
        color: #d2d2d2;
        font-size: clamp(1rem, 1.3vw, 1.15rem);
        line-height: 1.7;
    }

    .problema-video-card {
        position: relative;
        display: block;
        width: 100%;
        min-height: 440px;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 3px;
        background: #111111;
        color: #ffffff;
        cursor: pointer;
        isolation: isolate;
    }

    .problema-video-card::before {
        content: "";
        position: absolute;
        inset: 14px;
        z-index: 3;
        border: 1px solid rgba(255, 255, 255, 0.24);
        pointer-events: none;
        transition:
            inset 0.4s ease,
            border-color 0.4s ease;
    }

    .problema-video-card img {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform 0.8s cubic-bezier(0.16, 0.8, 0.3, 1);
    }

    .problema-video-overlay {
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.08) 20%,
                rgba(0, 0, 0, 0.82) 100%
            );
        transition: background 0.4s ease;
    }

    .problema-play {
        position: absolute;
        top: 50%;
        left: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 82px;
        height: 82px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        background: rgba(3, 3, 3, 0.38);
        backdrop-filter: blur(8px);
        transform: translate(-50%, -50%);
        transition:
            background 0.35s ease,
            color 0.35s ease,
            transform 0.35s ease;
    }

    .problema-play svg {
        margin-left: 4px;
    }

    .problema-video-texto {
        position: absolute;
        right: 34px;
        bottom: 32px;
        left: 34px;
        z-index: 4;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .problema-video-texto strong {
        font-size: 1rem;
        font-weight: 700;
    }

    .problema-video-texto small {
        margin-top: 5px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.8rem;
        letter-spacing: 0.05em;
    }

    .problema-video-card:hover img {
        transform: scale(1.045);
    }

    .problema-video-card:hover::before {
        inset: 10px;
        border-color: rgba(255, 255, 255, 0.48);
    }

    .problema-video-card:hover .problema-play {
        background: #ffffff;
        color: #030303;
        transform: translate(-50%, -50%) scale(1.08);
    }

    .problema-video-card:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 5px;
    }

    .problema-pontos {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(28px, 4vw, 40px);
    }

    .problema-ponto {
        padding-top: 22px;
        border-top: 1px solid #3a3a3a;
    }

    .problema-ponto-numero {
        color: #acacac;
        font-family: "Bodoni Moda", serif;
        font-size: 14px;
    }

    .problema-ponto h3 {
        margin: 12px 0 10px;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .problema-ponto p {
        margin: 0;
        color: #acacac;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    /* Modal */
    .video-modal {
        width: min(100% - 32px, 1050px);
        max-height: calc(100vh - 32px);
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: #ffffff;
    }

    .video-modal::backdrop {
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(7px);
    }

    .video-modal-conteudo {
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 4px;
        background: #090909;
        box-shadow: 0 35px 100px rgba(0, 0, 0, 0.65);
    }

    .video-modal-topo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 20px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .video-modal-topo span {
        display: block;
        margin-bottom: 5px;
        color: #929292;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
    }

    .video-modal-topo h2 {
        margin: 0;
        font-family: "Bodoni Moda", serif;
        font-size: clamp(1.2rem, 2.3vw, 1.7rem);
        font-weight: 500;
    }

    .video-modal-fechar {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 50%;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
        transition:
            background 0.25s ease,
            color 0.25s ease;
    }

    .video-modal-fechar:hover {
        background: #ffffff;
        color: #030303;
    }

    .video-modal-player {
        background: #000000;
    }

    .video-modal-player video {
        display: block;
        width: 100%;
        max-height: calc(100vh - 150px);
        background: #000000;
        object-fit: contain;
    }

    body.video-modal-aberto {
        overflow: hidden;
    }

    @media (max-width: 850px) {
        .problema-apresentacao {
            grid-template-columns: 1fr;
            gap: 42px;
        }

        .problema-conteudo h2 {
            max-width: 25ch;
        }

        .problema-video-card {
            min-height: auto;
            aspect-ratio: 4 / 5;
            max-width: 560px;
        }

        .problema-pontos {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 520px) {
        .problema-section {
            padding-right: 20px;
            padding-left: 20px;
        }

        .problema-video-card {
            aspect-ratio: 4 / 5;
        }

        .problema-play {
            width: 68px;
            height: 68px;
        }

        .problema-video-texto {
            right: 26px;
            bottom: 26px;
            left: 26px;
        }

        .video-modal {
            width: calc(100% - 20px);
            max-height: calc(100vh - 20px);
        }

        .video-modal-topo {
            padding: 15px;
        }

        .video-modal-player video {
            max-height: calc(100vh - 120px);
        }
    }
/* ==================================================
   MODAIS DE VÍDEO — FORMATO VERTICAL 9:16
   Utilizado nos dois vídeos
================================================== */

.video-modal {
    width: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
}

.video-modal::backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.video-modal-conteudo {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: #090909;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.65);
}

.video-modal-topo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.video-modal-topo > div {
    min-width: 0;
}

.video-modal-topo span {
    display: block;
    margin-bottom: 4px;
    color: #929292;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.video-modal-topo h2 {
    margin: 0;
    overflow: hidden;
    font-family: "Bodoni Moda", serif;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.video-modal-fechar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.video-modal-fechar:hover {
    background: #ffffff;
    color: #030303;
}

/*
 * A altura determina o tamanho.
 * A largura é calculada automaticamente pelo 9:16.
 */
.video-modal-player {
    height: min(78dvh, 760px);
    max-height: calc(100dvh - 100px);
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    overflow: hidden;
    background: #000000;
}

.video-modal-player video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000000;
}

body.video-modal-aberto {
    overflow: hidden;
}


/* ==================================================
   FOTO COM PLAYER — SEÇÃO SOBRE
================================================== */

.sobre-video-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #d2d2d2;
}

.sobre-video-card::after {
    content: "";
    position: absolute;
    inset: 15px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition:
        inset 0.4s ease,
        border-color 0.4s ease;
}

.sobre-video-card > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /*
     * Ajusta o enquadramento do médico.
     * Altere o 20% caso precise subir ou descer a foto.
     */
    object-position: center 20%;

    transition: transform 0.8s cubic-bezier(.16, 1, .3, 1);
}

.sobre-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 42%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

.sobre-video-legenda {
    position: absolute;
    right: 125px;
    bottom: 34px;
    left: 34px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    pointer-events: none;
}

.sobre-video-legenda span {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sobre-video-legenda strong {
    font-family: "Bodoni Moda", serif;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.15;
}

.sobre-video-play {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;

    background: rgba(3, 3, 3, 0.46);
    color: #ffffff;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    cursor: pointer;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.sobre-video-play svg {
    display: block;
    margin-left: 4px;
    pointer-events: none;
}

.sobre-video-play:hover {
    background: #ffffff;
    color: #030303;
    transform: scale(1.08);
}

.sobre-video-play:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 5px;
}

.sobre-video-card:hover > img {
    transform: scale(1.045);
}

.sobre-video-card:hover::after {
    inset: 10px;
    border-color: rgba(255, 255, 255, 0.55);
}


/* ==================================================
   RESPONSIVO
================================================== */

@media (max-width: 600px) {
    .video-modal {
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .video-modal-conteudo {
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .video-modal-topo {
        padding: 11px 13px;
    }

    .video-modal-topo span {
        display: none;
    }

    .video-modal-topo h2 {
        max-width: 230px;
        font-size: 1rem;
    }

    .video-modal-fechar {
        width: 38px;
        height: 38px;
    }

    .video-modal-player {
        height: min(79dvh, 700px);
        max-height: calc(100dvh - 76px);
    }

    .sobre-video-card {
        aspect-ratio: 4 / 5;
    }

    .sobre-video-card::after {
        inset: 10px;
    }

    .sobre-video-legenda {
        right: 100px;
        bottom: 24px;
        left: 24px;
    }

    .sobre-video-play {
        right: 21px;
        bottom: 21px;
        width: 62px;
        height: 62px;
    }
}

@media (max-height: 650px) {
    .video-modal-player {
        height: calc(100dvh - 90px);
    }

    .video-modal-topo {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .video-modal-fechar {
        width: 36px;
        height: 36px;
    }
}

/* ==================================================
   FAQ COM IMAGEM
================================================== */

.faq-section {
    scroll-margin-top: 90px;
    padding:
        clamp(64px, 10vw, 140px)
        clamp(24px, 6vw, 80px);
}

.faq-container {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.65fr);
    align-items: end;
    gap: clamp(44px, 6vw, 90px);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.faq-content {
    min-width: 0;
    width: 100%;
}

.faq-heading {
    max-width: 620px;
    margin-bottom: clamp(42px, 6vw, 64px);
}

.faq-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #acacac;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.faq-heading h2 {
    margin: 0;
    max-width: 25ch;
    font-family: "Bodoni Moda", serif;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 500;
    line-height: 1.15;
}

.faq-list {
    width: 100%;
    border-top: 1px solid #d2d2d2;
}

.faq-item {
    width: 100%;
    border-bottom: 1px solid #d2d2d2;
}

.faq-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 24px 0;
    border: 0;
    background: none;
    color: #030303;
    font-family: "Manrope", sans-serif;
    text-align: left;
    cursor: pointer;
}

.faq-question {
    min-width: 0;
    max-width: 680px;
    color: #030303;
    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    font-weight: 700;
    line-height: 1.45;
}

.faq-symbol {
    flex: 0 0 auto;
    color: #acacac;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.faq-answer {
    max-width: 660px;
    margin: -2px 44px 26px 0;
    animation: faqFade 0.3s ease;
    color: #4a4a4a;
    font-size: 0.98rem;
    line-height: 1.75;
}


/* Imagem lateral */

.faq-image {
    position: sticky;
    top: 120px;
    width: 100%;
    min-height: 590px;
    overflow: hidden;
    background: #d2d2d2;
}

.faq-image::after {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.faq-image img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s cubic-bezier(.16, 1, .3, 1);
}

.faq-image-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 45%,
        rgba(0, 0, 0, 0.75) 100%
    );
    pointer-events: none;
}

.faq-image-caption {
    position: absolute;
    right: 34px;
    bottom: 34px;
    left: 34px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.faq-image-caption span {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.faq-image-caption strong {
    max-width: 15ch;
    font-family: "Bodoni Moda", serif;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 500;
    line-height: 1.2;
}

.faq-image:hover img {
    transform: scale(1.035);
}


/* Tablet */

@media (max-width: 980px) {
    .faq-container {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(280px, 0.8fr);
        gap: 40px;
    }

    .faq-image {
        min-height: 520px;
    }

    .faq-button {
        gap: 16px;
    }

    .faq-question {
        font-size: 0.96rem;
    }
}


/* Mobile: imagem abaixo */

@media (max-width: 760px) {
    .faq-section {
        padding-right: 20px;
        padding-left: 20px;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .faq-content {
        order: 1;
    }

    .faq-image {
        position: relative;
        top: auto;
        order: 2;
        min-height: auto;
        aspect-ratio: 4 / 5;
    }

    .faq-heading {
        margin-bottom: 38px;
    }

    .faq-heading h2 {
        max-width: 19ch;
    }

    .faq-button {
        align-items: flex-start;
        padding: 21px 0;
    }

    .faq-question {
        max-width: none;
        padding-right: 4px;
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .faq-symbol {
        margin-top: 2px;
    }

    .faq-answer {
        margin-right: 30px;
        margin-bottom: 24px;
        font-size: 0.94rem;
    }

    .faq-image-caption {
        right: 25px;
        bottom: 25px;
        left: 25px;
    }
}