/*
Theme Name: Unidade Oncológica
Theme URI: https://nucleodocancerdejatai.blogspot.com/
Author: Núcleo Regional de Combate ao Câncer de Jataí
Description: Tema institucional para a Unidade Oncológica — Núcleo Regional de Combate ao Câncer de Jataí. Uma OSC de saúde dedicada à prevenção, tratamento, orientação e apoio a pacientes com câncer e suas famílias em Jataí, Goiás, desde 1993.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unidade-oncologica
Tags: full-site-editing, block-patterns, wide-blocks, custom-colors, custom-fonts, one-column, grid-layout, translation-ready, accessibility-ready
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================================================
   0. FOUNDATION — overflow safety for sticky positioning
   ======================================================================== */

:root,
body,
.wp-site-blocks {
	overflow: visible;
}

/* ========================================================================
   1. STICKY HEADER
   ======================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Backdrop pseudo for scrolled-state chrome — never backdrop-filter on header
   itself so mobile nav overlay's position:fixed keeps targeting viewport */
.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--background);
	box-shadow: 0 1px 0 var(--wp--preset--color--border);
}

/* Shrink on scroll */
.site-header {
	transition: padding 0.25s ease;
}

body.is-scrolled .site-header {
	padding-block: var(--wp--preset--spacing--20);
}

/* ========================================================================
   2. HEADER GRADIENT ACCENT LINE
   ======================================================================== */

.wp-site-blocks > header.wp-block-template-part::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--wp--preset--color--primary),
		var(--wp--preset--color--blue),
		var(--wp--preset--color--purple),
		transparent
	);
	opacity: 0.5;
	z-index: 1;
	pointer-events: none;
}

/* ========================================================================
   3. NAVIGATION
   ======================================================================== */

.wp-block-navigation a {
	transition: color 0.2s ease, background-color 0.2s ease;
	border-radius: 6px;
}

.wp-block-navigation a:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* Navigation CTA (WhatsApp button in header) */
.osc-nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 50px;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: background 0.2s ease, transform 0.15s ease;
}

.osc-nav-cta:hover {
	background: var(--wp--preset--color--primary-hover);
	transform: translateY(-1px);
}

.osc-nav-cta svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ========================================================================
   4. MOBILE HAMBURGER OVERLAY
   ======================================================================== */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* ========================================================================
   5. LOGO / SITE-LOGO IN HEADER
   ======================================================================== */

.osc-header-logo img {
	border-radius: 0 !important;
	object-fit: contain;
}

.osc-footer-logo img {
	border-radius: 0 !important;
	object-fit: contain;
}

/* Hide header CTA buttons on very small screens */
@media (max-width: 768px) {
	.osc-header-cta-donate,
	.osc-header-cta-whatsapp {
		display: none !important;
	}
}

/* ========================================================================
   5b. QUICK-ACTION BAR (homepage)
   ======================================================================== */

.osc-quick-actions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--30);
	width: 100%;
}

@media (max-width: 768px) {
	.osc-quick-actions {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.osc-quick-actions {
		grid-template-columns: 1fr;
	}
}

.osc-quick-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing|30);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	text-decoration: none;
	color: var(--wp--preset--color--white);
	text-align: center;
	transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.osc-quick-action:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.osc-quick-action-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
}

.osc-quick-action-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.osc-quick-action-desc {
	font-size: 12px;
	color: var(--wp--preset--color--text-muted);
	line-height: 1.4;
}

/* ========================================================================
   5c. TRUST BADGE (CNPJ / credentials strip)
   ======================================================================== */

.osc-trust-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: rgba(5, 150, 105, 0.08);
	border: 1px solid rgba(5, 150, 105, 0.15);
	border-radius: 50px;
}

.osc-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--wp--preset--color--text-muted);
	letter-spacing: 0.04em;
}

.osc-trust-item strong {
	color: var(--wp--preset--color--primary);
}

