/* ==========================================================================
   ITSOL — Estilos Principais
   Arquivo único para gerenciamento completo do visual do site
   Paleta: Azul Naval #1B3D6A / Cinza #484848 / Branco / Cinza Claro
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variáveis CSS
   -------------------------------------------------------------------------- */
:root {
  /* Cores principais (extraídas da logo) */
  --color-primary:       #1B3D6A;
  --color-primary-dark:  #102848;
  --color-primary-light: #E8EFF8;
  --color-secondary:     #484848;
  --color-accent:        #4d87cc;

  /* Backgrounds */
  --bg-page:   #f5f7fa;
  --bg-card:   #ffffff;
  --bg-dark:   #0e1f38;

  /* Texto */
  --text-primary:   #1e2d42;
  --text-secondary: #5a6a7e;
  --text-muted:     #9aaabb;
  --text-white:     #ffffff;

  /* Bordas */
  --border:            #dde4ed;
  --border-radius:     8px;
  --border-radius-lg:  12px;

  /* Sombras */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);

  /* Tipografia */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max:     1200px;
  --container-px:      1.5rem;
  --section-py:        5rem;
  --nav-height:        70px;

  /* Transições */
  --ease: 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--color-primary-dark); }

ul { list-style: none; }

/* --------------------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .65rem;
}

.section-title {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: .9rem;
}

.section-title em { font-style: normal; color: var(--color-primary); }

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-white  { color: var(--text-white); }
.lead        { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section       { padding: var(--section-py) 0; }
.section-sm    { padding: 3.5rem 0; }

.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

.grid-2    { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3    { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4    { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }

/* --------------------------------------------------------------------------
   5. Navegação
   -------------------------------------------------------------------------- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  box-shadow: var(--shadow-sm);
}

.main-nav .container { height: 100%; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img { height: 44px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-link {
  padding: .45rem .85rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  transition: color var(--ease), background var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-cta {
  margin-left: .75rem;
  padding: .5rem 1.1rem;
  background: var(--color-primary);
  color: var(--text-white) !important;
  border-radius: var(--border-radius);
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--ease), transform var(--ease);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  color: var(--text-white);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border: none;
  background: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s;
}

/* --------------------------------------------------------------------------
   6. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--ease);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
  font-family: var(--font);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--text-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
  color: var(--text-white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--text-white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--bg-card);
  color: var(--color-primary);
  border-color: var(--bg-card);
}
.btn-white:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

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

.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 550px;
  height: 550px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 3%;
  width: 380px;
  height: 380px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  color: var(--text-white);
  font-size: .75rem;
  font-weight: 500;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,.2);
}

.hero h1 {
  color: var(--text-white);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,.65);
}

.hero-desc {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Hero visual — painel flutuante */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-panel {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 360px;
}

.hero-panel-title {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.hero-stat-row:last-child { border-bottom: none; }

.hsr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hsr-dot.green  { background: #4ade80; }
.hsr-dot.blue   { background: #60a5fa; }
.hsr-dot.yellow { background: #fbbf24; }
.hsr-dot.teal   { background: #2dd4bf; }

.hsr-label { flex: 1; font-size: .8rem; color: rgba(255,255,255,.8); }
.hsr-value { font-size: .8rem; font-weight: 600; color: var(--text-white); }

/* Hero para páginas internas */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 3.25rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}

.page-hero-inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .75rem;
}

.breadcrumb a { color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--text-white); }

.page-hero h1 {
  color: var(--text-white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: .6rem;
}

.page-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  transition: transform var(--ease), box-shadow var(--ease);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
}

.card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card p  { font-size: .875rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 1rem;
}

.card:hover .card-link i { transform: translateX(3px); }
.card-link i { transition: transform var(--ease); }

/* Card de serviço detalhado */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: transform var(--ease), box-shadow var(--ease);
}

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

.service-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-card-head h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.service-card-head p  { font-size: .875rem; color: var(--text-secondary); margin: 0; }

.service-features { display: flex; flex-direction: column; gap: .45rem; margin-top: 1rem; }

.service-feature {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-secondary);
}

.service-feature i { color: var(--color-primary); font-size: .9rem; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   9. Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar { background: var(--color-primary); padding: 2.75rem 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item    { color: var(--text-white); }
.stat-number  { font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: .35rem; }
.stat-number span { color: rgba(255,255,255,.6); font-size: 1.5rem; }
.stat-label   { font-size: .82rem; color: rgba(255,255,255,.65); }

/* --------------------------------------------------------------------------
   10. Seção "Por que nos escolher"
   -------------------------------------------------------------------------- */
.why-section { background: var(--bg-card); }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-features { display: flex; flex-direction: column; gap: 1.5rem; }

.feature-item { display: flex; gap: 1rem; align-items: flex-start; }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feature-text h4 { font-size: .95rem; margin-bottom: .25rem; }
.feature-text p  { font-size: .85rem; color: var(--text-secondary); margin: 0; }

/* Painel visual "Por que" */
.why-visual {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
}

.why-visual-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}

.status-item:last-child { border-bottom: none; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online  { background: #22c55e; }
.status-dot.monitor { background: #3b82f6; }
.status-dot.ticket  { background: #f59e0b; }
.status-dot.infra   { background: #8b5cf6; }

.status-label { flex: 1; font-size: .82rem; color: var(--text-secondary); }
.status-val   { font-size: .78rem; font-weight: 600; color: var(--text-primary); }

/* --------------------------------------------------------------------------
   11. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--text-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: .7rem;
}

.cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   12. Formulários
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: .35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .68rem 1rem;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,61,106,.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* Layout do formulário de contato */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item { display: flex; gap: .9rem; align-items: flex-start; }

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--color-primary-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-text strong { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .1rem; }
.contact-text span,
.contact-text a { font-size: .85rem; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   13. Página Sobre
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-placeholder {
  background: var(--color-primary-light);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 300px;
  color: var(--color-primary);
  font-size: .85rem;
  color: var(--text-secondary);
}

.about-img-placeholder i { font-size: 3rem; color: var(--color-primary); opacity: .4; }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem;
  text-align: center;
}

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

.value-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.value-card p  { font-size: .85rem; color: var(--text-secondary); margin: 0; }

/* --------------------------------------------------------------------------
   14. Página Políticas
   -------------------------------------------------------------------------- */
.policy-wrapper { max-width: 820px; margin: 0 auto; }

.policy-tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border);
}

.policy-tab {
  padding: .75rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--ease);
  font-family: var(--font);
}

.policy-tab:hover { color: var(--color-primary); }
.policy-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.policy-body { display: none; }
.policy-body.active { display: block; }

.policy-body h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.policy-body h3 { font-size: 1.05rem; margin: 1.75rem 0 .5rem; }
.policy-body p  { font-size: .9rem; color: var(--text-secondary); line-height: 1.75; }
.policy-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.policy-body ul li { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: .2rem; }
.policy-update { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   15. Rodapé
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); }

.footer-main {
  padding: 3.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .footer-logo { display: inline-block; margin-bottom: .9rem; }
.footer-brand .footer-logo img { height: 44px; width: auto; }

.footer-brand p {
  font-size: .85rem;
  line-height: 1.75;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.25rem;
}

.footer-social { display: flex; gap: .5rem; }

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 1rem;
  transition: all var(--ease);
}

.social-link:hover { background: var(--color-primary); color: var(--text-white); }

.footer-col h4 {
  color: var(--text-white);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: .45rem; }

.footer-links a {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
  transition: color var(--ease);
}

.footer-links a:hover { color: var(--text-white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .83rem;
  color: rgba(255,255,255,.45);
  margin-bottom: .55rem;
}

.footer-contact-item i { color: var(--color-accent); font-size: .95rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.45); }
.footer-contact-item a:hover { color: var(--text-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.28);
}

.footer-bottom-inner a { color: rgba(255,255,255,.28); transition: color var(--ease); }
.footer-bottom-inner a:hover { color: rgba(255,255,255,.65); }

.footer-bottom-links { display: flex; gap: 1.25rem; }

/* --------------------------------------------------------------------------
   16. Cookie Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
  z-index: 2000;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: .83rem;
  color: rgba(255,255,255,.7);
  min-width: 240px;
}

.cookie-text a { color: var(--color-accent); }

.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }

.btn-cookie-accept {
  padding: .5rem 1.25rem;
  background: var(--color-primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius);
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--ease);
}

.btn-cookie-accept:hover { background: var(--color-primary-dark); }

.btn-cookie-decline {
  padding: .5rem 1.25rem;
  background: transparent;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--border-radius);
  font-size: .83rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--ease);
}

.btn-cookie-decline:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.4); }

/* --------------------------------------------------------------------------
   17. Utilitários
   -------------------------------------------------------------------------- */
.bg-page  { background: var(--bg-page); }
.bg-white { background: var(--bg-card); }
.bg-dark  { background: var(--bg-dark); }

.divider { height: 1px; background: var(--border); margin: 2rem 0; }

.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: .9rem 1.25rem;
  border-radius: var(--border-radius);
  font-size: .875rem;
  display: none;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   18. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-py: 4rem; }
  .grid-4    { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-py:   3rem;
    --container-px: 1.25rem;
  }

  /* Nav mobile */
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: .75rem 1rem;
    gap: .15rem;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open { display: flex; }

  .nav-link { width: 100%; padding: .7rem 1rem; }

  .nav-cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    text-align: center;
    display: flex;
    margin-top: .25rem;
  }

  .nav-toggle { display: flex; }

  /* Layouts */
  .hero-inner,
  .why-inner,
  .about-grid,
  .contact-grid,
  .grid-2 { grid-template-columns: 1fr; }

  .hero-visual { display: none; }

  .grid-3        { grid-template-columns: repeat(2,1fr); }
  .values-grid   { grid-template-columns: repeat(2,1fr); }
  .stats-grid,
  .grid-4        { grid-template-columns: repeat(2,1fr); }

  .footer-main         { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-3,
  .values-grid     { grid-template-columns: 1fr; }
  .stats-grid,
  .grid-4          { grid-template-columns: 1fr; }
  .btn-group       { flex-direction: column; }
  .btn-group .btn  { width: 100%; justify-content: center; }
  .hero h1         { font-size: 1.75rem; }
}

