/* ============================================================
   CADU XAVIER — NOSSO RN
   _shared.css — Design system + componentes globais
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Paleta aplicada: principais vermelho/amarelo; secundarias roxo/laranja */
  --red: #FF2519; /* principal: botoes, CTAs, titulos e destaques */
  --yellow: #FFD842; /* principal: pontos de atencao e selos */
  --purple: #8005FA; /* secundaria: detalhes fortes e segundo tom de gradientes */
  --orange: #FB8021; /* secundaria: avisos e estados de alerta */
  --red-deep: #8005FA; /* secundaria: preserva semantica do token usado em gradientes */
  --white: #FFFFFF;
  --off-white: #FAF8F6;
  --bg: #F3F0EE;
  --text: #1A1510;
  --gray: #8A8580;
  --gray-soft: #E8E4E0;
  --dark: #1A1510;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(26, 21, 16, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 21, 16, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 21, 16, 0.12);
  --shadow-red: 0 14px 40px rgba(255, 37, 25, 0.28); /* sombra principal vermelha */

  /* Layout */
  --container: 1200px;
  --nav-h: 64px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 800; line-height: 1.1; color: var(--text); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(26, 21, 16, 0.06);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: clamp(170px, 17vw, 260px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}
.brand-star {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--red);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(255, 37, 25, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.2s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
  font-weight: 600;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nav-cta { display: inline-flex; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-red:hover { background: var(--red-deep); }
.btn-white {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.btn-white:hover { background: var(--off-white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 15px; }

/* ---------- PAGE HEADER VERMELHO ---------- */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--white);
  padding: 80px 0 88px;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  opacity: 0.6;
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 18px;
}
.breadcrumb a { opacity: 0.85; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb-sep { opacity: 0.5; }
.page-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
}
.page-title em { font-style: italic; font-weight: 300; }
.page-desc {
  max-width: 640px;
  font-size: 17px;
  opacity: 0.92;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
  /*margin-top: 80px;*/
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer .brand { color: var(--white); margin-bottom: 14px; }
.footer-about p { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.footer ul a:hover { opacity: 1; color: var(--red); }
.footer-contact p { font-size: 14px; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- WHATSAPP FLOATING ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--purple); /* secundaria: detalhe flutuante */
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(128, 5, 250, 0.35);
  z-index: 60;
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid var(--purple);
  opacity: 0.4;
  animation: pulseRing 2.2s ease-out infinite;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(140%);
  background: var(--dark);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.25s;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); /* principal: ponto de confirmacao/destaque */
}

/* ---------- ANIMAÇÕES ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@keyframes growBar {
  from { width: 0; }
  to   { width: var(--bar, 60%); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.anim-fade-up { animation: fadeUp 0.7s ease-out both; }
.anim-float   { animation: float 6s ease-in-out infinite; }
.anim-blink   { animation: blink 1.6s ease-in-out infinite; }

/* ---------- UTILITÁRIOS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
}
.section { padding: 96px 0; }
.section-title {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-title em { font-style: italic; font-weight: 300; }
.section-lead {
  font-size: 17px;
  color: var(--gray);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 981px) {
  .nav-links { display: none; }
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-md);
    z-index: 49;
  }
  .nav-links.nav-open a {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--gray-soft);
  }
  .nav-links.nav-open a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .page-header { padding: 56px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
