/* ==========================================================================
   College Widgets — base.css (tokens + pecas compartilhadas)
   SO A SESSAO FUNDACAO EDITA ESTE ARQUIVO. Widgets novos usam os tokens abaixo
   no proprio assets/<widget>.css.
   Contraste conferido: --cw-text #4B5563 em branco 7,6:1 | --cw-muted #5F6B7A 5,4:1
   | azul #0B70B1 em branco 5,3:1 | amarelo #F9BA2A em navy 8,1:1 | navy em amarelo 8,1:1
   ========================================================================== */

:root {
	/* cores da marca (kit 3272) */
	--cw-navy: #033555;
	--cw-navy-2: #04476f;
	--cw-navy-deep: #021f33;
	--cw-blue: #0B70B1;
	--cw-blue-2: #0a5f97;
	--cw-yellow: #F9BA2A;
	--cw-yellow-2: #e9a70f;
	--cw-yellow-soft: #fff4d6;
	--cw-whatsapp: #0f7d40; /* 5,2:1 com texto branco (o #1f9d55 dava 3,5:1 e reprovava no Lighthouse) */
	--cw-whatsapp-2: #0b6633;

	/* neutros */
	--cw-ink: #0d2233;          /* titulos em fundo claro */
	--cw-text: #4B5563;         /* texto corrido (substitui o #797979 do kit, 4,4:1) */
	--cw-muted: #5F6B7A;        /* textos secundarios */
	--cw-line: #dbe5ee;
	--cw-soft: #f2f7fb;
	--cw-soft-2: #e7f0f8;
	--cw-white: #fff;

	/* tipografia */
	--cw-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	/* --cw-font-display e --cw-display-tracking vem do PHP (opcao cw_font) */
	--cw-fs-hero: clamp(2.35rem, 1.45rem + 3.6vw, 4.1rem);
	--cw-fs-h2: clamp(1.85rem, 1.35rem + 2vw, 2.85rem);
	--cw-fs-h3: clamp(1.2rem, 1.08rem + .5vw, 1.45rem);
	--cw-fs-lead: clamp(1.06rem, 1rem + .3vw, 1.22rem);
	--cw-fs-body: 1.0625rem;
	--cw-fs-small: .9375rem;
	--cw-lh-tight: 1.08;
	--cw-lh-body: 1.65;

	/* espacamentos */
	--cw-gutter: clamp(18px, 4vw, 32px);
	--cw-gap: clamp(16px, 2.2vw, 28px);
	--cw-gap-lg: clamp(28px, 4vw, 56px);
	--cw-pad-sm: clamp(32px, 4vw, 48px);
	--cw-pad-md: clamp(56px, 7vw, 96px);
	--cw-pad-lg: clamp(72px, 10vw, 136px);

	/* raios e sombras */
	--cw-r-sm: 10px;
	--cw-r: 18px;
	--cw-r-lg: 28px;
	--cw-r-pill: 999px;
	--cw-shadow-sm: 0 1px 2px rgba(3, 53, 85, .06), 0 2px 8px rgba(3, 53, 85, .05);
	--cw-shadow: 0 2px 6px rgba(3, 53, 85, .05), 0 12px 32px -8px rgba(3, 53, 85, .16);
	--cw-shadow-lg: 0 24px 60px -18px rgba(2, 31, 51, .38);
	--cw-ease: cubic-bezier(.2, .7, .2, 1);
}

