/* AFAM — novas seções da página inicial (complementa o public.css do plugin AFAM) */
.afh { --afh-navy: var(--afam-navy, #001e40); --afh-gold: var(--afam-gold, #c9a84c); --afh-cream: var(--afam-cream, #f8f5ee); --afh-line: var(--afam-line, #ede8dc); }
.afh-ic { width: 22px; height: 22px; flex: none; }
.afh-ic--sm { width: 17px; height: 17px; }
.afh-ic--xl { width: 64px; height: 64px; }
.afh-center { text-align: center; }
.afh-center .afam-rule { margin-left: auto; margin-right: auto; }
.afh-small { font-size: 14px; color: var(--afam-muted, #43474f); margin-top: 14px; }

/* Hero: respiro para os atalhos sobrepostos */
.afh-hero { padding-bottom: 72px; }

/* Atalhos rápidos */
.afh-quick { position: relative; z-index: 3; margin-top: -64px; }
.afh-quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.afh-quick__item {
	display: flex; align-items: center; gap: 14px; padding: 18px;
	background: #fff; border-radius: 18px; text-decoration: none; color: var(--afam-ink, #1b1c1c);
	box-shadow: 0 2px 4px rgba(0, 30, 64, .04), 0 14px 34px rgba(0, 30, 64, .12);
	transition: transform .2s, box-shadow .2s;
}
.afh-quick__item:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 30, 64, .04), 0 20px 40px rgba(0, 30, 64, .16); }
.afh-quick__item strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--afh-navy); }
.afh-quick__item small { display: block; font-size: 13px; color: var(--afam-muted, #43474f); line-height: 1.35; }
.afh-quick__ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--afh-cream); color: var(--afh-navy); }
.afh-quick__ic.is-gold { background: #f6ecd0; color: #8a6a14; }
.afh-quick__ic.is-navy { background: var(--afh-navy); color: var(--afam-gold-light, #e4c97a); }

/* Nossa história */
.afh-story__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.afh-story__media { position: relative; margin: 0; }
.afh-story__media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 38% 30%; border-radius: 24px; box-shadow: 0 24px 48px rgba(0, 30, 64, .18); }
.afh-story__media figcaption {
	position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 14px; border-radius: 999px; background: rgba(0, 30, 64, .82); color: #fff; font-size: 13px; font-weight: 600;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.afh-story__media figcaption .afh-ic { color: var(--afam-gold-light, #e4c97a); }
.afh-story__media::before { content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: 24px; border: 2px solid var(--afh-gold); opacity: .35; z-index: -1; }
.afh-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.afh-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--afh-cream); color: var(--afh-navy); font-size: 14px; font-weight: 600; }
.afh-facts .afh-ic { color: var(--afh-gold); }

/* Como participar */
.afh-steps__list { list-style: none; padding: 0; margin: 8px 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.afh-steps__list li { position: relative; padding: 26px 24px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--afh-line); }
.afh-steps__list li:not(:last-child)::after {
	content: ""; position: absolute; top: 48px; right: -18px; width: 18px; height: 2px; background: var(--afh-gold); opacity: .5;
}
.afh-steps__list b {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
	background: var(--afh-navy); color: var(--afam-gold-light, #e4c97a); font: 700 18px/1 var(--afam-serif, Georgia, serif); font-style: italic;
}
.afh-steps__list h3 { margin: 0 0 6px; font-size: 17px; color: var(--afh-navy); }
.afh-steps__list p { margin: 0; color: var(--afam-muted, #43474f); font-size: 15px; line-height: 1.55; }

/* Eventos */
.afh-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.afh-event { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 30, 64, .08); }
.afh-event__img { height: 170px; background: var(--afh-cream) center / cover; }
.afh-event__body { display: flex; gap: 16px; padding: 20px; }
.afh-event h3 { margin: 2px 0 6px; font-size: 17px; color: var(--afh-navy); }
.afh-event p { margin: 0 0 10px; color: var(--afam-muted, #43474f); font-size: 14.5px; }
.afh-date { width: 56px; height: 62px; flex: none; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--afh-navy); color: #fff; line-height: 1.1; }
.afh-date b { font-size: 22px; }
.afh-date small { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--afam-gold-light, #e4c97a); }

/* Doação PIX */
.afh-pix {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
	padding: 44px; border-radius: 28px; background: linear-gradient(135deg, #fbf6e8 0%, #f3e6c2 100%);
}
.afh-pix h2 { margin: 6px 0 10px; font-family: var(--afam-serif, Georgia, serif); color: var(--afh-navy); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.afh-pix p { margin: 0 0 20px; color: var(--afam-muted, #43474f); max-width: 560px; }
.afh-pix__key { display: inline-flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px; margin-bottom: 14px; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(138, 106, 20, .14); max-width: 100%; }
.afh-pix__key small { display: block; font-size: 12px; color: var(--afam-muted, #43474f); font-weight: 600; }
.afh-pix__key strong { display: block; font-size: 19px; color: var(--afh-navy); letter-spacing: .02em; white-space: nowrap; }
.afh-copy { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--afh-navy); color: #fff; font: 700 14px/1 var(--afam-sans, sans-serif); cursor: pointer; }
.afh-copy.is-done { background: #0b6e4b; }
.afh-pix__badge { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .6); color: #b48a24; }

/* App do associado */
.afh-app__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.afh-app h2 { font-family: var(--afam-serif, Georgia, serif); color: var(--afh-navy); font-size: clamp(28px, 3.4vw, 40px); margin: 8px 0 12px; }
.afh-checks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.afh-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--afam-ink, #1b1c1c); }
.afh-checks .afh-ic { margin-top: 2px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #e5f5ee; color: #0b6e4b; stroke-width: 2.6; }
.afh-app__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.afh-app__actions .afam-pwa-install-btn { height: 54px; border-radius: 999px; background: var(--afh-cream); color: var(--afh-navy); }

.afh-phone { justify-self: center; width: 280px; padding: 12px; border-radius: 42px; background: #0d1726; box-shadow: 0 40px 70px rgba(0, 30, 64, .3); transform: rotate(-3deg); }
.afh-phone__screen { border-radius: 32px; overflow: hidden; background: #f4f2ee; height: 540px; }
.afh-phone__top { display: flex; align-items: center; gap: 10px; padding: 26px 18px 54px; background: var(--afh-navy); color: #fff; font-size: 13px; font-weight: 600; }
.afh-phone__top i { font: italic 700 20px/1 var(--afam-serif, Georgia, serif); }
.afh-phone__card { margin: -38px 14px 14px; padding: 16px; border-radius: 20px; background: linear-gradient(145deg, #001e40, #0b2d55); color: #fff; box-shadow: 0 12px 24px rgba(0, 30, 64, .3); }
.afh-phone__card small { font-size: 10px; letter-spacing: .08em; color: rgba(255, 255, 255, .7); font-weight: 700; }
.afh-phone__card strong { display: block; font-size: 28px; margin: 2px 0 12px; }
.afh-phone__card em { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .7); }
.afh-phone__cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.afh-phone__cells i { height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.afh-phone__cells i.is-ok { background: #3fc48f; }
.afh-phone__cells i.is-due { background: rgba(255, 160, 143, .6); }
.afh-phone__status { display: block; margin-top: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 160, 143, .16); color: #ffb4a6; font-size: 12px; font-weight: 700; }
.afh-phone__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 14px 14px; }
.afh-phone__row span { height: 74px; border-radius: 16px; background: #fff; }
.afh-phone__list { margin: 0 14px; padding: 10px 14px; border-radius: 16px; background: #fff; display: grid; gap: 10px; }
.afh-phone__list i { height: 34px; border-radius: 8px; background: linear-gradient(90deg, #f0ede6 0 28%, transparent 28% 34%, #f6f4ef 34%); }

/* Chamada final */
.afh-cta {
	position: relative; overflow: hidden; text-align: center; padding: 64px 28px; border-radius: 28px; color: #fff;
	background: radial-gradient(circle at 85% 10%, rgba(201, 168, 76, .35), transparent 45%), linear-gradient(140deg, #001e40, #0b2d55);
}
.afh-cta h2 { margin: 0 0 12px; font-family: var(--afam-serif, Georgia, serif); font-size: clamp(28px, 4vw, 44px); color: #fff; }
.afh-cta p { margin: 0 auto 28px; max-width: 560px; color: rgba(255, 255, 255, .8); font-size: 17px; }
.afh-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.afh-wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); text-decoration: none; }
.afh-wa:hover { background: rgba(255, 255, 255, .08); }
.afh-wa .afh-ic { color: #6ee0b0; }

/* Tablet */
@media (max-width: 1024px) {
	.afh-quick__grid { grid-template-columns: repeat(2, 1fr); }
	.afh-story__grid, .afh-app__grid { gap: 36px; }
}
/* Celular */
@media (max-width: 760px) {
	.afh-hero { padding-bottom: 60px; }
	.afh-quick { margin-top: -48px; }
	.afh-quick__grid { gap: 10px; }
	.afh-quick__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; }
	.afh-quick__ic { width: 42px; height: 42px; border-radius: 12px; }
	.afh-quick__item strong { font-size: 14.5px; }
	.afh-quick__item small { font-size: 12px; }
	.afh-story__grid, .afh-app__grid { grid-template-columns: 1fr; gap: 28px; }
	.afh-story__media img { aspect-ratio: 4 / 3; }
	.afh-story__media::before { display: none; }
	.afh-steps__list { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
	.afh-steps__list li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
	.afh-steps__list li b { grid-row: span 2; margin: 0; }
	.afh-steps__list li::after { display: none; }
	.afh-pix { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 22px; }
	.afh-pix__badge { display: none; }
	.afh-pix__key { display: flex; width: 100%; justify-content: space-between; }
	.afh-pix__key strong { font-size: 17px; }
	.afh-phone { display: none; }
	.afh-cta { padding: 44px 20px; border-radius: 22px; }
	.afh-app__actions .afam-btn, .afh-app__actions .afam-pwa-install-btn { width: 100%; justify-content: center; }
}
