/* --- VARIÁVEIS - PADRÃO 2026 (LIGHT, VIBRANT, HIGH CONVERSION) --- */
:root {
  /* Cores de Fundo (Light & Clean) */
  --bg-app: #f8fafc;
  --bg-panel: #ffffff;
  
  /* Textos (Alto contraste mas não preto puro) */
  --text-main: #0f172a;
  --text-muted: #475569;
  
  /* Cores de Marca & Ação (Vibrantes) */
  --primary: #0d9488; /* Teal vibrante e tecnológico */
  --primary-hover: #0f766e;
  --accent: #10b981; /* Verde esmeralda vivo (sucesso/ação) */
  --accent-light: #d1fae5;
  
  /* Elementos estruturais */
  --line: rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Sombras (Grandes, difusas e coloridas) */
  --shadow-sm: 0 4px 14px rgba(13, 148, 136, 0.05);
  --shadow-md: 0 12px 34px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(13, 148, 136, 0.12);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  /* Animações */
  --motion: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- MESH BACKGROUND --- */
.mesh-bg {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  z-index: -1;
  overflow: hidden;
  contain: paint;
  background-color: #f8fafc;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatBlob 15s ease-in-out infinite alternate;
}

.blob-1 {
  top: -10%; left: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, #99f6e4 0%, transparent 70%);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, #d1fae5 0%, transparent 70%);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%; left: 60%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, #ccfbf1 0%, transparent 70%);
  animation-delay: -10s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 15%) scale(1.1); }
}

/* --- ESTRUTURA PRINCIPAL --- */
.app-shell {
  min-height: 100svh;
  padding-bottom: 0;
}

@media (min-width: 760px) {
  .app-shell {
    padding-bottom: 0;
  }
}

.view-stage {
  margin-inline: auto;
  max-width: 1200px;
  padding: 104px 16px 60px;
}

.view-panel {
  animation: panelFadeIn 400ms var(--motion) both;
}

