/* =====================================================================
   Implantes Brasília — Folha de estilos principal
   Reconstrução fiel do site original (Dr. Douglas Goulart — Mavie).
     1. Design tokens (:root)
     2. Reset / base
     3. Tipografia / cabeçalhos de seção (eyebrow + heading)
     4. Layout (container, seções)
     5. Botões
     6. Hero (escuro, com foto do Dr. Douglas)
     7. Para Quem É? (2 colunas: ícones + foto)
     8. Benefícios (cards)
     9. Antes e Depois / Depoimentos → carousel.css
    10. Tratamento (vídeo)
    11. Contato (escuro: info + formulário)
    12. Mapa
    13. Rodapé (preto)
    14. WhatsApp flutuante
    15. Alertas / animações / responsivo
   ===================================================================== */

/* ------------------------------------------------------------------
   0. Fontes (Poppins, hospedada localmente)
------------------------------------------------------------------ */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/poppins-300-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-500-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins-700-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------
   1. Design tokens
------------------------------------------------------------------ */
:root {
    /* Paleta fiel ao site original */
    --color-gold:        #916D2D;
    --color-gold-beige:  #B49B63;
    --color-light-gold:  #CFBC8C;
    --color-cream-gold:  #E7CF97;
    --color-taupe:       #C0BAA9;
    --color-charcoal:    #3A3936;
    --color-near-black:  #373435;
    --color-cream:       #FFFDF8;
    --color-beige-bg:    #F1EDE6;  /* fundo claro das seções (benefícios/tratamento) */
    --color-white:       #FFFFFF;

    /* Seções escuras (hero / contato / rodapé) */
    --color-dark:        #2B2A26;
    --color-darker:      #201F1B;
    --color-black:       #000000;
    --color-on-dark:     #EDE9E1;  /* texto sobre fundo escuro */
    --color-on-dark-dim: #B9B4A9;

    --color-whatsapp:    #25D366;

    /* Tipografia */
    --font-primary: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Espaçamentos */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-width: 1140px;
    --container-narrow: 820px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(58, 57, 54, 0.08);
    --shadow:    0 8px 30px rgba(58, 57, 54, 0.12);
    --shadow-lg: 0 14px 40px rgba(58, 57, 54, 0.18);

    --t-fast: 0.15s ease;
    --t: 0.3s ease;
}

/* ------------------------------------------------------------------
   2. Reset / base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-charcoal);
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

a { color: var(--color-gold); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-near-black); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
iframe { border: 0; }
address { font-style: normal; }

:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--color-near-black);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------
   3. Tipografia / cabeçalhos de seção
------------------------------------------------------------------ */
h1, h2, h3, h4 {
    margin: 0 0 var(--space-md);
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-charcoal);
}
p { margin: 0 0 var(--space-md); }

/* Padrão do original: pequeno rótulo dourado em caixa alta + título grande escuro */
.section-head {
    text-align: center;
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-2xl);
}
.section-eyebrow {
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.95rem;
    margin: 0 0 var(--space-sm);
}
.section-heading {
    color: var(--color-charcoal);
    font-weight: 700;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 0;
}
.section-head--left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}
.section-head--left .section-eyebrow,
.section-head--left .section-heading { text-align: left; }

