/* =====================================================================
   Escolas Mercedárias — estilos do tema
   Tokens extraídos de colegiomercedario.com.br + handoff de Bolsas.
   ===================================================================== */

:root {
	--maroon: #7C1123;        /* bordô institucional */
	--maroon-dark: #5A0D18;   /* texto de apoio na faixa de bolsas */
	--yellow-1: #FED615;      /* gradiente da faixa de bolsas */
	--yellow-2: #FFBA21;      /* gradiente da faixa / selo do ano */
	--btn-yellow: #FDC132;    /* botão ACESSAR */
	--btn-yellow-hover: #E9AE21;
	--brown: #9B4906;         /* cidade/UF nos cards */
	--container: 1140px;
	--font-site: 'Roboto', system-ui, sans-serif;
	--font-bolsas: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-site);
	font-size: 16px;
	color: #2a2a2a;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	word-wrap: normal;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	background: var(--maroon);
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
}

/* ---------- Hero / banner ---------- */

/* O banner é uma arte completa (logo + chamada + fotos, fundo amarelo até as
   bordas): exibido inteiro, em largura total (full-bleed), sem nenhum corte. */
.hero {
	line-height: 0;
}

.hero__inner {
	max-width: none;
	margin: 0;
}

.hero__img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Unidades ---------- */

.unidades {
	padding: 56px 5vw 40px;
}

.unidades__grid {
	max-width: var(--container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
	justify-content: center;
	gap: 32px;
}

.unidade {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
	background: #FAF7F2;
	border: 1px solid #f0e9df;
	border-radius: 20px;
	padding: 26px 26px 30px;
	transition: transform 0.2s, box-shadow 0.2s;
}

.unidade:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(124, 17, 35, 0.14);
}

.unidade__foto {
	width: 100%;
	margin-bottom: 20px;
}

.unidade__foto img {
	display: block;
	width: 100%;
	border-radius: 12px;
}

.unidade__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	flex: 1;
	justify-content: space-between;
}

.unidade__nome {
	margin: 0;
	font-family: var(--font-site);
	font-size: 22px;
	font-weight: 800;
	line-height: 28px;
	letter-spacing: -1px;
	text-transform: uppercase;
	color: var(--maroon);
}

.unidade__btn {
	display: inline-block;
	background: var(--btn-yellow);
	color: var(--maroon);
	font-family: var(--font-site);
	font-size: 17px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	padding: 12px 34px;
	border-radius: 15px;
	transition: background-color 0.2s;
}

.unidade__btn:hover,
.unidade__btn:focus {
	background: var(--btn-yellow-hover);
}

.unidade__cidade {
	margin: 0;
	font-family: var(--font-site);
	font-size: 21px;
	font-weight: 200;
	color: var(--brown);
}

/* ---------- Faixa Bolsas de Estudo (handoff — fidelidade 1:1) ---------- */

.bolsas-strip {
	background: linear-gradient(160deg, var(--yellow-1) 0%, var(--yellow-2) 100%);
	padding: 40px 5vw;
	font-family: var(--font-bolsas);
}

.bolsas-strip__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.bolsas-strip__text {
	max-width: 680px;
}

.bolsas-strip__eyebrow {
	color: var(--maroon);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 6px;
	opacity: 0.75;
}

.bolsas-strip__title {
	margin: 0 0 6px;
	color: var(--maroon);
	font-weight: 800;
	font-size: clamp(22px, 2.6vw, 30px);
}

.bolsas-strip__desc {
	margin: 0;
	color: var(--maroon-dark);
	font-size: 15px;
	line-height: 1.55;
	font-weight: 500;
}

.bolsas-strip__btn {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--maroon);
	color: #fff;
	border: none;
	padding: 16px 28px;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(124, 17, 35, 0.3);
	white-space: nowrap;
}

.bolsas-strip__btn:hover { opacity: 0.9; }

/* ---------- Popup de editais ---------- */

