/* ═══════════════════════════════════════════════════════════════
   Gilmara de Lima – Psicóloga Infantojuvenil
   Paleta: rosa bebê · azul bebê · branco
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET & VARIÁVEIS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Rosa bebê ── */
  --pink:        #FFCDD5;   /* rosa bebê suave                  */
  --pink-light:  #FFF0F3;   /* fundo rosa clarinho               */
  --pink-dark:   #E07090;   /* rosa médio — botões / destaques   */
  /* ── Azul bebê ── */
  --blue:        #B8E2F2;   /* azul bebê suave                  */
  --blue-light:  #EBF7FD;   /* fundo azul clarinho               */
  --blue-dark:   #5BB8D4;   /* azul médio — links / ícones       */
  --blue-deep:   #3A8FAD;   /* azul mais fundo — footer / fund.  */
  --white:       #ffffff;
  --bg:          #FFFCFE;   /* branco com leve toque rosado      */
  --text:        #3d3d3d;
  --text-light:  #6e6e6e;
  --border:      #FFE2EA;   /* borda rosa bebê                   */
  --shadow:      0 4px 24px rgba(91,184,212,.12);
  --shadow-lg:   0 12px 48px rgba(91,184,212,.20);
  --radius:      16px;
  --radius-sm:   8px;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lato', system-ui, sans-serif;
  --transition:  .3s ease;
  --container:   1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Impede zoom automático de texto no iOS ao girar tela */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Altura 100% do viewport no iOS (fallback) */
  height: -webkit-fill-available;
  /* ESSENCIAL: corta qualquer elemento que vaze horizontalmente */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Remove highlight azul ao tocar no Android */
  -webkit-tap-highlight-color: transparent;
  /* Previne scroll horizontal indesejado */
  overflow-x: hidden;
  /* Permite scroll suave em iOS */
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  /* Garante que nada ultrapasse a largura da tela */
  max-width: 100vw;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Mínimo de 44×44px em touch targets (iOS HIG / Android Material) */
button, a, [role="button"] {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

/* Previne seleção acidental de texto em iOS ao segurar */
.btn, .btn-nav, .btn-whatsapp, .wpp-float,
.nav-toggle, .galeria-item, .lightbox-nav, .lightbox-close {
  -webkit-user-select: none;
  user-select: none;
}

/* ─── UTILITÁRIOS ───────────────────────────────────────────── */
.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  /* Rosa médio — quente e cuidadoso */
  color: var(--pink-dark);
  margin-bottom: .75rem;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-header h2 { margin-bottom: .75rem; }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin-inline: auto;
}

h1,h2,h3,h4 {
  font-family: var(--font-head);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.hide-sm { display: inline; }

/* ─── BOTÕES ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85em 2em;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--pink-dark);
  color: var(--white);
  border-color: var(--pink-dark);
}
.btn-primary:hover {
  background: #C85A7A;
  border-color: #C85A7A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,112,144,.40);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-nav {
  background: var(--pink-dark);
  color: var(--white) !important;
  padding: .5em 1.4em;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  transition: var(--transition);
}
.btn-nav:hover {
  background: #C85A7A;
  transform: translateY(-1px);
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: var(--white);
  padding: .85em 1.8em;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  margin-top: 1.5rem;
  transition: var(--transition);
}
.btn-whatsapp:hover {
  background: #1db854;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── HEADER ────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* width explícito evita que o header alargue além do viewport */
  width: 100%;
  z-index: 1000;
  background: rgba(253,250,252,.92);
  /* Prefixo webkit para Safari iOS */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
  /* Safe area para notch / Dynamic Island no iPhone */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
#header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--pink-dark);
  transition: width var(--transition);
}
.nav a:not(.btn-nav):hover { color: var(--pink-dark); }
.nav a:not(.btn-nav):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* Fallbacks de altura para compatibilidade total */
  min-height: 100vh;             /* navegadores antigos */
  min-height: 100dvh;            /* Dynamic Viewport (Android Chrome 108+) */
  min-height: 100svh;            /* Small Viewport (previne barra de endereço mobile) */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
  /* Safe area: iPhone notch / Dynamic Island */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(.60) saturate(.85);
  transform: scale(1.04);
  transition: transform 8s ease;
}
/* Controle de qual imagem aparece por breakpoint */
.hero-bg-mobile  { display: none; }
.hero-bg-desktop { display: block; }