/* ------------------------------------------------------------------
   4. Layout
------------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.section { padding-block: var(--space-3xl); }

.section-para-quem   { background: var(--color-cream); }
.section-beneficios  { background: var(--color-beige-bg); }
.section-antes-depois{ background: var(--color-cream); }
.section-depoimentos { background: var(--color-cream); }
.section-tratamento  { background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-beige-bg) 45%, var(--color-cream) 100%); }

.section-cta { text-align: center; margin-top: var(--space-2xl); }
.section-cta--left { text-align: left; }

/* ------------------------------------------------------------------
   5. Botões  (pílula dourada do original)
------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.95rem 2.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t), color var(--t), box-shadow var(--t);
    text-align: center;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-beige) 0%, var(--color-light-gold) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-beige) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow);
}

.btn-lg { padding: 1.05rem 2.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------
   6. Hero
------------------------------------------------------------------ */
.hero {
    position: relative;
    background: var(--color-dark) url("../images/hero-bg.webp") no-repeat center right;
    background-size: cover;
    min-height: clamp(560px, 56vw, 780px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
/* Gradiente escuro à esquerda para garantir contraste do texto (como no original) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(26, 25, 21, 0.92) 0%,
        rgba(26, 25, 21, 0.75) 32%,
        rgba(26, 25, 21, 0.35) 52%,
        rgba(26, 25, 21, 0) 68%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-text {
    position: relative;
    max-width: 540px;
}

.hero-watermark {
    position: absolute;
    top: -84px;
    left: -6px;
    width: 210px;
    opacity: 0.16;
    pointer-events: none;
    filter: brightness(1.4);
}

.hero-text h1 {
    color: var(--color-white);
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-on-dark);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-doctor-mobile { display: none; }

/* ------------------------------------------------------------------
   7. Para Quem É?
------------------------------------------------------------------ */
.para-quem-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
    align-items: center;
}

.para-quem-content .section-head { margin-bottom: var(--space-xl); }

.pq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-xl);
}
.pq-item { display: flex; flex-direction: column; gap: var(--space-sm); }
.pq-item img { width: 56px; height: 56px; object-fit: contain; }
.pq-text {
    font-size: 1rem;
    color: var(--color-charcoal);
    line-height: 1.5;
    font-weight: 500;
}

.para-quem-photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* ------------------------------------------------------------------
   8. Benefícios (cards)
------------------------------------------------------------------ */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
.beneficio-card {
    grid-column: span 1;
    background: var(--color-white);
    border: 1px solid rgba(58, 57, 54, 0.10);
    border-radius: var(--radius);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.beneficio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.beneficio-card--wide { grid-column: 1 / -1; }
.beneficio-icon { width: 64px; height: 64px; object-fit: contain; }
.beneficio-text {
    font-size: 1rem;
    color: var(--color-charcoal);
    line-height: 1.5;
    margin: 0;
}

/* ------------------------------------------------------------------
   10. Tratamento (vídeo)
------------------------------------------------------------------ */
.video-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    background: var(--color-near-black);
}
.video-overlay {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}
.video-overlay img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background var(--t);
}
.video-play svg {
    width: 84px; height: 84px;
    color: var(--color-white);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform var(--t);
}
.video-overlay:hover .video-play { background: rgba(0, 0, 0, 0.4); }
.video-overlay:hover .video-play svg { transform: scale(1.1); }
.video-wrap iframe { width: 100%; height: 100%; }

/* ------------------------------------------------------------------
   11. Contato (seção escura)
------------------------------------------------------------------ */
.section-contato {
    background-color: var(--color-darker);
    background-image: linear-gradient(180deg, rgba(32,31,27,0) 60%, var(--color-darker) 100%), url("../images/contato-bg.webp");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    color: var(--color-on-dark);
}
.section-contato .section-head { text-align: left; max-width: none; margin-bottom: var(--space-2xl); }
.section-contato .section-heading { color: var(--color-white); }

.contato-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contato-block-title {
    color: var(--color-gold-beige);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 var(--space-md);
}
.contato-endereco-title { margin-top: var(--space-xl); }

.contato-list { display: grid; gap: var(--space-sm); }
.contato-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--color-on-dark);
}
.contato-list a { color: var(--color-on-dark); }
.contato-list a:hover { color: var(--color-cream-gold); }

.contato-address {
    display: flex;
    gap: var(--space-sm);
    color: var(--color-on-dark);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 340px;
}

.ic {
    width: 20px;
    height: 20px;
    color: var(--color-gold-beige);
    fill: currentColor;
    flex-shrink: 0;
}
i.ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

