/* CSS SOS Boituva — Ajustado após feedback */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Cores do Logo SOS Boituva */
  --color-cyan: #00aef2;
  --color-magenta: #ee2291;
  --color-navy: #0a1930;
  
  --gradient-magenta: linear-gradient(135deg, #ee2291, #ff47a9);
  --gradient-cyan: linear-gradient(135deg, #00aef2, #33c1ff);
  
  --text-main: #333333;
  --text-light: #6b7280;
  --bg-light: #ffffff;
  --bg-gray: #f9fafb;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
}

.text-magenta { color: var(--color-magenta); }
.text-cyan { color: var(--color-cyan); }
.text-navy { color: var(--color-navy); }

/* Backgrounds */
.bg-magenta { background-color: var(--color-magenta); }
.bg-cyan { background-color: var(--color-cyan); }
.bg-navy { background-color: var(--color-navy); }

/* --- Design System (Typography) --- */
.ds-h1 {
  font-size: 3.5rem; /* ~56px */
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1.1;
  text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ds-h2 {
  font-size: 2.5rem; /* 40px */
  font-weight: 900;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.2;
}

.ds-h3 {
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
  transition: color 0.3s;
}

.ds-pre-title {
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

@media (max-width: 768px) {
  .ds-h1 { font-size: 2.5rem; }
  .ds-h2 { font-size: 2rem; }
}

/* --- Botões Refinados --- */
.btn-primary {
  background: var(--gradient-magenta);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(238, 34, 145, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 34, 145, 0.4);
  color: white;
}

.btn-navy {
  background: var(--color-navy);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(10, 25, 48, 0.3);
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 25, 48, 0.5);
  color: white;
}

.btn-outline {
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background-color: var(--color-navy);
  color: white;
}

/* --- Header --- */
.header-shadow {
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

/* --- Hero Section Refinada --- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(27, 54, 93, 0.8) 0%, rgba(27, 54, 93, 0.9) 100%), url('../assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 160px 0 180px;
  text-align: center;
  overflow: hidden;
}

.hero-internal {
  position: relative;
  background: linear-gradient(135deg, rgba(27, 54, 93, 0.85) 0%, rgba(27, 54, 93, 0.95) 100%), url('../assets/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  padding: 120px 0 140px;
  text-align: center;
  overflow: hidden;
}

.hero-pre-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 10px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
  color: white !important; /* Forçando branco para corrigir contraste */
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 50px;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .hero-title { font-size: 4rem; }
}

/* --- Feature Cards --- */
.feature-cards-section {
  position: relative;
  z-index: 20;
  margin-top: -60px;
  padding-bottom: 80px;
}

.feature-card {
  border-radius: 20px;
  padding: 40px 20px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-card svg {
  width: 45px;
  height: 45px;
  margin-bottom: 25px;
  opacity: 0.9;
  transition: transform 0.3s ease;
}
.feature-card:hover svg {
  transform: scale(1.1);
}

.feature-card h3 {
  color: white;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.bg-card-magenta { background: var(--color-magenta); }
.bg-card-navy { background: var(--color-navy); }
.bg-card-cyan { background: var(--color-cyan); }
.bg-card-white { 
  background: white; 
  color: var(--color-navy);
  border: 1px solid #f0f0f0;
}
.bg-card-white h3 { color: var(--color-navy); }
.bg-card-white svg { color: var(--color-cyan); opacity: 1; }


/* --- Impact Section --- */
.impact-section {
  padding: 60px 0 100px;
}

.impact-pre-title {
  text-transform: uppercase;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.impact-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-box {
  background-color: #f8fafc;
  border-left: 4px solid var(--color-magenta);
  padding: 20px 25px;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-3px);
}
.stat-box.cyan-border {
  border-left-color: var(--color-cyan);
}
.stat-box.navy-border {
  border-left-color: var(--color-navy);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number.magenta-text { color: var(--color-magenta); }
.stat-number.cyan-text { color: var(--color-cyan); }

.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.splash-mask-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 40px;
}
.splash-bg {
  position: absolute;
  z-index: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.splash-mask-container {
  --scroll-progress: 0;
}
.splash-mask-container:hover {
  --scroll-progress: 1 !important;
}

.splash-cyan {
  top: 15px; right: -15px; bottom: -25px; left: 10px;
  background-color: var(--color-cyan);
  border-radius: 50% 30% 60% 40% / 30% 60% 40% 50%;
  transform: rotate(calc(8deg - (10deg * var(--scroll-progress)))) scale(calc(1 + (0.05 * var(--scroll-progress))));
  opacity: 0.8;
  transition: transform 0.4s ease-out;
}
.splash-magenta {
  top: -20px; right: -30px; bottom: 10px; left: 30px;
  background-color: var(--color-magenta);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  transform: rotate(calc(-5deg + (7deg * var(--scroll-progress)))) scale(calc(1 + (0.05 * var(--scroll-progress))));
  transition: transform 0.4s ease-out;
}

.splash-dots {
  position: absolute;
  bottom: -40px; left: -30px;
  width: 140px; height: 140px;
  background-image: radial-gradient(var(--color-navy) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.2;
  z-index: 2;
  border-radius: 50%;
}
.splash-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 30% 70% 50% 50% / 50% 30% 70% 50%;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  transition: all 0.5s ease;
}


/* --- Transparência & Documentos --- */
.documents-section {
  padding: 100px 0;
  text-align: center;
  background-color: var(--bg-gray);
  border-top: 1px solid #eee;
}

.section-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fde8f3;
  color: var(--color-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.documents-section h2 {
  font-size: 2.8rem;
  margin-bottom: 60px;
  text-transform: uppercase;
}

.doc-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-align: left;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.doc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.doc-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: #eee;
}
.doc-card-content {
  padding: 35px 30px;
  position: relative;
}
.doc-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.doc-card-title {
  font-size: 19px;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--color-navy);
}
.doc-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  margin-top: 20px;
}

.doc-download-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  transition: all 0.3s ease;
}
.doc-card:hover .doc-download-btn {
  background-color: var(--color-magenta);
  border-color: var(--color-magenta);
  color: white;
}

.doc-card-featured {
  background: var(--gradient-cyan);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doc-card-featured .doc-card-title {
  color: white;
  font-size: 24px;
}
.doc-card-featured .btn-primary {
  background: white;
  color: var(--color-cyan);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.doc-card-featured .btn-primary:hover {
  background: var(--color-navy);
  color: white;
}

/* --- Notícias / Ações (Blog) --- */
.news-section {
  padding: 100px 0;
  background-color: white;
}

.news-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.news-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #eee;
}
.news-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.news-tag {
  background-color: rgba(0, 174, 242, 0.1);
  color: var(--color-cyan);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 15px;
  align-self: flex-start;
}
.news-title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 15px;
}
.news-title a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s;
}
.news-title a:hover {
  color: var(--color-magenta);
}
.news-desc {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}
.news-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
  font-size: 13px;
  color: #999;
  font-weight: 500;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
  border-top: 4px solid var(--color-cyan);
}
.footer-title {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--color-cyan);
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.footer-contact svg {
  color: var(--color-cyan);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 60px;
  padding-top: 30px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Consentimento de cookies (LGPD) --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 420px;
  width: calc(100% - 48px);
  background-color: var(--bg-light);
  border: 1px solid rgba(10, 25, 48, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(10, 25, 48, 0.18);
  z-index: 99999;
  font-family: 'Poppins', sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
}
.cookie-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cookie-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cookie-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(10, 25, 48, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-navy);
}
.cookie-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 16px;
}
.cookie-text a {
  color: var(--color-navy);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}