@media (max-width: 600px) {
	.osc-trust-strip {
		border-radius: 12px;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
	}
}

/* ========================================================================
   6. HERO SECTION
   ======================================================================== */

.osc-hero {
	position: relative;
	overflow: hidden;
}

/* Hero overlay gradient */
.osc-hero .wp-block-cover__background,
.osc-hero-overlay {
	background:
		linear-gradient(
			180deg,
			rgba(15, 23, 42, 0.85) 0%,
			rgba(15, 23, 42, 0.55) 35%,
			rgba(15, 23, 42, 0.50) 55%,
			rgba(15, 23, 42, 0.75) 80%,
			rgba(15, 23, 42, 0.95) 100%
		) !important;
}

/* Hero badge pill */
.osc-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 7px 20px;
	border-radius: 50px;
	margin-bottom: var(--wp--preset--spacing--50);
}

.osc-hero-badge-dot {
	width: 4px;
	height: 4px;
	background: var(--wp--preset--color--white);
	border-radius: 50%;
	opacity: 0.7;
	display: inline-block;
}

/* Hero headline accent */
.osc-hero-headline-accent {
	color: var(--wp--preset--color--primary);
	position: relative;
}

.osc-hero-headline-accent::after {
	content: "";
	position: absolute;
	bottom: 2px;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
	opacity: 0.4;
}

/* Hero divider */
.osc-hero-divider {
	width: 48px;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--blue));
	border-radius: 2px;
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Hero mission text */
.osc-hero-mission {
	line-height: 1.75;
	opacity: 0.8;
}

/* Hero stats row */
.osc-hero-stats {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--50);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.osc-hero-stat {
	text-align: center;
	padding: 0 2.5rem;
	position: relative;
}

.osc-hero-stat:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 36px;
	background: rgba(255, 255, 255, 0.2);
}

.osc-hero-stat-number {
	font-family: var(--wp--preset--font-family--primary);
	font-size: clamp(1.5rem, 2vw, 1.75rem);
	font-weight: 800;
	color: var(--wp--preset--color--white);
	line-height: 1;
	margin-bottom: 6px;
}

.osc-stat-plus {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

.osc-hero-stat-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

/* Hero scroll hint */
.osc-hero-scroll-hint {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.osc-scroll-line {
	width: 1px;
	height: 32px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
}

.osc-scroll-text {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	writing-mode: vertical-lr;
}

/* Hero grain overlay */
.osc-hero-grain {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0.035;
	background-image: repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0% 25%, transparent 0% 50%);
	background-size: 3px 3px;
	pointer-events: none;
}

@media (max-width: 768px) {
	.osc-hero-stats {
		flex-direction: column;
		gap: var(--wp--preset--spacing--40);
	}

	.osc-hero-stat {
		padding: 0;
	}

	.osc-hero-stat:not(:last-child)::after {
		display: none;
	}

	.osc-hero-scroll-hint {
		display: none;
	}
}

/* ========================================================================
   7. BUTTONS — PRIMARY & GHOST VARIANTS
   ======================================================================== */

/* Primary CTA (white on green — used outside of wp:button contexts) */
.osc-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	padding: 16px 32px;
	border-radius: 50px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 24px rgba(5, 150, 105, 0.2);
}

.osc-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
	color: var(--wp--preset--color--primary-hover);
}

.osc-btn-primary svg {
	width: 18px;
	height: 18px;
}

/* Ghost button (transparent with white border) */
.osc-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	padding: 15px 30px;
	border-radius: 50px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	cursor: pointer;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.osc-btn-ghost:hover {
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}

.osc-btn-ghost svg {
	width: 18px;
	height: 18px;
}

/* WordPress core button hover refinement */
.wp-block-button .wp-block-button__link {
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
}

/* Outline button style */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-1px);
	box-shadow: none;
}

/* Amber accent button variant */
.osc-btn-amber {
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--white);
}

.osc-btn-amber:hover {
	background: #b45309;
}

