/* ============================================================
   Dr. Elmo Jr. — Odontologia Estética
   Production site styles. Self-contained.
   ============================================================ */

@font-face { font-family: "Arsenal"; src: url("fonts/Arsenal-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Arsenal"; src: url("fonts/Arsenal-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Arsenal"; src: url("fonts/Arsenal-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: "Ysabeau Infant"; src: url("fonts/YsabeauInfant-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ysabeau Infant"; src: url("fonts/YsabeauInfant-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ysabeau Infant"; src: url("fonts/YsabeauInfant-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Ysabeau Infant"; src: url("fonts/YsabeauInfant-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ysabeau Infant"; src: url("fonts/YsabeauInfant-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --black: #000000;
  --espresso: #332923;
  --espresso-90: #463A33;
  --gray: #A0A0A0;
  --off-white: #F2F2F2;
  --white: #FFFFFF;
  --line: rgba(51, 41, 35, 0.15);

  --font-display: "Arsenal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Ysabeau Infant", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--off-white);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

.section { padding: 120px 0; }
.section.tight { padding: 80px 0; }
.section.dark { background: var(--black); color: var(--off-white); }
.section.inverse { background: var(--espresso); color: var(--off-white); }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gray);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 36px; height: 1px; background: var(--espresso);
}
.eyebrow.inverse { color: var(--gray); }
.eyebrow.inverse::before { background: var(--off-white); }
.eyebrow.no-rule::before { display: none; }

h1, h2, h3 {
  font-family: var(--font-display); font-weight: 400;
  color: var(--espresso); text-transform: uppercase; letter-spacing: 0;
  margin: 0;
}
.section.dark h1, .section.dark h2, .section.dark h3,
.section.inverse h1, .section.inverse h2, .section.inverse h3 { color: var(--off-white); }

.section-title {
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05;
  margin-top: 22px;
}

.lede {
  font-family: var(--font-body); font-size: 19px; line-height: 1.55;
  color: var(--espresso); max-width: 580px; margin-top: 24px;
}
.section.dark .lede, .section.inverse .lede { color: var(--gray); }

/* ---------- pill buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px;
  border: 1px solid transparent;
  background: var(--espresso); color: var(--off-white);
  transition: background 0.32s var(--ease), color 0.32s var(--ease), border-color 0.32s var(--ease);
}
.btn:hover { background: var(--black); }
.btn.outline { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn.outline:hover { background: var(--espresso); color: var(--off-white); }
.btn.outline.inverse { color: var(--off-white); border-color: var(--off-white); }
.btn.outline.inverse:hover { background: var(--off-white); color: var(--espresso); }
.btn.ghost {
  background: transparent; color: inherit;
  padding: 4px 0; border-radius: 0; border-bottom: 1px solid currentColor;
}
.btn.ghost:hover { opacity: 0.55; }
.btn .arrow { display: inline-block; transition: transform 0.32s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 242, 242, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-mark { display: flex; align-items: center; gap: 14px; }
.nav-mark img { height: 36px; width: auto; }
.nav-mark .wm {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--espresso);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--espresso);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color 0.32s var(--ease), opacity 0.32s var(--ease);
}
.nav-links a:hover { opacity: 0.55; }
.nav-cta {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 22px; border-radius: 999px;
  background: var(--espresso); color: var(--off-white);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.32s var(--ease);
}
.nav-cta:hover { background: var(--black); }

.menu-btn {
  display: none;
  background: none; border: 0; padding: 6px; cursor: pointer;
}
.menu-btn svg { width: 24px; height: 24px; stroke: var(--espresso); }

.mobile-menu {
  display: none;
  position: fixed; inset: 76px 0 0; z-index: 49;
  background: var(--off-white);
  padding: 32px 24px;
  flex-direction: column; gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 16px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--espresso);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-btn { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  background: var(--black);
  color: var(--off-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/dr-portrait-01.jpg") center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.7;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  min-height: calc(100vh - 76px);
  display: flex; align-items: center;
  padding: 80px 0;
}
.hero-inner { max-width: 720px; padding-left: 40px; }
@media (max-width: 720px) { .hero-inner { padding-left: 12px; } }

/* hero fade-in */
.hero-fade {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.hero h1 .hero-fade { display: inline-block; }
.hero h1 em.hero-fade { display: block; }
@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fade { opacity: 1; transform: none; animation: none; }
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 7vw, 96px); line-height: 0.98;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--off-white);
  margin: 28px 0 28px;
}
.hero h1 em {
  font-family: var(--font-body); font-style: italic; text-transform: none;
  font-size: 0.7em; letter-spacing: 0; display: block;
  color: var(--gray); margin-top: 6px;
}
.hero .sub {
  font-family: var(--font-body); font-size: 19px; line-height: 1.6;
  color: var(--off-white); opacity: 0.85;
  max-width: 480px; margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-watermark {
  position: absolute; right: 32px; bottom: 32px; width: 64px;
  opacity: 0.85; z-index: 1;
}
@media (max-width: 720px) {
  .hero-watermark { width: 44px; right: 20px; bottom: 20px; }
}

/* ---------- about ---------- */
.two-up {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 80px; align-items: start;
}
.two-up .img-wrap img {
  width: 100%; height: auto;
  filter: grayscale(1) contrast(1.04);
}
.two-up .caption {
  margin-top: 18px;
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray);
  display: inline-flex; align-items: center; gap: 12px;
}
.two-up .caption::before {
  content: ""; width: 24px; height: 1px; background: var(--espresso);
}

