/*
Theme Name: KCreates
Theme URI: https://kcreates.uk
Author: Kieren Cox
Author URI: https://kcreates.uk
Description: Custom theme for KCreates, a Hereford web design studio. Includes the x-ray hero, services, pricing, FAQ, local SEO meta and schema.
Version: 1.2.3
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: kcreates
*/

@font-face {
	font-family: "Inter Tight";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

:root { --accent: #D4FF4A; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0B0B0B; color: #F3F1EC; font-family: "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
a { color: #F3F1EC; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.kc-root { min-height: 100vh; }

.kc-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #0B0B0B; padding: 10px 16px; border-radius: 999px; }
.kc-skip:focus { left: 8px; }

/* Shared */
.lbl { font-family: "JetBrains Mono", monospace; font-size: 13px; }
.tag { border: 1px solid #333; border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.svc:hover .svc-title { color: var(--accent); }
.card:hover .card-img { opacity: .85; }
.card-img { aspect-ratio: 16/10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-home-btn:hover { color: #0B0B0B !important; }
a[style*="background:var(--accent)"]:hover { color: #0B0B0B; filter: brightness(1.05); }
@media (max-width: 760px) { .hide-sm { display: none !important; } .ind { padding-left: 0 !important; } }

/* Accordions (services + FAQ) */
.kc-acc > summary { cursor: pointer; }
.kc-acc > summary::-webkit-details-marker { display: none; }
.kc-acc > summary::marker { content: ""; }
.kc-sign::before { content: "+"; }
.kc-acc[open] .kc-sign::before { content: "\2212"; }

/* Hero x-ray */
.kc-hero { --x: 70%; --y: 40%; }
.kc-glow { background: radial-gradient(circle 340px at var(--x) var(--y), rgba(212, 255, 74, .09), transparent 70%); }
.kc-x { position: absolute; inset: 0; background-image: linear-gradient(rgba(212, 255, 74, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 255, 74, .10) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle 260px at var(--x) var(--y), #000 35%, transparent 100%); mask-image: radial-gradient(circle 260px at var(--x) var(--y), #000 35%, transparent 100%); }
.bp { position: absolute; border: 1px solid rgba(212, 255, 74, .6); }
.bpl, .bpc { position: absolute; top: -19px; left: 0; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #D4FF4A; white-space: nowrap; }
.bpc { top: auto; font-size: 13px; line-height: 1.7; }
.kl { display: inline-block; font-weight: 500; transition: font-weight .25s ease-out; }
.kc-live .kl { transition: none; }
.kc-rot { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.kc-rot > span { display: flex; flex-direction: column; animation: kc-words 10s cubic-bezier(.7, 0, .2, 1) infinite; }
.kc-rot > span > span { height: 1.1em; line-height: 1.1em; }
@keyframes kc-words { 0%, 18% { transform: translateY(0); } 25%, 43% { transform: translateY(-1.1em); } 50%, 68% { transform: translateY(-2.2em); } 75%, 93% { transform: translateY(-3.3em); } 100% { transform: translateY(-4.4em); } }
.kc-mq { display: flex; width: max-content; animation: kc-mq 40s linear infinite; }
@keyframes kc-mq { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .kc-hero { min-height: 100svh !important; } .kc-x .bpc { display: none; } }

/* Menu pill + contact form */
#kc-menu[hidden], #kc-contact[hidden], #kc-sent[hidden], .kc-f-error[hidden] { display: none !important; }
.kc-book { position: fixed !important; top: 64px; right: clamp(20px, 3vw, 40px); width: min(380px, calc(100vw - 40px)); z-index: 40; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.kc-book:hover { color: #F3F1EC; border-color: #3A3A3A !important; }
.kc-coin-wrap { width: 42px; height: 42px; flex: none; perspective: 220px; }
.kc-coin { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; animation: kc-coin 4s linear infinite; }
.kc-coin-face { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #6E6C68; background: #1C1C1C; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; letter-spacing: -.03em; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.kc-coin-back { transform: rotateY(180deg); }
@keyframes kc-coin { to { transform: rotateY(360deg); } }
@media (max-width: 760px) { .kc-book { position: static !important; width: 100%; } }
.kc-stack { width: min(320px, calc(100vw - 32px)); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.kc-stack:has(#kc-contact:not([hidden])), .kc-stack:has(#kc-sent:not([hidden])) { width: min(460px, calc(100vw - 32px)); }
.kc-f label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #9A9893; }
.kc-f input, .kc-f textarea { background: transparent; border: 0; border-bottom: 1px solid #444; border-radius: 0; color: #F3F1EC; font: inherit; font-size: 20px; letter-spacing: -.01em; padding: 6px 0 8px; outline: none; resize: none; }
.kc-f input:focus, .kc-f textarea:focus { border-bottom-color: var(--accent); }
.kc-f-note { margin: -4px 0 0; font-size: 13px; color: #6E6C68; } .kc-f-note a { color: #9A9893; text-decoration: underline; }
.kc-f-error { margin: 0; font-size: 15px; color: #FF8A7A; }
.kc-f-send { background: #F3F1EC; color: #0B0B0B; border-radius: 999px; min-height: 52px; font-size: 17px; font-weight: 600; text-align: center; }
.kc-f-send[disabled] { opacity: .6; cursor: wait; }
.kc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sound toggle */
.kc-sound { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: #9A9893; }
.kc-sound:hover { color: #F3F1EC; }
.kc-sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.kc-sound-bars i { display: block; width: 2px; height: 4px; background: currentColor; }
.kc-sound[aria-pressed="true"] .kc-sound-bars i { animation: kc-eq 1s ease-in-out infinite; }
.kc-sound[aria-pressed="true"] .kc-sound-bars i:nth-child(2) { animation-delay: -.3s; }
.kc-sound[aria-pressed="true"] .kc-sound-bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes kc-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

/* Inner pages */
.kc-topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px clamp(20px, 3vw, 40px); border-bottom: 1px solid #222; }
.kc-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: #0B0B0B; font-weight: 600; font-size: 15px; }
.kc-btn:hover { color: #0B0B0B; filter: brightness(1.05); }
.kc-btn--ghost { background: transparent; color: #F3F1EC; border: 1px solid #444; }
.kc-btn--ghost:hover { color: var(--accent); }
.kc-page { padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(64px, 10vw, 140px); }
.kc-title { margin: 16px 0 0; max-width: 980px; font-size: clamp(36px, 5vw, 72px); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; }
.kc-lead { font-size: 18px; line-height: 1.6; color: #B9B7B1; max-width: 640px; }
.kc-thumb { margin: 40px 0 0; } .kc-thumb img { width: 100%; height: auto; border-radius: 8px; display: block; }
.kc-prose { max-width: 720px; margin-top: 40px; font-size: 18px; line-height: 1.7; color: #D9D7D2; }
.kc-prose h2, .kc-prose h3 { color: #F3F1EC; letter-spacing: -.02em; line-height: 1.2; margin: 1.8em 0 .5em; }
.kc-prose h2 { font-size: 32px; font-weight: 500; } .kc-prose h3 { font-size: 24px; font-weight: 500; }
.kc-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.kc-prose img { height: auto; border-radius: 8px; }
.kc-prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--accent); color: #F3F1EC; }
.kc-prose code, .kc-prose pre { font-family: "JetBrains Mono", monospace; font-size: 15px; background: #161616; border-radius: 6px; }
.kc-prose code { padding: 2px 6px; } .kc-prose pre { padding: 16px; overflow-x: auto; }
.kc-cta { max-width: 720px; margin-top: 64px; padding: 28px; border: 1px solid #2A2A2A; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.kc-cta p { margin: 0; font-size: 18px; }
.kc-list { margin-top: 48px; border-top: 1px solid #2A2A2A; }
.kc-item a { display: block; padding: 28px 0; border-bottom: 1px solid #2A2A2A; }
.kc-item h2 { margin: 8px 0; font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.kc-item p { margin: 0; color: #B9B7B1; line-height: 1.6; max-width: 720px; }
.kc-item a:hover h2 { color: var(--accent); }
.nav-links { display: flex; gap: 8px; margin-top: 32px; } .page-numbers { padding: 8px 14px; border: 1px solid #333; border-radius: 999px; }
.page-numbers.current { background: var(--accent); color: #0B0B0B; border-color: var(--accent); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignwide { max-width: 1080px; } .alignfull { width: 100%; } .wp-caption-text, figcaption { font-size: 14px; color: #9A9893; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kc-rot > span, .kc-mq, .kc-coin, .kc-sound-bars i { animation: none !important; }
	.kl { transition: none; }
}
