/*
Theme Name: K2 Rec
Theme URI: https://k2rec.com
Author: K2 Rec
Author URI: https://k2rec.com
Description: Tema de blocos do site institucional da K2 Rec: home com o portfólio do grupo, páginas de marca, Temas WordPress, Anuncie, Sobre + Imprensa, Contato e K2 Rec Games. Fundo escuro, azul K2 e as cores dos selos. Formulários próprios (contato, proposta de anúncio e lista de espera) e feed "Agora no grupo" com os sites e canais. Ajustes em Aparência → Opções K2 Rec.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
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: k2rec
Tags: business, portfolio, full-site-editing, block-patterns, dark
*/

/*
 * Quase todo o visual está em theme.json. Aqui ficam as peças das seções (classes k2-*), usadas
 * pelos padrões: assim o texto continua editável no editor e o desenho não se perde.
 */

:root {
	color-scheme: dark;
	--k2-line: var(--wp--preset--color--line);
	--k2-surface: var(--wp--preset--color--surface);
	--k2-radius: 20px;
	--k2-radius-lg: 28px;
}

body { -webkit-font-smoothing: antialiased; }
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent-light); outline-offset: 3px; }

/* ---------- Topo ---------- */
.k2-header {
	border-bottom: 1px solid var(--k2-line);
	background: rgba(11, 13, 18, 0.86);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .k2-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .k2-header { top: 0; position: relative; } }
.k2-header .wp-block-site-logo img { border-radius: 10px; }
.k2-header .wp-block-navigation-item__content { padding: 12px 0; }
.k2-nav-cta > .wp-block-navigation-item__content {
	padding: 12px 20px !important;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: #fff !important;
	font-weight: 600;
}
.k2-nav-cta > .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--accent-dark); }
.k2-header .current-menu-item > a,
.k2-header [aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.k2-nav-cta [aria-current="page"] { text-decoration: none; box-shadow: 0 0 0 2px var(--wp--preset--color--accent-light); }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	padding: 24px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 22px; }

