/* ═══════════════════════════════════════════════════════════════════════
   Maví Centro Auditivo – CSS Principal
   Fiel ao design original Next.js
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Variáveis ──────────────────────────────────────────────────────────── */
:root {
  --cream:       #F5F0E8;
  --dark:        #242C3F;
  --dark-soft:   #2E3649;
  --olive:       #4A5268;
  --olive-light: #7A8299;
  --gold:        #C8A96E;
  --gold-light:  #E8D4A8;
  --white:       #FAFAF7;
  --gray-light:  #EFEFEA;
  --text-muted:  #6B6B6A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
address { font-style: normal; }

/* ── Utilitários ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gold { font-style: italic; color: var(--gold); }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-light);
  border: 1px solid rgba(74,82,104,.25);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.875rem;
  margin-bottom: 1rem;
}

.section-tag--gold {
  color: var(--gold);
  border-color: var(--gold);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--olive-light);
  font-size: 1rem;
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── Animações ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero animations on load */
.hero .fade-up {
  animation: fadeUp 0.8s ease forwards;
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVEGAÇÃO
   ══════════════════════════════════════════════════════════════════════════ */
.mavi-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.mavi-nav.nav-scrolled {
  background: rgba(250,250,247,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.mavi-nav--light .nav-links a,
.mavi-nav--light .nav-logo-text {
  color: var(--dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 36px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
.mavi-nav.nav-scrolled .nav-logo-text { color: var(--dark); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(250,250,247,.85);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold); }

.mavi-nav.nav-scrolled .nav-links a { color: var(--dark); }
.mavi-nav.nav-scrolled .nav-links a:hover { color: var(--gold); }

/* CTA do nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--dark) !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-cta-icon { font-size: 1rem; }

/* Hambúrguer */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}
.mavi-nav.nav-scrolled .nav-hamburger span { background: var(--dark); }
.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Menu mobile */
.nav-mobile-menu {
  display: none;
  background: var(--white);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--gray-light);
}
.nav-mobile-menu.is-open { display: block; }
.nav-mobile-menu ul { display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  display: block;
  padding: 0.25rem 0;
}
.nav-mobile-menu a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════════
   BOTÕES
   ══════════════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(250,250,247,.35);
  transition: all var(--transition);
}
.btn-ghost:hover {
  background: rgba(250,250,247,.1);
  border-color: rgba(250,250,247,.6);
}
.btn-ghost-arrow { transition: transform var(--transition); }
.btn-ghost:hover .btn-ghost-arrow { transform: translateY(3px); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  width: 100%;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--dark);
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(36,44,63,.82) 0%,
    rgba(36,44,63,.65) 50%,
    rgba(36,44,63,.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(200,169,110,.35);
  border-radius: var(--radius-pill);
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(250,250,247,.78);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s ease infinite;
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVIÇOS
   ══════════════════════════════════════════════════════════════════════════ */
.services {
  padding: 7rem 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  background: var(--white);
  transition: background var(--transition), border-color var(--transition);
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover { background: var(--cream); border-color: var(--gold-light); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__icon { font-size: 2rem; margin-bottom: 1.25rem; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--olive-light);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-card__arrow {
  color: var(--gold);
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   MANIFESTO
   ══════════════════════════════════════════════════════════════════════════ */
.manifesto {
  padding: 7rem 0;
  background: var(--dark);
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--white);
  max-width: 780px;
  margin: 0 auto 2rem;
  border: none;
}

.manifesto-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   EQUIPE
   ══════════════════════════════════════════════════════════════════════════ */
.team {
  padding: 7rem 0;
  background: var(--cream);
}

.team .section-header { text-align: left; max-width: 100%; margin-bottom: 3rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.team-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.team-card:hover .team-card__image { transform: scale(1.04); }

.team-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(36,44,63,.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
}

.team-card__cred {
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.team-card__placeholder {
  aspect-ratio: 4/3;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
}

.team-card__info {
  padding: 1rem 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.team-card__bio {
  padding: 1.25rem 1.5rem 1.75rem;
  font-size: 0.9rem;
  color: var(--olive-light);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════════════
   CLÍNICA / CARROSSEL
   ══════════════════════════════════════════════════════════════════════════ */
.clinic {
  padding: 7rem 0;
  background: var(--white);
}

.clinic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Carrossel */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-light);
}

.carousel-track {
  display: flex;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: none;
}
.carousel-slide.is-active { display: block; }

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(250,250,247,.92);
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), background var(--transition);
  z-index: 2;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); background: var(--white); }
.carousel-btn--prev { left: 1rem; }
.carousel-btn--next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250,250,247,.5);
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.is-active {
  background: var(--white);
  transform: scale(1.25);
}

/* Texto da clínica */
.clinic-text { display: flex; flex-direction: column; gap: 1.25rem; }
.clinic-text p { color: var(--olive-light); line-height: 1.75; }
.clinic-no-images {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--olive-light);
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   DEPOIMENTOS
   ══════════════════════════════════════════════════════════════════════════ */
.testimonials {
  padding: 7rem 0;
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.testimonial-card__stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--olive);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.testimonial-card__meta {
  display: block;
  font-size: 0.78rem;
  color: var(--olive-light);
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTATO
   ══════════════════════════════════════════════════════════════════════════ */
.contact {
  padding: 7rem 0;
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-form-wrap .section-title { color: var(--white); margin-top: 0.5rem; }

.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--olive-light);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
  margin-top: 0.5rem;
}
.contact-address svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }

/* Formulário de contato */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--olive-light);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--gold); }
.form-checkbox span { font-size: 0.82rem; color: var(--olive-light); line-height: 1.5; }
.form-checkbox a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