/* --------------------------------------------------------------------------
   LGPD — Popup de Consentimento de Cookies (estilo Cookiebot)
   -------------------------------------------------------------------------- */
#its-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#its-cookie-overlay.visible { opacity: 1; pointer-events: all; }
.cookie-popup {
  background: var(--bg-card);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.22);
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
#its-cookie-overlay.visible .cookie-popup { transform: translateY(0) scale(1); }

/* Header */
.cpop-header {
  display: flex;
  align-items: center;
  padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cpop-logo {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.cpop-logo i { color: var(--color-accent); font-size: 1rem; }

/* Abas */
.cpop-tabs { display: flex; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cpop-tab {
  flex: 1;
  padding: .65rem .5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}
.cpop-tab:hover  { color: var(--text-primary); }
.cpop-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* Painéis */
.cpop-panel { display: none !important; padding: 1.1rem 1.25rem 1rem; overflow-y: auto; flex: 1; min-height: 0; }
.cpop-panel.active { display: block !important; }
.cpop-title { font-weight: 700; font-size: .95rem; color: var(--text-primary); margin-bottom: .4rem; }
.cpop-desc  { font-size: .81rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.1rem; }

/* Categorias (aba Consentir) */
.cpop-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem .25rem;
  border-top: 1px solid var(--border);
  padding-top: .9rem;
}
.cpop-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .4rem .25rem;
  font-size: .73rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* Toggle switches */
.cpop-toggle {
  position: relative;
  display: inline-block;
  width: 40px; height: 22px;
  cursor: pointer;
  flex-shrink: 0;
}
.cpop-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cpop-toggle-slider {
  position: absolute;
  inset: 0;
  background: #cdd5e0;
  border-radius: 22px;
  transition: background .2s;
}
.cpop-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cpop-toggle input:checked  + .cpop-toggle-slider         { background: var(--color-primary); }
.cpop-toggle input:checked  + .cpop-toggle-slider::before { transform: translateX(18px); }
.cpop-toggle input:disabled + .cpop-toggle-slider         { background: var(--color-primary); opacity: .8; cursor: not-allowed; }
.cpop-toggle input:disabled + .cpop-toggle-slider::before { transform: translateX(18px); }
.cpop-toggle-locked { cursor: not-allowed; }

/* Aba Detalhes */
.cpop-detail-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: .5rem; overflow: hidden; }
.cpop-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .85rem;
  cursor: pointer;
  gap: .75rem;
  background: var(--bg-page);
  user-select: none;
}
.cpop-detail-header:hover { background: var(--color-primary-light); }
.cpop-detail-left { display: flex; align-items: center; gap: .55rem; flex: 1; }
.cpop-detail-chevron { font-size: .75rem; color: var(--text-secondary); transition: transform .2s; flex-shrink: 0; }
.cpop-detail-item.open .cpop-detail-chevron { transform: rotate(90deg); }
.cpop-detail-name  { font-size: .8rem; font-weight: 700; color: var(--text-primary); }
.cpop-detail-count { font-size: .72rem; color: var(--text-secondary); }
.cpop-detail-body  { display: none; border-top: 1px solid var(--border); }
.cpop-detail-item.open .cpop-detail-body { display: block; }
.cpop-detail-table { width: 100%; border-collapse: collapse; }
.cpop-detail-table th {
  background: var(--bg-page);
  padding: .45rem .6rem;
  text-align: left;
  font-weight: 600;
  font-size: .7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.cpop-detail-table td { padding: .5rem .6rem; font-size: .78rem; color: var(--text-primary); border-bottom: 1px solid var(--border); vertical-align: top; }
.cpop-detail-table tr:last-child td { border-bottom: none; }
.cpop-detail-table td:first-child { font-weight: 600; color: var(--color-primary); white-space: nowrap; }

/* Aba Sobre */
.cpop-about-text { font-size: .82rem; color: var(--text-secondary); line-height: 1.7; }
.cpop-about-text h4 { font-weight: 700; font-size: .85rem; color: var(--text-primary); margin: 1rem 0 .4rem; }
.cpop-about-text h4:first-child { margin-top: 0; }
.cpop-about-text a { color: var(--color-primary); text-decoration: underline; }

/* Rodapé do popup */
.cpop-footer {
  display: flex;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-page);
}
.cpop-btn-deny,
.cpop-btn-selection {
  flex: 1;
  padding: .6rem .5rem;
  border: 1.5px solid var(--border);
  background: transparent;
  border-radius: 7px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.cpop-btn-deny:hover      { border-color: #c0392b; color: #c0392b; }
.cpop-btn-selection:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.cpop-btn-all {
  flex: 1.4;
  padding: .6rem .5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: background var(--ease);
}
.cpop-btn-all:hover { background: var(--color-primary-dark); }

@media (max-width: 500px) {
  .cpop-categories { grid-template-columns: repeat(2, 1fr); gap: .75rem .5rem; }
  .cpop-footer { flex-wrap: wrap; }
  .cpop-btn-deny, .cpop-btn-selection { flex: 1 0 calc(50% - .25rem); }
  .cpop-btn-all { flex: 1 0 100%; order: -1; }
}

/* --------------------------------------------------------------------------
   LGPD — Painel de Gestão de Consentimento (politicas.html)
   -------------------------------------------------------------------------- */
.consent-status-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1.2rem;
  border: 1.5px solid #b7ddb0;
  background: #f0faf0;
  border-radius: 10px;
  margin-bottom: 1.25rem;
}
.consent-status-card .cs-icon { font-size: 1.4rem; flex-shrink: 0; }
.consent-status-card .cs-info { display: flex; flex-direction: column; }
.consent-status-card .cs-info strong { font-size: .9rem; color: var(--text-primary); }
.consent-status-card .cs-info span  { font-size: .8rem; color: var(--text-secondary); }
.consent-status-card.no-consent { background: #fff8f0; border-color: #f0813a; }

.consent-category { border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: .85rem; overflow: hidden; }
.consent-category-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; gap: 1rem; }
.consent-category-meta { display: flex; align-items: flex-start; gap: .85rem; flex: 1; }
.consent-category-meta .cc-icon { font-size: 1.3rem; margin-top: .1rem; flex-shrink: 0; }
.consent-category-meta strong { display: block; font-size: .92rem; color: var(--text-primary); margin-bottom: .2rem; }
.consent-category-meta p { font-size: .81rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.consent-badge-always {
  font-size: .72rem;
  font-weight: 700;
  color: #1e8a4a;
  background: #e6f7ee;
  padding: .3rem .7rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.consent-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; cursor: pointer; }
.consent-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.consent-toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 24px; transition: background .2s; }
.consent-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.consent-toggle input:checked + .consent-toggle-slider         { background: var(--color-primary); }
.consent-toggle input:checked + .consent-toggle-slider::before { transform: translateX(20px); }

.consent-details-toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.25rem .65rem;
  font-size: .78rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
}
.consent-details-toggle i { font-size: .78rem; transition: transform .2s; }
.consent-details-toggle.open i { transform: rotate(180deg); }