.view-panel[hidden] {
  display: none;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- TOPBAR LIQUID GLASS --- */
.topbar {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(13, 148, 136, 0.12);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(13, 148, 136, 0.08),
    0 22px 70px rgba(15, 23, 42, 0.14),
    0 8px 24px rgba(13, 148, 136, 0.08);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 64px;
  left: 50%;
  margin: 0;
  max-width: 1180px;
  overflow: hidden;
  padding: 8px 10px 8px 14px;
  position: fixed;
  top: 12px;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  z-index: 50;
}

.topbar::before {
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(90deg, rgba(209, 250, 229, 0.22), transparent 52%);
  content: "";
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  position: absolute;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
  flex: 0 0 auto;
  min-width: 46px;
}
.brand:hover {
  transform: scale(1.02);
}

.brand img {
  height: 42px;
  width: auto;
}

.desktop-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-item svg {
  height: 18px;
  width: 18px;
}
.nav-item.is-active {
  background: var(--text-main);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  color: #ffffff;
}

/* --- BOTÕES (HIGH CONVERSION) --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 24px;
  transition: all 0.3s var(--motion-bounce);
  font-size: 15px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
}

.button-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(13, 148, 136, 0.2);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.button-secondary-dark {
  background: var(--text-main);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.button-secondary-dark:hover {
  background: #1e293b;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}



/* --- ICONES GERAIS --- */
svg {
  stroke-width: 2.2;
}

/* --- TIPOGRAFIA MODERNA --- */
h1, h2, h3 {
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.badge-modern {
  display: inline-block;
  background: var(--accent-light);
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.text-white-80 { color: rgba(255,255,255,0.8) !important; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.p-xl { padding: 40px !important; }

/* --- GLASS CARD COMPONENT --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-glass);
  padding: 24px;
  transition: transform 0.3s var(--motion-bounce), box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 148, 136, 0.2);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  color: var(--primary);
  border-radius: 14px;
  margin-bottom: 20px;
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.icon-wrap-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary);
  border-radius: 10px;
  margin-bottom: 12px;
}

/* --- HERO SECTION --- */
.hero-glass {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
}

.hero-copy {
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.5);
  animation: float 6s ease-in-out infinite;
}

.hero-floating-card strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-floating-card span {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.hero-floating-card i {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.top-card {
  top: 20px;
  left: 16px;
  animation-delay: 0s;
}

.bottom-card {
  bottom: 30px;
  right: 16px;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- HOME SUMMARY (3 CARDS) --- */
.home-summary {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.home-summary article h2 {
  font-size: 20px;
}

.home-summary article p {
  margin-bottom: 0;
  font-size: 15px;
}

/* --- SECTIONS COMUNS --- */
.home-section {
  margin-top: 80px;
  padding-top: 40px;
}

/* --- HOME COMPANY --- */
.home-company {
  display: grid;
  gap: 40px;
  align-items: center;
}

.section-image-modern {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0 0 20px 0;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.home-stat-grid strong {
  display: block;
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 4px;
}

.home-stat-grid span {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- HOME LEGISLATION (MODERN LIGHT) --- */
.modern-light-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 40px 24px;
  box-shadow: var(--shadow-glass);
}

.law-grid {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.law-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 16px;
}

.law-grid article {
  flex: 1 1 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.law-grid article h3 {
  font-size: 22px;
}

/* --- SERVICES PREVIEW --- */
.section-title-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.preview-grid {
  display: grid;
  gap: 20px;
}

.service-preview-card h3 {
  font-size: 18px;
}

/* --- RESULTS PROOF --- */
.proof-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.proof-item {
  text-align: center;
}

.proof-item strong {
  display: block;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-item span {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- FORMS MODERNOS --- */
.contact-modern-layout {
  display: grid;
  gap: 32px;
  padding: 32px 24px;
}

.contact-info h2 {
  font-size: clamp(28px, 5vw, 42px);
}

.contact-direct {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.contact-item i {
  color: var(--primary);
}

.modern-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: #ffffff;
}

.full {
  grid-column: 1 / -1;
}

.form-success-message {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-light);
  color: #065f46;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
}

.form-success-message.is-visible {
  display: flex;
  animation: panelFadeIn 300ms ease;
}

.contact-form.is-sent .form-submit {
  display: none;
}

/* --- FOOTER --- */
.site-footer-modern {
  background: var(--text-main);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 24px;
  margin-top: 80px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.footer-detail {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.footer-col strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-col button,
.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 12px;
}

.footer-col span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.footer-col button,
.footer-col a {
  transition: color 0.2s;
  text-align: left;
  padding: 0;
}

.footer-col button:hover,
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 14px;
}



.floating-whatsapp {
  position: fixed;
  bottom: 120px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 45;
  transition: transform 0.3s;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* --- DESKTOP QUERIES --- */
@media (min-width: 760px) {
  .view-stage {
    padding-top: 124px;
  }

  .topbar {
    border-radius: 34px;
    min-height: 76px;
    padding: 10px 14px 10px 22px;
    top: 16px;
    width: min(1180px, calc(100% - 64px));
  }
  
  .brand {
    width: auto;
  }
  .brand img {
    height: 58px;
  }

  .desktop-nav {
    width: auto;
    gap: 6px;
    overflow-x: visible;
  }
  
  .nav-item {
    flex-direction: row;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
  }
  
  .nav-item:hover {
    background: rgba(255, 255, 255, 0.64);
    color: var(--text-main);
    transform: translateY(-1px);
  }
  
  .nav-item.is-active {
    background: var(--text-main);
    color: #ffffff;
  }
  

  
  .floating-whatsapp {
    bottom: 24px;
    right: 24px;
  }
  
  .hero-glass {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
  }
  
  .home-summary {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .home-company {
    grid-template-columns: 1fr 1fr;
  }
  
  .modern-light-panel {
    padding: 80px 60px;
  }
  
  .law-grid article {
    flex: 1 1 190px;
    max-width: 220px;
    min-width: 180px;
  }
  
  .section-title-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-modern-layout {
    grid-template-columns: 1fr 1fr;
    padding: 48px;
  }
  
  .modern-form {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr 2fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
}

/* --- OUTRAS PÁGINAS --- */
.panel-heading-modern {
  text-align: center;
  padding: 60px 20px;
}

.split-content-modern {
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .split-content-modern {
    grid-template-columns: 1fr 1fr;
  }
}

.highlight-card {
  background: var(--text-main);
}

.service-board-modern {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .service-board-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-modern-card h3 {
  font-size: 20px;
}

.service-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  object-fit: cover;
  width: 100%;
}

.institutional-copy {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
}

.institutional-copy p {
  margin-bottom: 14px;
}

.institutional-copy p:last-child {
  margin-bottom: 0;
}
