/* ==========================================================================
   Dra. Laura Pocceschi — luxo escuro + dourado champanhe
   ========================================================================== */

:root {
  --bg: #121110;
  --bg-elevated: #1a1916;
  --bg-card: #211f1a;
  --gold: #d4af6a;
  --gold-deep: #c9a35c;
  --gold-soft: #e8d5a8;
  --ivory: #f3ede2;
  --text: #d8d2c4;
  --muted: #9a9183;
  --hairline: rgba(212, 175, 106, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --container: 1120px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- texturas ---------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gold-text {
  font-style: italic;
  background: linear-gradient(110deg, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- acessibilidade ---------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 100;
  background: var(--gold);
  color: #181408;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #181408; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  padding-block: 1.1rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(18, 17, 16, 0.92);
  backdrop-filter: blur(12px);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand { display: flex; flex-direction: column; line-height: 1.25; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: relative;
  padding-block: 0.3rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover { color: var(--gold-soft); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn .icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: #181408;
}

.btn-gold:hover {
  color: #181408;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(212, 175, 106, 0.45);
}

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--ivory);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-small { padding: 0.6rem 1.3rem; margin-left: auto; }
.site-nav + .btn-small { margin-left: 0; }
.btn-large { padding: 1.15rem 2.4rem; font-size: 0.95rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(7.5rem, 14vh, 10rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(closest-side, rgba(212, 175, 106, 0.09), transparent 70%);
  pointer-events: none;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 350;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  color: var(--ivory);
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  max-width: 34rem;
  color: var(--text);
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions.center { justify-content: center; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-trust strong { color: var(--ivory); font-weight: 500; }

.stars {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

/* retrato */

.hero-portrait {
  position: relative;
  width: min(22rem, 80vw);
  margin: 0.6rem auto 3rem;
}

.slats {
  position: absolute;
  inset: -2.5rem -2rem auto auto;
  width: 70%;
  height: 55%;
  background: repeating-linear-gradient(
    90deg,
    var(--hairline) 0 1px,
    transparent 1px 14px
  );
  opacity: 0.7;
}

.portrait-frame {
  position: relative;
  border: 1px solid var(--hairline);
  padding: 0;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--gold-deep);
  opacity: 0.55;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  filter: saturate(0.92) contrast(1.03);
}

.floating-review {
  position: absolute;
  left: -2.2rem;
  bottom: 2rem;
  max-width: 16rem;
  background: rgba(26, 25, 22, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  padding: 1.1rem 1.3rem;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7);
}

.floating-review blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ivory);
}

.floating-review figcaption {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- ticker ---------- */

.ticker {
  border-block: 1px solid var(--hairline);
  overflow: hidden;
  padding-block: 0.85rem;
  background: var(--bg-elevated);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 38s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- seções ---------- */

.section { padding-block: clamp(4.5rem, 10vh, 7.5rem); }
.section-alt { background: var(--bg-elevated); }

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 2.8rem;
}

.section-label .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 2.5rem;
}

/* ---------- filosofia ---------- */

.manifesto {
  position: relative;
  margin-bottom: 3rem;
  padding-left: clamp(0rem, 4vw, 3rem);
}

.manifesto::before {
  content: "“";
  position: absolute;
  top: -3.5rem;
  left: -1.5rem;
  font-family: var(--font-display);
  font-size: 14rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.12;
  pointer-events: none;
}

.manifesto p {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  color: var(--ivory);
}

.manifesto cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.filosofia-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 56rem;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  list-style: none;
  margin-top: 2.6rem;
}

.pillars li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pillars li::before {
  content: "✦";
  font-size: 0.6rem;
  color: var(--gold-deep);
}

/* ---------- procedimentos ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-top: 1px solid var(--hairline);
  padding: 2.2rem 2rem 2.4rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.card-media {
  margin: -2.2rem -2rem 1.8rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img { transform: scale(1.06); }

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 106, 0.45);
  background: #262318;
}

.card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  opacity: 0.85;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.45rem;
  color: var(--ivory);
  margin: 0.8rem 0 0.7rem;
}

.card p { font-size: 0.98rem; color: var(--text); }

.odonto {
  margin-top: 3rem;
  border: 1px solid var(--hairline);
  padding: 1.8rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 2rem;
}

.odonto h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.15rem;
  color: var(--ivory);
}

.odonto p { font-size: 0.92rem; color: var(--muted); flex: 1 1 14rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.chips li {
  border: 1px solid var(--hairline);
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  border-radius: 99px;
}

/* ---------- depoimentos ---------- */

.rating-summary {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 3rem;
}

.rating-value {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: 4rem;
  line-height: 1;
  color: var(--ivory);
}

.rating-summary p { font-size: 0.9rem; color: var(--muted); }

.testimonial-feature {
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.4rem, 3vw, 2.4rem);
  margin-bottom: 3rem;
  max-width: 52rem;
}

.testimonial-feature blockquote {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--ivory);
}

.testimonial-feature figcaption,
.testimonial figcaption {
  margin-top: 1rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.testimonial {
  background: var(--bg-card);
  border-top: 1px solid var(--hairline);
  padding: 1.8rem 1.7rem;
}

.testimonial blockquote {
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.65;
}

/* ---------- localização ---------- */

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.location-info address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.location-notes {
  list-style: none;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.location-notes li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.2rem;
}

.location-notes li::before {
  content: "✦";
  font-size: 0.55rem;
  color: var(--gold);
}

.location-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.map-wrap {
  position: relative;
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.88) hue-rotate(180deg) brightness(0.9) contrast(0.92);
}

/* ---------- CTA final ---------- */

.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  transform: translateX(-50%);
  width: 70vw;
  height: 50vh;
  background: radial-gradient(closest-side, rgba(212, 175, 106, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  color: var(--ivory);
  margin-bottom: 1.4rem;
}

.cta-final .lead { margin-inline: auto; }
.cta-final .eyebrow { margin-bottom: 1.2rem; }

/* ---------- formulário de agendamento ---------- */

.agendamento {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 2.8rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.field input,
.field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field input::placeholder { color: var(--muted); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 106, 0.16);
}

.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(0.6) saturate(3) hue-rotate(2deg);
  cursor: pointer;
}

.agendamento .btn {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 0.5rem;
  cursor: pointer;
  border: 0;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-elevated);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-heading {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.footer-muted { color: var(--muted); font-size: 0.95rem; line-height: 1.9; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  border-top: 1px solid rgba(212, 175, 106, 0.1);
  padding-block: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #181408;
  box-shadow: 0 12px 32px -8px rgba(212, 175, 106, 0.5);
  transition: transform 0.3s var(--ease);
}

.whatsapp-fab:hover { transform: scale(1.08); color: #181408; }
.whatsapp-fab .icon { width: 1.7rem; height: 1.7rem; }

.whatsapp-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- micro-animações ---------- */

/* brilho dourado em movimento no título principal */
.hero h1 .gold-text {
  background-size: 200% auto;
  animation: sheen 5s ease-in-out infinite alternate;
}

@keyframes sheen {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

/* retrato da Dra. com leve flutuação */
.portrait-frame {
  animation: float 6.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* halo dourado do hero pulsando suavemente */
.hero::before {
  animation: haloPulse 9s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* varredura de luz nos botões dourados ao passar o mouse */
.btn-gold { position: relative; overflow: hidden; }

.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}

.btn-gold:hover::before { left: 150%; }

/* pilares da filosofia reagindo ao mouse */
.pillars li {
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: default;
}
.pillars li:hover { color: var(--ivory); transform: translateX(5px); }

/* chips de odontologia reagindo ao mouse */
.chips li {
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chips li:hover { color: var(--ivory); border-color: var(--gold); transform: translateY(-2px); }

/* estrelas da avaliação com brilho pulsante */
.hero-trust .stars { animation: twinkle 3.5s ease-in-out infinite; }

@keyframes twinkle {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 transparent; }
  50% { opacity: 0.85; text-shadow: 0 0 12px rgba(212, 175, 106, 0.6); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .whatsapp-fab::after { animation: none; }
  .portrait-frame,
  .hero::before,
  .hero h1 .gold-text,
  .hero-trust .stars { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsivo ---------- */

@media (max-width: 920px) {
  .site-nav { display: none; }

  .floating-review { left: -0.5rem; }

  .cards { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .filosofia-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .hero { padding-top: 6.5rem; }
  .floating-review { position: static; margin-top: 1rem; max-width: none; }
  .portrait-frame::after { inset: 0.7rem -0.7rem -0.7rem 0.7rem; }
  .rating-summary { flex-direction: row; }
  .odonto { padding: 1.5rem 1.3rem; }
  .agendamento { grid-template-columns: 1fr; }
}