.consent-cookies-table { width: 100%; border-collapse: collapse; display: none; }
.consent-cookies-table.visible { display: table; }
.consent-cookies-table th { background: var(--bg-page); padding: .45rem .75rem; text-align: left; font-weight: 600; font-size: .75rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.consent-cookies-table td { padding: .5rem .75rem; font-size: .8rem; color: var(--text-primary); border-bottom: 1px solid var(--border); vertical-align: top; }
.consent-cookies-table tr:last-child td { border-bottom: none; }
.consent-cookies-table td:first-child { font-weight: 600; color: var(--color-primary); white-space: nowrap; }

.consent-actions { display: flex; gap: .75rem; margin: 1.25rem 0 .5rem; flex-wrap: wrap; }
.consent-save-btn,
.consent-revoke-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.2rem;
  border-radius: 7px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  border: 1.5px solid transparent;
}
.consent-save-btn   { background: var(--color-primary); color: #fff; }
.consent-save-btn:hover { background: var(--color-primary-dark); }
.consent-revoke-btn { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.consent-revoke-btn:hover { border-color: #c0392b; color: #c0392b; }

.consent-saved-msg {
  display: none;
  padding: .6rem .9rem;
  background: #e6f7ee;
  color: #1e8a4a;
  border-radius: 7px;
  font-size: .83rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.consent-saved-msg.visible { display: flex; align-items: center; gap: .5rem; }

/* Privacidade — caixa do controlador */
.priv-controller-box {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  line-height: 1.7;
}
.priv-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .73rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 20px;
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.priv-section h3 { margin-top: 0; }
.priv-section p, .priv-section ul, .priv-section ol { margin-top: .5rem; }
.priv-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: .8rem; }
.priv-table thead tr { background: var(--color-primary); color: #fff; }
.priv-table th { padding: .6rem .8rem; text-align: left; font-weight: 600; }
.priv-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.priv-table tbody tr:nth-child(even) { background: var(--color-primary-light); }
.priv-rights-box {
  background: #fff8f0;
  border: 1px solid #f0c080;
  border-radius: 8px;
  padding: .7rem 1rem;
  margin-top: .8rem;
  font-size: .88rem;
  color: #7a5500;
  font-weight: 600;
}
@media (max-width: 600px) {
  .consent-category-header { flex-wrap: wrap; gap: .6rem; }
  .consent-cookies-table th:nth-child(4),
  .consent-cookies-table td:nth-child(4) { display: none; }
  .priv-table th:nth-child(2),
  .priv-table td:nth-child(2) { display: none; }
}
