/* ==========================================================================
   Kayo Libarino — estilos do tema
   Classes "kl-*" são aplicadas nos blocos (Avançado → Classes CSS adicionais).
   ========================================================================== */

html { scroll-behavior: smooth; }

body {
	background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f1f5f9 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

/* Remove o espaço entre o conteúdo e o rodapé. */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* --------------------------------------------------------------------------
   Estrutura
   -------------------------------------------------------------------------- */

.kl-section {
	padding: 5rem 1.5rem;
}

.kl-section--alt {
	background: linear-gradient(135deg, #f1f5f9 0%, #eff6ff 100%);
}

.kl-section--alt-reverse {
	background: linear-gradient(135deg, #eff6ff 0%, #f1f5f9 100%);
}

.kl-container {
	max-width: 72rem;
	margin-inline: auto;
}

/* Elementos dentro do conteúdo da página não herdam espaçamento extra. */
.kl-main .entry-content > * { margin-block-start: 0; }

/* --------------------------------------------------------------------------
   Títulos de seção
   -------------------------------------------------------------------------- */

.kl-section h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--title);
	margin-block: 0 3rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.kl-section h2.wp-block-heading.has-text-align-center,
.kl-section h2.kl-title-sm {
	font-size: var(--wp--preset--font-size--title-sm);
	justify-content: center;
}

/* Ícones dos títulos (Estilos do bloco Título). */
[class*="is-style-kl-icon-"]::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 2rem;
	background-color: var(--wp--preset--color--blue-600);
	-webkit-mask: var(--kl-icon) center / contain no-repeat;
	mask: var(--kl-icon) center / contain no-repeat;
}
.is-style-kl-icon-code      { --kl-icon: url(icons/code-xml.svg); }
.is-style-kl-icon-briefcase { --kl-icon: url(icons/briefcase.svg); }
.is-style-kl-icon-education { --kl-icon: url(icons/graduation-cap.svg); }
.is-style-kl-icon-projects  { --kl-icon: url(icons/folder-kanban.svg); }

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

.kl-hero {
	position: relative;
	overflow: hidden;
	padding: 6rem 1.5rem;
	color: #fff;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
}

.kl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.2;
	pointer-events: none;
	background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wMyI+PHBhdGggZD0iTTM2IDM0djItaDJ2LTJoLTJ6bTAgNHYyaDJ2LTJoLTJ6bS0yIDJ2Mmgydi0yaC0yem0wLTR2Mmgydi0yaC0yem0yLTJ2LTJoLTJ2Mmgyem0wLTRoLTJ2Mmgydi0yem0yIDJ2LTJoLTJ2Mmgyem0wIDR2LTJoLTJ2Mmgyem0yLTJ2Mmgydi0yaC0yem0wLTR2Mmgydi0yaC0yem0tMiAydi0yaC0ydjJoMnptLTQtMnYyaDJ2LTJoLTJ6bTYgNnYyaDJ2LTJoLTJ6bS0yIDJ2Mmgydi0yaC0yem0tMiAydjJoMnYtMmgtMnptLTItMnYyaDJ2LTJoLTJ6bS0yLTJ2Mmgydi0yaC0yem0yLTJ2Mmgydi0yaC0yem0wLTJ2Mmgydi0yaC0yem0yIDJ2LTJoLTJ2Mmgyem0yIDJ2LTJoLTJ2Mmgyem0yLTJ2Mmgydi0yaC0yem0wIDR2Mmgydi0yaC0yem0yLTJ2Mmgydi0yaC0yeiIvPjwvZz48L2c+PC9zdmc+");
}

.kl-hero > .kl-container {
	position: relative;
	animation: kl-fade-in 0.5s ease-in-out both;
}

