/* ============================================================
   DRA. MARIANA VALENTE | Médica Dermatologista
   Landing Page — styles.css
   Paleta: Rosa antigo #C46575 | Blush #F2CDD0 | Mauve #695360
           Dourado #D4BC78 | Lilás #AFA5A7 | Mauve escuro #4A3A44
   Fontes: Cormorant Garamond (display) | Jost (corpo)
   ============================================================ */

/* ============================================================
   RESET & BASE
   ============================================================ */

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

:root {
  /* Cores da marca */
  --rosa:          #C46575;
  --rosa-hover:    #A84F62;
  --blush:         #F2CDD0;
  --blush-light:   #FBF3F4;
  --mauve:         #695360;
  --mauve-dark:    #4A3A44;
  --mauve-deep:    #2D1E26;
  --dourado:       #D4BC78;
  --dourado-light: #E8D9A4;
  --lilac:         #AFA5A7;
  --off-white:     #FDFBFC;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', system-ui, -apple-system, sans-serif;

  /* Espaçamentos */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   1.5rem;
  --sp-lg:   2.5rem;
  --sp-xl:   4rem;
  --sp-2xl:  6rem;
  --sp-3xl:  8rem;

  /* Container */
  --max-w:   1280px;
  --gutter:  1.5rem;

  /* Bordas */
  --r-sm:    4px;
  --r-md:    12px;
  --r-lg:    24px;
  --r-full:  9999px;

  /* Transições */
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  0.2s var(--ease);
  --t-base:  0.3s var(--ease);
  --t-slow:  0.6s var(--ease);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mauve-deep);
  background-color: var(--off-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   LAYOUT UTILITÁRIOS
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   TIPOGRAFIA GLOBAL
   ============================================================ */

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 0.75rem;
}

.section-eyebrow.centered { text-align: center; }

.section-eyebrow.light { color: var(--dourado-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--mauve);
}

.section-title.centered { text-align: center; }

.section-title.light { color: var(--off-white); }

.section-desc {
  font-size: 1rem;
  color: var(--lilac);
  line-height: 1.75;
  max-width: 52ch;
  margin-top: 1rem;
}

.section-header {
  margin-bottom: var(--sp-xl);
}

.section-header.centered,
.section-header .centered {
  text-align: center;
}

.section-header .section-desc {
  margin-inline: auto;
  text-align: center;
}

/* Linha decorativa dourada */
.title-accent-line {
  width: 44px;
  height: 1px;
  background: var(--dourado);
  margin-block: 1.25rem;
}

.title-accent-line.centered {
  margin-inline: auto;
}

.title-accent-line.light {
  background: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   BOTÕES
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), box-shadow var(--t-base),
              transform var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--rosa);
  color: var(--off-white);
}

.btn-primary:hover {
  background: var(--rosa-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 101, 117, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--mauve);
  border: 1.5px solid rgba(105, 83, 96, 0.3);
}

.btn-ghost:hover {
  border-color: var(--mauve);
  background: rgba(105, 83, 96, 0.06);
}

.btn-header {
  background: var(--rosa);
  color: var(--off-white);
  padding: 0.625rem 1.375rem;
  font-size: 0.8125rem;
  display: none;
}

.btn-header:hover {
  background: var(--rosa-hover);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .btn-header { display: inline-flex; }
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(253, 251, 252, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.header.scrolled {
  border-bottom-color: var(--blush);
  box-shadow: 0 2px 24px rgba(45, 30, 38, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.875rem;
}

.logo-link { flex-shrink: 0; }

.logo {
  height: 50px;
  width: auto;
}

/* NAV */
.nav {
  display: none;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}

@media (min-width: 900px) {
  .nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--mauve);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rosa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.nav-link:hover {
  color: var(--rosa);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  margin-left: auto;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--mauve);
  transition: transform var(--t-base), opacity var(--t-fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

/* MOBILE NAV ABERTO */
.nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--off-white);
  padding: 2rem var(--gutter);
  border-bottom: 1px solid var(--blush);
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(45, 30, 38, 0.08);
  z-index: 199;
}

.nav.open .nav-link {
  font-size: 1.125rem;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  background: var(--blush-light);
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: stretch;
  }
}

/* CONTEÚDO ESQUERDO */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-xl) var(--gutter);
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-content {
    padding-inline: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
    padding-right: 4rem;
    max-width: 56%;
  }
}