.about-prose p {
  font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  color: var(--espresso); margin: 0 0 20px;
}
.about-prose p em { font-style: italic; color: var(--espresso); font-weight: 500; }

.credentials {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.credentials .row {
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line);
}
.credentials .row:last-child { border-bottom: 0; }
.credentials .k {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray);
}
.credentials .v {
  font-family: var(--font-body); font-size: 16px; color: var(--espresso); text-align: right;
}

/* ---------- procedure ---------- */
.proc-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 80px; align-items: start;
}
.proc-details {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.proc-details .row {
  padding: 18px 4px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.proc-details .k {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray);
}
.proc-details .v {
  font-family: var(--font-body); font-size: 16px; color: var(--espresso);
}

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 80px;
  border-top: 1px solid var(--line);
}
.step {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 220px;
  display: flex; flex-direction: column; gap: 14px;
}
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray);
}
.step h3 {
  font-family: var(--font-display); font-size: 22px; line-height: 1.1;
  text-transform: uppercase; color: var(--espresso);
}
.step p {
  font-family: var(--font-body); font-size: 14px; line-height: 1.55;
  color: var(--espresso); margin: 0;
}

/* ---------- marker / highlighter ---------- */
.marker {
  position: relative;
  display: inline;
  font-style: italic;
  color: var(--espresso);
  padding: 2px 7px;
  margin: 0 -2px;
  background-image: linear-gradient(var(--espresso), var(--espresso));
  background-repeat: no-repeat;
  background-size: 0% 88%;
  background-position: 0 60%;
  transition:
    background-size 900ms cubic-bezier(0.22, 1, 0.36, 1),
    color 320ms cubic-bezier(0.22, 1, 0.36, 1) 380ms;
}
.marker.is-marked {
  color: var(--off-white);
  background-size: 100% 88%;
}
@media (prefers-reduced-motion: reduce) {
  .marker { transition: none; }
}
/* ---------- /marker ---------- */
.proc-figure {
  margin: 56px 0 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--espresso);
  aspect-ratio: 4 / 3;
}
.proc-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proc-figure figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--off-white);
}
.proc-figure figcaption span {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(51, 41, 35, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 999px;
}
@media (max-width: 900px) {
  .proc-figure { margin: 40px 0 0; }
}
/* ---------- /procedure figure ---------- */
.case-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--espresso);
}
.case .tile { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--espresso); }
.case .tile img { width: 100%; height: 100%; object-fit: cover; }
.case .tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--off-white);
  padding: 5px 12px; background: rgba(51, 41, 35, 0.88);
  border-radius: 999px;
}
.case-meta {
  grid-column: 1 / -1;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: var(--espresso); color: var(--off-white);
}
.case-meta .id {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray);
}
.case-meta .summary {
  font-family: var(--font-body); font-size: 13px; color: var(--off-white);
}

/* ---------- localização ---------- */
.loc-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 64px; align-items: start;
}
.loc-info p {
  font-family: var(--font-body); font-size: 18px; line-height: 1.7;
  color: var(--espresso); margin: 0 0 24px;
}
.loc-info .address {
  font-family: var(--font-body); font-size: 21px; line-height: 1.5;
  color: var(--espresso); margin: 24px 0 24px;
}

.map-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--espresso);
  cursor: pointer;
  group: map;
}
.map-card iframe {
  width: 100%; height: 460px; border: 0;
  display: block;
  pointer-events: none; /* let click bubble to the link */
  filter: grayscale(0.4) contrast(1.05);
}
.map-card .map-overlay {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--espresso); color: var(--off-white);
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.32s var(--ease);
}
.map-card:hover .map-overlay { background: var(--black); }

/* ---------- contato ---------- */
.contato-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.contato-card {
  background: var(--off-white); color: var(--espresso);
  padding: 48px 40px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background 0.32s var(--ease);
}
.section.inverse .contato-card { background: var(--espresso-90); color: var(--off-white); }
.section.inverse .contato-card:hover { background: var(--off-white); color: var(--espresso); }
.contato-card .ico {
  width: 28px; height: 28px;
}
.contato-card .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.contato-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 28px; line-height: 1.1; text-transform: uppercase;
  margin: 0;
}
.contato-card p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  color: inherit; opacity: 0.8;
  margin: 0;
}
.contato-card .val {
  margin-top: auto;
  font-family: var(--font-display); font-size: 14px;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
}

/* ---------- footer ---------- */
.footer {
  background: var(--black); color: var(--off-white);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer img.lockup { height: 96px; width: auto; margin-bottom: 16px; }
.footer h4 {
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gray); margin: 0 0 18px; font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-family: var(--font-body); font-size: 14px; color: var(--off-white); opacity: 0.85;
  transition: opacity 0.32s var(--ease);
}
.footer ul a:hover { opacity: 0.5; }
.footer .small {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray);
}
.footer-bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gray);
}

/* ---------- floating WhatsApp ---------- */
.float-wa {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: #25D366;
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 36px -10px rgba(0,0,0,0.25);
  transition: transform 0.32s var(--ease);
}
.float-wa:hover { transform: translateY(-3px); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 720px) {
  .float-wa { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .float-wa svg { width: 24px; height: 24px; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section.tight { padding: 56px 0; }
  .two-up, .proc-grid, .loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-grid { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:nth-child(2) { border-right: 0; }
  .steps .step:nth-child(3) { border-right: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .steps .step { border-right: 0 !important; }
}

/* ---------- subtle scroll fade-in ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
