@import url("../fonts/fonts.css");

:root {
    color-scheme: light;
    --surface: #ffffff;
    --bg: #faf8f4;
    --surface-warm: #faf8f4;
    --dark: #1c1b19;
    --fg: #1c1b19;
    --fg-2: #4b4740;
    --muted: #746d63;
    --meta: #966037;
    --border: #ded6c9;
    --accent: #a06a3b;
    --accent-on: #ffffff;
    --accent-hover: #905f35;
    --accent-hover-on: #ffffff;
    --on-soft: #1c1b19;
    --soft-muted: #4b4740;
    --soft-meta: #966037;
    --soft-border: #ded6c9;
    --on-dark: #ffffff;
    --dark-muted: #dedbd6;
    --dark-border: #76716b;
    --font-body: "Manrope", system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
    --font-mono: ui-monospace, "Courier New", monospace;
    --container-max: 1160px;
    --motion-fast: 170ms;
    --motion-base: 280ms;
    --ease-standard: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--surface); color: var(--fg); font: 1rem/1.65 var(--font-body); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
a, button, input, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}
:where(h1, h2, h3, p, strong) { overflow-wrap: break-word; }
:where(section[id], #catalogo-indisponivel) { scroll-margin-top: 108px; }
.container { width: min(100% - 32px, var(--container-max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 12px 18px; color: #fff; background: #152435; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; min-height: 76px; padding: 14px max(16px, calc((100vw - var(--container-max)) / 2)); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #fff; transition: background var(--motion-base), color var(--motion-base), box-shadow var(--motion-base); }
.js .site-header { position: fixed; height: 76px; flex-wrap: nowrap; }
.site-header.is-scrolled, .site-header.nav-open { background: var(--surface); color: var(--fg); box-shadow: 0 1px 0 var(--border); }
.brand { display: flex; align-items: center; gap: 10px; line-height: 1.1; text-decoration: none; color: inherit; flex-shrink: 0; max-width: 48%; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 18px; font-weight: 700; letter-spacing: .13em; }
.brand-copy > span { margin-top: 6px; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.brand-logo { width: 48px; height: 44px; object-fit: contain; object-position: center; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nav a, .footer a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a { padding-block: 10px; }
.nav a:hover, .footer a:hover { text-decoration: underline; }
.header-cta, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 0; text-decoration: none; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.4; transition: transform var(--motion-fast), background var(--motion-fast), color var(--motion-fast); }
.header-cta { display: none; background: var(--surface); color: var(--fg); border-color: var(--border); }
.header-cta:hover { background: var(--bg); color: var(--on-soft); transform: translateY(-2px); }
.menu-toggle { border: 1px solid currentColor; background: transparent; color: inherit; font-weight: 600; font-size: 13px; min-width: 64px; min-height: 44px; padding: 10px; }
.js .nav { position: absolute; top: 76px; left: 0; width: 100%; max-height: calc(100svh - 76px); overflow-y: auto; padding: 14px 16px 24px; background: var(--surface); color: var(--fg); display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border); }
.js .nav a { min-height: 44px; }

.hero { min-height: 100vh; min-height: 100svh; position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #15202c; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { z-index: -2; animation: cinema 18s ease-in-out infinite alternate; }
.hero-image picture, .hero-image img { width: 100%; height: 100%; }
.hero-image img { object-fit: cover; object-position: 58% center; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 24, .79), rgba(10, 18, 24, .47) 68%, rgba(10, 18, 24, .22)); }
.hero-shade { z-index: -1; background: linear-gradient(0deg, rgba(10, 18, 24, .52), transparent 70%); }
.hero-content { padding-block: 150px 70px; max-width: min(100% - 32px, 820px); margin-inline: max(16px, calc((100% - var(--container-max)) / 2)); }
.eyebrow { font: 12px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .13em; margin: 0 0 19px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.hero h1 { font-size: clamp(2.65rem, 6.4vw, 5.25rem); max-width: 800px; white-space: pre-line; }
.hero-lead { max-width: 490px; font-size: clamp(1rem, 1.5vw, 1.1875rem); margin: 24px 0 32px; color: #f2f5f7; }
.hero-actions, .final-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions { align-items: stretch; flex-direction: column; }
.btn-primary { background: var(--accent); color: var(--accent-on); border-color: color-mix(in srgb, var(--accent), var(--accent-on) 24%); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-hover-on); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-quiet { color: #fff; border-color: #aeb5bb; background: rgba(10, 18, 24, .18); }
.btn-quiet:hover { background: rgba(10, 18, 24, .65); transform: translateY(-2px); }
.btn span { font-size: 18px; margin-left: 8px; }
.hero-code { display: none; position: absolute; right: max(24px, calc((100vw - var(--container-max)) / 2)); bottom: 82px; margin: 0; font: 12px/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; text-align: right; color: #fff; }
.hero-code span { font-size: 12px; }

.section { padding-block: 64px; }
.section-mark { font: 12px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 32px; }
h2 { font-size: clamp(2.05rem, 4.3vw, 3.75rem); }
.intro-grid { display: grid; gap: 30px; }
.intro-copy { max-width: 480px; color: var(--fg-2); }
.intro-copy p { margin: 0 0 26px; }
.text-link { color: var(--fg); text-decoration: none; border-bottom: 1px solid; padding-block: 8px; font-size: 14px; font-weight: 700; display: inline-block; }
.text-link span { margin-left: 8px; }
.clinic-photo { height: 350px; margin: 44px 0 0; position: relative; background: var(--bg); overflow: hidden; }
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; }
.clinic-photo figcaption { position: absolute; inset: auto 0 0; padding: 45px 20px 20px; background: linear-gradient(transparent, rgba(10, 18, 24, .86)); color: #fff; font-size: 14px; }
.clinic-photo figcaption span { display: block; font-size: 12px; }
.treatments, .process { background: var(--bg); color: var(--on-soft); --fg: var(--on-soft); --fg-2: var(--soft-muted); --muted: var(--soft-muted); --border: var(--soft-border); --meta: var(--soft-meta); }
.section-top { display: grid; gap: 24px; margin-bottom: 44px; }
.section-top > p { max-width: 340px; margin: 0; color: var(--fg-2); }
.eyebrow-dark { color: var(--meta); }
.treatment-list { border-top: 1px solid var(--border); }
.treatment { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--border); min-height: 90px; padding-block: 18px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 24px; gap: 6px; align-items: center; transition: padding var(--motion-fast); }
.treatment span { font: 12px var(--font-mono); color: var(--muted); }
.treatment strong { font: 500 clamp(1.4rem, 2.8vw, 2rem)/1.2 var(--font-display); }
.treatment i { font-style: normal; font-size: 22px; }
.treatment:hover { padding-inline: 10px; }
.values-grid { display: grid; gap: 40px; }
.values { border-top: 1px solid var(--border); }
.values article { border-bottom: 1px solid var(--border); padding: 21px 0 23px; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
.values article span { font: 12px var(--font-mono); color: var(--meta); padding-top: 5px; }
.values h3 { font-size: 26px; }
.values p { grid-column: 2; margin: 8px 0 0; color: var(--fg-2); max-width: 440px; }
.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); display: grid; }
.steps li { padding: 25px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.steps span { font: 12px var(--font-mono); color: var(--meta); }
.steps h3 { font-size: 28px; margin: 10px 0; }
.steps p { margin: 0; color: var(--fg-2); }
.technology { display: grid; background: var(--dark); color: var(--on-dark); }
.technology-photo { min-width: 0; }
.technology-photo img { width: 100%; height: 100%; min-height: 320px; max-height: 620px; object-fit: cover; object-position: center; }
.technology-copy { padding: 56px 16px; min-width: 0; }
.technology-copy p:not(.eyebrow) { color: var(--dark-muted); max-width: 470px; margin: 25px 0 32px; }
.btn-outline, .dark-quiet { color: var(--on-dark); border-color: var(--dark-border); background: transparent; }
.btn-outline:hover, .dark-quiet:hover { background: var(--on-dark); color: var(--dark); transform: translateY(-2px); }
.demo-note { font: 12px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.quotes { display: grid; gap: 16px; }
.quotes blockquote { margin: 0; padding: 24px 0; border-top: 1px solid var(--border); display: flex; min-height: 215px; flex-direction: column; justify-content: space-between; gap: 28px; }
.quotes p { font: 500 25px/1.3 var(--font-display); margin: 0; }
.quotes footer { font-size: 14px; font-weight: 700; }
.quotes footer span { font-weight: 400; color: var(--muted); }
.faq { display: grid; gap: 38px; }
.faq-list { border-top: 1px solid var(--border); min-width: 0; }
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 16px; min-height: 28px; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 22px; font-weight: 400; line-height: 1; transition: transform var(--motion-fast); }
details[open] summary span { transform: rotate(45deg); }
details p { color: var(--fg-2); max-width: 580px; margin: 16px 24px 0 0; }
.final-cta { background: var(--dark); color: var(--on-dark); padding-block: 80px; }
.final-inner { max-width: 760px; }
.final-cta h2 { margin-bottom: 20px; }
.final-cta p:not(.eyebrow) { max-width: 540px; color: var(--dark-muted); margin: 0 0 31px; }
.catalog-notice { border: 1px solid var(--dark-border); padding: 20px; margin-top: 30px; }
.catalog-notice strong { display: block; margin-bottom: 8px; }
.catalog-notice p { font-size: 14px; margin: 0 !important; }
.footer { min-height: 130px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px 90px; color: var(--fg-2); font-size: 14px; }
.footer p { margin: 0; }
.brand-footer { color: var(--fg); }
.reveal { transition: opacity 650ms var(--ease-standard), transform 650ms var(--ease-standard); }
.reveal-pending { opacity: 0; transform: translateY(18px); }
@keyframes cinema { to { transform: scale(1.04); } }

/* O painel mantém suas próprias cores para continuar legível em qualquer paleta. */
.theme-launcher { position: fixed; z-index: 25; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid #bdc6d0; border-radius: 999px; background: #fff; color: #182432; font-size: 14px; box-shadow: 0 4px 22px #0002; }
.theme-dialog { position: fixed; inset: auto 16px 76px auto; margin: 0; padding: 24px; width: min(430px, calc(100% - 32px)); max-height: calc(100svh - 108px); overflow: auto; overscroll-behavior: contain; color: #182432; background: #fff; border: 1px solid #cbd2d9; border-radius: 16px; box-shadow: 0 20px 70px #0003; font-size: 14px; }
.theme-dialog::backdrop { background: rgba(10, 18, 24, .35); }
.theme-dialog-open { overflow: hidden; }
.theme-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.theme-kicker { font-size: 12px; letter-spacing: .08em; color: #505e6c; margin: 0 0 5px; }
.theme-dialog h2 { font-family: var(--font-body); font-size: 25px; letter-spacing: -.03em; font-weight: 700; }
.theme-close { flex-shrink: 0; font-size: 28px; line-height: 1; width: 44px; height: 44px; margin: -10px -10px 0 0; border: 0; border-radius: 50%; color: #182432; background: #f0f3f6; }
.theme-dialog p { margin: 14px 0; }
.theme-dialog fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.theme-dialog legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 10px; }
.theme-preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.theme-preset-grid button { background: #fff; color: #263545; border: 1px solid #b6c0cb; border-radius: 8px; min-height: 44px; padding: 8px; font-size: 14px; }
.theme-preset-grid button[aria-pressed="true"] { border: 2px solid #263545; background: #edf2f7; font-weight: 700; }
.theme-color-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding-block: 7px; }
.theme-color-row > label { font-size: 14px; }
.theme-color-controls { display: flex; align-items: center; gap: 8px; }
.theme-dialog input[type="color"] { width: 44px; height: 42px; padding: 3px; background: #fff; border: 1px solid #b6c0cb; border-radius: 6px; cursor: pointer; }
.theme-dialog input[type="text"] { width: 88px; height: 42px; padding: 6px; border: 1px solid #b6c0cb; border-radius: 6px; color: #263545; background: #fff; font: 14px var(--font-mono); }
.theme-dialog input[aria-invalid="true"] { border: 2px solid #b42318; }
.theme-help { color: #505e6c; font-size: 13px; line-height: 1.55; }
.theme-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.theme-button { min-height: 44px; padding: 9px 12px; border: 1px solid #b6c0cb; border-radius: 8px; background: #fff; color: #263545; font-size: 14px; }
.theme-button-primary { background: #263545; color: #fff; border-color: #263545; }
.theme-status { min-height: 22px; color: #263545; font-size: 13px; }
#theme-export-fallback { margin-top: 20px; }
#theme-export-fallback label { display: block; font-weight: 700; margin-bottom: 8px; }
#theme-export-code { width: 100%; resize: vertical; min-height: 160px; padding: 10px; color: #263545; background: #f4f6f8; border: 1px solid #b6c0cb; border-radius: 6px; font: 13px/1.5 var(--font-mono); }
#theme-export-code:focus-visible { outline: 2px solid #263545; outline-offset: 3px; }

@media (min-width: 600px) {
    .hero-actions { flex-direction: row; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
}
@media (min-width: 768px) {
    .container { width: min(100% - 48px, var(--container-max)); }
    .hero-content { padding-block: 160px 14vh; max-width: min(100% - 48px, 820px); margin-inline: max(24px, calc((100% - var(--container-max)) / 2)); }
    .hero-code { display: block; }
    .section { padding-block: 80px; }
    .intro-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; }
    .clinic-photo { height: 480px; }
    .section-top { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); align-items: end; gap: 44px; }
    .values-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; }
    .technology { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
    .technology-photo img { max-height: none; }
    .technology-copy { padding: 64px 32px; align-self: center; }
    .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
    .quotes blockquote { min-height: 290px; }
    .faq { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; }
    .final-cta { padding-block: 100px; }
}
@media (min-width: 1000px) {
    .site-header, .js .site-header { height: 90px; padding-inline: max(24px, calc((100vw - var(--container-max)) / 2)); gap: 24px; }
    .js .nav, .nav { position: static; flex-direction: row; flex-wrap: nowrap; width: auto; max-height: none; overflow: visible; padding: 0; background: transparent; border: 0; color: inherit; gap: 22px; }
    .header-cta { display: inline-flex; white-space: nowrap; }
    .menu-toggle { display: none; }
    .brand { max-width: 220px; }
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
    .steps li { padding: 26px 20px; border-right: 1px solid var(--border); border-bottom: 0; }
    .steps li:first-child { padding-left: 0; }
    .steps li:last-child { border-right: 0; padding-right: 0; }
    .footer { padding-block: 32px; }
}
@media (min-width: 1200px) {
    .section { padding-block: 112px; }
    .intro-grid { gap: 72px; }
    .clinic-photo { height: 570px; }
    .values-grid, .faq { gap: 80px; }
    .technology-copy { padding: 92px clamp(40px, 6vw, 120px) 92px clamp(48px, 7vw, 140px); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal-pending { opacity: 1; transform: none; }
}
