/*
Theme Name: IPAS — Instituto de Pesquisas e Ações Sociais
Theme URI: https://ipas-pi.org.br/
Author: IPAS
Author URI: https://ipas-pi.org.br/
Description: Tema institucional do IPAS. Página inicial completa com Quem Somos, Áreas de Atuação, Projetos, Impacto, Notícias, Contato e botão de doação. Compatível com Elementor para edição de páginas internas.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ipas-theme
Tags: custom-colors, custom-menu, featured-images, full-width-template, translation-ready
*/

/* ============================================================
   IPAS Theme — estilos do site
   Paleta: laranja #f39c12, amarelo #f1c40f, verde #10b981,
   grafite #1e293b, texto #475569, fundo #f8fafc
   ============================================================ */

:root {
  --ipas-orange: #f39c12;
  --ipas-yellow: #f1c40f;
  --ipas-green: #10b981;
  --ipas-ink: #1e293b;
  --ipas-text: #475569;
  --ipas-bg: #f8fafc;
  --ipas-white: #ffffff;
  --ipas-radius: 16px;
  --ipas-shadow: 0 10px 30px rgba(30, 41, 59, 0.08);
  --ipas-font-head: 'DM Serif Display', Georgia, serif;
  --ipas-font-body: 'Manrope', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ipas-font-body);
  color: var(--ipas-text);
  background: var(--ipas-bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--ipas-font-head);
  color: var(--ipas-ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 400;
}

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

a { color: var(--ipas-green); }

.ipas-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Cabeçalho ---------- */
.ipas-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

.ipas-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.ipas-logo {
  font-family: var(--ipas-font-head);
  font-size: 26px;
  color: var(--ipas-ink);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.ipas-logo span { color: var(--ipas-orange); }

.ipas-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.ipas-nav a {
  color: var(--ipas-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.ipas-nav a:hover { color: var(--ipas-orange); }

.ipas-btn {
  display: inline-block;
  background: var(--ipas-orange);
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ipas-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.35);
}

.ipas-btn--outline {
  background: transparent;
  color: var(--ipas-ink) !important;
  border: 2px solid var(--ipas-ink);
}

.ipas-btn--outline:hover { box-shadow: 0 8px 20px rgba(30, 41, 59, 0.15); }

.ipas-menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  color: var(--ipas-ink);
}

/* ---------- Hero ---------- */
.ipas-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ipas-ink) center/cover no-repeat;
}

.ipas-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30, 41, 59, 0.88) 20%, rgba(30, 41, 59, 0.45) 70%);
}

.ipas-hero-content {
  position: relative;
  max-width: 640px;
  padding: 96px 24px;
}

.ipas-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
}

.ipas-hero p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
}

.ipas-hero .ipas-btn { margin-right: 12px; }

.ipas-hero .ipas-btn--outline { color: #fff !important; border-color: #fff; }

/* ---------- Seções ---------- */
.ipas-section { padding: 88px 0; }

.ipas-section--alt { background: #fff; }

.ipas-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.ipas-section-head h2 { font-size: clamp(28px, 4vw, 40px); }

.ipas-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ipas-green);
  margin-bottom: 10px;
}

/* ---------- Cards ---------- */
.ipas-grid {
  display: grid;
  gap: 26px;
}

.ipas-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ipas-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ipas-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ipas-card {
  background: #fff;
  border-radius: var(--ipas-radius);
  padding: 30px;
  box-shadow: var(--ipas-shadow);
  border-top: 4px solid var(--ipas-orange);
}

.ipas-card--green { border-top-color: var(--ipas-green); }
.ipas-card--yellow { border-top-color: var(--ipas-yellow); }
.ipas-card--ink { border-top-color: var(--ipas-ink); }

.ipas-card h3 { font-size: 22px; }

.ipas-card p { margin: 0; font-size: 15.5px; }

/* ---------- Áreas de atuação ---------- */
.ipas-area {
  background: #fff;
  border-radius: var(--ipas-radius);
  padding: 28px;
  box-shadow: var(--ipas-shadow);
}