@media (max-width: 768px) {
  .hero-bg-desktop { display: none; }
  .hero-bg-mobile  { display: block; }
}
.hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(58,143,173,.48) 0%,
    rgba(224,112,144,.40) 70%,
    rgba(255,205,213,.30) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-block: 80px;
}
.hero-tag {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.2rem;
}
.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
  margin-bottom: 1.4rem;
}
.hero-content h1 em {
  font-style: italic;
  color: #FFCDD5;
  text-shadow: 0 2px 12px rgba(255,205,213,.5);
}
.hero-sub {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2.4rem;
  max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.7);
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 32px; height: 32px; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ─── SOBRE ─────────────────────────────────────────────────── */
.sobre {
  padding: clamp(36px, 5vw, 64px) 0;
  /* Fundo branco com leve textura de gradiente rosa bebê */
  background: linear-gradient(160deg, var(--white) 60%, var(--pink-light) 100%);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 80px);
  align-items: center;
}
.sobre-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.sobre-img-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.sobre-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  /* Azul bebê no badge — contraste suave com a foto */
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 100%);
  color: var(--white);
  border-radius: 50%;
  width: 110px; height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(91,184,212,.45);
}
.badge-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}
.badge-txt { font-size: .72rem; line-height: 1.3; opacity: .9; }

.sobre-text .section-tag { display: block; }
.sobre-text h2 { margin-bottom: 1.4rem; }
.sobre-text p { color: var(--text-light); margin-bottom: 1rem; }
.sobre-text p strong { color: var(--text); }
.sobre-text .btn { margin-top: 1.5rem; }

.sobre-list {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sobre-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text-light);
}
.sobre-list li svg {
  width: 20px; height: 20px;
  stroke: var(--pink-dark);
  flex-shrink: 0;
  fill: none;
  stroke-width: 2;
}

/* ─── ABORDAGEM ─────────────────────────────────────────────── */
.abordagem {
  position: relative;
  padding: clamp(20px, 3vw, 36px) 0 clamp(36px, 5vw, 64px);
  /* Azul bebê suave como fundo — evoca céu e tranquilidade */
  background: linear-gradient(160deg, var(--blue-light) 0%, #D8F1FA 100%);
  overflow: hidden;
}
.abordagem-bg-shape {
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(184,226,242,.45) 0%, transparent 70%);
  pointer-events: none;
  /* Impede que o shape vaze para fora da seção */
  max-width: 60vw;
  max-height: 60vw;
}
/* Segundo shape decorativo — bolha rosa bebê no canto inferior esquerdo */
.abordagem::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  max-width: 50vw; max-height: 50vw;
  background: radial-gradient(circle, rgba(255,205,213,.40) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.abordagem > *:not(.abordagem-bg-shape) { position: relative; z-index: 1; }
.abordagem .section-header h2 { color: var(--blue-deep); }

.abordagem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.abordagem-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow);
  /* Borda linha colorida no topo: alterna rosa e azul bebê */
  border-top: 4px solid var(--pink);
  transition: transform var(--transition), box-shadow var(--transition);
}
.abordagem-card:nth-child(even) {
  border-top-color: var(--blue);
}
.abordagem-card:nth-child(even) .card-icon {
  background: var(--blue-light);
}
.abordagem-card:nth-child(even) .card-icon svg {
  stroke: var(--blue-dark);
}
.abordagem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 56px; height: 56px;
  background: var(--pink-light);
  /* Círculo em vez de quadrado — mais suave e infantil */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.card-icon svg {
  width: 28px; height: 28px;
  stroke: var(--pink-dark);
}
.abordagem-card h3 { margin-bottom: .6rem; color: var(--blue-deep); font-size: 1.1rem; }
.abordagem-card p { font-size: .93rem; color: var(--text-light); }

