:root {
  --color-primary: #b9923f;
  --color-primary-dark: #6f5320;
  --color-accent: #e3c688;
  --color-bg: #fffaf0;
  --color-surface: #ffffff;
  --color-text: #3e2f15;
  --color-text-soft: #7c6740;
  --color-border: #efdfc0;
  --shadow-soft: 0 10px 30px rgba(111, 83, 32, 0.1);
  --shadow-hover: 0 14px 38px rgba(111, 83, 32, 0.16);
  --radius-md: 14px;
  --radius-lg: 20px;
  --header-height: 88px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--color-bg);
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading.left {
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.3;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(185, 146, 63, 0.25);
}

.nav-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  font-weight: 800;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.menu-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--color-primary);
}

.nav a.btn {
  color: #ffffff;
}

.nav a.btn:hover {
  color: #ffffff;
}

.header-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Buttons */
.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 13px 22px;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(111, 83, 32, 0.22);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(111, 83, 32, 0.32);
}

.btn-outline {
  color: var(--color-primary-dark);
  border: 1px solid rgba(185, 146, 63, 0.45);
  background: transparent;
  padding: 13px 22px;
}

.btn-outline:hover {
  background: rgba(185, 146, 63, 0.12);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 92px 0 76px;
  background:
    radial-gradient(circle at 82% 14%, rgba(227, 198, 136, 0.28), transparent 240px),
    radial-gradient(circle at 15% 80%, rgba(185, 146, 63, 0.16), transparent 320px),
    #fffdf8;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 45%, #ffffff 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.hero-kicker {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.16;
  color: var(--color-primary-dark);
}

.hero-subtitle {
  margin-top: 18px;
  color: var(--color-text-soft);
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-support {
  margin-top: 18px;
  color: var(--color-text-soft);
}

.hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  align-self: center;
}

.hero-card h2 {
  font-size: 1.22rem;
  margin-bottom: 14px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-card li {
  display: flex;
  gap: 10px;
  color: var(--color-text-soft);
}

.hero-card i {
  margin-top: 3px;
  color: var(--color-primary);
}

.hero-media-card {
  padding: 14px;
  overflow: hidden;
}

.hero-facade {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--color-border);
}

.hero-media-content {
  padding: 14px 8px 6px;
}

.hero-media-content h2 {
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.hero-media-content p {
  color: var(--color-text-soft);
}

/* Cards / Benefits */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card i {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  color: var(--color-text-soft);
}

/* Treatments */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.treatment-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.treatment-item:hover {
  transform: translateY(-3px);
}

.treatment-item h3 {
  margin-bottom: 8px;
}

.treatment-item p {
  color: var(--color-text-soft);
}

/* Implants focus */
.implants-intro {
  max-width: 80ch;
  margin: 0 auto 22px;
  text-align: center;
}

.implants-intro p {
  color: var(--color-text-soft);
}

.implants-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.implant-media-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.implant-media-card > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.before-after {
  position: relative;
  height: 260px;
  overflow: hidden;
  --position: 50%;
}

.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);
}

.after-image-wrapper .before-after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(111, 83, 32, 0.25);
  transform: translateX(-1px);
  z-index: 2;
}

.before-after-divider::before {
  content: "\f337";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(111, 83, 32, 0.25);
}

.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;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(62, 47, 21, 0.62);
  padding: 5px 10px;
  border-radius: 999px;
}

.before-after-label.before {
  left: 12px;
}

.before-after-label.after {
  right: 12px;
}

.implant-media-content {
  padding: 18px;
}

.implant-media-content h3 {
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.implant-media-content p {
  color: var(--color-text-soft);
}

.implants-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.implant-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.implant-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.implant-card p {
  color: var(--color-text-soft);
}

.implants-compare {
  background: linear-gradient(165deg, #ffffff, #fff8e9);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.implants-compare h3 {
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.implants-compare ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.implants-compare li {
  display: flex;
  gap: 10px;
  color: var(--color-text-soft);
}

.implants-compare i {
  margin-top: 4px;
  color: var(--color-primary);
}

.implants-note {
  color: var(--color-text-soft);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 28%;
}

.team-card img.doctor-paulo {
  object-position: center 18%;
}

.team-card img.doctor-ciro {
  object-position: center 20%;
}

.team-card img.doctor-altemar {
  object-position: center 16%;
}

.team-card img.doctor-rubem {
  object-position: center 22%;
}

.team-card-content {
  padding: 18px;
}

.team-card-content h3 {
  margin-bottom: 4px;
  color: var(--color-primary-dark);
}

.team-role {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.team-card-content ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.team-card-content li {
  color: var(--color-text-soft);
  position: relative;
  padding-left: 14px;
}

.team-card-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.gallery-item img.patient-2 {
  object-position: center 22%;
}

.gallery-item img.patient-3 {
  object-position: center 18%;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.why-intro {
  color: var(--color-text-soft);
  margin-bottom: 20px;
  max-width: 62ch;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list i {
  margin-top: 5px;
  color: var(--color-primary);
}

.why-aside {
  background: linear-gradient(165deg, #ffffff, #fff5dd);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.why-aside h3 {
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.why-aside p {
  color: var(--color-text-soft);
  margin-bottom: 18px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card,
.map-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.contact-card h3 {
  margin-bottom: 12px;
}

.contact-card p {
  margin-bottom: 10px;
  color: var(--color-text-soft);
}

.contact-card p i {
  color: var(--color-primary);
  margin-right: 7px;
}

.hours {
  margin: 16px 0 20px;
  padding: 14px;
  border: 1px dashed rgba(185, 146, 63, 0.45);
  border-radius: 12px;
  background: #fffaf0;
}

.hours h4 {
  margin-bottom: 8px;
}

.map-card {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 280px;
  overflow: hidden;
  padding: 0;
}

.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  color: var(--color-accent);
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

.testimonial-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 2px;
  font-size: 1rem;
}

.testimonial-card span {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

/* Social */
.social-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.social-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.social-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.social-card p {
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

.social-embed {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.social-embed .instagram-media {
  min-width: 280px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* FAQ */
.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
}

.faq-question i {
  color: var(--color-primary);
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.32s ease;
  padding: 0 20px;
}

.faq-answer p {
  color: var(--color-text-soft);
}

.faq-item.active .faq-answer {
  max-height: 240px;
  padding: 0 20px 18px;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

/* CTA final */
.cta-final {
  padding: 84px 0 96px;
  background: linear-gradient(120deg, #8d6a2a 0%, #b9923f 55%, #6f5320 100%);
  color: #fff;
}

.cta-box {
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.cta-box p {
  max-width: 70ch;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.88);
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.footer-grid {
  display: grid;
  gap: 6px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1cb742;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 12px 26px rgba(8, 79, 29, 0.35);
  z-index: 998;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 30px rgba(8, 79, 29, 0.45);
}

/* Responsividade */
@media (max-width: 1024px) {
  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .team-grid,
  .implants-media,
  .implants-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header {
    height: 78px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .nav .header-cta {
    width: 100%;
  }

  .nav a:hover {
    background: #fff6e4;
  }

  .treatments-grid,
  .contact-grid,
  .implants-media,
  .implants-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cards-grid,
  .team-grid,
  .testimonials-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 250px;
  }

  .gallery-item img.patient-2 {
    object-position: center 16%;
  }

  .gallery-item img.patient-3 {
    object-position: center 12%;
  }

  .before-after {
    height: 220px;
  }

  .card,
  .treatment-item,
  .contact-card,
  .hero-card,
  .why-aside {
    padding: 20px;
  }

  .map-card {
    padding: 0;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    font-size: 1.65rem;
  }
}
