/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #070738;
  --secondary: #1A1A5E;
  --accent: #FE0000;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--primary);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

.text-gradient {
  display: block;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #ff3333);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(254, 0, 0, 0.25);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #e00000, #cc0000);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 0, 0, 0.35);
}

.btn-white {
  background-color: var(--white);
  color: var(--accent);
  border-color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.btn-white:hover {
  background-color: var(--gray-100);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(7, 7, 56, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
}

.logoimg {
  height: 44px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--primary);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 500;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.header > .container > .btn {
  display: none;
}

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

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.nav-mobile .btn {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .header > .container > .btn {
    display: inline-flex;
  }
  
  .menu-toggle {
    display: none;
  }
}

/* ===== HERO SOBRE SECTION ===== */
.hero-sobre {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, rgba(7, 7, 56, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.hero-sobre::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 0, 0, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-sobre::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(7, 7, 56, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-sobre-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(254, 0, 0, 0.15), rgba(254, 0, 0, 0.08));
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  width: fit-content;
  border: 1px solid rgba(254, 0, 0, 0.2);
}

.hero-sobre-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-sobre-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-sobre-image {
  position: relative;
}

.imagem-principal {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px rgba(7, 7, 56, 0.18);
  border: 3px solid var(--white);
}

.destaque-card {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: linear-gradient(135deg, var(--white), var(--gray-50));
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 15px 40px rgba(7, 7, 56, 0.15);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 280px;
}

.destaque-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.destaque-text h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.destaque-text p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .hero-sobre-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .hero-sobre-title {
    font-size: 3.5rem;
  }
  
  .destaque-card {
    right: -30px;
  }
}

/* ===== SECTION STYLES ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(7, 7, 56, 0.1), rgba(7, 7, 56, 0.05));
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(7, 7, 56, 0.1);
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* ===== VALORES SECTION ===== */
.valores-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, var(--white) 100%);
  position: relative;
}

.valores-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.valor-card {
  background: linear-gradient(135deg, var(--white), var(--gray-50));
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.valor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.valor-card:hover::before {
  transform: scaleX(1);
}

.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(7, 7, 56, 0.12);
  border-color: var(--primary);
}

.valor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.valor-icon.missao {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.valor-icon.visao {
  background: linear-gradient(135deg, var(--secondary), #2a2a7e);
  color: var(--white);
}

.valor-icon.valores {
  background: linear-gradient(135deg, var(--accent), #ff4444);
  color: var(--white);
}

.valor-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.valor-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.valores-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.valores-lista li {
  padding: 0.5rem 0;
  color: var(--gray-600);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-100);
}

.valores-lista li:last-child {
  border-bottom: none;
}

.valores-lista strong {
  color: var(--primary);
}

@media (min-width: 768px) {
  .valores-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== HISTORIA SECTION ===== */
.historia-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--gray-50), rgba(7, 7, 56, 0.03), var(--gray-50));
  position: relative;
}

.historia-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(254, 0, 0, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.historia-text p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.historia-text strong {
  color: var(--primary);
}

.historia-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.historia-stat {
  background: linear-gradient(135deg, var(--white), var(--gray-50));
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 25px rgba(7, 7, 56, 0.08);
  transition: all 0.3s ease;
}

.historia-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(7, 7, 56, 0.12);
}

.historia-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.historia-stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.historia-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(7, 7, 56, 0.12);
  border: 3px solid var(--white);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.large {
  grid-column: 1 / -1;
}

.gallery-item.large img {
  height: 250px;
}

@media (min-width: 768px) {
  .historia-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  .gallery-item.large img {
    height: 280px;
  }
}

/* ===== TIME SECTION ===== */
.time-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--white), var(--gray-50), var(--white));
  position: relative;
}

.time-section::before {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(7, 7, 56, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.membro-card {
  background: linear-gradient(135deg, var(--white), var(--gray-50));
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 35px rgba(7, 7, 56, 0.08);
  transition: all 0.3s ease;
}

.membro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(7, 7, 56, 0.15);
  border-color: var(--primary);
}

.membro-foto-wrapper {
  position: relative;
  height: 280px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  overflow: hidden;
}

.membro-foto-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.membro-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.membro-card:hover .membro-foto {
  transform: scale(1.05);
}

.membro-info {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--white), var(--gray-50));
}

.membro-info h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.membro-cargo {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--accent), #ff4444);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.membro-info p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .time-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== CTA SOBRE SECTION ===== */
.cta-sobre {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #0a0a4a 100%);
  position: relative;
  overflow: hidden;
}

.cta-sobre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.cta-sobre::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(254, 0, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, var(--primary) 0%, #050530 100%);
  color: var(--white);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand .logo {
  color: var(--white);
}

.footer-brand .logo-name {
  color: var(--white);
}

.footer-brand .logo-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

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

/* ===== ANIMATIONS ===== */
.reveal-element {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}
