/* ===== Fonts ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 999px;
}

/* ===== Decorative gradient blobs ===== */
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

/* ===== Header ===== */
#site-header {
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}
#site-header.scrolled {
  box-shadow: 0 10px 30px -12px rgba(15, 27, 42, 0.15);
}

/* Subpages with a dark photo hero: keep the header on a solid light background
   at all times, so the menu text stays black and readable (never white-on-white
   in the dropdown, never low-contrast over the photo). */
#site-header.header-dark-hero {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(15, 27, 42, 0.12);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #0d9488;
  transition: width .3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Dropdown */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
}

/* ===== Hero ===== */
.hero-image-wrap img {
  filter: drop-shadow(0 30px 40px rgba(15, 27, 42, 0.25));
}

.float-card {
  animation: floaty 5s ease-in-out infinite;
}
.float-card.delay {
  animation-delay: 1.4s;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Cards ===== */
.service-card, .area-card, .testimonial-card {
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover, .area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px -15px rgba(15, 27, 42, 0.18);
}

/* Icon chip: fills with brand color and pops on card hover */
.icon-chip {
  transition: background-color .35s ease, color .35s ease, transform .35s ease;
}
.service-card:hover .icon-chip {
  background-color: #00A79B;
  color: #ffffff;
  transform: scale(1.12) rotate(-4deg);
}

.area-card .area-img {
  transition: transform .6s ease;
}
.area-card:hover .area-img {
  transform: scale(1.08);
}

/* ===== Section title underline ===== */
.title-underline::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d9488, #5eead4);
  margin-top: 14px;
}
.title-underline.centered::after {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Counter ===== */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ===== Testimonials scroll (mobile) ===== */
.testimonial-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.testimonial-track > * {
  scroll-snap-align: center;
}

/* ===== WhatsApp float button ===== */
.whatsapp-float {
  animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== CTA banner overlay ===== */
.cta-banner {
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
}

/* ===== Mobile menu ===== */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
#mobile-menu.open {
  max-height: 640px;
}

/* ===== Utility ===== */
.bg-noise {
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ===== Section backgrounds (moved out of inline styles for a strict CSP) ===== */
.hero-digital, .hero-familia, .hero-trabalhista {
  background-size: cover;
  background-position: center;
}
.hero-digital     { background-image: linear-gradient(rgba(13,24,38,.80), rgba(0,105,95,.85)), url("../assets/dados.jpg"); }
.hero-familia     { background-image: linear-gradient(rgba(13,24,38,.80), rgba(0,105,95,.85)), url("../assets/direito de familia.jpg"); }
.hero-trabalhista { background-image: linear-gradient(rgba(13,24,38,.80), rgba(0,105,95,.85)), url("../assets/despido-empleo-laboral.jpg"); }

.cta-saude       { background-image: linear-gradient(rgba(10,20,33,.82), rgba(10,59,54,.86)), url("../assets/Hospital-Best-Wallpaper.jpg"); }
.cta-digital     { background-image: linear-gradient(rgba(10,20,33,.82), rgba(10,59,54,.86)), url("../assets/digital-lock-phone.jpg"); background-position: center 30%; }
.cta-familia     { background-image: linear-gradient(rgba(10,20,33,.55), rgba(10,59,54,.65)), url("../assets/family-sunset.jpg"); background-position: center 35%; }
.cta-trabalhista { background-image: linear-gradient(rgba(10,20,33,.82), rgba(10,59,54,.86)), url("../assets/employment-contract.jpg"); background-position: center 30%; }

/* Utilities toggled only by JS (kept static now that Tailwind is precompiled) */
.faq-answer { max-height: 0; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  background: #0D1826; color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.45);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 14px; line-height: 1.5;
  animation: cookie-in .4s ease-out;
}
.cookie-banner p { flex: 1 1 280px; margin: 0; }
.cookie-banner a { color: #67E4DC; text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; }
.cookie-banner button {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  padding: 10px 22px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,.25);
  background: transparent; color: #fff; transition: background .2s;
}
.cookie-banner button:hover { background: rgba(255,255,255,.1); }
.cookie-banner button.cookie-accept { background: #00A79B; border-color: #00A79B; }
.cookie-banner button.cookie-accept:hover { background: #008C80; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ===== Política de privacidade ===== */
.policy { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; color: #22344B; line-height: 1.7; }
.policy h1 { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2rem; color: #0D1826; margin: 28px 0 8px; }
.policy h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; color: #0D1826; margin: 32px 0 8px; }
.policy ul { padding-left: 22px; list-style: disc; }
.policy a { color: #008C80; text-decoration: underline; }
.policy .back { display: inline-block; margin-top: 32px; font-weight: 600; }
.policy img { height: 56px; width: auto; }
