/* ── Globals ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #F8F9FA;
  color: #1D1D1B;
}

/* ── Navbar ──────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.07);
}
#navbar.scrolled .nav-link  { color: #1D1D1B; }
#navbar.scrolled .nav-logo  { color: #009640; }
#navbar.scrolled .nav-sub   { color: #8C8C8C; }
#navbar.scrolled .nav-btn   { background: #5EB471; color: #fff; }
#navbar.scrolled #hamburger { color: #1D1D1B; }

/* ── Hero Slider ─────────────────────────────────── */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 1.2s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Glassmorphism buttons ───────────────────────── */
.btn-glass-green {
  background: rgba(94,180,113,0.18);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(94,180,113,0.45);
  color: #fff;
  transition: background 0.3s;
}
.btn-glass-green:hover { background: rgba(94,180,113,0.40); }

.btn-glass-white {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  transition: background 0.3s;
}
.btn-glass-white:hover { background: rgba(255,255,255,0.22); }

/* ── LED line ────────────────────────────────────── */
.led-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #5EB471 30%, #B9D370 70%, transparent);
  box-shadow: 0 0 8px rgba(94,180,113,0.55), 0 0 20px rgba(94,180,113,0.18);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s ease;
}
.led-line.visible { transform: scaleX(1); }

/* ── Fade-in on scroll ───────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Feature cards (A Clínica) ──────────────────── */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(94,180,113,0.15);
  border-color: rgba(94,180,113,0.35);
}
.feature-card:hover .w-12 {
  background: rgba(94,180,113,0.2) !important;
}

/* ── Galeria Grid ────────────────────────────────── */
.galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 22rem 18rem;
  gap: 0.75rem;
}
.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
}
.galeria-item.galeria-main { grid-row: 1 / 3; }

.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.galeria-item:hover img { transform: scale(1.06); }

/* Efeito hover: tint verde + borda interna */
.masonry-glass {
  position: absolute; inset: 0;
  opacity: 0;
  border-radius: 1rem;
  transition: opacity 0.35s ease;
  background: rgba(94,180,113,0.15);
  box-shadow: inset 0 0 0 3px rgba(94,180,113,0.6);
}
.galeria-item:hover .masonry-glass { opacity: 1; }

.masonry-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

@media (max-width: 767px) {
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .galeria-item.galeria-main {
    grid-column: 1 / 3;
    height: 16rem;
    grid-row: auto;
  }
  .galeria-item { height: 12rem; }
}

/* ── Bento Grid ──────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 1023px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .bento-grid { grid-template-columns: 1fr; } }

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  min-height: 180px;
  background: #1a1a1a;
}
.bento-tall { grid-row: span 2; min-height: 370px; }
.bento-wide { grid-column: span 2; }

/* Imagem de fundo */
.bento-card .bento-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bento-card:hover .bento-img { transform: scale(1.07); }

/* Overlay escuro permanente (garante leitura do nome) */
.bento-card .bento-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.05) 100%);
  transition: background 0.3s ease;
}
.bento-card:hover .bento-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
}

/* Nome da especialidade */
.bento-card h3 {
  position: absolute;
  bottom: 1rem; left: 1rem; right: 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 2;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.bento-card:hover h3 { transform: translateY(-4px); }

/* Texto revelado no hover */
.reveal-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1rem 1.25rem;
  background: rgba(94,180,113,0.93);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.55;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  border-radius: 0 0 1rem 1rem;
  z-index: 3;
}
.bento-card:hover .reveal-text { transform: translateY(0); }

/* ── Equipe — dessaturação ───────────────────────── */
.team-photo {
  filter: grayscale(55%);
  transition: filter 0.5s ease;
  width: 100%; height: 100%;
  object-fit: cover;
}
.team-photo:hover { filter: grayscale(0%); }

@media (max-width: 767px) {
  .luciano-photo {
    transform: scale(1.6);
    transform-origin: 50% 60%;
  }
}

/* ── Dentista strip ──────────────────────────────── */
.dentista-strip {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(94,180,113,0.3) transparent;
}
.dentista-strip::-webkit-scrollbar { height: 4px; }
.dentista-strip::-webkit-scrollbar-track { background: transparent; }
.dentista-strip::-webkit-scrollbar-thumb { background: rgba(94,180,113,0.35); border-radius: 2px; }