/* Eyebrow no hero */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Título hero */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  color: var(--mauve);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  color: var(--rosa);
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--lilac);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* COLUNA DIREITA COM FOTO */
.hero-photo-wrap {
  flex: 0 0 auto;
  width: 100%;
  height: 70vw;
  max-height: 500px;
  position: relative;
  overflow: visible;
}

@media (min-width: 900px) {
  .hero-photo-wrap {
    width: 44%;
    height: auto;
    max-height: none;
    min-height: calc(100svh - 72px);
  }
}

.hero-photo-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

/* Badge SBD */
.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(253, 251, 252, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--blush);
  border-radius: var(--r-full);
  padding: 0.625rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mauve);
  box-shadow: 0 4px 24px rgba(45, 30, 38, 0.1);
  white-space: nowrap;
  z-index: 2;
}

@media (min-width: 900px) {
  .hero-badge {
    left: -3rem;
    transform: none;
  }
}

.badge-star {
  color: var(--dourado);
  font-size: 0.875rem;
}

/* Decorações geométricas */
.hero-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-decor-1 {
  width: 280px;
  height: 280px;
  border: 1px solid var(--blush);
  bottom: -80px;
  right: -80px;
  opacity: 0.5;
}

.hero-decor-2 {
  width: 160px;
  height: 160px;
  background: var(--blush);
  top: 40px;
  left: -60px;
  opacity: 0.35;
}

/* ============================================================
   STRIP DE CREDENCIAIS
   ============================================================ */

.credentials-strip {
  background: var(--mauve);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.75rem var(--gutter);
  gap: 0;
}

.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 2rem;
  text-align: center;
  flex: 1 1 auto;
  min-width: 120px;
}

.cred-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--dourado);
  line-height: 1;
}

.cred-label {
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-align: center;
  max-width: 18ch;
}

.cred-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cred-divider { display: none; }
  .cred-item { flex: 1 1 45%; }
}

/* ============================================================
   SOBRE
   ============================================================ */

.sobre {
  padding-block: var(--sp-3xl);
  background: var(--off-white);
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .sobre-inner {
    grid-template-columns: 5fr 6fr;
    gap: var(--sp-2xl);
  }
}

/* Foto coluna */
.sobre-photo-wrap {
  position: relative;
}

.sobre-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 8%;
  border-radius: var(--r-md);
}

@media (min-width: 900px) {
  .sobre-photo { aspect-ratio: 4 / 5; }
}

/* Frame decorativo atrás da foto */
.sobre-photo-frame {
  position: absolute;
  inset: -1.25rem 1.25rem 1.25rem -1.25rem;
  border: 1.5px solid var(--blush);
  border-radius: var(--r-md);
  z-index: -1;
  pointer-events: none;
}

/* Tag flutuante na foto */
.sobre-photo-tag {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  background: var(--mauve);
  color: var(--off-white);
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(105, 83, 96, 0.25);
}

.sobre-tag-line {
  color: var(--dourado);
}

@media (max-width: 900px) {
  .sobre-photo-tag { right: 1rem; }
}

/* Coluna texto */
.sobre-text-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sobre-lead {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--mauve);
  margin-bottom: 1.25rem;
}

.sobre-text {
  font-size: 0.9375rem;
  color: #6E5F67;
  line-height: 1.8;
  margin-bottom: 0.875rem;
}

.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.75rem;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mauve);
  background: var(--blush-light);
  border: 1px solid var(--blush);
  border-radius: var(--r-full);
  padding: 0.375rem 0.875rem;
}

/* ============================================================
   ESPECIALIDADES
   ============================================================ */

.especialidades {
  padding-block: var(--sp-3xl);
  background: var(--blush-light);
}

.especialidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .especialidades-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .especialidades-grid { grid-template-columns: repeat(3, 1fr); }
}

.espec-card {
  background: var(--off-white);
  border-radius: var(--r-md);
  padding: 2rem;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base),
              transform var(--t-base);
}

.espec-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rosa), var(--dourado));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.espec-card:hover {
  border-color: var(--blush);
  box-shadow: 0 8px 40px rgba(196, 101, 117, 0.09);
  transform: translateY(-4px);
}

.espec-card:hover::after {
  transform: scaleX(1);
}

.espec-icon {
  width: 48px;
  height: 48px;
  color: var(--rosa);
  margin-bottom: 1.375rem;
}

.espec-icon svg {
  width: 100%;
  height: 100%;
}

