/* ============================================================
   VIDAS Home Care & Resgate — CSS Principal
   Paleta: Azul escuro #0a2540 · Teal #0d9488 · Branco #fff · Ouro #f59e0b
   ============================================================ */

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

:root {
  --azul:   #0a2540;
  --azul2:  #163a5f;
  --teal:   #0d9488;
  --teal2:  #14b8a6;
  --ouro:   #f59e0b;
  --cinza:  #64748b;
  --claro:  #f0f9ff;
  --branco: #ffffff;
  --sombra: 0 4px 24px rgba(10,37,64,.10);
  --radius: 16px;
  --radius-sm: 8px;
  --trans:  .35s cubic-bezier(.4,0,.2,1);
  --font:   'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
  background: var(--branco);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 50px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--trans);
}
.btn-primary {
  background: var(--teal); color: #fff;
}
.btn-primary:hover { background: var(--teal2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,.35); }

.btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

.btn-dark {
  background: var(--azul); color: #fff;
}
.btn-dark:hover { background: var(--azul2); transform: translateY(-2px); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--azul); line-height: 1.2; }
.section-lead { font-size: 1.05rem; color: var(--cinza); max-width: 52ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(10,37,64,.96);
  backdrop-filter: blur(12px);
  transition: var(--trans);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 42px; width: auto; }
.brand span { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .9rem;
  padding: .4rem .9rem; border-radius: 50px;
  transition: var(--trans);
}
.site-nav a:hover, .site-nav a.active {
  color: #fff; background: rgba(255,255,255,.12);
}
.site-nav a.nav-cta {
  background: var(--teal); color: #fff; margin-left: .5rem;
}
.site-nav a.nav-cta:hover { background: var(--teal2); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: #fff; font-size: 1.6rem; line-height: 1; padding: .25rem;
}

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative; overflow: hidden;
  height: 100vh; min-height: 560px; max-height: 900px;
}

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity .9s ease;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,37,64,.82) 0%, rgba(10,37,64,.4) 60%, transparent 100%);
}

.slide-content {
  position: relative; z-index: 2;
  max-width: 640px; padding: 0 5%;
  color: #fff;
  animation: fadeUp .8s ease both;
}
.slide.active .slide-content { animation: fadeUp .8s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-content .eyebrow { color: var(--ouro); }
.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.1;
  margin: .5rem 0 1.25rem;
}
.slide-content p {
  font-size: 1.1rem; line-height: 1.7;
  color: rgba(255,255,255,.88); margin-bottom: 2rem; max-width: 50ch;
}
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slider controls */
.slider-nav {
  position: absolute; bottom: 2rem; left: 5%; z-index: 5;
  display: flex; gap: .5rem;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  transition: var(--trans);
}
.slider-dot.active { background: var(--ouro); transform: scale(1.3); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 50%; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--trans); backdrop-filter: blur(4px);
  font-size: 1.2rem;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }
.slider-arrow.prev { left: 2%; }
.slider-arrow.next { right: 2%; }

/* ---------- Números / Métricas ---------- */
.metrics {
  background: var(--azul);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.metric-item {
  padding: 2.5rem 2rem; text-align: center;
  background: var(--azul2);
  border-top: 3px solid transparent;
  transition: var(--trans);
}
.metric-item:hover { border-top-color: var(--teal); }
.metric-item strong {
  display: block; font-size: 2.6rem; font-weight: 900;
  color: var(--ouro); line-height: 1;
}
.metric-item span { font-size: .9rem; color: rgba(255,255,255,.7); margin-top: .4rem; display: block; }

/* ---------- Sections ---------- */
.section { padding: 6rem 5%; }
.section.bg-claro { background: var(--claro); }
.section.bg-azul { background: var(--azul); }

.section-header {
  text-align: center; margin-bottom: 3.5rem;
}
.section-header .section-lead { margin: .75rem auto 0; }

/* ---------- Serviços grid ---------- */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.servico-card {
  background: #fff; border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--sombra);
  transition: var(--trans);
  position: relative; overflow: hidden;
}
.servico-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  transform: scaleX(0); transform-origin: left;
  transition: var(--trans);
}
.servico-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(10,37,64,.15); }
.servico-card:hover::before { transform: scaleX(1); }

.servico-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--claro), #bae6fd);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.25rem;
}
.servico-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--azul); margin-bottom: .5rem; }
.servico-card p { font-size: .92rem; color: var(--cinza); line-height: 1.6; }

/* ---------- Sobre / Split ---------- */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  padding: 6rem 5%;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-img {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 60px rgba(10,37,64,.2);
}
.split-img img { width: 100%; height: 480px; object-fit: cover; }

.split-img .img-badge {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  background: var(--azul); color: #fff;
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  text-align: center; box-shadow: var(--sombra);
}
.split-img .img-badge strong { display: block; font-size: 2rem; font-weight: 900; color: var(--ouro); }
.split-img .img-badge span { font-size: .8rem; opacity: .8; }

.split-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; color: var(--azul); margin-bottom: 1rem; }
.split-text p { color: var(--cinza); margin-bottom: 1rem; }
.split-text .btn { margin-top: .75rem; }

