/* ============================================================
   CICEP — Estilos Gerais
   ============================================================ */

:root {
  --primary: #63459D;
  --primary-dark: #1449B0;
  --primary-light: #EBF2FF;
  --dark: #0D1B2A;
  --body-text: #1A2337;
  --muted: #6B7280;
  --border: #E2E8F0;
  --bg-light: #FAF9FF;
  --footer-bg: #0D1B2A;
  --white: #FFFFFF;
  --cinza: #6B7280;
  --titulos: #0D1B2A;
  --sombra: 0 4px 24px rgba(13, 27, 42, 0.08);
  --font: 'Poppins', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: var(--font);
}

html {
  margin: 0 !important;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--body-text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

p { margin: 0; line-height: 1.7; }

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

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

section { margin-top: 0; }

#wpadminbar {
  height: 0;
  display: none;
  visibility: hidden;
  pointer-events: none;
}

/* === Loading === */
.loading {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 18px 0;
  gap: 24px;
}

.header-logo { flex-shrink: 0; }
.header-logo img { height: 40px; width: auto; }

.header-nav {
  display: none;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

@media (min-width: 992px) {
  .header-nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: var(--dark); }

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none !important;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-header:hover { background: var(--primary-dark); }

.header-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
}

@media (min-width: 992px) {
  .header-menu-toggle { display: none; }
}

.header-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

/* === Footer === */
.site-footer {
  background: #FCFCFC;
  color: #343940;
  border-top: 1px solid #E8EAED;
}

.footer-top {
  padding: 64px 0 48px;
  border-bottom: 1px solid #E8EAED;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
}

@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo {
  height: 85px;
  width: auto;
  margin-bottom: 16px;
  filter: none;
  opacity: 1;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #343940;
  margin-top: 16px;
}

.footer-col h4 {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li {
  font-size: 0.875rem;
  color: #343940;
}

.footer-col ul li a {
  color: #343940;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-col ul li a svg { color: var(--primary); }

.footer-bottom { padding: 20px 0; }

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: #343940;
  opacity: 0.65;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom-inner a {
  color: #343940;
  text-decoration: underline;
  transition: color 0.2s;
}

.footer-bottom-inner a:hover { color: var(--primary); }

.footer-sep {
  display: none;
  width: 1px;
  height: 14px;
  background: #D0D3D8;
}

@media (min-width: 768px) { .footer-sep { display: block; } }

/* === WhatsApp Button === */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu__close span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  position: absolute;
}

.mobile-menu__close span:first-child { transform: rotate(45deg); }
.mobile-menu__close span:last-child { transform: rotate(-45deg); }

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-menu__nav a {
  color: white;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mobile-menu.is-open .mobile-menu__nav a:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }
