/* =========================================================
   Associação Beneficente Vila Nova União — folha de estilo
   ========================================================= */

:root {
  --pink: #e5177e;
  --orange: #f5821f;
  --blue: #1e9bd7;
  --green: #6fbe44;
  --gray-900: #2c2c2e;
  --gray-700: #4a4a4d;
  --gray-500: #6d6e71;
  --gray-300: #b9bac0;
  --gray-100: #f1efec;
  --bg: #fffdfb;
  --bg-soft: #fff4ec;
  --border: #ece7e1;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(44, 30, 20, 0.08);
  --shadow-sm: 0 4px 14px rgba(44, 30, 20, 0.08);
  --max-width: 1180px;
  --font: "Nunito", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-title: "Baloo 2", "Nunito", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--gray-700); }

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

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title .eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--pink);
  background: rgba(229, 23, 126, .08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(100deg, var(--pink), var(--orange));
  color: #fff;
  box-shadow: 0 10px 24px rgba(229, 23, 126, .28);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(229, 23, 126, .36); }
.btn-outline {
  background: transparent;
  border-color: var(--gray-900);
  color: var(--gray-900);
}
.btn-outline:hover { background: var(--gray-900); color: #fff; }
.btn-outline-light {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: #fff; color: var(--gray-900); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-whatsapp { background: #25d366; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 251, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.brand img { height: 48px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-title); font-size: 1.02rem; color: var(--gray-900); }
.brand-text span { font-size: .74rem; color: var(--gray-500); font-weight: 700; letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: nowrap; }
.main-nav a {
  color: var(--gray-700);
  font-weight: 700;
  font-size: .96rem;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.main-nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.main-nav a.active { color: var(--pink); background: rgba(229,23,126,.08); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--gray-900);
  border-radius: 3px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,20,15,.55) 0%, rgba(30,20,15,.78) 100%);
  z-index: -1;
}
.hero-inner { padding: 120px 0 96px; max-width: 920px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; }
.hero-name {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
  overflow: visible;
  text-wrap: balance;
}
.hero-tagline {
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.4;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  max-width: 640px;
  margin: 0 0 18px;
  opacity: .95;
}
.hero p.lead { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  padding: 64px 0;
  background: linear-gradient(120deg, var(--pink), var(--orange));
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.breadcrumb a { color: #fff; font-weight: 700; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { flex: 1; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.bg-pink { background: rgba(229,23,126,.12); color: var(--pink); }
.bg-orange { background: rgba(245,130,31,.14); color: var(--orange); }
.bg-blue { background: rgba(30,155,215,.14); color: var(--blue); }
.bg-green { background: rgba(111,190,68,.14); color: var(--green); }

/* ---------- About / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-reverse .split-media { order: 2; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 19px; top: 6px; bottom: 6px;
  width: 3px;
  background: linear-gradient(var(--pink), var(--orange), var(--blue), var(--green));
  border-radius: 3px;
}
.timeline li { position: relative; padding: 0 0 36px 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: 8px; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--pink);
}
.timeline .year {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--pink);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.timeline h4 { margin: 0 0 6px; }
.timeline p { margin: 0; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.9rem;
  background: linear-gradient(100deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--gray-500); font-weight: 700; font-size: .9rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 1/1;
  background: var(--gray-100);
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.gallery-grid figure:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(20,14,10,.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.28); }

/* ---------- Donation page ---------- */
.notice {
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.notice-icon { font-size: 1.6rem; }
.notice-warning { background: #fff6e5; border: 1px solid #f3dca4; }
.notice-warning h4 { color: #8a6416; margin-bottom: 6px; }
.notice-warning p { color: #8a6416; margin: 0; }

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.amount-options button {
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all .15s ease;
}
.amount-options button:hover { border-color: var(--pink); }
.amount-options button.selected {
  border-color: var(--pink);
  background: rgba(229,23,126,.08);
  color: var(--pink);
}

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

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 800; margin-bottom: 6px; font-size: .92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-item h4 { margin: 0 0 4px; }
.contact-item p { margin: 0; }
.map-frame {
  width: 100%; height: 320px;
  border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #241a15;
  color: rgba(255,255,255,.82);
  padding: 64px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { height: 46px; border-radius: 8px; }
.footer-brand strong { color: #fff; font-family: var(--font-title); }
.site-footer h5 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}
.social-links a:hover { background: linear-gradient(100deg, var(--pink), var(--orange)); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 10px;
}

.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  z-index: 90;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.load-more-wrap { text-align: center; margin-top: 32px; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .help-ways { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .main-nav, .header-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    gap: 4px;
    overflow-y: auto;
    z-index: 99;
  }
  body.nav-open .main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .amount-options { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 88px 0 64px; }
  .form-row { grid-template-columns: 1fr; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.1rem; }
}

