/* Base Styles & Variables */
:root {
  --color-primary: #0F1D3B; /* Azul Petróleo */
  --color-secondary: #007A33; /* Verde Novo */
  --color-accent: #FF6A13; /* Laranja Novo */
  --color-text-dark: #222222;
  --color-text-light: #555555;
  --color-bg-light: #F8F9FA;
  --color-white: #FFFFFF;
  --font-primary: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Utilities */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}
.section-title.text-left {
  text-align: left;
}
.section-title.text-left::after {
  left: 0;
  transform: none;
}
.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  text-align: center;
  font-size: 1.05rem;
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
  box-shadow: 0 8px 20px rgba(255, 106, 19, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(255, 106, 19, 0.6);
  color: var(--color-white);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* Header */
.header {
  background-color: var(--color-white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}
.logo-img {
  width: 160px;
  height: auto;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-weight: 600;
  font-size: 1rem;
}
.nav-links a:hover {
  color: var(--color-accent);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
}

/* HERO SECTION - RESTRUCTURED */
.hero {
  margin-top: 90px;
  background: linear-gradient(135deg, #0a1329 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 4rem 0 0 0;
  position: relative;
  overflow: visible;
  min-height: 85vh; /* To ensure it takes good vertical space but allows scrolling */
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.shape {
  position: absolute;
  background: rgba(255, 106, 19, 0.03);
  transform: rotate(-45deg);
}
.shape-1 { width: 500px; height: 1000px; top: -200px; right: -100px; }
.shape-2 { width: 300px; height: 800px; bottom: -400px; left: -100px; background: rgba(255, 255, 255, 0.02); }

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  height: 100%;
}
.hero-text {
  flex: 1.2;
  position: relative;
  z-index: 4;
  padding-bottom: 6rem;
  padding-top: 2rem;
}

.hero-headline {
  display: block;
  color: var(--color-white);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 1rem;
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.badge-wrapper {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}
.badge-number-container {
  background: linear-gradient(135deg, var(--color-accent), #d15004);
  padding: 12px 36px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(255, 106, 19, 0.5);
  border: 1px solid rgba(255,255,255,0.2);
}
.badge-number {
  color: var(--color-white);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-hero {
  flex: 1;
  min-width: 200px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 3;
  height: 100%;
}
.hero-image-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(150, 180, 255, 0.12) 0%, rgba(150, 180, 255, 0) 65%);
  filter: blur(40px);
  z-index: -1;
}
.hero-image img {
  width: 140%; /* Increase size */
  max-width: none;
  margin-bottom: -60px; /* Overflow */
  object-fit: top center; /* Focus on face */
  filter: drop-shadow(-10px 10px 30px rgba(0,0,0,0.8));
}


/* ABOUT - NARRATIVE CARDS */
.about {
  padding: 8rem 0 6rem;
  background-color: var(--color-white);
  position: relative;
  z-index: 10; /* Above hero overflow */
}
.trajectory-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.traj-card {
  background: var(--color-bg-light);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: left;
  border-top: 4px solid var(--color-primary);
  transition: transform 0.3s ease;
}
.traj-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.traj-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.traj-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.traj-card p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.traj-card p:last-child {
  margin-bottom: 0;
}

/* EXTREMO SUL - TEAM PHOTO */
.extremo-sul {
  padding: 6rem 0;
  background-color: var(--color-bg-light);
}
.extremo-sul-content {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: left;
}
.extremo-sul-content .lead-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.extremo-sul-content p {
  font-size: 1.15rem;
  color: var(--color-text-light);
}
.extremo-sul-image {
  max-width: 1000px;
  margin: 0 auto;
}
.team-photo {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  object-fit: cover;
  max-height: 500px;
}

/* ANJOS DA VIDA - PREMIUM BANNER */
.anjos-vida-premium {
  padding: 6rem 0;
  background-color: var(--color-white);
}
.anjos-banner {
  background: linear-gradient(to right, rgba(15, 29, 59, 0.95) 0%, rgba(15, 29, 59, 0.6) 100%), url('assets/anjos_da_vida_1781289297994.png') center/cover;
  border-radius: 24px;
  padding: 6rem 4rem;
  color: var(--color-white);
  box-shadow: 0 20px 40px rgba(15, 29, 59, 0.2);
}
.anjos-content {
  max-width: 600px;
}
.anjos-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-family: 'Georgia', serif; /* Sensibility touch */
  letter-spacing: -1px;
}
.anjos-content p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* EVENTOS E ENCONTROS */
.eventos-encontros {
  padding: 6rem 0;
  background-color: var(--color-white);
}
.eventos-header {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
}
.indicadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.indicador-card {
  background: var(--color-bg-light);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  border-bottom: 4px solid var(--color-accent);
}
.indicador-valor {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.indicador-texto {
  font-size: 1.05rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Carousel Gallery */
.gallery-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 4rem;
  position: relative;
  cursor: grab;
}
.gallery-wrapper:active {
  cursor: grabbing;
}
.carousel-gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}
.carousel-gallery::-webkit-scrollbar {
  display: none;
}
.carousel-item {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  position: relative;
}
.carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.carousel-item:hover::after {
  background: rgba(0,0,0,0.15);
}
.carousel-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.carousel-item:hover img {
  transform: scale(1.05);
}

.eventos-encerramento {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
  background: var(--color-bg-light);
  border-radius: 20px;
}
.eventos-encerramento h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.eventos-encerramento p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
  from {transform: scale(0.9); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.lightbox-close:hover {
  color: var(--color-accent);
}

/* PROPOSALS - SPACIOUS CARDS */
.proposals {
  padding: 6rem 0;
  background-color: var(--color-bg-light);
}
.proposals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}
.card {
  background: var(--color-white);
  padding: 3.5rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.card-icon-wrapper {
  background: rgba(255, 106, 19, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.card-icon {
  font-size: 2.5rem;
}
.card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}
.card ul {
  list-style: none;
}
.card li {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}
.card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 900;
  font-size: 1.2rem;
}

/* AMESC ELEGANT */
.amesc-elegant {
  padding: 6rem 0;
  background-color: var(--color-white);
}
.amesc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.amesc-map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}
.sc-map-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(15, 29, 59, 0.15));
  transition: transform 0.4s ease;
}
.sc-map-img:hover {
  transform: translateY(-5px) scale(1.02);
}
.amesc-text .lead-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.amesc-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA SECTION */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--color-primary), #081024);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 100%, rgba(255, 106, 19, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .section-title {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}
.cta-section .section-title::after {
  background-color: var(--color-accent);
  left: 50%;
  transform: translateX(-50%);
}
.cta-text {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}
.btn-cta {
  font-size: 1.3rem;
  padding: 1.2rem 3rem;
  box-shadow: 0 15px 30px rgba(255, 106, 19, 0.4);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 106, 19, 0.6);
  border-color: rgba(255,255,255,0.2);
}

