/*
Theme Name: Tomas Vlcko SEM Consulting
Theme URI: https://tomasvlcko.com
Author: Tomas Vlcko
Author URI: https://tomasvlcko.com
Description: Single-page theme for a freelance performance marketing consultant. Mobile-first, self-hosted font, no third-party requests, no page builder.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomasvlcko
*/

/* ==========================================================================
   Font (self-hosted, SIL OFL: see assets/fonts/OFL-Archivo.txt)
   ========================================================================== */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--cobalt: #2338ff;
	--ink: #0b0f2a;
	--paper: #eef0f5;
	--signal: #ff4d2e;

	--font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;

	--gutter: clamp(1.25rem, 4.5vw, 3rem);
	--maxw: 76rem;
	--header-h: 4rem;
	--band-y: clamp(4.5rem, 10vw, 9rem);
}

body.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar: 46px; } }

/* Band themes: every section sets its own colour context */
.band--cobalt { --bg: var(--cobalt); --fg: #fff; --muted: rgba(255, 255, 255, 0.84); --line: rgba(255, 255, 255, 0.3); }
.band--ink    { --bg: var(--ink);    --fg: #fff; --muted: rgba(255, 255, 255, 0.74); --line: rgba(255, 255, 255, 0.2); }
.band--paper  { --bg: var(--paper);  --fg: var(--ink); --muted: #474d6b; --line: rgba(11, 15, 42, 0.22); }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--adminbar, 0px) + 1rem);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--font);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible { outline: 3px solid var(--fg, #fff); outline-offset: 3px; }

h1, h2, h3 {
	margin: 0;
	font-weight: 800;
	font-stretch: 68%;
	line-height: 1;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.1rem;
	clip-path: none;
	background: #fff;
	color: var(--ink);
	font-weight: 700;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--maxw));
	margin-inline: auto;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.75rem 1.6rem;
	border: 2px solid transparent;
	border-radius: 6px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #fff; color: var(--ink); }

.btn--outline { border-color: currentColor; color: inherit; }
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--small { min-height: 2.75rem; padding: 0.5rem 1.1rem; }

.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
	--fg: #fff;
	position: sticky;
	top: var(--adminbar, 0px);
	z-index: 50;
	background: var(--cobalt);
	color: #fff;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.3); }

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	text-decoration: none;
}

.brand-mark { flex: none; width: 3.625rem; height: 2.5rem; }

.brand-name {
	font-size: 1.5rem;
	font-weight: 900;
	font-stretch: 62%;
	letter-spacing: 0.01em;
	line-height: 1;
	text-transform: uppercase;
}

.brand-role { display: none; font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.84); }
@media (min-width: 640px) { .brand-role { display: inline; } }

.custom-logo { width: auto; max-height: 2.25rem; }

.nav-toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	margin-right: -0.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 1.5rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s, background-color 0.15s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; padding-bottom: 1rem; }

.menu { margin: 0; padding: 0; list-style: none; }
.menu a {
	display: block;
	padding: 0.35rem 0;
	color: #fff;
	font-size: 2.25rem;
	font-weight: 800;
	font-stretch: 68%;
	line-height: 1.1;
	text-decoration: none;
}
.menu a:hover,
.menu .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 3px; }

/* Mobile: full-screen panel, only when JS can open it */
@media (max-width: 899px) {
	.js .nav-panel {
		position: fixed;
		inset: calc(var(--header-h) + var(--adminbar, 0px)) 0 0 0;
		z-index: 40;
		gap: 2rem;
		width: auto;
		padding: 1.5rem var(--gutter) 2.5rem;
		overflow-y: auto;
		background: var(--cobalt);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-0.5rem);
		transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
	}
	.js .nav-open .nav-panel {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s, transform 0.2s, visibility 0s;
	}
	.nav-open { overflow: hidden; }
}

@media (min-width: 900px) {
	.js .nav-toggle { display: none; }
	.nav-panel { flex-direction: row; align-items: center; gap: 2rem; width: auto; padding-bottom: 0; }
	.menu { display: flex; gap: 1.75rem; }
	.menu a { padding: 0.5rem 0; font-size: 1rem; font-weight: 600; font-stretch: 100%; }
	.menu a:hover, .menu .current-menu-item > a { text-decoration-thickness: 2px; }
}

/* ==========================================================================
   Sections: shared
   ========================================================================== */
.band { background: var(--bg); color: var(--fg); padding-block: var(--band-y); }

.band-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.band-head h2, .split-head h2 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
.band-sub { max-width: 34rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.15rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }

.hero-grid { display: grid; gap: 2.5rem; }