.kl-hero .kl-badge {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.5rem 1rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	border-radius: 9999px;
	border: 1px solid rgb(96 165 250 / 0.3);
	background: rgb(59 130 246 / 0.2);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.kl-hero h1.wp-block-heading {
	margin: 0 0 1.5rem;
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.05;
	color: transparent;
	background: linear-gradient(90deg, #fff 0%, #bfdbfe 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

.kl-hero .kl-hero-subtitle {
	max-width: 48rem;
	margin: 0 0 2rem;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
	line-height: 1.6;
	color: #dbeafe;
}

/* Botões do hero */
.kl-hero .wp-block-buttons {
	gap: 1rem;
	margin: 0 0 3rem;
}

.kl-hero .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
	color: #fff;
	background: var(--wp--preset--color--slate-800);
	border-radius: 0.5rem;
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.25);
	transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.kl-hero .wp-block-button__link:hover { transform: scale(1.05); background: var(--wp--preset--color--slate-700); color: #fff; }

.kl-hero .is-style-kl-linkedin .wp-block-button__link { background: var(--wp--preset--color--blue-600); }
.kl-hero .is-style-kl-linkedin .wp-block-button__link:hover { background: var(--wp--preset--color--blue-700); box-shadow: 0 10px 15px -3px rgb(59 130 246 / 0.5); }
.kl-hero .is-style-kl-whatsapp .wp-block-button__link { background: var(--wp--preset--color--green-600); }
.kl-hero .is-style-kl-whatsapp .wp-block-button__link:hover { background: #15803d; }

/* Ícones dos botões (Estilos do bloco Botão). */
[class*="is-style-kl-"].wp-block-button .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: var(--kl-icon) center / contain no-repeat;
	mask: var(--kl-icon) center / contain no-repeat;
}
.is-style-kl-linkedin { --kl-icon: url(icons/linkedin.svg); }
.is-style-kl-github   { --kl-icon: url(icons/github.svg); }
.is-style-kl-email    { --kl-icon: url(icons/mail.svg); }
.is-style-kl-whatsapp { --kl-icon: url(icons/message-circle.svg); }

/* Números */
.kl-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	max-width: 48rem;
}
.kl-stats > * { margin: 0 !important; }

.kl-stat {
	padding: 1rem;
	text-align: center;
	border-radius: 0.5rem;
	border: 1px solid rgb(255 255 255 / 0.2);
	background: rgb(255 255 255 / 0.1);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.kl-stat > * { margin: 0 !important; }
.kl-stat-number { font-size: 1.875rem; font-weight: 700; line-height: 1.2; color: #93c5fd; }
.kl-stat-label  { margin-top: 0.25rem !important; font-size: var(--wp--preset--font-size--sm); color: #dbeafe; }

@media (min-width: 768px) {
	.kl-hero { padding-block: 8rem; }
	.kl-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.kl-card {
	padding: 2rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--slate-200);
	border-radius: 1rem;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	transition: box-shadow 0.2s;
}
.kl-card > * { margin-block: 0; }
.kl-card > * + * { margin-block-start: 1rem; }

.kl-card p { color: var(--wp--preset--color--slate-700); }
.kl-card--about p { font-size: var(--wp--preset--font-size--lg); line-height: 1.7; }
.kl-card--about > * + * { margin-block-start: 1.5rem; }

.kl-stack-list { display: flex; flex-direction: column; gap: 2rem; }
.kl-stack-list > * { margin: 0 !important; }
.kl-stack-list--sm { gap: 1.5rem; }
.kl-stack-list .kl-card:hover { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

.kl-card-head { gap: 0.5rem 1.5rem; }
.kl-card-head > * { margin: 0 !important; }
.kl-card h3.wp-block-heading { margin: 0; font-size: var(--wp--preset--font-size--xx-large); }

.kl-card .kl-period { color: var(--wp--preset--color--blue-600); font-weight: 600; }

.kl-card .kl-company { font-size: var(--wp--preset--font-size--lg); font-weight: 600; color: var(--wp--preset--color--slate-700); }
.kl-card .kl-company a { color: var(--wp--preset--color--blue-600); text-decoration: none; }
.kl-card .kl-company a:hover { color: var(--wp--preset--color--blue-800); }

.kl-card .kl-desc { color: var(--wp--preset--color--slate-600); }

.kl-card .kl-label {
	margin-block-start: 1.5rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	color: var(--wp--preset--color--slate-600);
}
.kl-card .kl-label + .kl-tags { margin-block-start: 0.5rem; }

/* Tags de stack (bloco Lista) */
.kl-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	list-style: none;
}
.kl-tags li {
	margin: 0;
	padding: 0.25rem 0.75rem;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	color: var(--wp--preset--color--blue-800);
	background: var(--wp--preset--color--blue-100);
	border-radius: 9999px;
}

/* Tópicos (bloco Lista) */
.kl-bullets {
	margin-block-start: 1.5rem !important;
	padding: 0;
	list-style: none;
	color: var(--wp--preset--color--slate-700);
}
.kl-bullets li {
	position: relative;
	padding-left: 1.5rem;
	line-height: 1.6;
}
.kl-bullets li + li { margin-top: 0.75rem; }
.kl-bullets li::before {
	content: "•";
	position: absolute;
	left: 0.25rem;
	color: var(--wp--preset--color--blue-600);
}

/* Grade de tecnologias (bloco Lista) */
.kl-tech-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kl-tech-grid li {
	margin: 0;
	padding: 1rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	color: var(--wp--preset--color--slate-700);
	background: #fff;
	border: 1px solid var(--wp--preset--color--slate-200);
	border-radius: 0.5rem;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	transition: box-shadow 0.2s, border-color 0.2s;
}
.kl-tech-grid li:hover {
	border-color: var(--wp--preset--color--blue-300);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@media (min-width: 768px) {
	.kl-card { padding: 2.5rem; }
	.kl-card--about { padding: 3rem; }
	.kl-tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.kl-tech-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Card em destaque (projeto) */
.kl-card--featured {
	color: #fff;
	background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
	border-color: var(--wp--preset--color--blue-700);
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
.kl-card--featured h3.wp-block-heading { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
.kl-card--featured p { color: #eff6ff; line-height: 1.7; }
.kl-card--featured .kl-featured-sub { font-size: var(--wp--preset--font-size--xl); font-weight: 600; color: #dbeafe; }
.kl-card--featured .kl-label { color: #bfdbfe; }
.kl-card--featured .kl-tags li {
	color: #fff;
	background: rgb(255 255 255 / 0.2);
	border: 1px solid rgb(255 255 255 / 0.3);
}
.kl-featured-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-block-start: 1.5rem !important;
	padding-top: 1rem;
	border-top: 1px solid rgb(96 165 250 / 0.3);
}
.kl-featured-stats > *,
.kl-featured-stats > * > * { margin: 0 !important; }
.kl-card--featured .kl-featured-number { font-size: 1.875rem; font-weight: 700; line-height: 1.2; color: #fff; }
.kl-card--featured .kl-featured-label  { font-size: var(--wp--preset--font-size--sm); color: #bfdbfe; }

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

.kl-footer {
	padding: 3rem 1.5rem;
	color: #fff;
	background: var(--wp--preset--color--slate-900);
}
.kl-footer-top { gap: 1.5rem; }
.kl-footer-top > * { margin: 0 !important; }
.kl-footer-brand > * { margin: 0; }
.kl-footer .kl-footer-name { font-size: var(--wp--preset--font-size--xx-large); font-weight: 700; margin-bottom: 0.5rem; }
.kl-footer .kl-footer-role { color: var(--wp--preset--color--slate-400); }

.kl-footer .kl-social { gap: 1rem; }
.kl-footer .kl-social .wp-social-link {
	color: #fff;
	background: var(--wp--preset--color--slate-800);
	border-radius: 0.5rem;
	transition: background-color 0.2s;
}
.kl-footer .kl-social .wp-social-link a { padding: 0.75rem; }
.kl-footer .kl-social .wp-social-link svg { width: 1.5rem; height: 1.5rem; }
.kl-footer .kl-social .wp-social-link:hover { background: var(--wp--preset--color--blue-600); transform: none; }
.kl-footer .kl-social .kl-social-whatsapp:hover { background: var(--wp--preset--color--green-600); }

.kl-footer .kl-footer-copy {
	margin: 2rem 0 0;
	padding-top: 2rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate-400);
	border-top: 1px solid var(--wp--preset--color--slate-800);
}

@media (max-width: 767px) {
	.kl-footer-top { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------------------
   Animações
   -------------------------------------------------------------------------- */

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}
