/* paleta sampleada da logo RM: marrom café + champanhe */
:root {
  --brown: #241812;
  --brown-2: #2E201A;
  --brown-3: #3B2A22;
  --gold: #C9A27E;
  --gold-lt: #E5CDAE;
  --cream: #F3ECE3;
  --cream-2: #E9DFD2;
  --text: #4A3A31;
  --mute: #7B6A5F;
  --mute-dark: #B5A394;
  --edge: clamp(20px, 4.4vw, 72px);
  --display: "Marcellus", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--brown);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.nw { white-space: nowrap; }
.wrap { padding-inline: var(--edge); max-width: 1400px; margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
h2 { font-size: clamp(2rem, 3.9vw, 3.5rem); letter-spacing: -0.01em; color: var(--brown-3); text-wrap: balance; }

.kicker {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  border-left: 3px solid var(--gold); padding-left: 12px; line-height: 1.3; color: var(--mute);
}

/* botões retos */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 17px 26px; border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.btn i { font-style: normal; transition: transform .25s; }
.btn:hover i { transform: translateX(5px); }
.btn-gold { background: var(--gold); color: var(--brown); }
.btn-gold:hover { background: var(--gold-lt); }
.btn-brown { background: var(--brown-3); color: var(--cream); }
.btn-brown:hover { background: var(--gold); color: var(--brown); }
.btn-sm { padding: 12px 18px; font-size: 0.88rem; }
.btn-lg { padding: 21px 32px; font-size: 1.04rem; }

/* header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--edge);
  transition: background .3s, padding .3s;
}
.top.scrolled { background: rgba(36, 24, 18, .94); backdrop-filter: blur(10px); padding-block: 8px; }
.top.scrolled .lockup > img { height: 46px; }

.lockup > img { transition: height .3s; }
.lockup { display: inline-flex; align-items: center; gap: 14px; color: var(--gold-lt); }
.lockup > img { height: 58px; width: auto; }
.foot-logo { width: 190px; height: auto; }
.lockup > span { display: grid; line-height: 1.2; }
.lockup strong { font-family: var(--display); font-weight: 400; font-size: .96rem; letter-spacing: .2em; text-transform: uppercase; }
.lockup em { font-style: normal; font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

/* 1 · HERO: foto do doutor em destaque, evanescendo no marrom */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--edge) 72px;
  background: var(--brown);
  overflow: hidden;
}
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: min(47vw, 720px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { transform: scale(1.06); filter: blur(8px); } to { transform: none; filter: none; } }
/* tom quente sobre a foto fria + degradês que fundem com o fundo */
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #6B4A36; mix-blend-mode: soft-light; opacity: .75; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, var(--brown) 0%, rgba(36, 24, 18, .86) 16%, rgba(36, 24, 18, .35) 42%, rgba(36, 24, 18, 0) 66%),
    linear-gradient(0deg, var(--brown) 0%, rgba(36, 24, 18, 0) 30%),
    linear-gradient(180deg, rgba(36, 24, 18, .7) 0%, rgba(36, 24, 18, 0) 22%);
}
.hero-copy { position: relative; z-index: 3; max-width: 640px; color: var(--cream); }
.hero h1 small {
  display: block; font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  border-left: 3px solid var(--gold); padding-left: 12px; line-height: 1.4; margin-bottom: 28px;
}
.hero h1 .focus { display: block; font-size: clamp(2.7rem, 5.5vw, 5.2rem); line-height: 1.04; letter-spacing: -0.015em; }
.hero h1 .hl { color: var(--gold); }
.lead { font-size: clamp(1.02rem, 1.2vw, 1.16rem); color: var(--mute-dark); max-width: 46ch; margin: 28px 0 36px; }
.cred { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--mute-dark); margin-top: 30px; }
.cred b, .role b, .foot b { color: var(--gold); font-weight: 700; margin-inline: 4px; }