.hero-title {
	margin: 0;
	font-size: min(16vw, 5rem);
	font-weight: 900;
	font-stretch: 62%;
	letter-spacing: -0.01em;
	line-height: 0.86;
	text-transform: uppercase;
}

.hero-lead {
	max-width: 30rem;
	margin: 1.75rem 0 0;
	color: var(--muted);
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	line-height: 1.5;
}

.partner-badge {
	display: inline-block;
	margin-bottom: 1.75rem;
	padding: 0.5rem;
	border-radius: 8px;
	background: #fff;
	line-height: 0;
}
.partner-badge img { width: 7.5rem; height: auto; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.channels {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 2rem;
	margin: 3rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
	font-weight: 700;
}

/* Hang tag */
.hero-tag {
	--string: 2.5rem;
	--hole: 1.6rem;
	position: relative;
	justify-self: center;
	width: min(100%, 19rem);
	margin-top: -1.5rem;
	padding-top: var(--string);
}

.hero-tag::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: calc(var(--string) + var(--hole));
	background: #fff;
	transform: translateX(-1px);
}

.tag {
	position: relative;
	padding: 3.4rem 1rem 1.25rem;
	background: var(--paper);
	clip-path: polygon(14% 0, 86% 0, 100% 8%, 100% 100%, 0 100%, 0 8%);
	color: var(--ink);
	transform: rotate(-2deg);
	transform-origin: 50% var(--hole);
	animation: tag-swing 2.6s cubic-bezier(0.3, 0.1, 0.3, 1) 0.3s both;
}

.tag::before {
	content: "";
	position: absolute;
	top: calc(var(--hole) - 0.65rem);
	left: 50%;
	width: 1.3rem;
	height: 1.3rem;
	margin-left: -0.65rem;
	border-radius: 50%;
	background: linear-gradient(#fff, #fff) 50% 0 / 2px 55% no-repeat, var(--cobalt);
	box-shadow: inset 0 0 0 3px #d3d8e8;
}

@keyframes tag-swing {
	0%   { transform: rotate(7deg); }
	22%  { transform: rotate(-5deg); }
	44%  { transform: rotate(3.5deg); }
	66%  { transform: rotate(-3deg); }
	85%  { transform: rotate(-1.4deg); }
	100% { transform: rotate(-2deg); }
}

.tag-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.tag-photo img { width: 100%; height: 100%; object-fit: cover; }
.tag-photo--empty {
	display: grid;
	place-items: center;
	color: var(--paper);
	font-size: 5.5rem;
	font-weight: 900;
	font-stretch: 62%;
	line-height: 1;
}

.tag-name {
	margin: 1rem 0 0.5rem;
	font-size: 1.9rem;
	font-weight: 900;
	font-stretch: 62%;
	line-height: 1;
	text-transform: uppercase;
}

.tag-lines { margin: 0; padding: 0; list-style: none; font-size: 0.95rem; font-weight: 700; }
.tag-lines li { padding: 0.45rem 0; border-top: 1px solid rgba(11, 15, 42, 0.3); }
.tag-lines a { text-decoration: none; }
.tag-lines a:hover { text-decoration: underline; }

@media (min-width: 900px) {
	.hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 4rem; }
	.hero-title { font-size: clamp(4.5rem, 8.5vw, 7rem); }
	.hero-tag {
		--string: calc(clamp(2.5rem, 6vw, 5rem) + 2rem);
		justify-self: end;
		margin-top: calc(-1 * clamp(2.5rem, 6vw, 5rem));
	}
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) {
	.about-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; gap: 5rem; }
}

.about-copy h2 { font-size: clamp(2.5rem, 7vw, 4.75rem); margin-bottom: 1.75rem; }
.about-copy p { max-width: 36rem; }
.about-copy p:first-of-type { font-size: 1.25rem; }

.facts { margin: 0; }
.facts > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 900;
	font-stretch: 62%;
	line-height: 1;
	text-align: right;
}

