/* =========================================
   base.css — global styles (light theme)
   ========================================= */

/* tokens */
:root {
--c-bg: #e0dde6;
--g-surface: linear-gradient(180deg,
  #e0dde6 0%,
  #d3ceda 55%,
  #e8e3ee 100%
);



  --c-text: #0b1220;
  --c-muted: #5b6475;
  --c-border: rgba(11, 18, 32, 0.10);

  --c-primary: #7f00b1f1;
  --c-secondary: #a52f82;
  --c-accent: #cf12e0;

  /* gradients */
  --g-start: var(--c-primary);
  --g-mid: var(--c-secondary);
  --g-end: var(--c-accent);
  --g-brand: linear-gradient(90deg, var(--g-start) 0%, var(--g-mid) 52%, var(--g-end) 100%);
  --g-brand-reverse: linear-gradient(90deg, var(--g-end) 0%, var(--g-mid) 52%, var(--g-start) 100%);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  --lh: 1.5;

  /* layout */
  --container: 1180px;
  --pad-x: clamp(16px, 4vw, 28px);

  /* radius & shadows */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --shadow-sm: 0 8px 22px rgba(11, 18, 32, 0.10);
  --shadow-md: 0 18px 54px rgba(11, 18, 32, 0.12);

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --t-med: 240ms;
}

/* reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: var(--lh);
  color: var(--c-text);
  background: var(--g-surface);
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--c-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(71, 12, 207, 0.459);
}

:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* container and spacing helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* mais largo, mantendo conforto visual */
.container--wide {
  max-width: min(1380px, 100%);
  padding-left: clamp(14px, 2.6vw, 22px);
  padding-right: clamp(14px, 2.6vw, 22px);
}

/* quase full-width */
.container--bleed {
  max-width: min(1520px, 100%);
  padding-left: clamp(12px, 2vw, 18px);
  padding-right: clamp(12px, 2vw, 18px);
}

@media (min-width: 1440px) {
  .container--wide {
    max-width: 1440px;
  }

  .container--bleed {
    max-width: 1600px;
  }
}

.section {
  padding: clamp(36px, 4vw, 60px) 0;
}

.grid {
  display: grid;
  gap: clamp(14px, 2.5vw, 28px);
}

.top-surface {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.top-surface::before,
.top-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.top-surface>* {
  position: relative;
  z-index: auto;
}

.top-surface>.topbar,
.top-surface>.site-header {
  z-index: 50;
}

.top-surface>.hero {
  z-index: 10;
}

.top-surface::before {
  opacity: 1;
}

.top-surface::after {
  opacity: 0.16;
  mix-blend-mode: multiply;
}

.top-surface--divider {
  box-shadow:
    inset 0 -1px 0 rgba(11, 18, 32, 0.06);
}

.u-gradient-text {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.u-gradient-text--smooth {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(1.05);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.85);
  color: var(--c-text);
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.08);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
  user-select: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(11, 18, 32, 0.12);
}

.btn:active {
  transform: translateY(0px);
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.10);
}

.btn--gradient {
  border: 0;
  color: #fff;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 0;
  box-shadow: 0 16px 46px rgba(47, 107, 255, 0.18), 0 12px 38px rgba(255, 106, 138, 0.12);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn--gradient::before,
.btn--gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.btn--gradient::before {
  background: var(--g-brand);
  opacity: 1;
}

.btn--gradient::after {
  background: var(--g-brand-reverse);
  opacity: 0;
  transition: opacity 900ms var(--ease);
}

.btn--gradient:hover {
  filter: brightness(1.03) saturate(1.05);
}

.btn--gradient:hover::after {
  opacity: 1;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(11, 18, 32, 0.14);
}

.card {
  border-radius: var(--r-lg);
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.card--padded {
  padding: clamp(16px, 2.5vw, 26px);
}

.h1 {
  font-size: clamp(32px, 4.6vw, 56px);
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--c-muted);
}

.hr {
  height: 1px;
  background: rgba(11, 18, 32, 0.08);
  border: 0;
  margin: 0;
}

/* =========================================================
   LUCIDE ICONS STYLES
   ========================================================= */
i[data-lucide],
i[data-lucide] svg,
svg.lucide {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  fill: none !important;
}

i[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

i[data-lucide] svg,
svg.lucide {
  width: 1em;
  height: 1em;
  stroke: currentColor;
}

/* =========================================
   WhatsApp Floating (desktop) + Bottom Bar (mobile)
   ========================================= */

:root {
  --wpp: #22c55e;
  --wpp-dark: #16a34a;
}

/* base */
.float-whatsapp,
.wpp-bar {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   Desktop: Floating Button
   ========================= */
.wpp--desktop {
  position: fixed;
  right: clamp(14px, 2.2vw, 22px);
  bottom: clamp(14px, 2.2vw, 22px);
  z-index: 999;

  width: 58px;
  height: 58px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, var(--wpp) 0%, var(--wpp-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);

  box-shadow:
    0 18px 52px rgba(34, 197, 94, 0.30),
    0 14px 44px rgba(11, 18, 32, 0.14);

  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    filter var(--t-fast) var(--ease);
}

.wpp--desktop img {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(11, 18, 32, 0.18));
}

.wpp--desktop::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.32), transparent 62%);
  opacity: 0.9;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}

.wpp--desktop:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 60px rgba(34, 197, 94, 0.38),
    0 18px 54px rgba(11, 18, 32, 0.16);
  filter: saturate(1.05) brightness(1.02);
}

.wpp--desktop:hover::before {
  opacity: 1;
}

.wpp--desktop:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.wpp--desktop:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.38);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .wpp--desktop {
    display: none !important;
  }
}

/* =========================
   Mobile: Bottom Bar
   ========================= */
.wpp--mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: linear-gradient(180deg, var(--wpp) 0%, var(--wpp-dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 -12px 40px rgba(11, 18, 32, 0.18);

  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  padding-bottom: max(calc(10px + env(safe-area-inset-bottom)), 10px);

  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: none;
  will-change: transform, opacity;
}

body.has-wpp-bar .wpp--mobile {
  pointer-events: auto;
}

.wpp-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.wpp-bar__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  filter: drop-shadow(0 10px 18px rgba(11, 18, 32, 0.18));
}

.wpp-bar__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
  color: #fff;
  align-items: center;
  text-align: center;
}

.wpp-bar__title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 14px;
}

.wpp-bar__subtitle {
  font-weight: 600;
  opacity: 0.92;
  font-size: 12px;
}

.wpp-bar__title,
.wpp-bar__subtitle {
  text-align: center;
}

.wpp--mobile:hover {
  filter: saturate(1.05) brightness(1.02);
}

.wpp--mobile:active {
  filter: brightness(0.98);
}

.wpp--mobile:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.32);
  outline-offset: -3px;
}

@media (min-width: 821px) {
  .wpp--mobile {
    display: none !important;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 0;
  }

  body.has-wpp-bar main {
    padding-bottom: var(--wpp-bar-h, calc(74px + env(safe-area-inset-bottom)));
  }
}