.abordagem-sub-label {
  margin: 2.5rem 0 1.5rem;
  text-align: center;
}
.abordagem-sub-label span {
  display: inline-block;
  background: var(--blue-dark);
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .5em 1.6em;
  border-radius: 50px;
}
.abordagem-sub-label--te span {
  background: var(--pink-dark);
}

/* ─── SERVIÇOS ──────────────────────────────────────────────── */
.servicos {
  padding: clamp(36px, 5vw, 64px) 0;
  /* Rosa bebê bem suave — aconchegante */
  background: linear-gradient(160deg, var(--pink-light) 0%, var(--white) 60%);
}
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.servico-card {
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.servico-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.servico-card.destaque {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-light), var(--shadow);
}
.servico-img {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.servico-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.servico-card:hover .servico-img img { transform: scale(1.06); }

.servico-body { padding: 1.8rem; }
.servico-tag {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3em .9em;
  border-radius: 50px;
  margin-bottom: .9rem;
}
.servico-body h3 { margin-bottom: .7rem; color: var(--blue-deep); }
.servico-body > p { font-size: .93rem; color: var(--text-light); margin-bottom: 1rem; }
.servico-body ul { display: flex; flex-direction: column; gap: .5rem; }
.servico-body ul li {
  font-size: .88rem;
  color: var(--text-light);
  padding-left: 1.2rem;
  position: relative;
}
.servico-body ul li::before {
  content: '✿';
  position: absolute;
  left: 0;
  color: var(--pink-dark);
  font-size: .72rem;
  top: .28em;
}

/* ─── COMO FUNCIONA ─────────────────────────────────────────── */
.como-funciona {
  padding: clamp(36px, 5vw, 64px) 0;
  /* Azul bebê profundo, mas ainda suave */
  background: linear-gradient(150deg, #3A8FAD 0%, #6CC8DF 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* Bolhas decorativas de fundo — lembram brinquedos de espuma de bebê */
.como-funciona::before,
.como-funciona::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .10;
  pointer-events: none;
  /* Contém as bolhas dentro da seção */
  overflow: hidden;
}
.como-funciona::before {
  width: 350px; height: 350px;
  max-width: 60vw; max-height: 60vw;
  background: #fff;
  top: -100px; left: -60px;
}
.como-funciona::after {
  width: 250px; height: 250px;
  max-width: 50vw; max-height: 50vw;
  background: var(--pink-light);
  bottom: -80px; right: -50px;
}
.como-funciona .section-tag { color: rgba(255,255,255,.7); }
.como-funciona h2 { color: var(--white); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  /* Cor rosada suave nos números — detalhes afetivos */
  color: rgba(255,205,213,.55);
  line-height: 1;
  margin-bottom: .4rem;
}
.step h3 { color: var(--white); font-size: 1.05rem; margin-bottom: .6rem; }
.step p { font-size: .9rem; color: rgba(255,255,255,.75); }
.step-arrow {
  font-size: 1.8rem;
  color: rgba(255,255,255,.3);
  padding-top: 1.2rem;
  flex-shrink: 0;
}

/* ─── GALERIA ───────────────────────────────────────────────── */
.galeria {
  padding: clamp(36px, 5vw, 64px) 0 28px;
  /* Rosa e azul bebê intercalados no fundo da galeria */
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--blue-light) 100%);
}
/* CSS Grid em vez de columns para melhor suporte em Android WebView antigo */
.galeria-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.galeria-item {
  flex: 0 0 calc((100% - 24px) / 3);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  /* Borda suave colorida — metáfora de ilustração infantil */
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.galeria-item.grande {
  aspect-ratio: 3/4;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .3s ease;
  filter: brightness(.97) saturate(.95);
  /* Garante renderização suave no iOS */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.galeria-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.04) saturate(1.1);
}

/* Collapsed: esconde itens além do 6º (desktop 3 colunas = 2 linhas) */
.galeria-grid--collapsed .galeria-item:nth-child(n+7) {
  display: none;
}

/* Botão Ver mais / Ver menos */
.galeria-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-ver-mais {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7em 2em;
  /* Sobrescreve btn-outline (branco) para fundo claro da galeria */
  color: var(--pink-dark);
  border-color: var(--pink-dark);
  background: transparent;
}
.btn-ver-mais:hover {
  background: var(--pink-dark);
  color: var(--white);
  border-color: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,112,144,.35);
}