/* Blue accent button variant */
.osc-btn-blue {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.osc-btn-blue:hover {
	background: #1d4ed8;
}

/* Purple accent button variant */
.osc-btn-purple {
	background: var(--wp--preset--color--purple);
	color: var(--wp--preset--color--white);
}

.osc-btn-purple:hover {
	background: #6d28d9;
}

/* ========================================================================
   8. CARDS
   ======================================================================== */

.osc-card {
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.osc-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Card on light surface backgrounds */
.osc-card-light {
	background: var(--wp--preset--color--white);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.osc-card-light:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

/* Card inner padding */
.osc-card-body {
	padding: var(--wp--preset--spacing--40);
}

/* ========================================================================
   9. BADGES — PILL STYLE
   ======================================================================== */

.osc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 50px;
	line-height: 1.4;
}

.osc-badge-primary {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.osc-badge-amber {
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--white);
}

.osc-badge-blue {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--white);
}

.osc-badge-purple {
	background: var(--wp--preset--color--purple);
	color: var(--wp--preset--color--white);
}

.osc-badge-surface {
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--text);
}

/* ========================================================================
   10. SECTION LABELS & TYPOGRAPHY POLISH
   ======================================================================== */

/* Section eyebrow label */
.osc-section-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	margin-bottom: var(--wp--preset--spacing--20);
}

/* Section subtitle */
.osc-section-subtitle {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--text-muted);
	line-height: 1.65;
	max-width: 640px;
}

/* Body text leading for long-form readability */
.entry-content p,
.wp-block-group p {
	line-height: 1.7;
}

/* List refinements */
.wp-block-list li {
	margin-bottom: 0.35em;
}

/* Separator */
.wp-block-separator {
	opacity: 1;
}

/* ========================================================================
   11. TEAM MEMBER CARDS
   ======================================================================== */

.osc-team-card {
	text-align: center;
}

.osc-team-card .wp-block-image img {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 120px;
	height: 120px;
	margin: 0 auto var(--wp--preset--spacing--30);
	border: 3px solid var(--wp--preset--color--primary);
}

.osc-team-role {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--primary);
}

/* ========================================================================
   12. EVENT CARDS
   ======================================================================== */

.osc-event-card {
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.osc-event-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.osc-event-card .wp-block-image img {
	border-radius: 0;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}

.osc-event-date {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--amber);
	letter-spacing: 0.02em;
}

/* ========================================================================
   13. BAZAR / STOREFRONT CARDS
   ======================================================================== */

.osc-bazar-card {
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: transform 0.2s ease;
}

.osc-bazar-card:hover {
	transform: translateY(-2px);
}

.osc-bazar-card .wp-block-image img {
	border-radius: 0;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}

.osc-bazar-price {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
	color: var(--wp--preset--color--primary);
}

/* ========================================================================
   14. IMAGE TREATMENTS
   ======================================================================== */

/* Default rounded corners from theme.json, reinforced */
.wp-block-image img {
	border-radius: 12px;
}

/* Gallery items */
.wp-block-gallery .wp-block-image img {
	border-radius: 8px;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.02);
}

/* Cover image dimming for text readability */
.wp-block-cover img {
	border-radius: 0;
}

/* ========================================================================
   15. COMO AJUDAR — PATHWAY CARDS
   ======================================================================== */

.osc-pathway {
	padding: var(--wp--preset--spacing--50);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.osc-pathway:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.15);
}

.osc-pathway-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--wp--preset--spacing--30);
}

.osc-pathway-icon svg {
	width: 28px;
	height: 28px;
}

/* ========================================================================
   16. CONTACT / MAP
   ======================================================================== */

.osc-map-embed iframe {
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	width: 100%;
	min-height: 320px;
}

.osc-contact-info {
	line-height: 1.8;
}

.osc-contact-info strong {
	color: var(--wp--preset--color--white);
}

/* ========================================================================
   17. WHATSAPP FLOATING CTA
   ======================================================================== */

