/* Clínica Lume Odontologia — Diagonal frosted clinical */

:root {
  --background: #eef3f6;
  --foreground: #21384a;
  --surface: #fbfdfe;
  --primary: #2b7fb8;
  --primary-foreground: #f7fbfd;
  --muted: #5b7185;
  --accent: #d79127;
  --border: rgba(160, 186, 203, 0.55);
  --radius: 16px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Frosted diagonal background */
.bg-layers { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-layers span {
  position: absolute;
  display: block;
  backdrop-filter: blur(12px);
  animation: slow 7s ease-in-out infinite alternate;
}
.bg-layers .l1 { left: -160px; top: -15%; height: 60vh; width: 120vw; background: rgba(255,255,255,0.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6); transform: rotate(-14deg); }
.bg-layers .l2 { right: -20%; top: 45%; height: 50vh; width: 110vw; background: rgba(43,127,184,0.1); transform: rotate(-11deg); animation-delay: -3.5s; }
.bg-layers .l3 { bottom: -10%; left: 10%; height: 35vh; width: 100vw; background: rgba(215,145,39,0.1); transform: rotate(-8deg); animation-delay: -5s; }

@keyframes slow {
  from { transform: translate3d(-12%, -6%, 0) rotate(-14deg) scale(1.05); }
  to { transform: translate3d(12%, 4%, 0) rotate(-9deg) scale(1.15); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.5s cubic-bezier(0.32, 0.72, 0, 1) both; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(251, 253, 254, 0.7);
  backdrop-filter: blur(12px);
}
header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.brand .mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; background: var(--primary); color: var(--primary-foreground);
  font-size: 14px; font-weight: 800;
}
.brand small { color: var(--muted); font-weight: 500; font-size: 18px; }
nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
nav a:hover { color: var(--foreground); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px; font-weight: 600;
  transition: transform .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--border); }
.btn-dark { background: var(--foreground); color: var(--background); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Sections */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; border-top: 1px solid var(--border); }
section#hero { border-top: 0; padding: 64px 0 80px; }
.grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .grid-hero { grid-template-columns: 7fr 5fr; }
  .grid-about { grid-template-columns: 5fr 7fr; }
  .grid-contact { grid-template-columns: 5fr 7fr; align-items: stretch; }
}
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.03; margin-top: 20px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin-top: 12px; }
.lead { margin-top: 24px; max-width: 52ch; font-size: 18px; color: var(--muted); }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.meta { margin-top: 32px; display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); }
.meta .sep { width: 1px; height: 16px; background: var(--border); }
.star { color: var(--accent); font-weight: 600; }

.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: -12px; border-radius: 26px;
  background: rgba(255,255,255,0.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
  backdrop-filter: blur(12px); transform: rotate(-3deg);
}
.framed.gold::before { background: rgba(215,145,39,0.15); transform: rotate(3deg); }
.framed img { position: relative; aspect-ratio: 4/5; width: 100%; object-fit: cover; border-radius: 24px; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  border-radius: 20px; background: rgba(251,253,254,0.8); padding: 24px;
  box-shadow: inset 0 0 0 1px var(--border); backdrop-filter: blur(6px);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(43,127,184,0.4); }
.card .num { font-family: var(--font-mono); font-size: 12px; color: var(--primary); }
.card .icon {
  margin-top: 16px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(43,127,184,0.1); color: var(--primary); font-size: 18px;
}
.card .icon.gold { background: rgba(215,145,39,0.15); color: var(--accent); }
.card h3 { margin-top: 16px; font-size: 20px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.card.invert { background: var(--primary); color: var(--primary-foreground); }
.card.invert .num, .card.invert p { color: rgba(247,251,253,0.8); }

figure.card { margin: 0; }
figure blockquote { margin: 12px 0 0; }
figure figcaption { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
figure img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
figure .name { font-size: 14px; font-weight: 600; }
figure .when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; }

/* About facts */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; max-width: 460px; }
.facts > div { border-radius: 12px; background: rgba(251,253,254,0.7); padding: 16px; box-shadow: inset 0 0 0 1px var(--border); }
.facts dt { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; }

