/* Variáveis de Cores e Fontes baseadas no design original */
:root {
  --primary: #000666;
  --primary-container: #1a237e;
  --secondary: #964900;
  --secondary-container: #fc820c;
  --surface: #f3faff;
  --on-surface: #071e27;
  --on-surface-variant: #454652;
  --background: #f3faff;
  --white: #ffffff;
  --outline: #c6c5d4;
  --section-gap: 80px;
  --container-max: 1200px;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(243, 250, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  max-width: 60%;
}

.logo img {
  height: 36px;
  flex-shrink: 0;
}

.logo span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .navbar { padding: 15px 0; }
  .logo img { height: 44px; }
  .logo span { font-size: 20px; }
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  text-decoration: none;
  color: var(--on-surface-variant);
  font-weight: 500;
  font-size: 14px;
  transition: 0.3s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a.active {
  border-bottom-color: var(--secondary-container);
  font-weight: 700;
}

.btn-voluntario {
  background: var(--secondary-container);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-voluntario span:last-child {
  display: none;
}

@media (min-width: 480px) {
  .btn-voluntario {
    padding: 10px 24px;
    font-size: 14px;
    gap: 8px;
  }
  .btn-voluntario span:last-child {
    display: inline;
  }
}

.btn-voluntario:hover {
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(252, 130, 12, 0.3);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  }
}

@media (min-width: 993px) {
  .nav-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 100px 0 60px;
  background-color: var(--background);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 140px 0 80px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(243, 250, 255, 0.8), rgba(243, 250, 255, 0.95)), 
              url('https://lh3.googleusercontent.com/aida-public/AB6AXuD_gtqFbmgJ3IxvfXB3lMmY2OIF7P1rWKnBX5Pn1t_HhsVZXo3UGfFg4lcCLdPNdy3UFrEG3Legyu1RH4ry9RsYYUYlxSMv9h2NaBY7FMFORk-7qJQk87MVgbShDBO88l6UbkOWo6n4sGSdTjmN7Gj44nJ2jRKwslYri7IY9y2lT3N-XapNOtDoQSYO78MFII_Sfjm0KL1DtSCRfyL-YffTCxZZANfgTZQpbQ6O9dWydzZ7OKL0EI5qPoIFWokHfBDQa5aAm6gXBM6L');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

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

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--secondary-container);
}

.hero-content p {
  font-size: 18px;
  color: var(--on-surface-variant);
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background: var(--secondary-container);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Sections General */
section {
  padding: var(--section-gap) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 40px;
  color: var(--secondary-container);
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: var(--primary-container);
  color: white;
  padding: 60px 0 30px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Grid de Projetos (Bento Style) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-cover: cover;
  transition: 0.5s;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 6, 102, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
}

.project-tag {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  width: fit-content;
  margin-bottom: 10px;
}

.project-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.project-card.light {
  background: var(--surface-container-high);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.project-card.light .project-overlay {
  background: none;
  position: static;
  padding: 0;
  color: inherit;
}

.project-card.accent {
  background: var(--secondary-container);
  color: white;
}

.project-card.accent-dark {
  background: var(--primary-container);
  color: white;
}

/* Impact Stats */
.impact-section {
  background: var(--primary);
  color: white;
  padding: 80px 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.impact-item {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
}

.impact-item:first-child {
  border-left: none;
}

.impact-item h3 {
  font-size: 48px;
  font-family: var(--font-display);
  color: #ffdcc6;
  margin-bottom: 10px;
}

.impact-item p {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Responsividade Melhorada */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-item {
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .project-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }
  .project-card {
    height: 300px;
  }
}

/* Estilos da Página de Voluntário */
.form-voluntario {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  font-family: inherit;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: var(--primary-container);
}
