/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #FFFFFF;
  --off-white:   #F8F5F0;
  --cream:       #F2EDE4;
  --gold:        #B89A5A;
  --gold-light:  #D4B87A;
  --purple:      #6B2D8B;
  --purple-dark: #4A1A6B;
  --green-wa:    #25D366;
  --pink:        #E8317A;
  --dark:        #1A1A1A;
  --mid:         #3D3D3D;
  --muted:       #6E6E6E;
  --border:      #E0D9CF;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w: 1200px;
  --section-gap: 6rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================================
   TYPOGRAPHY UTILS
   ========================================= */
.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.label--white { color: rgba(255,255,255,0.7); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, #b8860b 0%, #a7a190 50%, #f8bb2b 100%);
  color: var(--white);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3),
              0 4px 6px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.btn--primary:hover {
  filter: brightness(1.15) contrast(1.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4),
              0 6px 12px rgba(0, 0, 0, 0.3);
}
.btn-degrade:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(gray);
  border-color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--white); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }

.btn--green {
  background: var(--green-wa);
  color: var(--white);
  border-color: var(--green-wa);
}
.btn--green:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn--pink {
  background: #E1306C;
  color: var(--white);
  border-color: #E1306C;
}

.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.82rem; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.navbar__inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 2rem;
}

.navbar__logo img {
  height: 44px;
  width: auto;
}

.navbar__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.navbar__links a {
  font-size: 0.88rem;
  color: var(--mid);
  font-weight: 400;
  transition: color 0.2s;
}
.navbar__links a:hover { color: var(--purple); }

.navbar__cta { margin-left: 1rem; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding-top: calc(68px + 4rem);
  padding-bottom: var(--section-gap);
  background: var(--white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.hero__sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 460px;
}

.hero__bullets {
  list-style: none;
  margin-bottom: 2rem;
}
.hero__bullets li {
  font-size: 0.92rem;
  color: var(--mid);
  padding: 0.3rem 0;
  padding-left: 1.4rem;
  position: relative;
}
.hero__bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  top: 0.2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero__tags span {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.3rem 0.8rem;
}

/* Hero right */
.hero__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.hero__img-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}
.hero__img {
  border-radius: 1rem;
  height: 480px;
  object-position: top center;
}

.hero__whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--green-wa);
  color: var(--white);
  padding: 1rem;
  border-radius: 30px 30px 5px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 2px 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero__whatsapp:hover {
  filter: brightness(1.1);
  transform: scale(1.05) translateY(-5px);
  border-radius: 30px 30px 30px 30px;
}

.hero__card {
  background: var(--cream);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.hero__card-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.hero__card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.hero__card-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* =========================================
   SOBRE
   ========================================= */
.sobre {
  padding: var(--section-gap) 0;
  background: var(--off-white);
}

.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.sobre__text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.sobre__img-wrap { border-radius: 1rem; overflow: hidden; }
.sobre__img { height: 460px; object-position: top; border-radius: 1rem; }

/* =========================================
   HARMONIZAÇÃO / ODONTOLOGIA (cards)
   ========================================= */
.harmonizacao {
  padding: var(--section-gap) 0;
  background: var(--cream);
}

.odontologia {
  padding: var(--section-gap) 0;
  background: var(--white);
}

.section-cta { text-align: center; margin-top: 2.5rem; }
.section-cta--top { margin-bottom: 2.5rem; margin-top: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.cards-grid--6 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }

.card__img-wrap { height: 200px; overflow: hidden; }
.card__img-wrap img { height: 100%; transition: transform 0.4s ease; }
.card:hover .card__img-wrap img { transform: scale(1.04); }

.card__body { padding: 1.25rem; }
.card__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.card__body p { font-size: 0.88rem; color: var(--muted); }

.card--odo .card__img-wrap { height: 170px; }

/* =========================================
   DEPOIMENTOS
   ========================================= */
.depoimentos {
  padding: var(--section-gap) 0;
  background: var(--off-white);
}

.depoimentos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.depo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: 0.92rem;
  color: var(--mid);
  transition: box-shadow 0.2s;
}
.depo-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.depo-card--wide { grid-column: 1 / -1; }

