/* =========================================================
   AFADI — Associação Filantrópica Aconchego da Dona Izaura
   Folha de estilos principal
   ========================================================= */

:root {
  --red-800: #7d1a26;
  --red-700: #9c2131;
  --red-600: #c1293c;
  --red-500: #dc3a4e;
  --coral: #f0685f;
  --gold: #f0a94e;
  --gold-light: #f9d9a4;
  --cream: #fff8f1;
  --cream-alt: #fcece0;
  --brown-900: #2c2220;
  --brown-700: #4a3b36;
  --brown-500: #7a6961;
  --white: #ffffff;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(124, 26, 38, 0.12);
  --shadow-sm: 0 4px 14px rgba(124, 26, 38, 0.08);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

p { margin: 0 0 1em; }

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

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--cream-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--red-600);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--brown-900);
}

.section-head p {
  color: var(--brown-500);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--red-700); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--red-600);
  color: var(--red-600);
}
.btn-outline-dark:hover { background: var(--red-600); color: var(--white); }

/* ---------- Header ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red-600);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(124, 26, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brown-900);
}

.logo svg { width: 38px; height: 38px; flex-shrink: 0; }

.logo-img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, var(--shadow-sm);
}

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--brown-500);
  letter-spacing: 0.03em;
}

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

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brown-700);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover { color: var(--red-600); }

.nav-cta { display: flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--brown-900);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--red-700) 0%, var(--red-600) 45%, var(--coral) 100%);
  color: var(--white);
  padding: 100px 0 120px;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero p {
  font-size: 1.12rem;
  max-width: 520px;
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
}
.hero-stats div span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-heart {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-values {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-values li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  font-size: 0.95rem;
}

.about-values li .dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  position: relative;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px dashed var(--gold-light);
  border-radius: calc(var(--radius) + 10px);
  z-index: -1;
}

.about-card h3 {
  color: var(--red-600);
  font-size: 1.1rem;
}

/* ---------- Cursos ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid var(--red-600);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.course-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.course-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.course-card p {
  color: var(--brown-500);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.course-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-600);
  background: var(--cream-alt);
  padding: 5px 10px;
  border-radius: 999px;
}

.course-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-600);
}
.course-download:hover { text-decoration: underline; }

.courses-note {
  text-align: center;
  margin-top: 36px;
  color: var(--brown-500);
  font-size: 0.92rem;
}

/* ---------- Quem pode participar ---------- */
.eligibility {
  background: var(--brown-900);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.eligibility h2 { color: var(--white); }
.eligibility > div > p { color: rgba(255,248,241,0.75); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
}

.check-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--brown-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Como ajudar ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.help-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.help-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-600), var(--coral));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 18px;
}

.help-card h3 { font-size: 1.1rem; }
.help-card p { color: var(--brown-500); font-size: 0.92rem; }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-info h3 { color: var(--red-600); font-size: 1rem; margin-bottom: 20px; }

.contact-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cream-alt);
  color: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-list strong { display: block; font-size: 0.85rem; color: var(--brown-500); font-weight: 600; }
.contact-list span, .contact-list a { font-size: 0.98rem; font-weight: 500; }

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-row a:hover { background: var(--red-600); color: var(--white); }

.placeholder-note {
  background: var(--gold-light);
  color: var(--brown-900);
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: grid; gap: 6px; }

.field label { font-size: 0.85rem; font-weight: 600; color: var(--brown-700); }

.field input, .field select, .field textarea {
  border: 1.5px solid #ecddd3;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--brown-900);
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red-500);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: #1c7a3f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-900);
  color: rgba(255, 248, 241, 0.75);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.footer-logo svg { width: 30px; height: 30px; }

.footer-logo-img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.82rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-heart { max-width: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .eligibility { grid-template-columns: 1fr; padding: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px 28px;
    box-shadow: var(--shadow);
  }
  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .site-header.menu-open .nav-cta { display: flex; margin-top: 18px; }
  .section { padding: 64px 0; }
  .courses-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
}
