/* Bruna P. Weber - Santa Maria, RS
   Palette sampled from her own Instagram mark: near-black lettering (#181818/#303030)
   on warm sand and tan (#d8c090 / #d8a878 / #c09060). The page inverts that
   relationship and locks to a single warm-dark theme.
   Radius rule: interactive elements are pill, surfaces are 3px. Nothing else. */

@font-face {
  font-family: "Bricolage";
  src: url("assets/fonts/bricolage-400-800-latin.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, 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: "Bricolage";
  src: url("assets/fonts/bricolage-400-800-latin-ext.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument";
  src: url("assets/fonts/instrument-400-600-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, 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: "Instrument";
  src: url("assets/fonts/instrument-400-600-latin-ext.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink:    #14110d;
  --ink-2:  #1c1813;
  --ink-3:  #241e16;
  --sand:   #d8c090;
  --tan:    #d8a878;
  --bronze: #c09060;
  --body:   #c9bdae;
  --muted:  #94897b;
  --hair:   #33291f;
  --r:      3px;
  --pill:   999px;
  --ease:   cubic-bezier(.2,.7,.2,1);
  --pad:    clamp(20px, 5vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font-family: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--sand); color: var(--ink); padding: 10px 16px; border-radius: var(--r);
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* ---------- type scale ---------- */
.h-display {
  font-family: "Bricolage", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.9vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--body);
  margin: 0;
}
.h-display .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.h-display i { display: block; font-style: normal; }
.h-display b { font-weight: 800; color: var(--sand); }

.h-2 {
  font-family: "Bricolage", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sand);
  margin: 0 0 .55em;
}

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  height: 68px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.wordmark {
  font-family: "Bricolage", Georgia, serif;
  font-size: 1.16rem; letter-spacing: -0.02em; text-decoration: none;
  display: flex; gap: .34em; align-items: baseline; white-space: nowrap;
}
.wm-1 { font-weight: 800; color: var(--sand); }
.wm-2 { font-weight: 400; color: var(--muted); }

.bar-nav { margin-left: auto; display: flex; gap: 26px; font-size: .95rem; }
.bar-nav a { text-decoration: none; color: var(--body); padding: 4px 0; position: relative; }
.bar-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--bronze); transition: right .4s var(--ease);
}
.bar-nav a:hover::after { right: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sand); color: var(--ink);
  font-family: "Instrument", sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  padding: 14px 26px; border-radius: var(--pill);
  transition: background .25s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: #e6d2a8; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }

.link-quiet {
  font-size: 1rem; color: var(--tan); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--tan) 45%, transparent);
  padding-bottom: 2px; transition: border-color .25s var(--ease);
}
.link-quiet:hover { border-bottom-color: var(--tan); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(28px, 5vw, 76px) var(--pad) clamp(56px, 8vw, 110px);
  scroll-margin-top: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: calc(100dvh - 68px);
}
.hero-sub {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  max-width: 34ch;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--body);
}
.hero-acts {
  margin-top: clamp(26px, 3.2vw, 40px);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}

/* The nameplate. Her Instagram mark is near-black lettering on warm sand, so the
   one bold object on this page is that exact relationship, set as live type at
   full size rather than traced from a 150px avatar. */
.hero-mark { display: flex; justify-content: flex-end; }
.plate {
  width: min(100%, 430px);
  aspect-ratio: 5 / 6;
  background: var(--sand);
  color: #181818;
  border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 38px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.pl-kicker {
  margin: 0;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: #5a4526;
}
.pl-name {
  margin: 0;
  font-family: "Bricolage", Georgia, serif;
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  line-height: 1.0; letter-spacing: -0.038em;
}
.pl-name span { display: block; }
.pl-name span:first-child { font-weight: 800; }
.pl-name span:last-child { font-weight: 400; color: #3d3227; }

/* ---------- urgencia ---------- */
.urg {
  scroll-margin-top: 68px;
  padding: clamp(44px, 6vw, 78px) var(--pad);
  background: var(--ink-3);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.urg-in { max-width: 720px; }
.urg .h-2 { color: var(--tan); }
.urg-body { margin: 0 0 28px; max-width: 52ch; font-size: 1.08rem; }

/* ---------- servicos ---------- */
.serv { padding: clamp(64px, 9vw, 132px) var(--pad); scroll-margin-top: 68px; }
.serv-h { max-width: 16ch; margin-bottom: clamp(28px, 4vw, 48px); }
.serv-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--hair); border: 1px solid var(--hair);
  border-radius: var(--r); overflow: hidden;
}
.cel { background: var(--ink); padding: clamp(24px, 2.8vw, 38px); }
.cel-wide { grid-column: span 2; background: var(--ink-3); }
.cel h3 {
  font-family: "Bricolage", Georgia, serif; font-weight: 600;
  font-size: clamp(1.22rem, 2vw, 1.6rem); letter-spacing: -0.015em;
  color: var(--sand); margin: 0 0 .4em;
}
.cel p { margin: 0; color: var(--body); font-size: 1rem; max-width: 40ch; }
.cel-wide h3 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
.cel-wide p { max-width: 30ch; font-size: 1.08rem; }

/* ---------- a dentista ---------- */
.dra {
  padding: 0 var(--pad) clamp(64px, 9vw, 132px);
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.slot { margin: 0; }
.slot-in {
  aspect-ratio: 4 / 5;
  background: #3a2e20;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.slot-mark {
  font-family: "Bricolage", Georgia, serif; font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 3.6rem); letter-spacing: -0.05em;
  color: var(--sand); opacity: .5;
}
.slot figcaption {
  margin-top: 12px; font-size: .82rem; letter-spacing: .04em;
  color: var(--muted);
}
.quote {
  margin: 0;
  font-family: "Bricolage", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.42rem, 3.1vw, 2.4rem);
  line-height: 1.22; letter-spacing: -0.018em;
  color: var(--sand);
  max-width: 24ch;
}
.quote p { margin: 0; }
.dra-meta { margin: clamp(22px, 3vw, 34px) 0 4px; color: var(--body); max-width: 34ch; }
.dra-cro { margin: 0; color: var(--muted); font-size: .95rem; letter-spacing: .06em; }