.ipas-area h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ipas-area h3::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ipas-green);
  flex: none;
}

.ipas-area ul {
  margin: 14px 0 0;
  padding-left: 20px;
  font-size: 15px;
}

.ipas-area ul li { margin-bottom: 6px; }

/* ---------- Projetos ---------- */
.ipas-project {
  background: #fff;
  border-radius: var(--ipas-radius);
  overflow: hidden;
  box-shadow: var(--ipas-shadow);
  display: flex;
  flex-direction: column;
}

.ipas-project img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.ipas-project-body { padding: 26px; }

.ipas-project-body h3 { font-size: 21px; }

.ipas-project-sub {
  color: var(--ipas-orange);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ipas-project ul {
  margin: 14px 0 0;
  padding-left: 20px;
  font-size: 15px;
}

/* ---------- Impacto ---------- */
.ipas-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  text-align: center;
}

.ipas-metric {
  background: #fff;
  border-radius: var(--ipas-radius);
  padding: 26px 14px;
  box-shadow: var(--ipas-shadow);
  font-weight: 700;
  color: var(--ipas-ink);
  font-size: 15px;
}

/* ---------- Processo ---------- */
.ipas-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.ipas-steps li {
  counter-increment: step;
  background: #fff;
  border-radius: 999px;
  padding: 12px 24px 12px 14px;
  box-shadow: var(--ipas-shadow);
  font-weight: 700;
  color: var(--ipas-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.ipas-steps li::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ipas-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: none;
}

/* ---------- Doação ---------- */
.ipas-donate {
  background: linear-gradient(120deg, var(--ipas-orange), var(--ipas-yellow));
  border-radius: var(--ipas-radius);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}

.ipas-donate h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }

.ipas-donate p { max-width: 620px; margin: 0 auto 28px; color: rgba(255,255,255,0.95); }

.ipas-donate .ipas-btn {
  background: var(--ipas-ink);
}

/* ---------- Notícias ---------- */
.ipas-news-item {
  background: #fff;
  border-radius: var(--ipas-radius);
  padding: 26px;
  box-shadow: var(--ipas-shadow);
}

.ipas-news-item h3 { font-size: 20px; }

.ipas-news-date {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ipas-orange);
}

/* ---------- Página interna ---------- */
.ipas-page-hero {
  background: var(--ipas-ink);
  color: #fff;
  padding: 72px 0;
}

.ipas-page-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); margin: 0; }

.ipas-page-content { padding: 64px 0; }

.ipas-page-content img { border-radius: var(--ipas-radius); margin: 20px 0; }

/* ---------- Rodapé ---------- */
.ipas-footer {
  background: var(--ipas-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
  margin-top: 0;
}

.ipas-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.ipas-footer h4 {
  color: #fff;
  font-size: 18px;
  font-family: var(--ipas-font-body);
  font-weight: 800;
}

.ipas-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.ipas-footer a:hover { color: var(--ipas-yellow); }

.ipas-footer ul { list-style: none; margin: 0; padding: 0; }
.ipas-footer ul li { margin-bottom: 8px; }

.ipas-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 14px;
  text-align: center;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .ipas-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ipas-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ipas-metrics { grid-template-columns: repeat(3, 1fr); }
  .ipas-footer-grid { grid-template-columns: 1fr 1fr; }

  .ipas-menu-toggle { display: block; }

  .ipas-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(30, 41, 59, 0.1);
    display: none;
  }

  .ipas-nav.is-open { display: block; }

  .ipas-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .ipas-grid--3, .ipas-grid--4, .ipas-grid--2 { grid-template-columns: 1fr; }
  .ipas-metrics { grid-template-columns: repeat(2, 1fr); }
  .ipas-footer-grid { grid-template-columns: 1fr; }
  .ipas-hero-content { padding: 72px 24px; }
  .ipas-section { padding: 60px 0; }
  .ipas-donate { padding: 48px 24px; }
}
