/*
Theme Name: Kayce
Theme URI: https://wpkayce.io
Author: Rohit KC
Author URI: https://wpkayce.io
Description: Kayce is a clean, modern, and lightweight block theme built for WordPress developers and agencies. Showcase your custom plugins and development services with a rich purple palette, full-site editing, and zero compromises on performance. Translation ready, accessibility ready, and WordPress.org compatible.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
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: wpkayce
Tags: blog, portfolio, full-site-editing, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, one-column, translation-ready, wide-blocks, accessibility-ready
*/

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/* === Layout === */
.site-main {
	padding-top: var(--wp--preset--spacing--90);
	padding-bottom: var(--wp--preset--spacing--90);
}

.site-main.is-flush {
	padding-top: 0;
	padding-bottom: 0;
}

/* === Sticky Header === */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--40);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background-color: rgba(255, 255, 255, 0.92) !important;
	border-bottom: 1px solid rgba(192, 132, 252, 0.2);
}

/* === Footer === */
.site-footer {
	padding-top: var(--wp--preset--spacing--90);
	padding-bottom: var(--wp--preset--spacing--70);
}

.site-footer a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.kayce-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: var(--wp--preset--spacing--50);
}

/* === Section wrapper (patterns) === */
.kayce-section {
	padding: var(--wp--preset--spacing--90) var(--wp--preset--spacing--50);
}

/* === Eyebrow label === */
.kayce-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* === Badge pill === */
.kayce-badge {
	display: block;
	width: fit-content;
	margin-inline: auto;
	padding: 0.5rem 1.25rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* === Cards === */
.kayce-card {
	border: 1px solid rgba(192, 132, 252, 0.22);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card {
	border: 1px solid rgba(192, 132, 252, 0.22);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--60);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kayce-card:hover,
.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

/* === Panel (service row) === */
.kayce-panel {
	border-radius: 12px;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}

/* === Icon box === */
.kayce-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	font-size: 1.75rem;
	line-height: 1;
}

/* === CTA box === */
.kayce-cta-box {
	border-radius: 24px;
	padding: var(--wp--preset--spacing--90) var(--wp--preset--spacing--70);
}

/* === 404 code === */
.kayce-404-code {
	font-size: clamp(5rem, 14vw, 8rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

/* === Buttons === */
.wp-block-button__link {
	transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* === Navigation === */
.wp-block-navigation a:hover {
	color: var(--wp--preset--color--primary);
}

/* === Accessibility === */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	top: -9999rem;
	left: 0.5rem;
	z-index: 999999;
	padding: 0.625rem 1.25rem;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 0 0 6px 6px;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
}

.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(--wp--preset--color--base);
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.25);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--contrast);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 0.875rem 1.5rem;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
