/* =============================================
   DRA. BÁRBARA AZEVEDO — ORTODONTIA
   ============================================= */

:root {
  --cream:       #F0EDE8;
  --cream-dark:  #E6E0D8;
  --gold:        #C9A870;
  --gold-dark:   #A8894F;
  --gold-light:  #E8D5B0;
  --white:       #FFFFFF;
  --text:        #2A2A2A;
  --text-mid:    #5C5C5C;
  --text-light:  #9A9A9A;
  --border:      rgba(201, 168, 112, 0.3);

  --ff-script: 'Corinthia', cursive;
  --ff-serif:  'Cormorant Garamond', serif;
  --ff-sans:   'Lato', sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 30px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 60px rgba(0,0,0,0.12);

  --max-w: 1180px;
  --header-h: 76px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section        { padding: 36px 0; }
.section-cream  { background: var(--cream); }

.section-label {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
}
.section-title em {
  font-style: italic;
  color: var(--gold-dark);
}
.section-sub {
  margin-top: 16px;
  color: var(--text-mid);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 137, 79, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(42,42,42,0.25);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--gold);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s;
}
.btn-outline-dark:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 36px; font-size: 15px; }

/* ===== ANIMATIONS ===== */
.fade-up, .fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in { transform: translateY(0) scale(0.97); }
.fade-up.visible, .fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== PLACEHOLDER IMAGES ===== */
.img-placeholder,
.gallery-placeholder {
  background: linear-gradient(135deg, var(--cream), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-family: var(--ff-serif);
  font-size: 1rem;
  text-align: center;
  min-height: 320px;
}
.img-placeholder img,
.gallery-placeholder img { display: none; }
.img-placeholder-text,
.gallery-placeholder-text { display: none; }
.img-placeholder .img-placeholder-text,
.gallery-placeholder .gallery-placeholder-text { display: block; }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
/* Logo: nome em script antes de rolar, isologo depois */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { display: block; height: 44px; width: auto; }
.logo-name {
  font-family: 'Corinthia', cursive;
  font-size: 1.7rem;
  color: var(--gold-dark);
  line-height: 1;
  position: relative;
  top: 5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + 32px) 24px 48px;
}
.hero-content { padding: 8px 0; }
.hero-name {
  display: block;
  font-family: var(--ff-script);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 12px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.invisalign-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 32px;
}
.hero-content h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold-dark);
}
.hero-sub {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
}
.hero-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  border-radius: 200px 200px 20px 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream-dark), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-frame.img-placeholder { min-height: unset; }
.hero-badge {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--gold);
}
.badge-num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.badge-label {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.4;
}

/* ===== SOBRE ===== */
.sobre .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre-frame {
  border-radius: 20px 20px 100px 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--cream), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.sobre-frame img { width: 100%; height: 100%; object-fit: cover; }
.sobre-image { position: relative; }
.sobre-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}
.sobre-card-logo { height: 32px; width: auto; margin: 0 auto 6px; }
.sobre-card p { font-size: 12px; color: var(--text-mid); }
.sobre-content p {
  color: var(--text-mid);
  margin-bottom: 16px;
}
.diferenciais {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diferenciais li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.d-icon { color: var(--gold); font-size: 12px; margin-top: 4px; flex-shrink: 0; }

/* ===== SERVIÇOS ===== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.servico-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.servico-icon {
  width: 56px; height: 56px;
  background: var(--cream);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}
.servico-icon svg { width: 30px; height: 30px; }
.servico-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.servico-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.servico-link {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.servico-link:hover { color: var(--gold); }

/* ===== GALERIA ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--cream), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder { color: var(--gold-dark); text-align: center; font-family: var(--ff-serif); }

.gallery-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}
.gallery-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gallery-footer p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ===== DEPOIMENTOS ===== */
.google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.stars { color: #F5A623; font-size: 1.2rem; letter-spacing: 2px; }
.google-rating span { color: var(--text-mid); font-size: 0.9rem; }

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dep-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.dep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.dep-stars { color: #F5A623; font-size: 1rem; letter-spacing: 2px; }
.dep-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.dep-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dep-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.dep-avatar-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dep-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}
.dep-author span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--gold);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}
.cta-banner .btn-primary {
  background: var(--white);
  color: var(--gold-dark);
  border-color: var(--white);
}
.cta-banner .btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--gold-dark); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-a.open {
  max-height: 400px;
  padding-bottom: 4px;
}
.faq-a p {
  padding: 0 24px 20px;
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ===== CONTATO ===== */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contato-info { display: flex; flex-direction: column; gap: 24px; }
.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.c-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contato-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contato-item a, .contato-item span {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.contato-item a:hover { color: var(--gold-dark); }
.contato-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow);
}
.contato-map iframe { display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-logo-name {
  display: block;
  font-family: var(--ff-script);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  line-height: 1;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-social p {
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 11px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px; height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .depoimentos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: span 2; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 24px;
    gap: 20px;
    text-align: center;
  }
  .hero-content { padding: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-image { order: -1; }
  .hero-frame { max-width: 280px; }
  .hero-badge { display: none; }

  .sobre .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sobre-image { order: -1; max-width: 340px; margin: 0 auto; }
  .sobre-card { right: 0; }
  .sobre-content { text-align: center; }
  .diferenciais { text-align: left; display: inline-flex; width: 100%; }

  .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .contato-map { height: 300px; }
}

@media (max-width: 768px) {
  .nav-container { justify-content: center; }
  .menu-toggle { position: absolute; right: 24px; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 32px 24px 40px;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { font-size: 15px; }
  .menu-toggle { display: flex; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .depoimentos-grid { grid-template-columns: 1fr; }
  .servicos-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-social { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { justify-content: center; }
  .cta-banner { padding: 60px 0; }
}