/* ---------- Texto ---------- */
.k2-eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-light);
	margin: 0;
}
.k2-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: var(--wp--preset--color--contrast-2); max-width: 620px; }
.k2-muted { color: var(--wp--preset--color--contrast-2); }
.k2-small { font-size: 14px; color: var(--wp--preset--color--contrast-3); }
.k2-center { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.k2-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.k2-section > * + * { margin-top: 0; }
.k2-section-head { margin-bottom: 40px !important; gap: 12px; }

/* ---------- Botões ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid #343B4D;
	color: var(--wp--preset--color--contrast);
	padding: 14px 25px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--accent-light); background: transparent; }
.wp-block-button.is-style-k2-light > .wp-block-button__link { background: #fff; color: var(--wp--preset--color--accent-dark); }
.wp-block-button.is-style-k2-light > .wp-block-button__link:hover { background: #E6EEFF; }

/* ---------- Abertura (home) ---------- */
.k2-hero { padding-top: clamp(56px, 8vw, 96px) !important; padding-bottom: clamp(48px, 7vw, 80px) !important; }
.k2-hero .wp-block-columns { gap: 56px; align-items: center; }
.k2-hero h1 { margin: 20px 0; }

.k2-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.k2-tile {
	aspect-ratio: 1;
	border-radius: var(--k2-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: clamp(14px, 1.4vw, 18px);
	line-height: 1.1;
	color: #fff;
	text-decoration: none;
}
a.k2-tile:hover { color: inherit; transform: translateY(-2px); transition: transform .15s ease; }
.k2-tile small { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 12px; padding-top: 4px; }
.k2-tile--logo { padding: 0; overflow: hidden; }
.k2-tile--logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k2-tile--outline { background: var(--k2-surface); border: 1px solid #2A3142; }
.k2-tile--soon { border: 1px dashed #3A4256; color: var(--wp--preset--color--contrast-2); }

/* Cores das marcas (fundo + texto com contraste). */
.k2-cor-kftv { background: #6127E1; color: #fff; }
.k2-cor-music { background: #F0148C; color: #0B0D12; }
.k2-cor-show { background: #6BE01B; color: #0B0D12; }
.k2-cor-cortes { background: #FF6B1A; color: #0B0D12; }
.k2-cor-k2 { background: #1F5BD6; color: #fff; }
.k2-cor-games { background: #2A3142; color: #F2F4F8; }

/* ---------- Faixa de números ---------- */
.k2-band { background: var(--wp--preset--color--base-2); border-top: 1px solid var(--k2-line); border-bottom: 1px solid var(--k2-line); }
.k2-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.k2-stats > * { margin: 0 !important; }
.k2-stat-num { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 40px; line-height: 1.1; margin: 0 0 6px !important; }
.k2-stat-label { font-size: 15px; color: var(--wp--preset--color--contrast-2); margin: 0 !important; }
.k2-tags { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 40px; }
.k2-tags > * { margin: 0 !important; }

/* ---------- Grades e cartões ---------- */
.k2-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.k2-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.k2-grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.k2-grid > *, .k2-stats > *, .k2-mosaic > * { margin: 0 !important; }

.is-style-k2-card, .k2-card {
	background: var(--k2-surface);
	border: 1px solid var(--k2-line);
	border-radius: var(--k2-radius);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.is-style-k2-card > *, .k2-card > * { margin: 0 !important; }
.k2-card h3 { font-size: var(--wp--preset--font-size--x-large); }
.k2-card .k2-arrow-link { margin-top: auto !important; }
.k2-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.k2-sigla {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 16px;
	flex: 0 0 auto;
}
.k2-sigla--big { width: 112px; height: 112px; border-radius: 28px; font-size: 30px; background: #fff; color: var(--k2-marca, #6127E1); }

.k2-pill {
	display: block;
	width: fit-content;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	background: #1C2130;
	color: #C9CFDB;
	line-height: 1.3;
}
.k2-pill--lg { font-size: 14px; padding: 8px 14px; font-weight: 500; }
.k2-card > .k2-pill { align-self: flex-start; }
.k2-pill.has-text-align-center { margin-left: auto !important; margin-right: auto !important; }

.k2-jogo { flex-direction: row; align-items: center; padding: 18px; gap: 14px; }
.k2-jogo .k2-sigla { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; }
.k2-jogo p:last-child { font-weight: 600; font-size: 15px; line-height: 1.3; }
.k2-hero .k2-form--inline { max-width: 560px; margin: 16px auto 0; }

.k2-arrow-link { font-size: 15px; font-weight: 600; text-decoration: none; }
.k2-arrow-link a { text-decoration: none; }
.k2-arrow-link a::after, a.k2-arrow-link::after { content: " →"; }

/* ---------- Painéis grandes ---------- */
.k2-panel { border-radius: var(--k2-radius-lg); padding: clamp(28px, 5vw, 48px) !important; }
.k2-panel > * { margin-top: 0; }
.k2-panel--accent { background: var(--wp--preset--color--accent); }
.k2-panel--accent .k2-lead, .k2-panel--accent p { color: #DCE7FF; }
.k2-panel--kftv { background: #6127E1; }
.k2-panel--kftv p { color: #EDE6FF; }
.k2-panel--light { background: var(--wp--preset--color--light); color: var(--wp--preset--color--ink); }
.k2-panel--light h2, .k2-panel--light h3 { color: var(--wp--preset--color--ink); }
.k2-panel--light p { color: #3D4454; }
.k2-panel--light .k2-eyebrow { color: var(--wp--preset--color--accent-dark); }
.k2-panel--surface { background: var(--k2-surface); border: 1px solid var(--k2-line); }
.k2-panel--dashed { border: 1px dashed #3A4256; }
.k2-panel .wp-block-columns { gap: 32px; align-items: center; margin: 0; }
.k2-panel--kftv .k2-eyebrow { color: #E4D9FF; }
.k2-panel--accent .k2-eyebrow { color: #DCE7FF; }

.k2-mock {
	border-radius: 14px;
	background: #fff;
	border: 1px solid #D5DAE3;
	overflow: hidden;
	color: #5B6374;
	font-size: 13px;
}
.k2-mock::before {
	content: "";
	display: block;
	height: 30px;
	border-bottom: 1px solid #E3E7EE;
	background: radial-gradient(circle at 17px 15px, #D5DAE3 5px, transparent 6px), radial-gradient(circle at 35px 15px, #D5DAE3 5px, transparent 6px), radial-gradient(circle at 53px 15px, #D5DAE3 5px, transparent 6px);
}
.k2-mock img { display: block; width: 100%; height: auto; }
.k2-mock .k2-mock-empty { min-height: 150px; display: flex; align-items: center; justify-content: center; margin: 0; }
.k2-phone {
	width: 180px;
	min-height: 340px;
	border-radius: 32px;
	background: #1B1530;
	border: 6px solid #0B0D12;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #B9A8E8;
	font-size: 13px;
	margin: 0 auto;
}
.k2-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Página de marca ---------- */
.k2-marca--kftv { --k2-marca: #6127E1; }
.k2-marca--music { --k2-marca: #F0148C; }
.k2-marca--show { --k2-marca: #6BE01B; }
.k2-marca--cortes { --k2-marca: #FF6B1A; }
.k2-marca--k2 { --k2-marca: #1F5BD6; }
.k2-tinta-escura .k2-sigla--big { background: #0B0D12; color: var(--k2-marca); }
.k2-marca-hero { background: var(--k2-marca, #6127E1); padding-top: clamp(48px, 7vw, 72px) !important; padding-bottom: clamp(56px, 8vw, 80px) !important; }
.k2-marca-hero p { color: rgba(255, 255, 255, 0.86); }
.k2-marca-hero.k2-tinta-escura, .k2-marca-hero.k2-tinta-escura h1, .k2-marca-hero.k2-tinta-escura p, .k2-marca-hero.k2-tinta-escura a { color: #0B0D12; }
.k2-marca-hero .k2-back a { color: inherit; text-decoration: none; font-size: 14px; font-weight: 500; }
.k2-marca-hero .k2-back a::before { content: "← "; }
.k2-marca-id { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin: 28px 0 !important; }
.k2-marca-id > div { flex: 1 1 420px; min-width: 0; }
.k2-marca-id h1 { margin: 8px 0 12px; }
.k2-marca-hero .wp-block-button__link { background: #fff; color: #0B0D12; }
.k2-marca-hero .is-style-outline .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }
.k2-links { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.k2-links li { margin: 0; }
.k2-links a {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	padding: 14px 20px;
	border-radius: 14px;
	background: var(--k2-surface);
	border: 1px solid var(--k2-line);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 500;
}
.k2-links a span { font-size: 13px; color: var(--wp--preset--color--contrast-3); }
.k2-links a:hover { border-color: var(--wp--preset--color--accent-light); }

/* ---------- Feed "Agora no grupo" ---------- */
.k2-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.k2-feed-item { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--wp--preset--color--contrast); }
.k2-feed-item:hover { color: #fff; }
.k2-feed-item:hover .k2-feed-title { text-decoration: underline; }
.k2-thumb { aspect-ratio: 16 / 9; border-radius: 14px; background: #171B25; border: 1px solid var(--k2-line); overflow: hidden; }
.k2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k2-feed-source { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.k2-feed-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.k2-feed-time { font-size: 13px; color: var(--wp--preset--color--contrast-3); }
.k2-feed-empty { color: var(--wp--preset--color--contrast-3); font-size: 15px; }

/* ---------- Planos ---------- */
.k2-plan { gap: 18px; }
.k2-plan .k2-price { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 36px; line-height: 1.1; }
.k2-plan ul { padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; flex-grow: 1; }
.k2-plan .wp-block-buttons { margin-top: auto !important; }
.k2-plan .wp-block-button, .k2-plan .wp-block-button__link { width: 100%; text-align: center; }
.k2-plan--featured { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); }
.k2-plan--featured p, .k2-plan--featured li { color: #DCE7FF; }
.k2-plan--featured .wp-block-button__link { background: #fff; color: var(--wp--preset--color--accent-dark); }
.k2-plan:not(.k2-plan--featured) .wp-block-button__link { background: var(--wp--preset--color--light); color: var(--wp--preset--color--ink); }

/* ---------- Recursos ---------- */
.k2-feature { background: var(--wp--preset--color--base); }
.k2-feature h3 { font-family: var(--wp--preset--font-family--body); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.k2-feature p { font-size: 15px; color: var(--wp--preset--color--contrast-2); }
.k2-feature::before {
	content: "";
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #16233F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239CC2FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- Perguntas ---------- */
.k2-faq details, details.wp-block-details {
	border-radius: 16px;
	background: var(--k2-surface);
	border: 1px solid var(--k2-line);
	padding: 20px 24px;
	margin-bottom: 12px;
}
details.wp-block-details summary { cursor: pointer; font-size: 17px; font-weight: 600; }
details.wp-block-details > *:not(summary) { color: var(--wp--preset--color--contrast-2); font-size: 15px; margin-top: 12px; }

/* ---------- Linha do tempo ---------- */
.k2-timeline { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.k2-timeline > * { margin: 0 !important; padding-top: 20px; border-top: 3px solid var(--wp--preset--color--accent-light); display: flex; flex-direction: column; gap: 8px; }
.k2-timeline > *:nth-child(5n+1) { border-color: #6127E1; }
.k2-timeline > *:nth-child(5n+2) { border-color: #F0148C; }
.k2-timeline > *:nth-child(5n+3) { border-color: #1F5BD6; }
.k2-timeline > *:nth-child(5n+4) { border-color: #6BE01B; }
.k2-timeline > *:nth-child(5n+5) { border-color: #FF6B1A; }
.k2-timeline .k2-year { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 28px; margin: 0; }
.k2-timeline p { margin: 0; font-size: 15px; color: #C9CFDB; }

.k2-swatches { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.k2-swatches li { display: flex; align-items: center; gap: 14px; margin: 0; font-weight: 600; font-size: 15px; }
.k2-swatches li span { font-weight: 400; font-size: 13px; color: var(--wp--preset--color--contrast-3); }
.k2-swatches li::before { content: ""; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2A3142; background: var(--sw); flex: 0 0 auto; }

.k2-quote-box { padding: 20px; border-radius: 14px; background: var(--wp--preset--color--base); border: 1px solid var(--k2-line); color: #C9CFDB; font-size: 15px; line-height: 1.7; }

/* ---------- Formulários ---------- */
.k2-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.k2-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--wp--preset--color--contrast-2); }
.k2-form .k2-full { grid-column: 1 / -1; }
.k2-form input[type="text"], .k2-form input[type="email"], .k2-form input[type="tel"], .k2-form input[type="url"], .k2-form select, .k2-form textarea {
	min-height: 50px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid #343B4D;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 16px;
	width: 100%;
	box-sizing: border-box;
}
.k2-form textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.k2-form input:focus, .k2-form select:focus, .k2-form textarea:focus { border-color: var(--wp--preset--color--accent-light); outline: none; }
.k2-form button {
	justify-self: start;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	border: 0;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}
.k2-form button:hover { background: var(--wp--preset--color--accent-dark); }
.k2-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.k2-form--inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.k2-form--inline label { flex: 1 1 240px; }
.k2-form--inline button { background: var(--wp--preset--color--light); color: var(--wp--preset--color--ink); border-radius: 12px; }
.k2-form--inline button:hover { background: #fff; }
.k2-form--inline.k2-form--accent button { background: var(--wp--preset--color--accent); color: #fff; }
.k2-form--inline.k2-form--accent button:hover { background: var(--wp--preset--color--accent-dark); }

.k2-topics { grid-column: 1 / -1; border: 0; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.k2-topics legend { font-size: 13px; color: var(--wp--preset--color--contrast-2); margin-bottom: 8px; padding: 0; }
.k2-topics label { position: relative; cursor: pointer; padding: 18px; border-radius: 16px; background: var(--wp--preset--color--base); border: 2px solid var(--k2-line); gap: 6px; }
.k2-topics input { position: absolute; opacity: 0; pointer-events: none; }
.k2-topics strong { font-family: var(--wp--preset--font-family--display); font-size: 18px; color: var(--wp--preset--color--contrast); }
.k2-topics label:has(input:checked) { border-color: var(--wp--preset--color--accent); background: #16233F; }
.k2-topics label:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--accent-light); outline-offset: 2px; }

.k2-notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 12px; font-size: 15px; margin: 0 0 4px; }
.k2-notice--ok { background: #0F2A1A; border: 1px solid #1E7A34; color: #B8F0C8; }
.k2-notice--erro { background: #2A1013; border: 1px solid #A8141C; color: #FFC9CC; }

/* ---------- Rodapé ---------- */
.k2-footer { border-top: 1px solid var(--k2-line); background: #08090D; font-size: 14px; }
.k2-footer .wp-block-columns { gap: 40px; }
.k2-footer h2 { font-family: var(--wp--preset--font-family--body); font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.k2-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.k2-footer a { color: var(--wp--preset--color--contrast-2); text-decoration: none; }
.k2-footer a:hover { color: #fff; }
.k2-footer .k2-footer-brand img { border-radius: 9px; }
.k2-footer-bottom { border-top: 1px solid #1A1E29; font-size: 13px; color: var(--wp--preset--color--contrast-3); }

@media (max-width: 600px) {
	.k2-hero .wp-block-buttons, .k2-panel .wp-block-buttons { width: 100%; }
	.k2-stat-num { font-size: 32px; }
}