/* Contact */
.contact-card {
  border-radius: 24px; background: var(--primary); color: var(--primary-foreground);
  padding: 32px; display: flex; flex-direction: column; justify-content: space-between;
}
.contact-card .eyebrow { color: rgba(247,251,253,0.7); }
.contact-card p.lead { color: rgba(247,251,253,0.85); }
.contact-list { margin-top: 32px; display: grid; gap: 12px; font-size: 14px; }
.contact-list > * {
  display: flex; align-items: center; gap: 12px; border-radius: 12px;
  background: rgba(255,255,255,0.1); padding: 12px 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.map-card { border-radius: 24px; background: rgba(251,253,254,0.8); padding: 24px; box-shadow: inset 0 0 0 1px var(--border); }
.map-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.map-head span:last-child { color: var(--primary); }
.map-placeholder {
  width: 100%; aspect-ratio: 3/2; border-radius: 16px; display: grid; place-content: center;
  justify-items: center; gap: 8px; padding: 24px; text-align: center;
  background: linear-gradient(145deg, rgba(15, 75, 82, 0.1), rgba(205, 164, 94, 0.16));
  border: 1px dashed rgba(15, 75, 82, 0.3); color: var(--muted);
}
.map-placeholder strong { font-family: var(--font-display); font-size: 22px; color: var(--foreground); }
.map-placeholder .placeholder-symbol { color: var(--accent); font-size: 36px; }
.map-disabled { margin-top: 20px; cursor: not-allowed; opacity: 0.72; }

.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 10px 17px 10px 12px; border-radius: 999px; color: #fff;
  background: #20a866; box-shadow: 0 12px 30px rgba(9, 77, 44, 0.28); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; transition: transform 180ms ease, box-shadow 180ms ease;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(9, 77, 44, 0.36); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; flex: 0 0 auto; }
.whatsapp-float span { line-height: 1.05; }
.whatsapp-float small { display: block; margin-top: 3px; font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; }

footer { margin-top: 32px; border-top: 1px solid var(--border); }
footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
footer strong { font-family: var(--font-display); color: var(--foreground); }

@media (max-width: 760px) {
  nav { display: none; }
  .facts { grid-template-columns: 1fr; }
}

/* Fotos pendentes e ajustes de acessibilidade e responsividade. */
body { isolation: isolate; }
section { scroll-margin-top: 100px; }
.grid > * { min-width: 0; }
.photo-placeholder {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 24px;
  background: linear-gradient(145deg, #dcebf4, #fbfdfe 65%, #e8eef2);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 32px;
  text-align: center; color: var(--muted);
}
.photo-placeholder strong { font-family: var(--font-display); font-size: 24px; max-width: 20ch; color: var(--foreground); }
.photo-placeholder > span:last-child { font-size: 14px; }
.placeholder-symbol { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: rgba(43,127,184,.1); color: var(--primary); font: 700 36px var(--font-display); }
.portrait-placeholder { background: linear-gradient(145deg, #f1e6d5, #fbfdfe 65%, #e8eef2); }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #dcebf4; color: var(--foreground); font-size: 13px; font-weight: 600; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
.contact-list > * { overflow-wrap: anywhere; }
.map-head { flex-wrap: wrap; gap: 8px; }
@media (max-width: 1050px) {
  header .container { flex-wrap: wrap; gap: 12px; }
  nav { order: 3; width: 100%; justify-content: center; }
  section { scroll-margin-top: 135px; }
}
@media (max-width: 760px) {
  header .container { gap: 10px; }
  .brand { font-size: 16px; flex-wrap: wrap; gap: 6px; }
  .brand small { font-size: 14px; }
  header .btn { font-size: 12px; padding: 8px 12px; }
  section { padding: 48px 0; scroll-margin-top: 120px; }
  .meta { flex-wrap: wrap; gap: 12px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .contact-card, .map-card { padding: 24px; }
  .framed::before { inset: -6px; transform: none; }
  .framed.gold::before { transform: none; }
}
@media (max-width: 480px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; min-height: 0; padding: 12px; justify-content: center; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
