/* Costa Soluções Integradas — CSS auxiliar e tokens do Design System */
:root {
  --navy-deep: #0B1E3F;
  --navy: #1B3466;
  --yellow: #F4C534;
  --yellow-glow: #F5D25F;
  --border: #E5E7EB;
  --secondary: #F1F3F7;
  --muted-foreground: #5B6577;
  --card: #ffffff;
  --background: #ffffff;
  --foreground: #0B1E3F;
}

* { border-color: var(--border); }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.font-display { font-family: 'Poppins', 'Inter', sans-serif; }

.container-x {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: 80rem;
}
@media (min-width: 768px) { .container-x { padding-inline: 2rem; } }

.bg-navy-deep { background-color: var(--navy-deep); }
.bg-navy { background-color: var(--navy); }
.bg-yellow { background-color: var(--yellow); }
.bg-card { background-color: var(--card); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary\/40 { background-color: rgba(241,243,247,0.4); }
.bg-secondary\/50 { background-color: rgba(241,243,247,0.5); }
.bg-secondary\/30 { background-color: rgba(241,243,247,0.3); }
.text-navy-deep { color: var(--navy-deep); }
.text-navy { color: var(--navy); }
.text-yellow { color: var(--yellow); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-destructive { color: #dc2626; }
.border-navy-deep { border-color: var(--navy-deep); }
.border-navy { border-color: var(--navy); }
.border-border { border-color: var(--border); }

.shadow-elevated { box-shadow: 0 20px 60px -20px rgba(11,30,63,0.35); }
.shadow-yellow { box-shadow: 0 10px 40px -12px rgba(244,197,52,0.55); }

.bg-navy-radial {
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(30,60,120,0.9), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(15,35,80,0.9), transparent 60%),
    var(--navy-deep);
}

.text-gradient-navy {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-in .7s ease-out forwards;
}
@keyframes reveal-in { to { opacity: 1; transform: translateY(0); } }
@keyframes float-y { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; width: 100%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header .site-header-bar {
  height: 4rem;
  transition: height .25s ease;
}
@media (min-width: 768px) {
  .site-header .site-header-bar {
    height: 5rem;
  }
  .site-header.is-scrolled .site-header-bar {
    height: 4rem;
  }
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(11,30,63,0.08);
  box-shadow: 0 10px 30px -10px rgba(11,30,63,0.14);
}
.site-header.is-scrolled .brand-logo {
  transform: scale(0.92);
}
.brand-lockup,
.brand-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-lockup {
  gap: .6rem;
  min-width: 0;
  text-decoration: none;
  color: var(--navy-deep);
}
.brand-logo,
.footer-logo {
  overflow: hidden;
}
.brand-name {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: .95;
  color: var(--navy-deep);
}
.brand-name strong {
  color: #0077d9;
  font-weight: 900;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-logo {
  width: 72px;
  height: 48px;
  transition: transform .25s ease;
}
.footer-logo {
  width: 116px;
  height: 76px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}
.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-header .brand-badge {
  width: 40px; height: 40px; border-radius: 6px;
  background: var(--navy); color: var(--yellow);
  display: grid; place-items: center;
  box-shadow: 0 20px 60px -20px rgba(11,30,63,0.35);
}
@media (max-width: 480px) {
  .brand-logo {
    width: 58px;
    height: 44px;
  }
  .brand-lockup {
    gap: .45rem;
    max-width: calc(100vw - 110px);
  }
  .brand-name {
    max-width: 130px;
    font-size: .78rem;
  }
}
.nav-link {
  padding: .5rem .75rem; font-size: .875rem; font-weight: 500;
  color: rgba(11,30,63,.8); border-radius: 6px; text-decoration: none;
}
.nav-link:hover { background: var(--secondary); color: var(--foreground); }
.nav-link.active { background: var(--secondary); color: var(--navy); }
.btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--yellow); color: var(--navy-deep);
  font-weight: 700; padding: .625rem 1rem; border-radius: 6px;
  box-shadow: 0 10px 40px -12px rgba(244,197,52,.55);
  text-decoration: none; font-size: .875rem;
  transition: transform .2s, filter .2s;
}
.btn-cta.hidden { display: none; }
@media (min-width: 640px) {
  .btn-cta.sm\:inline-flex { display: inline-flex; }
}
.btn-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* WhatsApp float */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #22C55E; color: #fff; font-weight: 600; font-size: .875rem;
  padding: .75rem 1rem; border-radius: 999px;
  max-width: calc(100vw - 40px); box-sizing: border-box;
  box-shadow: 0 12px 40px -8px rgba(34,197,94,.6);
  text-decoration: none; animation: float-y 3s ease-in-out infinite;
  transition: transform .2s, filter .2s;
}
.whats-float:hover { transform: translateY(-2px); filter: brightness(1.1); }
.whats-float svg { flex: 0 0 auto; }

@media (max-width: 640px) {
  .whats-float {
    right: 12px; bottom: 12px;
    max-width: calc(100vw - 24px);
    padding: .75rem;
  }
}

/* FAQ toggle */
details.faq-item summary { list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] .chev { transform: rotate(180deg); }
.chev { transition: transform .3s; }

/* line-clamp */
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* misc */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.aspect-\[16\/9\] { aspect-ratio: 16 / 9; }