.bolsas-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(30, 10, 10, 0.55);
	z-index: 100;
	display: none; /* alterna para flex via .is-open */
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: em-fade-in 0.18s ease;
	font-family: var(--font-bolsas);
}

.bolsas-modal-backdrop.is-open { display: flex; }

.bolsas-modal {
	background: #fff;
	width: min(640px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	border-radius: 20px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
	animation: em-modal-in 0.22s ease;
}

.bolsas-modal__header {
	background: var(--maroon);
	padding: 28px 32px;
	border-radius: 20px 20px 0 0;
	position: relative;
}

.bolsas-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: pointer;
}

.bolsas-modal__eyebrow {
	color: var(--yellow-2);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.bolsas-modal__title {
	margin: 0;
	color: #fff;
	font-weight: 800;
	font-size: 24px;
}

.bolsas-modal__body {
	padding: 28px 32px 32px;
}

.bolsas-modal__legal {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.65;
	color: #4a4a4a;
	font-weight: 500;
}

.bolsas-editais-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bolsas-modal__footnote {
	margin: 22px 0 0;
	font-size: 12px;
	color: #aaa;
	line-height: 1.5;
}

@keyframes em-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes em-modal-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.bolsas-edital {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border: 1px solid #eee;
	border-radius: 14px;
	background: #FAF7F2;
	text-decoration: none;
}

a.bolsas-edital:hover { opacity: 0.9; }

.bolsas-edital--pendente { opacity: 0.6; }

.bolsas-edital__left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bolsas-edital__year {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--maroon);
	color: var(--yellow-2);
	font-weight: 900;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bolsas-edital__name {
	font-weight: 700;
	font-size: 14.5px;
	color: #2a2a2a;
}

.bolsas-edital__year-label {
	font-size: 12.5px;
	color: #8a8a8a;
	font-weight: 600;
}

.bolsas-edital__cta {
	flex: none;
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--maroon);
	font-weight: 800;
	font-size: 13px;
	white-space: nowrap;
}

/* ---------- Rodapé ---------- */

.site-footer {
	background: var(--maroon);
	color: #fff;
	padding: 48px 5vw;
	min-height: 283px;
	display: flex;
	align-items: center;
}

.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.site-footer__logo { flex: 0 0 auto; }

.site-footer__logo img { display: block; }

.site-footer__contato { flex: 1 1 380px; max-width: 520px; }

.site-footer__lista {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.site-footer__lista li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.5;
}

.site-footer__icone {
	flex: none;
	display: inline-flex;
	margin-top: 3px;
}

.site-footer__copy {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.site-footer__extra {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.site-footer__privacidade {
	color: #fff;
	text-decoration: none;
	font-size: 15px;
}

.site-footer__privacidade:hover { text-decoration: underline; }

.site-footer__social {
	display: flex;
	gap: 5px;
}

.site-footer__social-item {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--maroon);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
}

.site-footer__social-item:hover { opacity: 0.85; }

/* ---------- Conteúdo interno (páginas) ---------- */

.conteudo-interno {
	padding: 56px 5vw;
}

.conteudo-interno__inner {
	max-width: 860px;
	margin: 0 auto;
}

.conteudo-interno__titulo {
	color: var(--maroon);
	font-weight: 800;
	font-size: 32px;
	margin: 0 0 24px;
}

.conteudo-interno__texto {
	line-height: 1.7;
}

.conteudo-interno__texto a { color: var(--maroon); }

/* ---------- Responsivo ---------- */

@media (max-width: 600px) {
	.unidades { padding: 40px 6vw 24px; }

	.unidades__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.site-footer__lista li {
		justify-content: center;
		text-align: left;
	}

	.site-footer__extra { align-items: center; }

	.bolsas-modal__header { padding: 24px 22px; }
	.bolsas-modal__body { padding: 22px 22px 26px; }

	.bolsas-edital {
		flex-direction: column;
		align-items: flex-start;
	}
}