.osc-whatsapp-float {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 0;
	text-decoration: none;
}

.osc-whatsapp-float__btn {
	width: 60px;
	height: 60px;
	background: #25d366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	z-index: 2;
}

.osc-whatsapp-float:hover .osc-whatsapp-float__btn {
	transform: scale(1.08);
	box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.osc-whatsapp-float__btn svg {
	width: 30px;
	height: 30px;
	fill: var(--wp--preset--color--white);
}

.osc-whatsapp-float__tooltip {
	position: absolute;
	right: 68px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--primary);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 8px;
	white-space: nowrap;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.osc-whatsapp-float__tooltip::after {
	content: "";
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	border: 6px solid transparent;
	border-left-color: var(--wp--preset--color--surface);
}

.osc-whatsapp-float:hover .osc-whatsapp-float__tooltip {
	opacity: 1;
}

/* Pulse ring animation */
.osc-whatsapp-float__btn::before {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid rgba(37, 211, 102, 0.4);
	animation: osc-whatsapp-pulse 2s ease-out infinite;
}

@keyframes osc-whatsapp-pulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.osc-whatsapp-float__btn::before {
		animation: none;
	}
}

@media (max-width: 480px) {
	.osc-whatsapp-float__tooltip {
		display: none;
	}

	.osc-whatsapp-float {
		bottom: 1.25rem;
		right: 1.25rem;
	}

	.osc-whatsapp-float__btn {
		width: 52px;
		height: 52px;
	}

	.osc-whatsapp-float__btn svg {
		width: 26px;
		height: 26px;
	}
}

/* ========================================================================
   18. FOOTER
   ======================================================================== */

.osc-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.osc-footer::before {
	content: "";
	display: block;
	height: 2px;
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--primary),
		var(--wp--preset--color--blue),
		var(--wp--preset--color--purple),
		var(--wp--preset--color--amber)
	);
	opacity: 0.5;
}

.osc-footer a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.osc-footer a:hover {
	color: var(--wp--preset--color--primary-hover);
	text-decoration: none;
}

.osc-footer-credit {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
	font-style: italic;
	letter-spacing: 0.02em;
}

.osc-footer-credit a {
	color: var(--wp--preset--color--text-muted);
	text-decoration: underline;
}

.osc-footer-credit a:hover {
	color: var(--wp--preset--color--primary);
}

/* ========================================================================
   19. LIGHT SURFACE SECTIONS
   ======================================================================== */

/* When sections use surface-light background, text must be dark */
.has-surface-light-background-color,
.has-surface-light-background-color p,
.has-surface-light-background-color h1,
.has-surface-light-background-color h2,
.has-surface-light-background-color h3,
.has-surface-light-background-color h4,
.has-surface-light-background-color h5,
.has-surface-light-background-color h6 {
	color: var(--wp--preset--color--text-dark);
}

.has-white-background-color,
.has-white-background-color p,
.has-white-background-color h1,
.has-white-background-color h2,
.has-white-background-color h3,
.has-white-background-color h4,
.has-white-background-color h5,
.has-white-background-color h6 {
	color: var(--wp--preset--color--text-dark);
}

/* Ensure links remain visible on light surfaces */
.has-surface-light-background-color a:not(.wp-block-button__link),
.has-white-background-color a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--primary);
}

.has-surface-light-background-color a:not(.wp-block-button__link):hover,
.has-white-background-color a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--primary-hover);
}

/* Muted text on light surfaces */
.has-surface-light-background-color .has-text-muted-color,
.has-white-background-color .has-text-muted-color {
	color: #64748b;
}

/* Cards on light surfaces */
.has-surface-light-background-color .osc-card,
.has-white-background-color .osc-card {
	background: var(--wp--preset--color--white);
	border-color: rgba(15, 23, 42, 0.08);
}

