/* ==========================================================================
   Buono Odontologia Especializada — Design System
   Identidade preservada: logo em azul-marinho com traço curvo, paleta
   navy + dourado/madeira + verde-sálvia vista na recepção real (parede
   viva, luminária de madeira, mobiliário creme) — estética de clínica
   boutique, acolhedora, diferente do tom "tech" de outras clínicas.
   ========================================================================== */

:root {
  --navy-900: #0b1740;
  --navy-800: #10205a;
  --navy-700: #172a72;
  --blue-600: #1e3fae;
  --blue-500: #3457c9;

  --gold-600: #a9812f;
  --gold-500: #c9a24a;
  --gold-300: #e8d5a8;

  --sage-600: #5b7a4c;
  --sage-500: #7fa06a;
  --sage-100: #eef3e8;

  --cream-50: #faf7f1;
  --cream-100: #f4ede0;
  --cream-200: #ece1cd;

  --ink-900: #1b1a2e;
  --ink-700: #3c3a52;
  --ink-500: #6b6880;
  --ink-300: #a09dae;

  --surface: #ffffff;
  --border-soft: #e7e0d1;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-script: "Playfair Display", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --shadow-sm: 0 1px 3px rgba(27, 26, 46, 0.06);
  --shadow-md: 0 14px 32px -14px rgba(16, 32, 90, 0.28);
  --shadow-lg: 0 30px 64px -20px rgba(16, 32, 90, 0.32);

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --container: 1180px;
  --header-h: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gold-500);
}

.section { padding: 100px 0; }
.section--tight { padding: 64px 0; }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,0.85); }
.section--navy h2 { color: #fff; }
.section--sage { background: var(--sage-100); }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { max-width: 680px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-500); font-size: 17px; margin-top: 16px; line-height: 1.65; }
.section--navy .section-head p { color: rgba(255,255,255,0.65); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--navy-800); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(169, 129, 47, 0.5);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--border-soft);
}
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-600); }
.btn-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255,255,255,0.18); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-700);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--cream-100); color: var(--navy-900); }
.main-nav a.active { background: var(--navy-900); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn-primary { padding: 13px 24px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy-900); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-actions .btn-primary span.long { display: none; }
  .nav-toggle { display: flex; }
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--cream-50);
  z-index: 89;
  padding: 20px 24px 40px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  display: block;
  padding: 17px 6px;
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav .btn { margin-top: 24px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background: linear-gradient(160deg, var(--cream-50) 0%, var(--sage-100) 120%);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-copy h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; }
.hero-copy h1 .script { font-family: var(--font-script); font-style: italic; color: var(--gold-600); font-weight: 600; }
.hero-copy p.lead { font-size: 17.5px; color: var(--ink-500); margin: 24px 0 34px; max-width: 480px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 12px; }
.hero-badge .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--navy-900); }
.hero-badge .label { font-size: 12.5px; color: var(--ink-500); line-height: 1.35; font-weight: 500; }
.stars { color: var(--gold-500); letter-spacing: 2px; font-size: 14px; }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-quote-card {
  position: absolute;
  left: -20px;
  bottom: 32px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  z-index: 2;
}
.hero-quote-card p { font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.5; margin: 0; }
.hero-quote-card span { display: block; margin-top: 10px; font-size: 11.5px; color: var(--gold-300); letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; margin: 0 auto; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 0;
  background: var(--surface);
}
.trust-strip ul { display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; justify-content: center; }
.trust-strip li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.trust-strip svg { width: 19px; height: 19px; color: var(--gold-600); flex-shrink: 0; }