/* Feedback */
.form-feedback {
  font-size: 0.875rem;
  min-height: 1.4em;
  margin-top: -0.5rem;
}
.form-feedback.success { color: #7fcb8b; }
.form-feedback.error   { color: #f08080; }

/* Mapa */
.contact-map {
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact-map iframe { border-radius: var(--radius-lg); }
.contact-map-placeholder {
  height: 100%;
  min-height: 420px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--olive-light);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   BLOG – CARDS (compartilhado: home preview + archive + related)
   ══════════════════════════════════════════════════════════════════════════ */
.blog-preview { padding: 7rem 0; background: var(--white); }
.blog-archive { padding: 4rem 0 7rem; background: var(--white); }
.related-posts { padding: 5rem 0; background: var(--cream); }
.related-posts__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 2.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-grid--archive { grid-template-columns: repeat(3, 1fr); }

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.blog-card__image-link { display: block; }
.blog-card__image-wrap { aspect-ratio: 16/9; overflow: hidden; }
.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__image { transform: scale(1.05); }

.blog-card__image-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
}

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.blog-card__date {
  font-size: 0.78rem;
  color: var(--olive-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--dark);
}
.blog-card__title a { transition: color var(--transition); }
.blog-card__title a:hover { color: var(--gold); }

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--olive-light);
  line-height: 1.65;
}

.blog-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
  transition: gap var(--transition);
}
.blog-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Hero do blog archive */
.blog-hero {
  background: var(--dark);
  padding: 10rem 0 5rem;
  text-align: center;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--white);
  margin: 1rem 0;
}
.blog-hero__subtitle {
  color: var(--olive-light);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Paginação */
.blog-pagination { margin-top: 4rem; display: flex; justify-content: center; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  border: 1px solid var(--gray-light);
  transition: all var(--transition);
}
.blog-pagination .page-numbers a:hover { border-color: var(--gold); color: var(--gold); }
.blog-pagination .page-numbers .current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 700;
}

.blog-empty {
  text-align: center;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: var(--olive-light);
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════════════════════════════════════════ */
.single-post { padding-top: 5.5rem; }

.post-breadcrumb { padding: 2rem 0 0; }
.back-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--olive-light);
  transition: color var(--transition);
}
.back-link:hover { color: var(--gold); }

.post-header {
  padding: 2rem 0 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
  transition: all var(--transition);
}
.post-category:hover { background: var(--gold); color: var(--dark); }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--olive-light);
}
.post-meta-sep { color: var(--gray-light); }
.post-author { color: var(--dark); font-weight: 500; }
.post-author:hover { color: var(--gold); }
.post-read-time { color: var(--olive-light); }

.post-featured-image {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.post-thumbnail {
  width: 100%;
  border-radius: var(--radius-lg);
  max-height: 520px;
  object-fit: cover;
}

/* Conteúdo do post */
.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.post-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--dark);
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  margin: 2rem 0 0.75rem;
}
.post-body h4 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }

.post-body p { margin-bottom: 1.25rem; }

.post-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { opacity: 0.8; }

.post-body ul, .post-body ol { margin: 1.25rem 0 1.25rem 1.5rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.5rem; }

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--olive);
}