/* Formulário (card escuro) */
.contato-form-wrap {
    background: rgba(58, 57, 54, 0.55);
    border: 1px solid rgba(180, 155, 99, 0.25);
    padding: var(--space-xl);
    border-radius: var(--radius);
    backdrop-filter: blur(2px);
}
.contato-form-intro {
    color: var(--color-cream-gold);
    margin-bottom: var(--space-lg);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
}
.form-field { margin-bottom: var(--space-md); }
.form-field label {
    position: absolute;
    left: -9999px;
}
.form-field input {
    width: 100%;
    padding: 1rem 1.2rem;
    font: inherit;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(180, 155, 99, 0.35);
    border-radius: 50px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-field input:focus {
    outline: none;
    border-color: var(--color-gold-beige);
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 0 0 0 3px rgba(180, 155, 99, 0.22);
}
.form-field input::placeholder { color: var(--color-on-dark-dim); }
.contato-form .btn { margin-top: var(--space-sm); }
.form-required {
    font-size: 0.82rem;
    color: var(--color-on-dark-dim);
    text-align: right;
    margin: var(--space-sm) 0 0;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* Mensagem de feedback inline (AJAX) */
.form-feedback {
    margin-bottom: var(--space-md);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}
.form-feedback.is-success {
    background: rgba(37, 211, 102, 0.14);
    color: #dff7e6;
    border-color: rgba(37, 211, 102, 0.5);
}
.form-feedback.is-error {
    background: rgba(220, 53, 69, 0.16);
    color: #ffd9dd;
    border-color: rgba(220, 53, 69, 0.5);
}

/* Campo com erro de validação */
.form-field.has-error input {
    border-color: rgba(220, 53, 69, 0.7);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Botão em estado de envio */
.btn.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}
.btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------
   12. Mapa
------------------------------------------------------------------ */
.section-map {
    width: 100%;
    line-height: 0;
}
.section-map iframe {
    display: block;
    width: 100%;
    height: 460px;
}

/* ------------------------------------------------------------------
   13. Rodapé (preto)
------------------------------------------------------------------ */
.site-footer {
    background: var(--color-black);
    color: var(--color-on-dark);
    padding-block: var(--space-2xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}
.footer-logo { width: 200px; height: auto; }

.footer-title {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}
.footer-contact { display: grid; gap: var(--space-sm); }
.footer-contact li,
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.95rem;
    color: var(--color-on-dark);
    line-height: 1.5;
}
.footer-contact a { color: var(--color-on-dark); }
.footer-contact a:hover { color: var(--color-cream-gold); }

/* ------------------------------------------------------------------
   14. WhatsApp flutuante
------------------------------------------------------------------ */
.whatsapp-float {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 90;
    width: 58px; height: 58px;
    display: grid;
    place-items: center;
    background: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-float:hover { transform: scale(1.08); color: var(--color-white); }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }
.whatsapp-float::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ------------------------------------------------------------------
   14. Alertas
------------------------------------------------------------------ */
.alert {
    max-width: var(--container-narrow);
    margin: 0 0 var(--space-2xl);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    border: 2px solid transparent;
}
.alert p { margin: 0; }
.alert-success {
    background: rgba(37, 211, 102, 0.14);
    color: #dff7e6;
    border-color: rgba(37, 211, 102, 0.5);
}
.alert-error {
    background: rgba(220, 53, 69, 0.16);
    color: #ffd9dd;
    border-color: rgba(220, 53, 69, 0.5);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------------
   15. Responsivo
------------------------------------------------------------------ */
@media (max-width: 960px) {
    .para-quem-grid,
    .contato-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .para-quem-photo { max-width: 460px; margin-inline: auto; order: -1; }
    .beneficios-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 760px) {
    .section { padding-block: var(--space-2xl); }

    .hero {
        background-image: none;
        background-color: var(--color-dark);
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding-top: var(--space-2xl);
        text-align: center;
    }
    .hero-text { max-width: none; }
    .hero-watermark { display: none; }
    .hero .btn { }
    .hero-doctor-mobile {
        display: block;
        width: 100%;
        max-width: 460px;
        height: clamp(480px, 112vw, 560px);
        margin: calc(var(--space-lg) - 100px) auto 0;
        object-fit: cover;
        object-position: center bottom;
    }

    .pq-list { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
    .beneficios-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-contato { background-size: auto 240px; }

    .whatsapp-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
    .container { padding-inline: var(--space-md); }
}

@media (max-width: 420px) {
    .pq-list { grid-template-columns: 1fr; }
    .hero-doctor-mobile { height: 470px; }
}

@media (min-width: 1500px) {
    :root { --container-width: 1240px; }
    body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .whatsapp-float::after { display: none; }
}

@media print {
    .whatsapp-float, .carousel-btn, .section-cta, .btn { display: none !important; }
    .section { padding-block: var(--space-md); }
}