.espec-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--mauve);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.espec-desc {
  font-size: 0.875rem;
  color: var(--lilac);
  line-height: 1.75;
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */

.diferenciais {
  position: relative;
  padding-block: var(--sp-3xl);
  overflow: hidden;
}

.diferenciais-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.diferenciais-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.diferenciais-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(105, 83, 96, 0.93) 0%,
    rgba(45, 30, 38, 0.9) 100%
  );
}

.diferenciais-content {
  position: relative;
  z-index: 1;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: var(--sp-lg);
}

@media (min-width: 768px) {
  .diferenciais-grid { grid-template-columns: repeat(3, 1fr); }
}

.diff-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(6px);
  transition: background var(--t-base), border-color var(--t-base);
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 188, 120, 0.35);
}

.diff-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--dourado);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.65;
}

.diff-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 0.875rem;
  line-height: 1.2;
}

.diff-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */

.depoimentos {
  padding-block: var(--sp-3xl);
  background: var(--off-white);
  overflow: hidden;
}

.depo-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
}

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

/* Mobile: exibe um por vez */
@media (max-width: 768px) {
  .depo-track {
    grid-template-columns: 1fr;
  }

  .depo-card {
    display: none;
  }

  .depo-card.active {
    display: flex;
  }
}

.depo-card {
  background: var(--blush-light);
  border: 1px solid var(--blush);
  border-radius: var(--r-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.depo-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--blush);
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  pointer-events: none;
}

.depo-stars {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--dourado);
  margin-bottom: 1rem;
}

.depo-quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--mauve);
  flex: 1;
  margin-bottom: 1.5rem;
  border: none;
  quotes: none;
}

.depo-author {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--blush);
}

.depo-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mauve);
}

.depo-role {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--lilac);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Controles mobile */
.depo-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .depo-controls { display: flex; }
}

.depo-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--blush);
  background: var(--off-white);
  color: var(--mauve);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.depo-btn:hover {
  background: var(--rosa);
  border-color: var(--rosa);
  color: var(--off-white);
}

.depo-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.depo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blush);
  transition: background var(--t-fast), transform var(--t-fast);
}

.depo-dot.active {
  background: var(--rosa);
  transform: scale(1.3);
}

/* ============================================================
   CTA AGENDAMENTO
   ============================================================ */

.cta-section {
  background: var(--blush-light);
  padding-block: var(--sp-3xl);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-inner {
    grid-template-columns: 6fr 5fr;
    gap: var(--sp-2xl);
  }
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--mauve);
  margin-bottom: 1.25rem;
}

.cta-title em {
  font-style: italic;
  color: var(--rosa);
}

.cta-desc {
  font-size: 1rem;
  color: var(--lilac);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 44ch;
}

.cta-infos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.cta-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--mauve);
  line-height: 1.5;
}

.cta-info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--rosa);
}

/* Foto CTA */
.cta-photo-col {
  position: relative;
}

.cta-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px rgba(45, 30, 38, 0.12);
}

@media (min-width: 900px) {
  .cta-photo-col::before {
    content: '';
    position: absolute;
    inset: -1.25rem -1.25rem 1.25rem 1.25rem;
    border: 1.5px solid var(--blush);
    border-radius: var(--r-md);
    z-index: -1;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--mauve-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--sp-xl) var(--sp-lg);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  height: 54px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 30ch;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}

.social-link:hover {
  background: var(--rosa);
  border-color: var(--rosa);
  color: var(--off-white);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 1.25rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-link {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding-block: 0.3rem;
  transition: color var(--t-fast);
}

.footer-link:hover {
  color: var(--off-white);
}

.footer-info {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* Rodapé final */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   ANIMAÇÃO DE SCROLL (FADE UP)
   ============================================================ */

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

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

/* Delays escalonados para grids */
.especialidades-grid .fade-up:nth-child(2) { transition-delay: 0.08s; }
.especialidades-grid .fade-up:nth-child(3) { transition-delay: 0.16s; }
.especialidades-grid .fade-up:nth-child(4) { transition-delay: 0.24s; }
.especialidades-grid .fade-up:nth-child(5) { transition-delay: 0.32s; }
.especialidades-grid .fade-up:nth-child(6) { transition-delay: 0.40s; }

.diferenciais-grid .fade-up:nth-child(2) { transition-delay: 0.1s; }
.diferenciais-grid .fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ============================================================
   ACESSIBILIDADE
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