.has-surface-light-background-color .osc-card:hover,
.has-white-background-color .osc-card:hover {
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

/* ========================================================================
   20. BLOCKQUOTE / PULL-QUOTE REFINEMENT
   ======================================================================== */

.wp-block-quote {
	padding-left: var(--wp--preset--spacing--40);
	position: relative;
}

.wp-block-quote cite {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.02em;
	display: block;
	margin-top: var(--wp--preset--spacing--20);
}

.wp-block-pullquote {
	border-top: 3px solid var(--wp--preset--color--primary);
	border-bottom: 3px solid var(--wp--preset--color--primary);
	padding: var(--wp--preset--spacing--40) 0;
}

/* ========================================================================
   21. ACCESSIBILITY — FOCUS OUTLINES
   ======================================================================== */

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Skip-to-content link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 999;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 24px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	border-radius: 8px;
	z-index: 1000;
	text-decoration: none;
}

/* ========================================================================
   22. SMOOTH SCROLL (respects reduced motion)
   ======================================================================== */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ========================================================================
   23. SELECTION STYLE
   ======================================================================== */

::selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

::-moz-selection {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* ========================================================================
   24. RESPONSIVE UTILITIES
   ======================================================================== */

@media (max-width: 768px) {
	/* Stack CTA group vertically */
	.osc-hero-cta-group {
		flex-direction: column;
		width: 100%;
	}

	.osc-btn-primary,
	.osc-btn-ghost {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	/* Tighten section spacing on mobile */
	.osc-section-padding {
		padding-top: var(--wp--preset--spacing--50);
		padding-bottom: var(--wp--preset--spacing--50);
	}
}

@media (max-width: 640px) {
	/* Single-column layout for grid items */
	.wp-block-columns {
		flex-direction: column;
	}

	.osc-pathway {
		padding: var(--wp--preset--spacing--40);
	}
}

/* ========================================================================
   25. FORM ELEMENTS (contact page fallback)
   ======================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--medium);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	padding: 12px 16px;
	width: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
	outline: none;
}

input::placeholder,
textarea::placeholder {
	color: var(--wp--preset--color--text-muted);
	opacity: 0.7;
}

/* ========================================================================
   26. DIRETORIA / CONSELHO FISCAL TABLE
   ======================================================================== */

.osc-diretoria-list {
	list-style: none;
	padding: 0;
}

.osc-diretoria-list li {
	padding: var(--wp--preset--spacing--20) 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

.osc-diretoria-list li:last-child {
	border-bottom: 0;
}

.osc-diretoria-name {
	font-weight: 700;
	color: var(--wp--preset--color--white);
}

.osc-diretoria-role {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ========================================================================
   27. OPERATIONAL HOURS TABLE
   ======================================================================== */

.osc-hours-table {
	width: 100%;
	border-collapse: collapse;
}

.osc-hours-table th,
.osc-hours-table td {
	padding: 10px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: var(--wp--preset--font-size--small);
}

.osc-hours-table th {
	font-weight: 700;
	color: var(--wp--preset--color--white);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.osc-hours-table td {
	color: var(--wp--preset--color--text-muted);
}

/* ========================================================================
   28. MEDIA-TEXT BLOCK POLISH
   ======================================================================== */

.wp-block-media-text {
	border-radius: 12px;
	overflow: hidden;
}

.wp-block-media-text .wp-block-media-text__media img {
	border-radius: 0;
}

/* ========================================================================
   29. COLUMNS / GRID RESPONSIVE
   ======================================================================== */

.wp-block-columns.osc-grid-3 {
	flex-wrap: wrap;
}

@media (max-width: 900px) {
	.wp-block-columns.osc-grid-3 > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--40) / 2);
	}
}

@media (max-width: 600px) {
	.wp-block-columns.osc-grid-3 > .wp-block-column {
		flex-basis: 100%;
	}
}

/* ========================================================================
   30. Loop layout utilities
   ======================================================================== */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}

.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--border, rgba(255, 255, 255, 0.1));
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: currentColor;
	opacity: 0.15;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: "";
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: var(--wp--preset--color--background, #0f172a);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}

@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}