.dentista-card {
  flex: 0 0 264px;
  aspect-ratio: 2/3;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

/* Desktop — carrossel card a card + fade nas bordas */
@media (min-width: 768px) {
  .dentista-strip {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: default;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }
  .dentista-strip::-webkit-scrollbar { display: none; }
  .dentista-card { scroll-snap-align: start; }
}

/* Mobile — peek carousel */
@media (max-width: 767px) {
  .dentista-strip {
    margin-inline: -1.5rem;
    padding-inline: 10vw;
    scroll-padding-inline: 10vw;
    gap: 0.75rem;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .dentista-strip::-webkit-scrollbar { display: none; }
  .dentista-card {
    flex: 0 0 78vw;
    scroll-snap-align: center;
    border-radius: 1rem;
  }
}
.dentista-card { cursor: zoom-in; }
.dentista-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.dentista-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(94,180,113,0.2);
}
.dentista-card:hover img { transform: scale(1.03); }

/* ── Lightbox ────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-height: 92vh;
  max-width: 92vw;
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  object-fit: contain;
  animation: lb-in 0.22s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
#lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
#lightbox-close:hover { color: #fff; }

/* ── WhatsApp float ──────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 0;
  width: 3.25rem; height: 3.25rem;
  padding: 0;
  background: #5EB471;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(94,180,113,0.45);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: width 0.35s ease, gap 0.35s ease, padding 0.35s ease, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.wa-float:hover {
  width: auto;
  padding: 0 1.25rem;
  gap: 0.6rem;
  transform: scale(1.04);
  box-shadow: 0 6px 30px rgba(94,180,113,0.55);
}
.wa-float svg { flex-shrink: 0; }
.wa-float .wa-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s ease;
}
.wa-float:hover .wa-label { max-width: 120px; }

/* ── Section headings ────────────────────────────── */
.section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #5EB471;
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #1D1D1B;
  line-height: 1.2;
}
.section-sub {
  color: #8C8C8C;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── Urgência top bar ────────────────────────────── */
#urgencia-bar {
  background: #009640;
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 60;
}
#urgencia-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
#urgencia-bar .close-bar {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; opacity: 0.7;
}

/* ── Scroll indicator ────────────────────────────── */
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.scroll-indicator span {
  font-size: 0.6rem; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.2em;
}
.scroll-indicator svg {
  color: rgba(255,255,255,0.5);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(6px); opacity: 1; }
}

/* ── Como Funciona ───────────────────────────────── */
.processo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 767px) {
  .processo-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.processo-grid::before {
  content: '';
  position: absolute;
  top: 2.25rem; left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #5EB471 20%, #B9D370 80%, transparent);
}
@media (max-width: 767px) { .processo-grid::before { display: none; } }

.processo-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 1.5rem;
}
.processo-num {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  background: #5EB471;
  box-shadow: 0 4px 20px rgba(94,180,113,0.3);
  margin-bottom: 1.25rem; position: relative; z-index: 1;
  flex-shrink: 0;
}
.processo-step h4 { font-size: 0.95rem; font-weight: 700; color: #1D1D1B; margin-bottom: 0.5rem; }
.processo-step p  { font-size: 0.8rem; color: #8C8C8C; line-height: 1.6; }

/* ── FAQ accordion ───────────────────────────────── */
.faq-item {
  border-bottom: 1px solid #f0f0f0;
}
.faq-question {
  width: 100%; text-align: left;
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.95rem; font-weight: 600; color: #1D1D1B;
  background: none; border: none; cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: #5EB471; }
.faq-icon {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: #f0f0f0; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, transform 0.3s;
}
.faq-icon svg { width: 0.75rem; height: 0.75rem; color: #8C8C8C; transition: color 0.2s; }
.faq-item.open .faq-icon { background: #5EB471; transform: rotate(45deg); }
.faq-item.open .faq-icon svg { color: #fff; }
.faq-item.open .faq-question { color: #5EB471; }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.875rem; color: #4a4a4a; line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 1.25rem; }

/* ── Instagram section ───────────────────────────── */
.ig-section {
  background: linear-gradient(135deg, #0d2018 0%, #1a3824 50%, #0d2018 100%);
  position: relative; overflow: hidden;
}
.ig-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(185,211,112,0.08) 0%, transparent 60%);
}
.ig-handle {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #5EB471, #B9D370);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── Stats Bar ───────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
@media (max-width: 639px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid #f0f0f0;
  position: relative;
}
.stat-item:last-child { border-right: none; }
@media (max-width: 639px) {
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid #f0f0f0; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid #f0f0f0; }
}

.stat-number {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #5EB471;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.75rem;
  color: #8C8C8C;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Depoimentos ─────────────────────────────────── */
.depo-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.depo-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.depo-stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 0.05em; }
.depo-text {
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.7;
  flex: 1;
}
.depo-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f5f5f5;
}
.depo-avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #5EB471, #B9D370);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.depo-name { font-size: 0.85rem; font-weight: 600; color: #1D1D1B; }
.depo-source { font-size: 0.7rem; color: #8C8C8C; display: flex; align-items: center; gap: 0.3rem; }

/* ── CTA Band ────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #0d2018 0%, #1a3824 60%, #0f2a1a 100%);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(94,180,113,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(94,180,113,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Convênios ───────────────────────────────────── */
.convenio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1D1D1B;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* ── Bento mobile touch ──────────────────────────── */
@media (hover: none) {
  .bento-card.touched .reveal-text  { transform: translateY(0); }
  .bento-card.touched h3            { transform: translateY(-4px); }
  .bento-card.touched .bento-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
  }
}

/* ── Footer ──────────────────────────────────────── */
#footer {
  background: #3a3a38;
}
.footer-grid-bg {
  background-image:
    linear-gradient(rgba(94,180,113,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,180,113,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ── Mobile menu ─────────────────────────────────── */
#mobile-menu {
  display: none;
  border-top: 1px solid #f0f0f0;
}
#mobile-menu.open { display: block; }

/* ── Slide indicators ────────────────────────────── */
.slide-dot {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.3);
  width: 8px;
  transition: width 0.4s, background 0.4s;
  border: none; cursor: pointer; padding: 0;
}
.slide-dot.active { width: 32px; background: #5EB471; }