/* ==========================================================================
   Cards
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-card .icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--sage-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.feature-card .icon svg { width: 26px; height: 26px; color: var(--sage-600); }
.feature-card h3 { font-size: 19px; margin-bottom: 12px; }
.feature-card p { font-size: 14.5px; color: var(--ink-500); line-height: 1.65; margin: 0; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card .num { font-family: var(--font-display); font-size: 15px; color: var(--gold-500); font-weight: 700; }
.service-card h3 { font-size: 21px; }
.service-card p { font-size: 14.5px; color: var(--ink-500); line-height: 1.7; margin: 0; flex-grow: 1; }
.service-card .link { font-size: 13.5px; font-weight: 700; color: var(--navy-900); display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.03em; }
.service-card .link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.service-card:hover .link svg { transform: translateX(4px); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 68px 52px;
  background: var(--navy-900);
  background-image: radial-gradient(circle at 85% 0%, rgba(201,162,74,0.25), transparent 60%);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); max-width: 520px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 460px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.rating-summary .score { font-family: var(--font-display); font-size: 54px; font-weight: 700; color: var(--navy-900); }
.rating-summary .score-meta { display: flex; flex-direction: column; gap: 4px; }
.rating-summary .divider { width: 1px; align-self: stretch; background: var(--border-soft); }
.rating-summary blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--ink-700); max-width: 280px; }

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-card .stars { font-size: 15px; }
.testimonial-card p { color: var(--ink-700); font-size: 15px; line-height: 1.7; margin: 0; flex-grow: 1; }
.testimonial-card .reply {
  background: var(--sage-100);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.55;
}
.testimonial-card .reply strong { color: var(--sage-600); display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar-dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-300); font-weight: 700; font-size: 15px; font-family: var(--font-display);
}
.testimonial-author strong { display: block; font-size: 14.5px; color: var(--navy-900); }
.testimonial-author span { font-size: 12.5px; color: var(--ink-500); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(0deg, rgba(11,23,64,0.88), transparent);
  color: #fff;
}
.gallery-item .caption strong { display: block; font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--gold-300); }
.gallery-item .caption span { font-size: 12.5px; color: rgba(255,255,255,0.85); }
.gallery-item.tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item.tall { grid-row: span 1; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page hero (páginas internas)
   ========================================================================== */
.page-hero {
  padding: 60px 0 64px;
  background: linear-gradient(160deg, var(--cream-100), var(--cream-50));
  border-bottom: 1px solid var(--border-soft);
}
.breadcrumb { font-size: 13px; color: var(--ink-500); margin-bottom: 18px; font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-600); }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; max-width: 720px; }
.page-hero p { color: var(--ink-500); font-size: 16.5px; margin-top: 18px; max-width: 620px; line-height: 1.65; }

/* ==========================================================================
   About page specifics
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3.3; object-fit: cover; }
.about-copy .years {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); color: var(--navy-900);
  margin-bottom: 18px;
}
.about-copy .years .n { font-size: 46px; font-weight: 700; }
.about-copy .years .t { font-size: 15px; color: var(--ink-500); font-family: var(--font-body); max-width: 160px; line-height: 1.35; }
.about-copy p { color: var(--ink-500); font-size: 16px; line-height: 1.8; margin: 0 0 18px; }
.about-copy p:last-child { margin-bottom: 0; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--sage-100); color: var(--sage-600); font-size: 12.5px; font-weight: 700; padding: 10px 16px; border-radius: 999px; }
.pill svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.credential-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.credential-card .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.credential-card .icon svg { width: 23px; height: 23px; color: var(--sage-600); }
.credential-card h4 { font-size: 16px; margin-bottom: 6px; font-family: var(--font-display); }
.credential-card p { font-size: 13.5px; color: var(--ink-500); margin: 0; line-height: 1.6; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.contact-row:last-child { border-bottom: none; }
.contact-row .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--sage-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .icon svg { width: 22px; height: 22px; color: var(--sage-600); }
.contact-row h4 { font-size: 15px; margin-bottom: 5px; font-family: var(--font-display); }
.contact-row p, .contact-row a { font-size: 14.5px; color: var(--ink-500); line-height: 1.6; }
.contact-row a:hover { color: var(--gold-600); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 6px 0; font-size: 14.5px; color: var(--ink-500); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy-900); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border-soft); height: 100%; min-height: 440px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.65); padding: 76px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .brand img { height: 48px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.75; margin: 20px 0 0; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.footer-social a:hover { background: var(--gold-500); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.site-footer h5 { color: var(--gold-300); font-family: var(--font-display); font-style: italic; font-size: 16px; margin-bottom: 22px; }
.site-footer ul li { margin-bottom: 13px; }
.site-footer ul a { font-size: 14.5px; transition: color 0.2s ease; }
.site-footer ul a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 12.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-900);
  color: #fff;
  padding: 15px 22px 15px 17px;
  border-radius: 999px;
  box-shadow: 0 16px 34px -12px rgba(11, 23, 64, 0.55);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.02); background: var(--navy-800); }
.whatsapp-float svg { width: 22px; height: 22px; color: var(--gold-300); }
@media (max-width: 640px) {
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 15px; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Misc
   ========================================================================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.leaf-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold-500);
  margin: 0 0 40px;
}
.leaf-divider::before, .leaf-divider::after { content: ""; height: 1px; flex: 1; background: var(--border-soft); }

::selection { background: var(--gold-300); color: var(--navy-900); }