/* FOOTER */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo {
  height: 45px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}
.footer-desc {
  color: #a0aec0;
  font-size: 1rem;
  line-height: 1.6;
}
.footer-title {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 1rem;
}
.footer-links a {
  color: #a0aec0;
  font-size: 1.05rem;
}
.footer-links a:hover {
  color: var(--color-accent);
}
.social-icons {
  display: flex;
  gap: 16px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255,255,255,0.1);
  color: var(--color-white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  color: #718096;
}

/* MEDIA QUERIES - MOBILE FIRST FOCUS */
@media (max-width: 992px) {
  /* Restructuring Hero for Mobile */
  .hero { 
    padding: 2rem 0 0 0; 
    min-height: auto;
    overflow: hidden; /* Clearer boundaries on mobile so it doesn't break horizontal */
  }
  .hero-content {
    flex-direction: column; /* Image on top, text below */
    gap: 0;
  }
  .hero-image {
    width: 100%;
    margin-bottom: -20px;
    z-index: 2;
  }
  .hero-image img {
    width: 120%; /* Zoom na face */
    margin-bottom: -40px; /* Cut off some body */
    transform: translateY(20px);
  }
  .hero-text {
    padding: 3rem 0;
    text-align: center;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10,19,41,0.5), rgba(10,19,41,1) 30%); /* Smooth text readable */
    width: 100vw;
    margin-left: -24px; /* Pull out of container */
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .hero-headline { font-size: 1.8rem; }
  .hero-title { font-size: 3rem; }
  
  .badge-wrapper { justify-content: center; width: 100%; }
  .badge-number { font-size: 3rem; }
  .badge-number-container { padding: 10px 30px; width: 100%; max-width: 300px; }
  
  .hero-tags { justify-content: center; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 350px; }
  .btn-hero { width: 100%; }

  .anjos-banner { padding: 4rem 2rem; }
  .anjos-title { font-size: 2.5rem; }
  
  .trajectory-cards { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .indicadores-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  
  .eventos-header { padding: 0 2rem; }
  
  .amesc-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .amesc-stats { flex-direction: column; gap: 1rem; align-items: center; justify-content: center; }
  .section-title.text-left { text-align: center; }
  .section-title.text-left::after { left: 50%; transform: translateX(-50%); }
  
  .extremo-sul-content { text-align: center; }
}

@media (max-width: 768px) {
  .logo-img { width: 130px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  
  .hero-headline { font-size: 1.5rem; }
  .hero-title { font-size: 2.5rem; }
  .badge-number { font-size: 2.5rem; }
  .hero-image img {
    width: 130%; /* Closer zoom for smaller screens */
  }
  .card { padding: 2.5rem 1.5rem; }
  .section-title { font-size: 2rem; }
  
  .trajectory-cards { grid-template-columns: 1fr; gap: 1rem; }
  .indicadores-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .indicador-card { padding: 1.5rem 0.5rem; }
  .indicador-valor { font-size: 2rem; }
  .indicador-texto { font-size: 0.85rem; }
  
  .carousel-item { width: 250px; }
  .carousel-item img { height: 320px; }
  
  .eventos-encerramento { padding: 2rem 1rem; }
  .eventos-encerramento h3 { font-size: 1.5rem; }
  
  /* Redução drástica de espaços mortos */
  .about, .proposals, .eventos-encontros, .amesc-elegant { padding: 3rem 0; }
  .footer { padding: 3rem 0 2rem; }
  .section-title { margin-bottom: 2rem; }
  .extremo-sul-image { margin-bottom: 2rem !important; }
  .gallery-wrapper { margin-bottom: 2rem; }
  .eventos-encerramento { margin-top: 2rem !important; }
}