.certs { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.certs p { margin: 0; }
.certs .certs-label { margin-bottom: 0.25rem; color: var(--muted); font-weight: 500; }
.certs a { font-size: 1.25rem; font-weight: 700; }

/* ==========================================================================
   Services
   ========================================================================== */
.split-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.split-head .band-sub { max-width: 30rem; }

.services { margin: 0; padding: 0; list-style: none; }

.service { display: grid; gap: 1.5rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }

.service h3 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
.service p { max-width: 30rem; margin: 1rem 0 0; color: var(--muted); }

.service-points { margin: 0; padding: 0; list-style: none; }
.service-points li { padding: 0.7rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.service-points li:first-child { padding-top: 0; border-top: 0; }

@media (min-width: 900px) {
	.service { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 5rem; padding: 3rem 0; }
	.service-points li:first-child { padding-top: 0.2rem; }
}

/* ==========================================================================
   Clients
   ========================================================================== */
.wall {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--line);
	list-style: none;
}
.wall li {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 7.5rem;
	padding: 1.5rem 1rem;
	border-top: 1px solid var(--line);
	font-size: 1.75rem;
	font-weight: 900;
	font-stretch: 62%;
	line-height: 1.05;
	text-align: center;
}
.wall img {
	width: auto;
	height: auto;
	max-width: min(70%, 9rem);
	max-height: 4.5rem;
	object-fit: contain;
	opacity: 0.5;
	transition: opacity 0.25s;
}
.wall li:hover img { opacity: 1; }
@media (hover: none) { .wall img { opacity: 0.8; } }

@media (min-width: 640px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) {
	.contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 5rem; }
}

.contact-grid--solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact-grid--solo { grid-template-columns: minmax(0, 1fr); } }

.contact-copy h2 { font-size: clamp(2.5rem, 7vw, 4.75rem); margin-bottom: 1.5rem; }
.contact-copy p { max-width: 30rem; color: var(--muted); font-size: 1.15rem; }

.contact-details { margin: 2.5rem 0 0; }
.contact-details > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-details dt { color: var(--muted); font-size: 0.95rem; }
.contact-details dd {
	margin: 0.15rem 0 0;
	font-size: clamp(1.4rem, 3.5vw, 2rem);
	font-weight: 800;
	font-stretch: 75%;
	line-height: 1.15;
	overflow-wrap: anywhere;
}
.contact-details a { text-decoration-thickness: 2px; }

.field { display: block; margin-bottom: 1.5rem; }
.field > span { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.field input,
.field textarea {
	display: block;
	width: 100%;
	padding: 0.7rem 0;
	border: 0;
	border-bottom: 2px solid rgba(255, 255, 255, 0.65);
	border-radius: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 1.0625rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { border-bottom-color: #fff; outline: 3px solid #fff; outline-offset: 4px; }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }

.consent { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; font-size: 0.95rem; }
.consent input { flex: none; width: 1.35rem; height: 1.35rem; margin: 0.1rem 0 0; accent-color: var(--signal); }

.cf-turnstile { margin-bottom: 1.5rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
	margin-top: 1.25rem;
	padding: 1rem 1.1rem;
	border-left: 6px solid var(--cobalt);
	background: var(--paper);
	color: var(--ink);
	font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-error { border-left-color: var(--signal); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-block: clamp(3rem, 7vw, 5rem) 2rem; }

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); } }

.footer-brand {
	margin: 0 0 0.75rem;
	font-size: 2.25rem;
	font-weight: 900;
	font-stretch: 62%;
	line-height: 1;
	text-transform: uppercase;
}
.footer-blurb { max-width: 24rem; margin: 0; color: var(--muted); }
.footer-title { margin: 0 0 0.5rem; font-weight: 700; }

.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list a { display: inline-block; padding: 0.3rem 0; color: var(--muted); text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.95rem;
}
.footer-bottom p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.legal a { color: var(--muted); }
.legal a:hover { color: #fff; }

/* ==========================================================================
   Inner pages, posts, 404
   ========================================================================== */
.page-head { padding-block: clamp(3rem, 8vw, 6rem); }
.page-title { font-size: clamp(2.75rem, 9vw, 6rem); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: 0.9; }
.page-meta { margin: 1rem 0 0; color: var(--muted); }

.page-body { padding-block: clamp(3rem, 7vw, 6rem); }

.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.25em; }
.prose > :first-child { margin-top: 0; }
/* Neutralise leftover WPBakery grid CSS if the plugin is still active */
.prose .vc_row { margin-right: 0; margin-left: 0; }
.prose .vc_column_container > .vc_column-inner { padding-right: 0; padding-left: 0; }
.prose .wpb_wrapper > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2em; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h3 { margin-top: 1.75em; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.prose a { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 6px solid var(--cobalt); font-size: 1.2rem; }
.prose img { height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.prose pre { overflow-x: auto; padding: 1rem; background: var(--ink); color: #fff; font-size: 0.9rem; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose iframe { max-width: 100%; }

.post-list { margin: 0; padding: 0; list-style: none; }
.post-item { display: grid; gap: 0.75rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.post-item p { max-width: 38rem; margin: 0; color: var(--muted); }
.post-item time { color: var(--muted); font-size: 0.95rem; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.9rem;
	border: 2px solid var(--ink);
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { background: var(--ink); color: #fff; }

.error-actions { margin-top: 2rem; }

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--muted); font-size: 0.9rem; }