.post-body img { border-radius: var(--radius-md); margin: 2rem 0; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.post-body th, .post-body td { border: 1px solid var(--gray-light); padding: 0.75rem 1rem; text-align: left; }
.post-body th { background: var(--cream); font-weight: 600; }

.post-body pre {
  background: var(--dark);
  color: var(--gold-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.post-body code { font-family: monospace; font-size: 0.9em; background: var(--cream); padding: 0.15em 0.4em; border-radius: 3px; }
.post-body pre code { background: none; padding: 0; color: inherit; }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
  font-size: 0.875rem;
  color: var(--olive-light);
}
.post-tag {
  background: var(--cream);
  color: var(--dark);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  transition: all var(--transition);
}
.post-tag:hover { background: var(--gold); color: var(--dark); }

/* Autor box */
.post-author-box {
  display: flex;
  gap: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 2.5rem;
  align-items: flex-start;
}
.post-author-box__avatar img { border-radius: 50%; }
.post-author-box__info { display: flex; flex-direction: column; gap: 0.25rem; }
.post-author-box__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--olive-light); }
.post-author-box__name { font-weight: 600; color: var(--dark); font-size: 1rem; }
.post-author-box__name:hover { color: var(--gold); }
.post-author-box__bio { font-size: 0.875rem; color: var(--olive-light); line-height: 1.6; margin-top: 0.25rem; }

/* Newsletter no post */
.post-newsletter { background: var(--dark); padding: 5rem 0; }
.post-newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.post-newsletter__inner h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.post-newsletter__inner p { color: var(--olive-light); margin-bottom: 2rem; }

/* Newsletter form (shared) */
.newsletter-form { display: flex; flex-direction: column; gap: 0.875rem; }

.newsletter-row {
  display: flex;
  gap: 0.75rem;
}

.newsletter-row input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.newsletter-row input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-row input:focus { outline: none; border-color: var(--gold); }

.newsletter-row button {
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.newsletter-row button:hover { opacity: 0.9; }
.newsletter-row button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════════════════
   PÁGINAS LEGAIS
   ══════════════════════════════════════════════════════════════════════════ */
.legal-page, .page-content {
  padding: 8rem 2rem 6rem;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--dark);
  margin: 1.5rem 0 0.5rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--dark);
  margin: 2.5rem 0 0.75rem;
}

.legal-page p { color: var(--olive-light); margin-bottom: 1rem; line-height: 1.75; }
.legal-page ul { list-style: disc; padding-left: 1.5rem; color: var(--olive-light); margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.5rem; line-height: 1.65; }
.legal-page a { color: var(--gold); text-decoration: underline; }

.legal-updated {
  font-size: 0.85rem;
  color: var(--olive-light);
  margin-bottom: 2rem !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   RODAPÉ
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark-soft);
  color: var(--white);
  padding: 5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo-img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
}
.footer-tagline { font-size: 0.875rem; color: var(--olive-light); line-height: 1.6; max-width: 280px; }

/* Footer newsletter */
.footer-newsletter .newsletter-row input { background: rgba(255,255,255,.07); }
.footer-newsletter .form-checkbox span,
.footer-newsletter .form-checkbox a { font-size: 0.78rem; }

/* Footer colunas */
.footer-col { display: flex; flex-direction: column; gap: 1rem; }
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--olive-light);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

/* Social */
.footer-social { flex-direction: row !important; flex-wrap: wrap; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: var(--olive-light) !important;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--dark) !important; }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--olive-light); }
.footer-bottom ul { display: flex; gap: 1.5rem; }
.footer-bottom a { font-size: 0.8rem; color: var(--olive-light); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.whatsapp-float__icon {
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover .whatsapp-float__icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

.whatsapp-float__tag {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem 0.5rem 0.625rem;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  white-space: nowrap;
}
.whatsapp-float:hover .whatsapp-float__tag {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.whatsapp-float__label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--olive-light);
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════
   PÁGINA DE ERRO 404
   ══════════════════════════════════════════════════════════════════════════ */
.error-404 { padding: 6rem 0; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--archive { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { gap: 3rem; }
  .clinic-grid { gap: 3rem; }
}

@media (max-width: 900px) {
  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .clinic-grid { grid-template-columns: 1fr; }
  .clinic-text { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-map { min-height: 320px; }

  .hero-scroll-indicator { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }

  /* Sections padding */
  .services, .team, .clinic, .testimonials, .contact, .blog-preview,
  .blog-archive, .related-posts { padding: 5rem 0; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid, .blog-grid--archive { grid-template-columns: 1fr; }

  /* Hero */
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Newsletter */
  .newsletter-row { flex-direction: column; }
  .newsletter-row button { width: 100%; }

  /* Post */
  .post-featured-image { padding: 0 1.25rem 2rem; }
  .post-author-box { flex-direction: column; }
  .post-header { max-width: 100%; }
  .post-content { max-width: 100%; padding: 0 1.25rem 3rem; }

  /* Legal */
  .legal-page, .page-content { padding: 7rem 1.25rem 4rem; }

  /* WhatsApp float */
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
}

@media (max-width: 400px) {
  .hero-heading { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
}