.ver-mais-icon {
  transition: transform .35s ease;
  flex-shrink: 0;
}

/* Quando expandido, girar setinha */
.btn-ver-mais[aria-expanded="true"] .ver-mais-icon {
  transform: rotate(180deg);
}

/* ─── DEPOIMENTOS ───────────────────────────────────────────── */
.depoimentos {
  padding: clamp(36px, 5vw, 64px) 0;
  background: var(--white);
}

/* Wrapper do carrossel */
.depo-carousel {
  position: relative;
  overflow: visible;
  padding: 0 64px 56px;   /* espaço lateral para as setas + dots */
}

/* Trilha deslizante */
.depo-track {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.depo-overflow {
  overflow: hidden;
}
.depo-card {
  flex: 0 0 calc((100% - 48px) / 3);  /* 3 cards + 2 gaps de 24px */
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
  border-left: 5px solid var(--pink);
  display: flex;
  flex-direction: column;
  height: 360px;
}
.depo-card:nth-child(even) { border-left-color: var(--blue-dark); }
.depo-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.depo-stars { color: #f4c542; font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: .1em; }
.depo-card > p { font-size: .93rem; color: var(--text-light); font-style: italic; margin-bottom: 1.4rem; line-height: 1.8; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--pink) transparent; }
.depo-author { display: flex; align-items: center; gap: .85rem; }
.depo-avatar {
  width: 44px; height: 44px;
  background: var(--pink-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(224,112,144,.35);
}
.depo-author strong { display: block; font-size: .92rem; }
.depo-author span { font-size: .8rem; color: var(--text-light); }

/* Avatar com foto real */
.depo-avatar--foto {
  background: none;
  box-shadow: 0 2px 8px rgba(224,112,144,.25);
  overflow: hidden;
  padding: 0;
}
.depo-avatar--foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Botões prev / next */
.depo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 28px));
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(224,112,144,.25);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  z-index: 2;
}
.depo-nav svg { width: 24px; height: 24px; stroke: var(--pink-dark); }
.depo-nav:hover { background: var(--pink); border-color: var(--pink-dark); box-shadow: 0 6px 20px rgba(224,112,144,.4); }
.depo-nav:hover svg { stroke: var(--white); }
.depo-nav:active { transform: translateY(calc(-50% - 28px)) scale(.93); }
.depo-prev { left: 0; }
.depo-next { right: 0; }
.depo-nav:disabled { opacity: .3; cursor: default; pointer-events: none; }

/* Dots */
.depo-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.depo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.depo-dot.ativo {
  background: var(--pink-dark);
  transform: scale(1.25);
}

/* ─── CONTATO ───────────────────────────────────────────────── */
.contato {
  padding: 28px 0;
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--pink-light) 100%);
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 80px);
  align-items: start;
}
.contato-info .section-tag { display: block; }
.contato-info h2 { margin-bottom: 1.2rem; }
.contato-info > p { color: var(--text-light); margin-bottom: 1.8rem; }

.contato-items { display: flex; flex-direction: column; gap: 1.1rem; }
.contato-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ci-icon {
  width: 46px; height: 46px;
  background: var(--pink-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 22px; height: 22px; stroke: var(--pink-dark); }
.contato-item strong { display: block; font-size: .85rem; color: var(--text-light); }
.contato-item a { color: var(--blue-dark); font-weight: 700; transition: color var(--transition); }
.contato-item a:hover { color: var(--pink-dark); }

/* Form */
.contato-form {
  background: var(--white);
  border-radius: 20px;
  padding: 2.4rem;
  box-shadow: var(--shadow);
  /* Barra topo rosa bebê */
  border-top: 4px solid var(--pink-dark);
}
.contato-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.6rem;
  color: var(--blue-deep);
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8em 1.1em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  /* MÍNIMO 16px obrigatório: impede o iOS de dar zoom automático ao focar */
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  /* Remove estilo nativo do iOS/Android */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Previne arredondamento indesejado no iOS Safari */
  border-radius: var(--radius-sm);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232,160,180,.25);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e05;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }

.form-success {
  margin-top: 1rem;
  background: #e6f9ef;
  color: #1a7a42;
  padding: .9em 1.2em;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 700;
  border: 1px solid #8dd5a8;
}

/* ─── INSTAGRAM WIDGET ───────────────────────────────────────── */
.ig-widget-wrap {
  align-self: start;
}
.ig-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid #efefef;
}
.ig-card-top {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.2rem;
  border-bottom: 1px solid #efefef;
}
.ig-logo-svg {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 6px;
  padding: 3px;
  color: #fff;
  display: block;
  flex-shrink: 0;
}
.ig-card-top > span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: #262626;
  letter-spacing: -.3px;
}
.ig-profile-header {
  display: flex;
  gap: 1.4rem;
  padding: 1.2rem 1.2rem .9rem;
  align-items: flex-start;
}
.ig-avatar-wrap {
  flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.ig-avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
  display: block;
}
.ig-profile-info { flex: 1; min-width: 0; }
.ig-name-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .55rem;
  flex-wrap: wrap;
}
.ig-handle {
  font-size: .95rem;
  font-weight: 600;
  color: #262626;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-btn-seguir {
  background: #0095f6;
  color: #fff;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  padding: .28em .9em;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-btn-seguir:hover { background: #0077bd; }
.ig-stats {
  display: flex;
  gap: 1.2rem;
  margin-bottom: .55rem;
}
.ig-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-stat strong { font-size: .92rem; color: #262626; font-weight: 700; }
.ig-stat span { font-size: .72rem; color: #737373; }
.ig-full-name {
  font-size: .82rem;
  font-weight: 700;
  color: #262626;
  margin: 0 0 .12rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-bio-line {
  font-size: .8rem;
  color: #262626;
  margin: 0;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.ig-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
}
.ig-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}
.ig-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.ig-thumb:hover img { transform: scale(1.06); }
.ig-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
  opacity: 0;
  transition: opacity .25s;
}
.ig-thumb:hover .ig-thumb-overlay { opacity: 1; }
.ig-ver-perfil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem;
  font-size: .85rem;
  font-weight: 700;
  color: #0095f6;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: background .2s, color .2s;
}
.ig-ver-perfil:hover { background: #f7f7f7; color: #0077bd; }
.ig-ver-perfil svg { flex-shrink: 0; fill: currentColor; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.85);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 60px;
  padding-bottom: 48px;
}
.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.65); max-width: 240px; }

.footer-links h4,
.footer-contato h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--pink); }