/* ---------- contato ---------- */
.cta {
  scroll-margin-top: 68px;
  padding: clamp(64px, 9vw, 120px) var(--pad);
  background: var(--ink-2);
  border-top: 1px solid var(--hair);
  display: flex; flex-direction: column; align-items: flex-start;
}
.cta-body { margin: 0 0 30px; font-size: 1.08rem; max-width: 44ch; }
.cta .link-quiet { margin-top: 26px; }

/* ---------- footer ---------- */
.ft {
  padding: clamp(34px, 4vw, 52px) var(--pad) clamp(44px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 1px solid var(--hair);
  font-size: .92rem; color: var(--muted);
}
.ft p { margin: 0 0 4px; }
.ft a { text-decoration: none; border-bottom: 1px solid var(--hair); }
.ft a:hover { border-bottom-color: var(--bronze); color: var(--body); }
.ft-name {
  font-family: "Bricolage", Georgia, serif; font-weight: 600;
  color: var(--sand); font-size: 1.02rem; letter-spacing: -0.01em;
}

/* ---------- motion ----------
   The resting state of everything below is the *finished* state. Motion is added
   by keyframes with animation-fill-mode: both, so a run where the intro class
   never lands (throttled background tab, script blocked) still paints a complete
   page instead of an invisible one. */
.js .intro .plate { animation: uncover .9s var(--ease) .12s both; }
.js .intro .pl-kicker { animation: rise .7s var(--ease) .62s both; }
.js .intro .pl-name span:first-child { animation: rise .7s var(--ease) .52s both; }
.js .intro .pl-name span:last-child  { animation: rise .7s var(--ease) .60s both; }
.js .intro .ln:nth-child(1) i { animation: rise .8s var(--ease) .18s both; }
.js .intro .ln:nth-child(2) i { animation: rise .8s var(--ease) .30s both; }
.js .intro .hero-sub  { animation: rise .8s var(--ease) .5s both; }
.js .intro .hero-acts { animation: rise .8s var(--ease) .62s both; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes uncover {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Only elements JS has confirmed are below the fold get hidden, so nothing can
   be left invisible by an observer that never fired. */
.js [data-rv].rv-wait { opacity: 0; transform: translateY(26px); }
.js [data-rv].rv { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .js [data-rv], .js [data-rv].rv-wait { opacity: 1 !important; transform: none !important; }
  .js .intro *, .js .intro { animation: none !important; }
  .js [data-rv].rv { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; gap: clamp(18px, 4vw, 34px); }
  .hero-mark { order: -1; justify-content: flex-start; }
  .plate { width: 100%; max-width: 520px; aspect-ratio: 16 / 7; }
  .dra { grid-template-columns: 1fr; }
  .slot { max-width: 320px; }
  .serv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cel-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { height: 60px; gap: 12px; }
  .bar-nav { display: none; }
  .wordmark { margin-right: auto; font-size: 1.05rem; }
  .hero, .urg, .serv, .cta { scroll-margin-top: 60px; }
  .hero { min-height: 0; padding-top: 20px; }
  .plate { aspect-ratio: 16 / 8; padding: 20px; }
  .pl-name { font-size: 2rem; }
  .hero-acts { gap: 18px; }
  .serv-grid { grid-template-columns: 1fr; }
  .cel-wide { grid-column: span 1; }
  .ft { grid-template-columns: 1fr; gap: 18px; }
}
