/* ==========================================================================
   Gontijo e Marçal Advocacia — estilos personalizados
   Complementa o Tailwind (CDN). Variáveis de marca, hero, carrossel e
   animações de revelação.
   ========================================================================== */

:root {
  --navy: #00223d;
  --gold: #b69b7c;
  --ink: #161616;
  --cream: #f9f5f2;
  --taupe: #756656;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: "Lato", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  overflow-x: hidden;
}

.font-serif { font-family: "EB Garamond", Georgia, serif; }

/* Seleção de texto */
::selection { background: var(--gold); color: #fff; }

/* Barra de rolagem */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--taupe); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(182, 155, 124, 0.22), transparent 55%),
    radial-gradient(90% 70% at 0% 0%, rgba(117, 102, 86, 0.25), transparent 50%),
    linear-gradient(160deg, #00223d 0%, #012b4d 45%, #001a30 100%);
}

/* Textura sutil sobre o hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 30%, transparent 100%);
          mask-image: radial-gradient(80% 80% at 50% 30%, #000 30%, transparent 100%);
}

/* Brilho atrás da foto */
.hero-glow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 560px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(182, 155, 124, 0.35), transparent 65%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* Imagem dos advogados colada na base do container */
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

/* Distintivo flutuante (OAB / Brasil) */
.floating-badge {
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  background: rgba(249, 245, 242, 0.92);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-floaty { animation: floaty 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .animate-floaty { animation: none; }
}

/* Marquee da faixa superior */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   REVELAÇÃO NO SCROLL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(0, 34, 61, 0.35);
}

/* --------------------------------------------------------------------------
   CARROSSEL DE AVALIAÇÕES (estilo Google)
   -------------------------------------------------------------------------- */
.reviews-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  scroll-snap-align: start;
  flex: 0 0 88%;
}
@media (min-width: 640px) { .review-card { flex-basis: 48%; } }
@media (min-width: 1024px) { .review-card { flex-basis: 31.5%; } }

@media (prefers-reduced-motion: reduce) {
  .reviews-track { scroll-behavior: auto; }
}

/* Linha de corte do texto da avaliação */
.clamp-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botão WhatsApp flutuante */
.wa-float {
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
}
.wa-float:hover { transform: scale(1.06); }