.focus > span { display: inline-block; animation: focus 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.focus > span:nth-child(1) { animation-delay: .05s } .focus > span:nth-child(2) { animation-delay: .12s }
.focus > span:nth-child(3) { animation-delay: .19s } .focus > span:nth-child(4) { animation-delay: .26s }
.focus > span:nth-child(5) { animation-delay: .36s } .focus > span:nth-child(6) { animation-delay: .46s }
.focus > span:nth-child(7) { animation-delay: .53s } .focus > span:nth-child(8) { animation-delay: .60s }
.focus > span:nth-child(9) { animation-delay: .67s }
@keyframes focus { from { filter: blur(16px); opacity: .25; } to { filter: blur(0); opacity: 1; } }

/* 2 · PROCEDIMENTOS */
.procs { background: var(--cream); padding: clamp(80px, 10vw, 150px) 0; }
.procs-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.procs h2 { position: sticky; top: 110px; font-size: clamp(2.2rem, 4.2vw, 3.9rem); color: #8A6A55; }
.procs-list { display: grid; gap: 34px; justify-items: start; }
.procs-list article { border-left: 3px solid var(--gold); padding-left: 22px; }
.procs-list h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.2; color: var(--brown-3); }
.procs-list p { margin-top: 8px; color: var(--mute); max-width: 60ch; }
.procs-list .btn { margin-top: 8px; }

/* 3 · NEGATIVAS x POSITIVAS */
.versus { background: var(--cream-2); padding: clamp(80px, 10vw, 150px) 0; }
.center { text-align: center; max-width: 780px; margin-inline: auto; }
.center p { margin-top: 18px; color: var(--mute); }
.versus-grid { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 36px); align-items: stretch; }
.card { padding: clamp(28px, 3.4vw, 52px); border-radius: 6px; }
.card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; margin-bottom: 22px; }
.card ul { display: grid; gap: 15px; }
.card li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; line-height: 1.4; }
.card li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 12px; margin-top: 1px; }
.card-no { background: var(--brown-3); color: var(--cream); }
.card-no h3 { color: var(--gold-lt); }
.card-no li::before {
  background-color: rgba(229, 205, 174, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2l-8 8' stroke='%23E08B6D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.card-yes { background: #fff; color: var(--text); box-shadow: 0 24px 60px -30px rgba(59, 42, 34, .35); }
.card-yes h3 { color: var(--brown-3); }
.card-yes li::before {
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.7 2.7L10 3.4' fill='none' stroke='%23241812' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.legal { margin: clamp(32px, 4vw, 56px) auto 0; font-size: .86rem; color: var(--mute); max-width: 62ch; text-align: center; }

/* 4 · SOBRE */
.about { background: var(--brown); color: var(--cream); padding: clamp(80px, 10vw, 150px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.about-photo { position: relative; overflow: hidden; aspect-ratio: 1 / 1.18; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; filter: grayscale(1) contrast(1.05); }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--brown) 0%, rgba(36, 24, 18, 0) 38%), rgba(107, 74, 54, .28); }
.about .kicker { color: var(--gold); }
.about h2 { margin-top: 22px; color: var(--gold-lt); }
.role { margin-top: 12px; font-size: .82rem; letter-spacing: .04em; color: var(--mute-dark); }
.bio { margin-top: 28px; font-size: clamp(1.04rem, 1.3vw, 1.2rem); max-width: 56ch; color: #E4D8CB; }
.facts { margin: 32px 0 38px; display: grid; gap: 14px; }
.facts li { border-left: 3px solid var(--gold); padding-left: 14px; font-weight: 500; line-height: 1.3; }

/* 5 · DÚVIDAS */
.faq { background: var(--cream); padding: clamp(80px, 10vw, 140px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.faq h2 { color: #8A6A55; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: #fff; border-left: 3px solid var(--cream-2); padding: 22px 26px; transition: border-color .3s; }
.faq details[open] { border-color: var(--gold); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; color: var(--brown-3); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--mute); max-width: 62ch; }

/* 6 · CONTATO + MAPA */
.contact { background: var(--cream-2); padding: clamp(80px, 10vw, 140px) 0; }
.contact h2 { max-width: 18ch; }
.contact-grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 40px); align-items: stretch; }
.map { min-height: 460px; background: #ddd2c4; }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: sepia(.18) saturate(.9); }
.contact-side { display: grid; gap: clamp(18px, 2.6vw, 32px); grid-template-rows: auto 1fr; }
.box { padding: clamp(26px, 2.8vw, 40px); }
.box h3 { font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.box-light { background: #fff; }
.box-light h3 { color: #8A6A55; }
.box-light p { font-size: 1.1rem; margin-bottom: 20px; color: var(--brown-3); }
.box-dark { background: var(--brown-3); color: var(--cream); }
.box-dark h3 { color: var(--gold-lt); }
.places { display: grid; gap: 6px; }
.place { display: grid; gap: 2px; width: 100%; padding: 12px 14px; border-left: 3px solid rgba(229, 205, 174, .18); transition: border-color .25s, background .25s; }
.place strong { font-weight: 600; }
.place span { font-size: .9rem; color: var(--mute-dark); }
.place:hover { border-color: var(--gold); }
.place.on { border-color: var(--gold); background: rgba(229, 205, 174, .08); }

/* rodapé */
.foot { background: var(--brown); color: var(--mute-dark); font-size: .8rem; padding: 56px 0 40px; }
.seo { font-size: .86rem; line-height: 1.65; max-width: 96ch; color: #9C8A7C; margin-bottom: 40px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.foot a:hover { color: var(--gold-lt); }
.foot .copy { margin-left: auto; }

.dock { display: none; }

/* reveals */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.procs-list .rv:nth-child(2), .versus-grid .rv:nth-child(2), .facts .rv:nth-child(2) { transition-delay: .1s; }
.procs-list .rv:nth-child(3), .facts .rv:nth-child(3) { transition-delay: .18s; }
.procs-list .rv:nth-child(4), .facts .rv:nth-child(4) { transition-delay: .26s; }

.static .rv, .static .focus > span, .static .hero-photo img { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .focus > span, .hero-photo img { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
}

@media (max-width: 1020px) {
  .procs-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .procs h2 { position: static; }
  .hero-photo { width: 72vw; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .btn { display: none; }
  .lockup > img { height: 48px; }
  .lockup strong { font-size: .82rem; }
  .hero { display: block; padding: 0 0 56px; min-height: 0; }
  .hero-photo { position: relative; width: 100%; height: 54svh; min-height: 340px; }
  .hero-photo img { object-position: 50% 12%; }
  .hero-photo::after {
    background:
      linear-gradient(0deg, var(--brown) 0%, rgba(36, 24, 18, .7) 22%, rgba(36, 24, 18, 0) 55%),
      linear-gradient(180deg, rgba(36, 24, 18, .75) 0%, rgba(36, 24, 18, 0) 24%);
  }
  .hero-copy { margin-top: -96px; padding-inline: var(--edge); }
  .hero h1 small { margin-bottom: 18px; font-size: .68rem; }
  .hero h1 .focus { font-size: clamp(2.35rem, 11vw, 3.3rem); }
  .lead { margin: 20px 0 26px; }
  .hero .btn { width: 100%; justify-content: space-between; }
  .versus-grid, .about-grid { grid-template-columns: 1fr; }
  .procs-list .btn, .about .btn, .box .btn { width: 100%; justify-content: space-between; }
  .map, .map iframe { min-height: 340px; }
  .foot { padding-bottom: 100px; }
  .foot .copy { margin-left: 0; }
  .dock {
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    background: var(--gold); color: var(--brown); font-weight: 600; padding: 17px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }
  .dock i { font-style: normal; }
  .dock.on { transform: none; }
}