.depo-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.depo-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.depo-card__header strong { font-size: 0.9rem; display: block; margin-bottom: 2px; }
.depo-card__stars { color: #F4B70C; font-size: 0.85rem; letter-spacing: 1px; }

/* =========================================
   INSTAGRAM BANNER
   ========================================= */
.instagram { padding: 2rem 0; }

.instagram__banner {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, #9B3FC0 100%);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.instagram__left h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--white);
  max-width: 460px;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
  padding: var(--section-gap) 0;
  background: var(--off-white);
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq__item {
  border: none;
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  background: var(--purple);
  padding: 1rem 1.25rem;
  border-radius: 0.4rem;
  border: none;
  transition: all 0.3s ease;
}

.faq__question:hover {
  background: var(--purple-dark);
}

/* Quando aberto, arredonda apenas os cantos de cima */
.faq__question[aria-expanded="true"] {
  background: var(--purple-dark);
  border-radius: 0.4rem 0.4rem 0 0;
}

.faq__icon {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* Rotação do ícone quando o item está aberto */
.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

/* A resposta começa com altura 0 */
.faq__answer {
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: 0 0 0.4rem 0.4rem;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
}

/* Ativado pelo .classList.add('open') no script.js */
.faq__answer.open {
  max-height: 500px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-top: none;
}

.faq__answer p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq__answer a {
  color: var(--purple);
  text-decoration: underline;
}

/* =========================================
   CTA FINAL
   ========================================= */
.cta-final {
  padding: 4rem 0;
  background: var(--dark);
}

.cta-final__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-final__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  max-width: 520px;
}

.cta-final__btns {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #111111;
  padding: 3rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo img { height: 48px; width: auto; filter: brightness(1.1); }

.footer__col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer__col a,
.footer__col p {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.footer__col a:hover { color: var(--gold-light); }

.footer__bottom {
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .navbar__links { display: none; }
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  }
  .navbar__links.open a { font-size: 1rem; }

  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__img { height: 340px; }
  .sobre__inner { grid-template-columns: 1fr; }
  .sobre__img { height: 300px; }
  .faq__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-final__inner { flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-gap: 4rem; }
  .cards-grid,
  .cards-grid--6 { grid-template-columns: 1fr 1fr; }
  .depoimentos__grid { grid-template-columns: 1fr; }
  .depo-card--wide { grid-column: auto; }
  .instagram__banner { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cards-grid,
  .cards-grid--6 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .cta-final__btns { flex-direction: column; width: 100%; }
  .cta-final__btns .btn { text-align: center; justify-content: center; }
}

/* ===== FIX MOBILE PRIORITÁRIO ===== */

/* Evita overflow horizontal */
html, body {
  overflow-x: hidden;
}

/* Container mais seguro em telas pequenas */
.container {
  padding: 0 1.2rem;
}

/* HERO: garante leitura correta no mobile */
@media (max-width: 768px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
  }

  .hero__right {
    order: -1; /* imagem vem antes do texto */
  }

  .hero__img {
    height: auto;
    max-height: 380px;
  }

  .hero__content {
    text-align: left;
  }

  .hero__sub {
    max-width: 100%;
  }
}

/* NAVBAR MENU MOBILE */
@media (max-width: 1024px) {
  .navbar__links.open {
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* BOTÕES: evitar quebra ruim */
@media (max-width: 520px) {
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* CARDS: evita cortes de imagem */
.card__img-wrap {
  height: auto;
}

.card__img-wrap img {
  aspect-ratio: 4/3;
}

/* GRID: melhora espaçamento mobile */
@media (max-width: 768px) {
  .cards-grid,
  .cards-grid--6 {
    gap: 1rem;
  }
}

/* WHATSAPP FIXO — evita ficar gigante no mobile */
@media (max-width: 520px) {
  .hero__whatsapp {
    bottom: 1rem;
    right: 1rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* CTA FINAL — evita quebra lateral */
@media (max-width: 768px) {
  .cta-final__inner {
    align-items: stretch;
  }

  .cta-final__text h2 {
    max-width: 100%;
  }
}

/* INSTAGRAM banner ajuste */
@media (max-width: 768px) {
  .instagram__banner {
    text-align: left;
  }
}

/* SOBRE imagem ajuste */
@media (max-width: 768px) {
  .sobre__img {
    height: auto;
  }
}