/**
 * Fundação Salesianos - CSS Principal
 * Arquitetura baseada em Tokens do Design System
 */

:root {
	/* Colors */
	--fs-blue-dark: #0058b7;
	--fs-blue-light: #009bd8;
	--fs-gray-std: #364048;
	--fs-gray-text: #606f7b;
	--fs-gray-light: #8f9ba4;
	--fs-gray-vlight: #f2f2f4;
	--fs-gray-vvlight: #fafafa;
	--fs-blue-bg-light: #caecff;
	--fs-blue-bg-vlight: #e4f5ff;
	--fs-purple: #8686f2;
	--fs-orange: #f26722;
	--fs-green: #2db414;
	--fs-white: #ffffff;

	/* Typography */
	--font-heading: 'neo-sans', sans-serif;
	--font-body: 'archivo', sans-serif;

	/* Layout & Spacing */
	--content-width: 800px;
	--wide-width: 1200px;
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 2rem;
	--space-lg: 4rem;
	--space-xl: 6rem;

	/* UI Elements */
	--border-radius: 8px;
	--shadow-soft: 0 4px 12px rgba(54, 64, 72, 0.08);
	--shadow-hover: 0 8px 24px rgba(0, 88, 183, 0.12);
	--transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
body {
	font-family: var(--font-body);
	color: var(--fs-gray-text);
	background-color: var(--fs-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, picture { max-width: 100%; display: block; height: auto; }
a { color: var(--fs-blue-dark); text-decoration: none; transition: var(--transition); }
a:hover, a:focus { color: var(--fs-blue-light); }
a:focus-visible { outline: 3px solid var(--fs-blue-light); outline-offset: 2px; }

/* ==========================================================================
   Typography Scale (Mobile First)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--fs-gray-std);
	line-height: 1.2;
	margin-bottom: var(--space-sm);
}

h1 { font-size: 28px; font-weight: 600; text-transform: uppercase; color: var(--fs-blue-dark); }
h2 { font-size: 22px; font-weight: 500; text-transform: uppercase; }
h3 { font-size: 20px; font-weight: 500; text-transform: uppercase; }
h4 { font-size: 18px; font-weight: 500; }
h5 { font-size: 18px; font-weight: 500; text-transform: uppercase; }
h6 { font-size: 16px; font-weight: 500; }

p { font-size: 18px; margin-bottom: var(--space-sm); }
.text-lead { font-size: 18px; font-weight: 500; color: var(--fs-gray-std); } /* mobile fallback */
.text-info, figcaption { font-size: 14px; color: var(--fs-gray-light); line-height: 1.45; }

@media (min-width: 768px) {
	h1 { font-size: 42px; }
	h2 { font-size: 34px; }
	h3 { font-size: 26px; }
	h4 { font-size: 21px; }
	h5 { font-size: 19px; }
	h6 { font-size: 18px; }
	.text-lead { font-size: 21px; }
	.text-info, figcaption { font-size: 16px; }
}

/* ==========================================================================
   Layout & Gutenberg Defaults
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 0 var(--space-sm);
}
main > * {
	max-width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--space-sm);
	padding-right: var(--space-sm);
}
main > .alignwide { max-width: var(--wide-width); }
main > .alignfull { max-width: 100%; padding-left: 0; padding-right: 0; }

.section-bg-vlight { background-color: var(--fs-gray-vvlight); padding: var(--space-lg) 0; }
.section-bg-light-blue { background-color: var(--fs-blue-bg-vlight); padding: var(--space-lg) 0; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
	background: var(--fs-white);
	border-bottom: 1px solid var(--fs-gray-vlight);
	position: sticky;
	top: 0;
	z-index: 100;
	padding: var(--space-sm) 0;
}
.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.site-branding img { max-height: 60px; width: auto; }
.menu-toggle {
	background: none; border: none; font-size: 24px; color: var(--fs-blue-dark); cursor: pointer; display: none;
}
.main-navigation ul {
	list-style: none; padding: 0; margin: 0; display: flex; gap: var(--space-md);
}
.main-navigation a {
	font-weight: 500; color: var(--fs-gray-std); font-family: var(--font-heading); text-transform: uppercase;
}
.main-navigation a:hover { color: var(--fs-blue-dark); }

@media (max-width: 767px) {
	.menu-toggle { display: block; }
	.main-navigation {
		display: none; position: absolute; top: 100%; left: 0; width: 100%;
		background: var(--fs-white); padding: var(--space-sm);
		box-shadow: var(--shadow-soft);
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; gap: var(--space-sm); }
}

/* ==========================================================================
   Components: Buttons
   ========================================================================== */
.btn, .wp-block-button__link {
	display: inline-block;
	padding: 12px 24px;
	border-radius: var(--border-radius);
	font-family: var(--font-heading);
	font-weight: 500;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	border: none;
	transition: var(--transition);
}
.btn-primary {
	background: linear-gradient(180deg, var(--fs-blue-dark) 0%, var(--fs-blue-light) 100%);
	color: var(--fs-white);
	box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
	background: linear-gradient(180deg, var(--fs-blue-light) 0%, var(--fs-blue-dark) 100%);
	color: var(--fs-white);
	box-shadow: var(--shadow-hover);
}
.btn-secondary {
	background: transparent;
	color: var(--fs-blue-dark);
	border: 2px solid var(--fs-blue-dark);
}
.btn-secondary:hover {
	background: var(--fs-blue-bg-vlight);
}

/* ==========================================================================
   Components: Cards (Posts)
   ========================================================================== */
.grid-posts {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
	margin: var(--space-md) auto;
}
@media (min-width: 768px) { .grid-posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-posts { grid-template-columns: repeat(3, 1fr); } }

.card {
	background: var(--fs-white);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-image img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: var(--space-md); flex-grow: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 14px; color: var(--fs-gray-light); margin-bottom: var(--space-xs); font-family: var(--font-heading); text-transform: uppercase; }
.card-title { font-size: 20px; margin-bottom: var(--space-xs); }
.card-title a { color: var(--fs-gray-std); }
.card-title a:hover { color: var(--fs-blue-dark); }
.card-excerpt { font-size: 16px; margin-bottom: var(--space-sm); flex-grow: 1; }
.card-link { font-weight: 600; text-transform: uppercase; font-family: var(--font-heading); font-size: 14px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
	background-color: var(--fs-blue-bg-vlight);
	padding: var(--space-xl) 0;
	text-align: center;
	border-bottom: 1px solid var(--fs-blue-bg-light);
}
.hero-title { margin-bottom: var(--space-sm); }
.hero-desc { max-width: 700px; margin: 0 auto var(--space-md); color: var(--fs-gray-std); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background-color: var(--fs-blue-dark);
	color: var(--fs-blue-bg-vlight);
	padding: var(--space-lg) 0 var(--space-md);
	margin-top: var(--space-xl);
}
.site-footer a { color: var(--fs-white); }
.site-footer a:hover { color: var(--fs-blue-light); }
.footer-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-info { text-align: center; margin-top: var(--space-lg); padding-top: var(--space-sm); border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }

/* ==========================================================================
   Acessibilidade & Utilities
   ========================================================================== */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: var(--fs-white); border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
	clip: auto !important; clip-path: none; color: var(--fs-blue-dark); display: block;
	font-size: 14px; font-weight: 700; height: auto; left: 5px; line-height: normal;
	padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000;
}