.footer-contato { display: flex; flex-direction: column; gap: .6rem; }
.footer-contato a {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-contato a:hover { color: var(--pink); }
.footer-wpp { color: #7FEEB6 !important; }
.footer-wpp:hover { color: #a0f5c9 !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 20px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-dev {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.footer-speivox {
  display: inline-flex;
  align-items: center;
  opacity: .7;
  transition: opacity .2s;
}
.footer-speivox:hover { opacity: 1; }
.footer-speivox img {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ─── BOTÃO FLUTUANTE WHATSAPP ──────────────────────────────── */
.wpp-float {
  position: fixed;
  /* Safe area insets para iOS home indicator e Android gestures */
  bottom: calc(28px + env(safe-area-inset-bottom));
  right: calc(28px + env(safe-area-inset-right));
  z-index: 999;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: scale(.7);
}
.wpp-float.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.wpp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
.wpp-float svg { width: 30px; height: 30px; fill: var(--white); }
.wpp-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(0,0,0,.75);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  padding: .4em .9em;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}
.wpp-float:hover .wpp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ─── LIGHTBOX ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  opacity: .75;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVO — cobertura total
   Breakpoints:
     320px  → iPhone SE (1ª geração) / telefones muito pequenos
     375px  → iPhone 12/13/14/15 mini, Samsung Galaxy S21
     480px  → telefones médios, Moto G
     600px  → grandes smartphones, tablets pequenos
     768px  → iPad mini portrait, Android tablet
     960px  → iPad Air/Pro portrait, laptop pequeno
     1024px → iPad Pro landscape, notebook
     1280px → desktop padrão
     1440px → desktop grande / fullHD
   ════════════════════════════════════════════════════════════════ */

/* ─── Desabilitar hover em dispositivos touch ─────────────────
   @media (hover: none) → seleciona dispositivos sem cursor/mouse
   Garante que animações de hover não fiquem "presas" no toque    */
@media (hover: none) {
  .abordagem-card:hover,
  .servico-card:hover,
  .depo-card:hover { transform: none; box-shadow: var(--shadow); }
  .servico-card:hover .servico-img img { transform: none; }
  .galeria-item:hover img { transform: none; filter: brightness(.97) saturate(.95); }
  .btn-primary:hover,
  .btn-whatsapp:hover,
  .btn-nav:hover { transform: none; }
}

/* ─── 1440px+ — Desktop grande ───────────────────────────────── */
@media (min-width: 1440px) {
  .galeria-grid { gap: 12px; }
  .galeria-item { flex: 0 0 calc((100% - 36px) / 4); }
  /* 1440px+: 4 colunas → 2 linhas = 8 itens */
  .galeria-grid--collapsed .galeria-item:nth-child(n+9) { display: none; }
  .galeria-grid--collapsed .galeria-item:nth-child(7),
  .galeria-grid--collapsed .galeria-item:nth-child(8) { display: block; }
}

/* ─── 1280px — Desktop padrão ────────────────────────────────── */
@media (max-width: 1280px) {
  .footer-inner { gap: 1.8rem; }
}

/* ─── 1024px — iPad landscape / notebook ─────────────────────── */
@media (max-width: 1024px) {
  .sobre-grid { gap: clamp(32px, 5vw, 56px); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 48px; padding-bottom: 36px; }
  .footer-links, .footer-contato { display: flex; flex-direction: column; } /* mantém links visíveis no tablet */
  .abordagem-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── 960px — iPad portrait / laptop básico ──────────────────── */
@media (max-width: 960px) {
  .sobre-grid { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
  .contato-grid { grid-template-columns: 1fr; }
  .galeria-grid { gap: 12px; }
  .galeria-item { flex: 0 0 calc((100% - 12px) / 2); }
  /* 960px: 2 colunas → 2 linhas = 4 itens */
  .galeria-grid--collapsed .galeria-item:nth-child(n+5) { display: none; }
  .steps { gap: .6rem; flex-wrap: wrap; }
  .step-arrow { display: none; }
  .step { min-width: 40%; flex: 1 1 40%; }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .depo-card { flex: 0 0 calc((100% - 24px) / 2); }  /* 2 cards visíveis em tablet */
  .depo-nav { display: flex; }
}

/* ─── 768px — Smartphone grande / tablet pequeno ─────────────── */
@media (max-width: 768px) {
  .hide-sm { display: none; }

  /* ── Mobile nav ── */
  .nav-toggle { display: flex; order: 3; }
  .nav {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0;
    width: 100%;
    /* empurrar para baixo do header (72px) */
    padding-top: calc(72px + env(safe-area-inset-top));
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 998;
    /* Animação de abertura */
    transform: translateY(-100%);
    transition: transform .3s ease, opacity .25s ease;
    opacity: 0;
    /* Nunca ultrapassar a largura da tela */
    max-width: 100vw;
    overflow-x: hidden;
  }
  .nav.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
  }
  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem clamp(20px, 5vw, 48px) 1.4rem;
  }
  .nav ul li { width: 100%; }
  .nav ul a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav ul li:last-child a { border-bottom: none; }
  .btn-nav {
    margin-top: .6rem;
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: .75em 1.4em;
  }

  /* ── Hero ── */
  /* Overlay mais pesado no mobile para a imagem aparecer menos */
  .hero-overlay {
    background: linear-gradient(
      150deg,
      rgba(58,143,173,.78) 0%,
      rgba(224,112,144,.68) 70%,
      rgba(255,205,213,.62) 100%
    );
  }
  .hero-bg { filter: brightness(.35) saturate(.8); }
  .hero-content { padding-block: 56px 80px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; max-width: 320px; }

  /* ── Sobre ── */
  .sobre-img-wrap img { aspect-ratio: 1/1; object-position: center top; }
  .sobre-badge { width: 96px; height: 96px; right: -8px; bottom: -12px; }
  .badge-num { font-size: 1.6rem; }

  /* ── Serviços ── */
  .servicos-grid { grid-template-columns: 1fr; }

  /* ── Steps ── */
  .steps { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .step { min-width: unset; max-width: unset; text-align: left; display: flex; gap: 1rem; align-items: flex-start; }
  .step-num { font-size: 2.5rem; flex-shrink: 0; min-width: 56px; }

  /* ── Galeria ── */
  .galeria-grid { gap: 10px; }
  .galeria-item { flex: 0 0 calc((100% - 10px) / 2); }

  /* ── Depoimentos ── */
  .depo-card { flex: 0 0 100%; }  /* 1 card visível no mobile */

  /* ── Contato form ── */
  .contato-form { padding: 1.6rem; }

  /* ── Footer ── */
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 40px; padding-bottom: 28px; }
  .footer-links, .footer-contato { display: flex; flex-direction: column; } /* mantém os links no footer mobile */
  .footer-brand p { max-width: 100%; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: .3rem; }
}

/* ─── 600px — Transição smartphone/tablet ────────────────────── */
@media (max-width: 600px) {
  .abordagem-grid { grid-template-columns: 1fr; }
  .sobre-grid { max-width: 100%; }
}

/* ─── 480px — Smartphones médios (Moto G, Galaxy A) ──────────── */
@media (max-width: 480px) {
  .header-inner { height: 64px; }
  .nav { padding-top: calc(64px + env(safe-area-inset-top)); }

  /* Logo menor em telas pequenas */
  .logo-img { height: 42px; }

  /* Hero */
  .hero { padding-top: 64px; }
  .hero-content { padding-block: 48px 72px; }
  .hero-ctas .btn { max-width: 100%; }

  /* Badge sobre */
  .sobre-badge { width: 82px; height: 82px; right: 4px; bottom: -8px; }
  .badge-num { font-size: 1.4rem; }

  /* Galeria 2 colunas */
  .galeria-grid { gap: 8px; }
  .galeria-item { flex: 0 0 calc((100% - 8px) / 2); }

  /* Serviços */
  .servicos-grid { grid-template-columns: 1fr; }

  /* Form */
  .contato-form { padding: 1.2rem; border-radius: var(--radius-sm); }
}

/* ─── 375px — iPhone padrão (12/13/14/15) ────────────────────── */
@media (max-width: 375px) {
  html { font-size: 15px; }

  .hero-content h1 { font-size: 1.85rem; }
  .hero-sub { font-size: .95rem; }
  .hero-tag { font-size: .72rem; }

  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }

  .galeria-grid { gap: 6px; }
  .galeria-item { flex: 0 0 calc((100% - 6px) / 2); }
  .galeria-item { aspect-ratio: 1/1; }

  .contato-form { padding: 1rem; }
  .btn { padding: .8em 1.5em; font-size: .9rem; }
  .btn-whatsapp { padding: .8em 1.4em; }
}

/* ─── 320px — iPhone SE (1ª geração) / telas muito pequenas ──── */
@media (max-width: 320px) {
  html { font-size: 14px; }

  .header-inner { height: 58px; }
  .logo-img { height: 36px; }
  .nav { padding-top: calc(58px + env(safe-area-inset-top)); }
  .hero { padding-top: 58px; }

  .hero-content h1 { font-size: 1.65rem; }
  .hero-sub { font-size: .9rem; }

  .galeria-grid { gap: 8px; }
  .galeria-item { flex: 0 0 100%; }
  .galeria-item { aspect-ratio: 4/3; }

  .sobre-badge { display: none; } /* evita overflow em telas muito pequenas */

  .contato-form { padding: .8rem; }
  .servico-body { padding: 1.2rem; }
  .abordagem-card { padding: 1.6rem 1.2rem; }
}

/* ─── Safe-area para iPhone com notch / Dynamic Island ───────── */
@supports (padding: env(safe-area-inset-bottom)) {
  /* Footer não sobreposto pelo home indicator */
  .footer-bottom {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  /* Nav mobile não ocultado pelo swipe gesture bar (Android) */
  .nav.open {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
