/* ════════════════════════════════════════════════════════════════
   COMPONENTS — botões, cards, header, footer, slider, form, etc.
   ════════════════════════════════════════════════════════════════ */

/* ─── Botões ───────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--color-brand);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-bg-hover: var(--color-brand-dark);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-border);
  cursor: pointer;
  transition: transform var(--duration) var(--ease),
              background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              color var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

.btn:active {
  transform: translateY(0);
}

.btn--brand {
  --btn-bg: var(--color-brand);
  --btn-bg-hover: var(--color-brand-dark);
}

.btn--whats {
  --btn-bg: var(--color-whatsapp);
  --btn-bg-hover: #1ebe57;
  --btn-fg: #fff;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-brand);
  --btn-border: var(--color-border-strong);
  --btn-bg-hover: var(--color-brand-soft);
}

.btn--ghost:hover {
  color: var(--color-brand-dark);
}

.btn--white {
  --btn-bg: #fff;
  --btn-fg: var(--color-brand);
  --btn-bg-hover: var(--color-brand-soft);
}

.btn--outline-white {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.5);
  --btn-bg-hover: rgba(255, 255, 255, 0.12);
}

.btn--outline-white:hover {
  color: #fff;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.link-muted {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.link-muted:hover {
  color: var(--color-brand);
}

/* ─── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-xs);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
}

.site-header__brand img {
  height: 44px;
  width: auto;
  max-height: 50px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-header__nav ul {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.site-header__nav ul a {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.site-header__nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.site-header__nav ul a:hover,
.site-header__nav ul a.is-active {
  color: var(--color-brand);
}

.site-header__nav ul a:hover::after,
.site-header__nav ul a.is-active::after {
  transform: scaleX(1);
}

.site-header__nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

body.is-nav-open .site-header__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.is-nav-open .site-header__toggle span:nth-child(2) {
  opacity: 0;
}
body.is-nav-open .site-header__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100vh - var(--header-h));
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--duration) var(--ease);
    overflow-y: auto;
    z-index: 90;
  }

  .site-header__nav ul {
    flex-direction: column;
    gap: var(--space-2);
    align-items: stretch;
  }

  .site-header__nav ul a {
    padding: var(--space-3) var(--space-2);
    font-size: 1.125rem;
    display: block;
    border-bottom: 1px solid var(--color-border);
  }

  .site-header__nav ul a::after {
    display: none;
  }

  .site-header__nav-cta {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: var(--space-3);
    margin-top: var(--space-6);
  }

  body.is-nav-open .site-header__nav {
    transform: translateX(0);
  }

  body.is-nav-open {
    overflow: hidden;
  }
}

/* ─── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-16) 0 var(--space-6);
  margin-top: var(--space-16);
}

.site-footer h4,
.site-footer .site-footer__title {
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand img {
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-4);
  width: 140px;
  height: auto;
}

.site-footer__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  color: #fff;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__address {
  font-style: normal;
}

.site-footer__address p {
  margin-bottom: var(--space-2);
}

.site-footer__bottom {
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.875rem;
}

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-ink);
}

.card__text {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card__link {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-brand);
}

.card__link::after {
  content: "→";
  transition: transform var(--duration) var(--ease);
}

.card__link:hover::after {
  transform: translateX(4px);
}

.card a {
  text-decoration: none;
}

.card--feature {
  position: relative;
  overflow: hidden;
}

.card--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--color-brand-soft) 100%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  pointer-events: none;
}

.card--feature:hover::before {
  opacity: 1;
}

/* ─── Cookie banner ────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-4) 0;
  transform: translateY(100%);
  transition: transform var(--duration) var(--ease);
  box-shadow: 0 -6px 18px rgb(0 0 0 / 0.2);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  min-width: 280px;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
}

/* ─── Botão WhatsApp flutuante ─────────────────────────────────── */
.whats-fab {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgb(37 211 102 / 0.4);
  z-index: 90;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 320ms var(--ease),
              transform 320ms var(--ease),
              box-shadow var(--duration) var(--ease);
}

.whats-fab.is-visible {
  opacity: 1;
  transform: scale(1);
}

.whats-fab:hover {
  background: var(--color-whatsapp);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgb(37 211 102 / 0.55);
}

.whats-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--color-whatsapp);
  opacity: 0.6;
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whats-fab::after { display: none; }
}

@media (max-width: 540px) {
  .whats-fab {
    width: 52px;
    height: 52px;
    right: var(--space-4);
    bottom: var(--space-4);
  }
  .whats-fab svg { width: 24px; height: 24px; }
}

/* ─── Reveal on scroll ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* ─── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ─── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb__sep {
  opacity: 0.5;
}

.breadcrumb__current {
  color: #fff;
  font-weight: 500;
}

/* ─── Form ─────────────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-weight: 500;
  color: var(--color-ink);
  font-size: 0.95rem;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 1rem;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  font-family: inherit;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-soft);
}

.form-card textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-card input:invalid:not(:placeholder-shown),
.form-card textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ─── Info card (contato) ──────────────────────────────────────── */
.info-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-brand-soft);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card__icon svg {
  width: 22px;
  height: 22px;
}

.info-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.info-card__value {
  color: var(--color-ink);
  font-weight: 500;
}

.info-card__value a {
  color: inherit;
}

.info-card__value a:hover {
  color: var(--color-brand);
}

/* ─── Chips (setores) ──────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--ease);
}

.chip:hover {
  background: var(--color-brand-soft);
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
}

/* ─── KPIs / Stats ─────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  text-align: center;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.kpi__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.kpi__label {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ─── Quote ────────────────────────────────────────────────────── */
.quote {
  background: var(--color-brand-soft);
  border-left: 4px solid var(--color-brand);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-brand-dark);
  margin: var(--space-8) 0;
  max-width: 720px;
}

.quote::before {
  content: "“";
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: var(--space-2);
  font-family: Georgia, serif;
  color: var(--color-brand);
}

/* ─── Body styles do longform ──────────────────────────────────── */
.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-brand-dark);
}

.prose p {
  margin-bottom: var(--space-4);
  line-height: 1.75;
  color: var(--color-ink-muted);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--color-ink-muted);
  line-height: 1.7;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
}

.prose ol {
  list-style: decimal;
}

.prose ol li::marker {
  color: var(--color-brand);
  font-weight: 700;
}

.prose strong {
  color: var(--color-ink);
}

/* ─── Checklist (entregáveis) ──────────────────────────────────── */
.checklist {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-ink);
}

.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