.check-list { list-style: none; margin: 1.25rem 0; }
.check-list li {
  padding: .4rem 0; color: #334155;
  display: flex; align-items: center; gap: .6rem;
}
.check-list li::before {
  content: '✓'; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: #fff; font-size: .7rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Equipe ---------- */
.equipe-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
}
.membro-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--sombra);
  transition: var(--trans);
  text-align: center;
}
.membro-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(10,37,64,.18); }
.membro-foto {
  width: 100%; height: 260px; object-fit: cover; object-position: top;
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
}
.membro-foto-placeholder {
  width: 100%; height: 260px;
  background: linear-gradient(135deg, var(--claro), #bae6fd);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: var(--teal);
}
.membro-info { padding: 1.25rem 1rem 1.5rem; }
.membro-info h3 { font-size: 1rem; font-weight: 700; color: var(--azul); }
.membro-info p { font-size: .85rem; color: var(--teal); font-weight: 600; margin-top: .2rem; }

@media (max-width: 820px) {
  .equipe-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .equipe-grid .membro-card {
    flex: 0 0 min(78vw, 260px);
    min-width: min(78vw, 260px);
    scroll-snap-align: start;
  }
}

/* ---------- Galeria Espaço ---------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.galeria-item {
  border-radius: var(--radius-sm);
  overflow: hidden; position: relative; cursor: pointer;
}
.galeria-item.grande { grid-column: span 2; grid-row: span 2; }
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.galeria-item:hover img { transform: scale(1.06); }
.galeria-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,37,64,.5) 0%, transparent 60%);
  opacity: 0; transition: var(--trans);
  display: flex; align-items: flex-end; padding: 1rem;
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay span { color: #fff; font-size: .85rem; font-weight: 600; }

/* ---------- Depoimentos ---------- */
.depoimentos { background: var(--azul); padding: 6rem 5%; }
.depoimentos .section-header .eyebrow { color: var(--ouro); }
.depoimentos .section-header .section-title { color: #fff; }

.depo-slider { position: relative; overflow: hidden; }
.depo-track { display: flex; transition: transform .5s ease; }
.depo-card {
  min-width: 100%; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.depo-item {
  background: rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 2rem; border: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.depo-item::before {
  content: '"'; position: absolute; top: 1rem; left: 1.5rem;
  font-size: 5rem; font-family: Georgia, serif; color: var(--teal2);
  line-height: 1; opacity: .5;
}
.depo-stars { color: var(--ouro); font-size: 1rem; margin-bottom: .75rem; }
.depo-texto {
  color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.7;
  margin-bottom: 1.5rem; padding-top: 1.5rem;
}
.depo-autor { display: flex; align-items: center; gap: .75rem; }
.depo-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem; flex-shrink: 0;
}
.depo-nome strong { display: block; color: #fff; font-size: .9rem; }
.depo-nome span { color: rgba(255,255,255,.55); font-size: .8rem; }

.depo-controls {
  display: flex; justify-content: center; gap: .5rem; margin-top: 2rem;
}
.depo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3); border: none; cursor: pointer; transition: var(--trans);
}
.depo-dot.active { background: var(--ouro); transform: scale(1.4); }

/* ---------- Diferenciais ---------- */
.diferenciais-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.dif-item {
  text-align: center; padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: #fff; box-shadow: var(--sombra);
  transition: var(--trans);
}
.dif-item:hover { transform: translateY(-4px); }
.dif-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.25rem; color: #fff;
}
.dif-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--azul); margin-bottom: .5rem; }
.dif-item p { font-size: .9rem; color: var(--cinza); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--azul) 100%);
  padding: 5rem 5%; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contato ---------- */
.contato-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem;
  padding: 6rem 5%;
}
.contato-info h2 { font-size: 1.8rem; font-weight: 800; color: var(--azul); margin-bottom: 1.5rem; }
.contato-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contato-item-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--claro), #bae6fd);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; color: var(--teal);
}
.contato-item-text strong { display: block; font-size: .85rem; color: var(--cinza); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contato-item-text a, .contato-item-text p { color: var(--azul); font-weight: 600; font-size: 1rem; line-height: 1.6; }

.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sombra); height: 100%; min-height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 400px; border: none; display: block; }

/* ---------- Page Banner ---------- */
.page-banner {
  background: linear-gradient(100deg, var(--azul) 0%, var(--azul2) 100%);
  padding: 9rem 5% 4rem;
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ''; position: absolute; right: -5%; top: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.2) 0%, transparent 70%);
}
.page-banner .eyebrow { color: var(--ouro); }
.page-banner h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; margin-top: .5rem; }
.page-banner p { color: rgba(255,255,255,.75); max-width: 55ch; margin-top: .75rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060f1e;
  color: rgba(255,255,255,.7);
  padding: 4rem 5% 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand img { height: 44px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 28ch; }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; margin-bottom: .5rem; transition: var(--trans); }
.footer-col a:hover { color: var(--teal2); }

.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; font-size: .9rem;
  transition: var(--trans);
}
.footer-social a:hover { background: var(--teal); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; text-align: center; font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 200;
  display: flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff;
  border-radius: 50px; padding: .8rem 1.4rem;
  font-weight: 700; font-size: .9rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
  transition: var(--trans);
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 32px rgba(37,211,102,.6); }
.whatsapp-float svg { width: 22px; height: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-section.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .depo-card { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .galeria-item.grande { grid-column: span 1; grid-row: span 1; }
  .diferenciais-grid { grid-template-columns: 1fr 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--azul); flex-direction: column; padding: 1rem; gap: .25rem; }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .galeria-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .diferenciais-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 90vh; }
  .slide-content h1 { font-size: 2rem; }
  .slider-arrow { display: none; }
  .equipe-grid { justify-content: flex-start; }
}