.cookie-text a:hover,
.cookie-text a:focus-visible {
  color: #334155;
}
.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.cookie-btn-reject,
.cookie-btn-accept {
  font-family: 'Poppins', sans-serif;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cookie-btn-reject {
  background: transparent;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
}
.cookie-btn-reject:hover,
.cookie-btn-reject:focus-visible {
  background: rgba(10, 25, 48, 0.08);
  color: var(--color-navy);
}
.cookie-btn-accept {
  background: var(--color-navy);
  border: 2px solid var(--color-navy);
  color: var(--bg-light);
}
.cookie-btn-accept:hover,
.cookie-btn-accept:focus-visible {
  background: #1e293b;
  border-color: #1e293b;
}
@media (max-width: 576px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    padding: 16px;
    border-radius: 12px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn-reject,
  .cookie-btn-accept {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
  }
}

/* --- Editor de Conteúdo (Blog & Artigos) --- */
.editor-conteudo {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #475569;
}

.editor-conteudo > *:first-child {
  margin-top: 0 !important;
}

.editor-conteudo > *:last-child {
  margin-bottom: 0 !important;
}

.editor-conteudo p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.85;
  color: #475569;
}

.editor-conteudo h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.editor-conteudo h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
  line-height: 1.35;
}

.editor-conteudo h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.editor-conteudo ul {
  list-style-type: disc !important;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  padding-left: 1.5rem !important;
}

.editor-conteudo ol {
  list-style-type: decimal !important;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
  padding-left: 1.5rem !important;
}

.editor-conteudo li {
  margin-bottom: 0.625rem;
  line-height: 1.75;
  color: #475569;
  display: list-item !important;
}

.editor-conteudo li > ul,
.editor-conteudo li > ol {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.editor-conteudo strong,
.editor-conteudo b {
  font-weight: 700;
  color: var(--color-navy);
}

.editor-conteudo em,
.editor-conteudo i {
  font-style: italic;
}

.editor-conteudo blockquote {
  border-left: 4px solid var(--color-magenta);
  background-color: #fdf2f8;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--color-navy);
  font-size: 1.1rem;
  line-height: 1.65;
}

.editor-conteudo blockquote p {
  margin-bottom: 0;
  color: var(--color-navy);
  font-weight: 500;
}

.editor-conteudo a {
  color: var(--color-cyan);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.editor-conteudo a:hover {
  color: var(--color-magenta);
}

.editor-conteudo hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 2.5rem 0;
}

.editor-conteudo code {
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.875em;
  font-family: monospace;
}

.editor-conteudo pre {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.editor-conteudo .imagem-no {
  margin: 2rem 0;
  display: flex;
}

.editor-conteudo .imagem-no[data-align="esquerda"] {
  justify-content: flex-start;
}

.editor-conteudo .imagem-no[data-align="centro"] {
  justify-content: center;
}

.editor-conteudo .imagem-no[data-align="direita"] {
  justify-content: flex-end;
}

.editor-conteudo .imagem-quadro {
  display: inline-block;
  max-width: 100%;
}

.editor-conteudo .imagem-quadro img,
.editor-conteudo img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
