/* ==========================================================
   ESTILOS ESPECÍFICOS DE PÁGINAS
   ========================================================== */

/* Page-hero com cor sólida (sem imagem, sem overlay escuro) */
.page-hero--solid::before {
  background: transparent;
}

.page-hero--solid h1,
.page-hero--solid .hero-content h1 {
  color: var(--color-heading);
  text-shadow: none;
}

.page-hero--solid p,
.page-hero--solid .hero-content p {
  color: var(--color-muted-text);
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  width: 100%;
}

.timeline li {
  margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
  border-left: 4px solid rgba(0, 129, 186, 0.45);
  padding-left: clamp(0.75rem, 2vw, 1rem);
  word-break: break-word;
}

.timeline li p {
  color: var(--color-muted-text);
}

.timeline .year {
  font-weight: 900;
  color: var(--color-heading);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Accordion */
.accordion-header {
  width: 100%;
  text-align: left;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(0.85rem, 2vw, 1.1rem);
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.accordion-header:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 0, 0.55);
}

.accordion-content {
  display: none;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(0.85rem, 2vw, 1.1rem);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--color-surface);
  color: var(--color-muted-text);
  font-size: clamp(0.85rem, 2vw, 1rem);
  word-break: break-word;
}

.accordion-content.open {
  display: block;
}

/* Projects */
.filters {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 0.7rem);
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.filter-btn {
  padding: clamp(0.45rem, 1.5vw, 0.55rem) clamp(0.7rem, 2vw, 0.9rem);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  white-space: nowrap;
}

.filter-btn:hover {
  transform: translateY(-1px);
  background: var(--color-surface);
  border-color: rgba(0, 129, 186, 0.28);
}

.filter-btn.active {
  background: rgba(0, 129, 186, 0.12);
  border-color: rgba(0, 129, 186, 0.30);
  color: var(--color-heading);
}

.project-details {
  display: none;
  margin-top: 1rem;
  color: var(--color-muted-text);
}

.project-details.open {
  display: block;
}

/* Partners */
.partners-grid.obsolete {
  opacity: 0.55;
  filter: grayscale(100%);
}

/* Áreas */
.areas-grid .card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.areas-grid .card.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.area-detail {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  word-break: break-word;
}

.area-detail h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.area-detail p {
  color: var(--color-muted-text);
  font-size: clamp(0.85rem, 2vw, 1rem);
}

body.areas-interactive .areas-details {
  display: none;
}

/* Diretoria */
.board-member {
  word-break: break-word;
}

.board-member img {
  margin-bottom: 1rem;
  max-width: 100%;
  height: auto;
}

.role {
  font-weight: 900;
  color: var(--color-heading);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Doação */
.donation {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.donation-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.donation-left img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.donation-text {
  flex: 1;
  min-width: 200px;
  color: var(--color-muted-text);
}

.pix-copy {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pix-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted-text);
}

.pix-key-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pix-key-row code {
  font-family: monospace;
  font-size: 0.95rem;
  background: var(--color-surface-alt, #f4f4f4);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  user-select: all;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--color-primary);
  border-radius: 4px;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-copy:hover {
  background: var(--color-primary);
  color: #fff;
}

.pix-feedback {
  font-size: 0.8rem;
  color: var(--color-primary);
  min-height: 1em;
}

/* Forms */
.contact-form {
  max-width: 540px;
  margin-top: 1.5rem;
  width: 100%;
}

/* CORRIGIDO: label como bloco simples (não flex column) para evitar label abraçar input */
.contact-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 800;
  color: var(--color-heading);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-form input,
.contact-form textarea {
  display: block;
  margin-bottom: 1rem;
  padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(0.65rem, 1.5vw, 0.85rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: clamp(0.85rem, 2vw, 1rem);
  width: 100%;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.35);
  border-color: rgba(255, 255, 0, 0.65);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Mensagem de sucesso */
.success-message {
  margin-top: 1rem;
  color: #007a3d;
  font-weight: 800;
}

/* NOVO: Mensagem de erro */
.error-message {
  margin-top: 1rem;
  color: #c0392b;
  font-weight: 800;
}

/* Map */
.map-container {
  height: clamp(280px, 70vw, 500px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: 1.8rem;
  width: 100%;
}

@media (max-width: 900px) {
  .image-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .image-grid { grid-template-columns: 1fr; }
}

.image-grid figure {
  margin: 0;
  cursor: pointer;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
  display: block;
}

.image-grid figure:hover img,
.image-grid img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.image-grid figcaption {
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--color-muted-text);
  padding: 0.45rem 0.25rem 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 900;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: contain;
}

.lightbox-caption {
  color: #fff;
  margin: 0.75rem 0 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 120ms ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* CTA Section */
.section.cta {
  text-align: center;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(0.75rem, 2vw, 1rem);
}

.section.cta h2 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  margin-bottom: 0.8rem;
}

.section.cta p {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin-bottom: 1.5rem;
}

/* ODS Cards */
.ods-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.ods-card img {
  width: clamp(60px, 12vw, 90px);
  height: auto;
  border-radius: var(--radius-md);
}

.ods-card h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.ods-card p {
  margin: 0;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}