:root {
  --primary: #0b6d9c;
  --secondary: #f2f7fb;
  --accent: #f59b42;
  --dark: #1d1d1f;
  --muted: #555;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  --max-width: 1120px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--dark);
  background: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.container {
  width: min(100%, var(--max-width));
  padding: 0 1.25rem;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

.brand span img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  padding: 0.4rem 0.25rem;
  border-radius: 6px;
}

.nav-links a:hover {
  background: rgba(11, 109, 156, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11, 109, 156, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
}

.full-width {
  width: 100%;
}

.hero {
  min-height: 80vh;
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(207, 175, 71, 0.22), rgba(207, 175, 71, 0.04));
  color: #000;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
  text-align: left;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-content {
  max-width: 540px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.3rem);
  margin: 0;
  max-width: 800px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero p {
  max-width: 700px;
  margin: 1.25rem auto 2.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

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

.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 2rem;
}

.section p.lead {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 700px;
  color: var(--muted);
}

.section.doctor {
  background: linear-gradient(135deg, rgba(207, 175, 71, 0.22), rgba(207, 175, 71, 0.04));
  color: #000;
}

.section.doctor .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section.doctor h2 {
  color: #000;
}

.section.doctor .card {
  background: rgba(255, 255, 255, 0.92);
  color: #000;
}

.section.alt,
.section.gold {
  background: linear-gradient(135deg, rgba(207, 175, 71, 0.22), rgba(207, 175, 71, 0.04));
}

.mt-3 {
  margin-top: 3rem;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid.auto-fit-240 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.auto-fit-260 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.two-cols {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.embed-card {
  margin-top: 2.5rem;
}

.embed-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-instagram .social-instagram-card {
  max-width: 580px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.social-instagram .instagram-media {
  margin: 0 auto !important;
}

/* Carousel de posts do Instagram */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 320ms ease;
  width: 100%;
}

.post {
  min-width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.post-caption {
  font-weight: 600;
  margin: 0;
}

.post-hashtags {
  color: var(--muted);
  font-size: 0.9rem;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

@media (min-width: 900px) {
  .post {
    padding: 2rem;
  }
}

.procedures {
  display: grid;
  gap: 1.75rem;
}

.procedure {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  flex-wrap: wrap;
}

.procedure.reverse {
  flex-direction: row-reverse;
}

.procedure-meta {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  background: rgba(11, 109, 156, 0.12);
  border-radius: 18px;
  font-size: 2rem;
  flex-shrink: 0;
}

.procedure-content {
  flex: 1;
  min-width: 220px;
}

.implants-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  text-align: left;
}

.implants-focus-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.implants-focus-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--dark);
}

.implants-focus-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.implants-focus-card p:last-child {
  margin-bottom: 0;
}

.implants-focus-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.5rem;
}

.implants-focus-note {
  font-size: 0.88rem !important;
  font-style: italic;
  margin-top: 0.5rem !important;
}

.implants-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.implant-media-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.implant-media-card > img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #e8eef2 0%, #dfe8ee 100%);
  display: block;
  flex-shrink: 0;
}

.implant-media-content {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
}

.implant-media-content h3 {
  margin: 0 0 0.35rem;
}

.before-after {
  position: relative;
  height: 280px;
  overflow: hidden;
  --position: 50%;
  flex-shrink: 0;
}

.before-after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.after-image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: #ffffff;
  transform: translateX(-1px);
  z-index: 2;
}

.before-after-divider::before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.before-after-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.before-after-label {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(29, 29, 31, 0.65);
  padding: 5px 10px;
  border-radius: 999px;
}

.before-after-label.before {
  left: 12px;
}

.before-after-label.after {
  right: 12px;
}

.map-wrapper {
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.appointment {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.appointment form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(250, 250, 252, 0.95);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.appointment label {
  font-weight: 600;
  font-size: 0.9rem;
}

.appointment input:not([type="radio"]):not([type="checkbox"]),
.appointment select,
.appointment textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  outline: none;
  font-size: 0.95rem;
  background: #fff;
}

.appointment input:not([type="radio"]):not([type="checkbox"]):focus,
.appointment select:focus,
.appointment textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 109, 156, 0.16);
}

.appointment-radios {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.appointment-radios legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding: 0;
}

.appointment-radios .radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.appointment-radios .radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  cursor: pointer;
}

.appointment-radios input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.appointment textarea {
  resize: vertical;
  min-height: 120px;
}

.testimonials .card {
  display: grid;
  gap: 1rem;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.author-photo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details {
  line-height: 1.1;
}

.author-details strong {
  display: block;
}

footer {
  padding: 3.5rem 0;
  background: #f0e6a5;
  color: #000;
}

footer .footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

footer a {
  color: rgba(0, 0, 0, 0.8);
}

footer a:hover {
  color: rgba(0, 0, 0, 0.95);
}

.footer-note {
  text-align: center;
  margin-top: 2.5rem;
  opacity: 0.85;
}

.social {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

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

  .hero {
    padding: 5rem 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .procedure {
    flex-direction: column;
    text-align: center;
  }

  .procedure.reverse {
    flex-direction: column;
  }

  .procedure-meta {
    margin: 0 auto;
  }
}

.faq {
    max-width: 900px;
    margin: 0 auto;
  }

  .faq details {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.92);
  }

  .faq summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
  }

  .faq summary::-webkit-details-marker {
    display: none;
  }

  .faq summary::after {
    content: "▾";
    float: right;
    transition: transform 200ms ease;
  }

  .faq details[open] summary::after {
    transform: rotate(180deg);
  }

  .faq p {
    margin: 0.75rem 0 0;
    color: var(--muted);
  }

  .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