/* o widget ocupa a largura toda do container do Elementor (senao encolhe no flex) */
.elementor-widget[data-widget_type^="college-"] { width: 100%; max-width: 100%; align-self: stretch; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   Secao
   -------------------------------------------------------------------------- */
.cw {
	--cw-sec-title: var(--cw-ink);
	--cw-sec-text: var(--cw-text);
	--cw-sec-accent: var(--cw-blue);
	position: relative;
	width: 100%;
	font-family: var(--cw-font-body);
	font-size: var(--cw-fs-body);
	line-height: var(--cw-lh-body);
	color: var(--cw-sec-text);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.cw *, .cw *::before, .cw *::after { box-sizing: border-box; }
.cw :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
.cw :where(ul, ol) { padding: 0; list-style: none; }
.cw img { max-width: 100%; height: auto; display: block; }
.cw a { text-decoration: none; }
/* Links no meio do texto: sublinhados (não depender só da cor). O seletor precisa vencer o ".cw a" acima. */
.cw p a:not(.cw-btn), .cw .cw-rich a:not(.cw-btn), .cw .cw-intro a:not(.cw-btn), .cw li > span a:not(.cw-btn) {
	color: var(--cw-sec-accent);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.cw p a:not(.cw-btn):hover, .cw .cw-rich a:not(.cw-btn):hover, .cw .cw-intro a:not(.cw-btn):hover, .cw li > span a:not(.cw-btn):hover { text-decoration-color: var(--cw-yellow); }

.cw-wrap { width: 100%; max-width: calc(1200px + 2 * var(--cw-gutter)); margin-inline: auto; padding-inline: var(--cw-gutter); }
.cw-wrap--narrow { max-width: calc(880px + 2 * var(--cw-gutter)); }
.cw-wrap--wide { max-width: calc(1360px + 2 * var(--cw-gutter)); }

.cw-pt-none { padding-top: 0; }    .cw-pb-none { padding-bottom: 0; }
.cw-pt-sm { padding-top: var(--cw-pad-sm); } .cw-pb-sm { padding-bottom: var(--cw-pad-sm); }
.cw-pt-md { padding-top: var(--cw-pad-md); } .cw-pb-md { padding-bottom: var(--cw-pad-md); }
.cw-pt-lg { padding-top: var(--cw-pad-lg); } .cw-pb-lg { padding-bottom: var(--cw-pad-lg); }

.cw-bg-white { background: var(--cw-white); }
.cw-bg-soft { background: var(--cw-soft); }
.cw-bg-none { background: transparent; }
.cw-bg-navy, .cw-bg-blue {
	--cw-sec-title: #fff;
	--cw-sec-text: rgba(255, 255, 255, .86);
	--cw-sec-accent: var(--cw-yellow);
	background: var(--cw-navy);
	color: var(--cw-sec-text);
}
.cw-bg-navy { background: radial-gradient(120% 90% at 100% 0%, #0a4b75 0%, var(--cw-navy) 46%, var(--cw-navy-deep) 100%); }
.cw-bg-blue { background: linear-gradient(135deg, var(--cw-blue) 0%, #075a8f 100%); }
.cw-bg-yellow {
	--cw-sec-title: var(--cw-navy);
	--cw-sec-text: #23384a;
	--cw-sec-accent: var(--cw-navy);
	background: var(--cw-yellow);
}

/* --------------------------------------------------------------------------
   Cabecalho de secao
   -------------------------------------------------------------------------- */
.cw-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.cw-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.cw-head--left { text-align: left; justify-items: start; }

.cw-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cw-sec-accent);
	line-height: 1.3;
}
.cw-eyebrow::before {
	content: "";
	width: 22px;
	height: 3px;
	border-radius: 3px;
	background: var(--cw-yellow);
	flex: none;
}
.cw-bg-yellow .cw-eyebrow::before { background: var(--cw-navy); }

.cw-title, .cw .cw-title {
	font-family: var(--cw-font-display);
	font-size: var(--cw-fs-h2);
	font-weight: 700;
	line-height: var(--cw-lh-tight);
	letter-spacing: var(--cw-display-tracking, -0.02em);
	color: var(--cw-sec-title);
	text-wrap: balance;
}
.cw-intro { font-size: var(--cw-fs-lead); color: var(--cw-sec-text); max-width: 680px; text-wrap: pretty; }

/* destaque *assim* */
.cw-hl {
	color: inherit;
	background: linear-gradient(transparent 68%, rgba(249, 186, 42, .6) 68%, rgba(249, 186, 42, .6) 94%, transparent 94%);
	padding-inline: .06em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.cw-bg-navy .cw-hl, .cw-bg-blue .cw-hl, .cw-dark .cw-hl { background: none; color: var(--cw-yellow); padding: 0; }
.cw-bg-yellow .cw-hl { background: linear-gradient(transparent 62%, rgba(255, 255, 255, .7) 62%, rgba(255, 255, 255, .7) 92%, transparent 92%); }

.cw-h3 {
	font-family: var(--cw-font-display);
	font-size: var(--cw-fs-h3);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--cw-display-tracking, -0.02em);
	color: var(--cw-sec-title);
}

/* texto rico (WYSIWYG) */
.cw-rich { display: grid; gap: 1em; }
.cw-rich :where(p, ul, ol) { margin: 0; }
.cw-rich :where(h2, h3, h4) { font-family: var(--cw-font-display); color: var(--cw-sec-title); line-height: 1.2; margin: .4em 0 0; }
.cw-rich strong { color: var(--cw-sec-title); font-weight: 700; }
.cw-rich ul { display: grid; gap: .5em; }
.cw-rich ul li { position: relative; padding-left: 1.6em; }
.cw-rich ul li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .55em; height: .55em; border-radius: 50%; background: var(--cw-yellow); }

/* --------------------------------------------------------------------------
   Botoes
   -------------------------------------------------------------------------- */
.cw-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cw-btn {
	--b-bg: var(--cw-yellow);
	--b-fg: var(--cw-navy);
	--b-bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 14px 26px;
	border-radius: var(--cw-r-pill);
	border: 2px solid var(--b-bd);
	background: var(--b-bg);
	color: var(--b-fg) !important;
	font-family: var(--cw-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .25s var(--cw-ease), box-shadow .25s var(--cw-ease), background-color .2s, color .2s, border-color .2s;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 20px -10px rgba(2, 31, 51, .45);
}
.cw-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(2, 31, 51, .5); }
.cw-btn:focus-visible { outline: 3px solid var(--cw-blue); outline-offset: 3px; }
.cw-btn .cw-ico { width: 20px; height: 20px; flex: none; }
.cw-btn .cw-ico--after { transition: transform .25s var(--cw-ease); }
.cw-btn:hover .cw-ico--after { transform: translateX(4px); }

.cw-btn--primary:hover { --b-bg: #ffc94d; }
.cw-btn--navy { --b-bg: var(--cw-navy); --b-fg: #fff; }
.cw-btn--navy:hover { --b-bg: var(--cw-navy-2); }
.cw-btn--whatsapp { --b-bg: var(--cw-whatsapp); --b-fg: #fff; }
.cw-btn--whatsapp:hover { --b-bg: var(--cw-whatsapp-2); }
.cw-btn--secondary { --b-bg: transparent; --b-fg: var(--cw-navy); --b-bd: currentColor; box-shadow: none; }
.cw-btn--secondary:hover { --b-bg: var(--cw-navy); --b-fg: #fff; --b-bd: var(--cw-navy); }
.cw-bg-navy .cw-btn--secondary, .cw-bg-blue .cw-btn--secondary, .cw-dark .cw-btn--secondary { --b-fg: #fff; --b-bd: rgba(255, 255, 255, .55); }
.cw-bg-navy .cw-btn--secondary:hover, .cw-bg-blue .cw-btn--secondary:hover, .cw-dark .cw-btn--secondary:hover { --b-bg: #fff; --b-fg: var(--cw-navy); --b-bd: #fff; }
.cw-btn--link {
	--b-bg: transparent; --b-fg: var(--cw-sec-accent);
	min-height: 0; padding: 4px 0; border: 0; box-shadow: none; border-radius: 0;
}
.cw-btn--link:hover { transform: none; box-shadow: none; }

@media (max-width: 600px) {
	.cw-actions > .cw-btn:not(.cw-btn--link) { width: 100%; }
}

/* --------------------------------------------------------------------------
   Pecas
   -------------------------------------------------------------------------- */
.cw-ico { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex: none; }

.cw-icon-tile {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: var(--cw-soft-2);
	color: var(--cw-blue);
	flex: none;
}
.cw-icon-tile .cw-ico { width: 26px; height: 26px; }

.cw-flag {
	display: inline-block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(3, 53, 85, .18);
	flex: none;
}
.cw-flag svg { width: 100%; height: 100%; display: block; }

.cw-checks { display: grid; gap: 10px; }
.cw-checks li { display: flex; gap: 12px; align-items: flex-start; }
.cw-checks .cw-ico {
	width: 22px; height: 22px; padding: 4px; margin-top: .15em;
	border-radius: 50%;
	background: var(--cw-yellow);
	color: var(--cw-navy);
	stroke-width: 3;
}

.cw-card {
	background: #fff;
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-r);
	box-shadow: var(--cw-shadow-sm);
	transition: transform .3s var(--cw-ease), box-shadow .3s var(--cw-ease), border-color .3s;
}
.cw-card--hover:hover { transform: translateY(-4px); box-shadow: var(--cw-shadow); border-color: #b8d3e8; }

.cw-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
	.cw *, .cw *::before, .cw *::after { transition: none !important; animation: none !important; }
}
