/* ==========================================================================
   GRUPO LUCMA — Componentes globais
   Header, drawer mobile, botões, cards, footer, WhatsApp flutuante.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--c-steel); color: var(--c-white); box-shadow: 0 8px 20px rgba(50,118,157,0.30); }
.btn--primary:hover { background: var(--c-blue-mid); box-shadow: 0 12px 28px rgba(50,118,157,0.40); }

.btn--solid { background: var(--c-blue); color: var(--c-white); }
.btn--solid:hover { background: var(--c-blue-deep); }

.btn--ghost { background: transparent; color: var(--c-blue); border: 1.5px solid var(--c-border); }
.btn--ghost:hover { border-color: var(--c-steel); color: var(--c-steel); }

.btn--on-dark { background: var(--c-white); color: var(--c-blue); }
.btn--on-dark:hover { background: var(--c-offwhite); }
.btn--outline-light { background: transparent; color: var(--c-white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn--outline-light:hover { border-color: var(--c-white); background: rgba(255,255,255,0.08); }

.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe5a; }

.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* Header = ilha flutuante centralizada dentro do hero */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: center;
  padding: clamp(0.6rem, 1.4vw, 1.1rem) var(--gutter);
  transition: padding var(--t);
}
.header__inner {
  width: min(94%, 1280px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 76px;
  padding: 0 0.8rem 0 1.6rem;
  border-radius: var(--radius-pill);
  background: rgba(50, 118, 157, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: 0 12px 38px rgba(0, 40, 65, 0.30);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: background var(--t), box-shadow var(--t), border-color var(--t), width var(--t);
}
@media (max-width: 1079px) {
  .header__inner { width: 100%; }
}
.header.is-scrolled { padding-top: clamp(0.4rem, 1vw, 0.7rem); padding-bottom: clamp(0.4rem, 1vw, 0.7rem); }
.header.is-scrolled .header__inner {
  background: rgba(32, 105, 150, 0.96);
  box-shadow: 0 12px 32px rgba(0, 30, 50, 0.38);
  border-color: rgba(255,255,255,0.16);
}
.header__logo img { height: 50px; width: auto; }

.nav { display: none; }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: clamp(0.85rem, 1.3vw, 1.5rem); }
}
.nav a {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
  position: relative;
  padding-block: 4px;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-white); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--c-mist); transition: width var(--t);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--sp-2); }
.header__cta { display: none; padding: 0.7rem 1.3rem; font-size: 0.9rem; }
@media (min-width: 768px) { .header__cta { display: inline-flex; } }

/* Hambúrguer */
.burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
@media (min-width: 1080px) { .burger { display: none; } }
.burger span { width: 24px; height: 2px; background: var(--c-white); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer mobile */
.drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--grad-hero);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  transform: translateX(100%);
  transition: transform var(--t) var(--ease-out);
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__close { position: absolute; top: 1.4rem; right: var(--gutter); font-size: 2rem; color: #fff; line-height: 1; }
.drawer a { font-family: var(--font-title); font-weight: 600; font-size: 1.4rem; color: #fff; padding-block: 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.drawer .btn { margin-top: 1.5rem; }

body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   Cards genéricos
   -------------------------------------------------------------------------- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--c-mist); }

.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--c-offwhite); color: var(--c-steel);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.card p { color: var(--c-gray-soft); font-size: 0.975rem; }

/* Pills / tags de ramos */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.05rem; font-size: 0.92rem; font-weight: 500;
  color: var(--c-gray-text);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.pill:hover { border-color: var(--c-steel); color: var(--c-blue); transform: translateY(-2px); }
.pill::before {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 7px solid var(--c-steel);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--c-blue-darker); color: rgba(255,255,255,0.72); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer a { transition: color var(--t-fast); }
.footer a:hover { color: var(--c-white); }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__logo img { height: 54px; width: auto; margin-bottom: var(--sp-4); }
.footer__desc { font-size: 0.95rem; max-width: 34ch; }
.footer h4 { color: var(--c-white); font-size: 1rem; margin-bottom: var(--sp-4); font-family: var(--font-title); }
.footer ul li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer__unit { margin-bottom: var(--sp-5); font-size: 0.93rem; }
.footer__unit strong { color: var(--c-white); display: block; margin-bottom: 2px; }
.footer__social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.08); }
.footer__social a:hover { background: var(--c-steel); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer__bottom .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__susep { font-size: 0.8rem; color: rgba(255,255,255,0.5); max-width: 60ch; margin-top: 0.4rem; }

/* --------------------------------------------------------------------------
   WhatsApp flutuante
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: var(--z-float);
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform var(--t);
  animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  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 final (padronizado — usado em todas as páginas)
   -------------------------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); max-width: 24ch; margin: 0 auto var(--sp-5); }
.cta-final h2 .hl { color: var(--c-mist); }
.cta-final__lead { color: rgba(255,255,255,0.85); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 54ch; margin: 0 auto var(--sp-6); }
.cta-final__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* --------------------------------------------------------------------------
   Breadcrumb (páginas internas)
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: var(--sp-3); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin-inline: 6px; }
