/*
Theme Name: KTEN Limited
Theme URI: https://ktenlimited.com
Author: LaunchFlow
Author URI: https://launchflow.co.uk
Description: Custom theme for KTEN Limited — commercial cleaning & facilities management, Grays. Quote form by the BizzFlow Connector plugin.
Version: 1.4.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: kten
*/

:root {
	--navy: #01264f;      /* logo navy */
	--navy-2: #0a3a6e;
	--teal: #018691;      /* logo teal */
	--teal-dark: #016a73;
	--teal-soft: #e6f3f4;
	--ink: #0f172a;
	--muted: #5b6b7c;
	--line: #e3e9ef;
	--soft: #f5f8fa;
	--radius: 18px;
	--shadow: 0 18px 50px rgba(1, 38, 79, .09);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img, svg { max-width: 100%; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.icon { flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--block { display: flex; width: 100%; margin-top: 10px; }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe5b; }
.panel__note { font-size: .85rem; margin: 10px 0 0; }
.btn .icon { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__logo { display: block; height: 66px; width: auto; }
.site-footer .brand__logo { height: 80px; margin-bottom: 14px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav a:hover, .nav a[aria-current] { color: var(--teal-dark); background: var(--teal-soft); }
.site-header__cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; }
.header-phone .icon { width: 18px; height: 18px; color: var(--teal); }

/* Mobile menu button + drawer */
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 22px; height: 2px; border-radius: 2px; background: var(--navy); }
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s linear .4s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(1, 26, 56, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s ease; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; height: 100dvh; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 60px rgba(1, 26, 56, .25); overflow-y: auto; overscroll-behavior: contain; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer__top img { height: 48px; width: auto; }
.drawer__close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.drawer__nav { padding: 10px 18px; display: flex; flex-direction: column; }
.drawer__nav > a, .drawer__services, .drawer__cta { opacity: 0; transform: translateX(24px); transition: opacity .35s ease, transform .35s ease; transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
.drawer.is-open .drawer__nav > a, .drawer.is-open .drawer__services, .drawer.is-open .drawer__cta { opacity: 1; transform: none; }
.drawer__nav > a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); font-size: 1.2rem; font-weight: 800; }
.drawer__nav > a .icon { width: 20px; height: 20px; color: var(--teal); }
.drawer__nav > a[aria-current] { color: var(--teal-dark); }
.drawer__services { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.drawer__services a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--soft); text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 600; line-height: 1.2; }
.drawer__services .icon { width: 18px; height: 18px; color: var(--teal); }
.drawer__cta { margin-top: auto; position: sticky; bottom: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(1, 38, 79, .08); }
.drawer__cta .btn--block { margin-top: 8px; padding: 13px 18px; }
.drawer__cta p { font-size: .92rem; color: var(--muted); margin: 0 0 4px; }
.no-scroll, .no-scroll body { overflow: hidden; }

/* Mobile action bar */
.mbar { display: none; }

/* Hero: full-width photo, white wash on the text side */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,.55) 52%, rgba(255,255,255,0) 64%); }
.hero__in { position: relative; z-index: 2; padding: 96px 0 150px; }
.hero__copy { max-width: 560px; }
.hero h1 span { color: var(--teal); }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero .lead { color: #3d4f63; }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks .icon { width: 22px; height: 22px; color: #fff; background: var(--teal); border-radius: 50%; padding: 4px; margin-top: 1px; }
.ticks--list li { font-weight: 500; }

/* Quote band: pulls up over the bottom of the hero */
.quote-band { position: relative; z-index: 3; margin-top: -90px; padding-bottom: 20px; }
.quote-band__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: end; }
.quote-band__intro { padding-bottom: 40px; }
.quote-band__intro p:not(.kicker) { color: var(--muted); }
.hero__form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 22px; box-shadow: 0 24px 60px rgba(1, 38, 79, .14); padding: 28px 28px 8px; scroll-margin-top: 100px; }
.hero__form .bf-form, .form-wrap .bf-form { border: 0; box-shadow: none; padding: 0; max-width: none; }

/* Sections */
.section { padding: 80px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section__head p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe0e3; }
.card__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon .icon { width: 28px; height: 28px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal-dark); font-size: .95rem; }
.card__more .icon { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .card__more .icon { transform: translateX(4px); }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.why__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 16px; }
.why__item p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Sectors */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector { border-left: 4px solid var(--teal); background: var(--soft); border-radius: 0 14px 14px 0; padding: 22px 24px; }
.sector h3 { margin-bottom: 4px; }
.sector p { margin: 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.steps__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; opacity: .8; }

/* Inner pages */
.page-hero { background: linear-gradient(180deg, #f2f8fa, #fff); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero--plain { padding: 48px 0 32px; }
.page-hero h1 { max-width: 20ch; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.split--form { grid-template-columns: 1.5fr 1fr; }
.panel { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; }
.panel p { color: var(--muted); }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.contact-list li, .contact-list a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; }
.contact-list .icon { width: 20px; height: 20px; color: var(--teal); }
.contact-list a[href*="wa.me"] .icon { color: #25d366; }
.mini-steps { padding-left: 20px; color: var(--muted); margin: 0; }
.mini-steps li { margin-bottom: 6px; }
.form-wrap { scroll-margin-top: 100px; }
.towns { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.towns li { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.towns .icon { width: 20px; height: 20px; color: var(--teal); }
.notice { background: var(--teal-soft); border-radius: 12px; padding: 16px 18px; color: var(--navy); }

/* Footer */
.site-footer { background: #011a38; color: rgba(255,255,255,.75); padding: 64px 0 0; font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .btn--primary { color: #fff; }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 22px 0; font-size: .85rem; opacity: .75; }

/* Motion — subtle, and only when JavaScript is running (html.js) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Hero: words arrive in order, the photo settles in */
@keyframes kten-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kten-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
.js .hero__copy > * { animation: kten-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero__copy > :nth-child(2) { animation-delay: .08s; }
.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4) { animation-delay: .24s; }
.js .hero__copy > :nth-child(5) { animation-delay: .32s; }
.js .hero__img { animation: kten-settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero__form { animation: kten-up .9s .35s cubic-bezier(.2, .7, .2, 1) both; }
/* Hover */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn--primary:hover::after, .btn--wa:hover::after { left: 130%; }
.btn--primary:hover, .btn--wa:hover { box-shadow: 0 10px 24px rgba(1, 134, 145, .28); }
.card__icon, .why__icon { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .25s, color .25s; }
.card:hover .card__icon { transform: translateY(-3px) rotate(-6deg); background: var(--teal); color: #fff; }
.why__item { transition: transform .3s, box-shadow .3s, border-color .3s; }
.why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe0e3; }
.why__item:hover .why__icon { transform: scale(1.08); background: var(--teal); }
.sector { transition: transform .3s, box-shadow .3s, border-left-width .3s; }
.sector:hover { transform: translateX(4px); box-shadow: var(--shadow); border-left-width: 7px; }
.steps li { transition: transform .3s, box-shadow .3s, border-color .3s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe0e3; }
.steps__n { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.steps li:hover .steps__n { transform: scale(1.12); }
.towns li { transition: transform .25s, border-color .25s, box-shadow .25s; }
.towns li:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 8px 20px rgba(1, 38, 79, .07); }
.faq details { transition: border-color .25s, box-shadow .25s; }
.faq details:hover, .faq details[open] { border-color: #bfe0e3; box-shadow: 0 8px 22px rgba(1, 38, 79, .06); }
.faq summary::after { transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current]::after { transform: scaleX(0); }
.site-footer ul a { display: inline-block; transition: transform .2s, color .2s; }
.site-footer ul a:hover { transform: translateX(3px); }
.drawer__services a { transition: background .2s, transform .2s; }
.drawer__services a:active { transform: scale(.97); background: var(--teal-soft); }
.mbar a { transition: transform .15s; }
.mbar a:active { transform: scale(.95); }

/* Responsive */
@media (max-width: 1080px) {
	.nav, .site-header__cta { display: none; }
	.menu-btn { display: flex; }
		.why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	/* Call / WhatsApp / Quote bar replaces the floating WhatsApp bubble on phones. */
	.mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(1, 38, 79, .1); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
	.mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .8rem; }
	.mbar .icon { width: 22px; height: 22px; }
	.mbar__call { color: var(--navy); background: var(--soft); }
	.mbar__wa { color: #fff; background: #25d366; }
	.mbar__quote { color: #fff; background: var(--teal); }
	body { padding-bottom: 76px; }
	.bf-wa { display: none !important; }
	.split, .split--form, .quote-band__in { grid-template-columns: 1fr; gap: 24px; }
	/* Phones and tablets: the photo becomes a banner above the words. */
	.hero__img { position: relative; height: auto; aspect-ratio: 16 / 10; object-position: 72% center; }
	.hero::before { display: none; }
	.hero__in { padding: 32px 0 40px; }
	.quote-band { margin-top: 0; }
	.quote-band__intro { padding-bottom: 0; }
	.sectors, .steps { grid-template-columns: 1fr 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.panel { position: static; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.section { padding: 56px 0; }
	.why, .sectors, .steps, .site-footer__grid { grid-template-columns: 1fr; }
	.hero__form { padding: 22px 18px 4px; }
	/* Service cards become compact rows: icon left, text right. */
	.cards { gap: 10px; }
	.card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 16px; align-items: start; }
	.card__icon { width: 46px; height: 46px; margin: 0; grid-row: span 2; }
	.card h3 { margin: 2px 0 2px; font-size: 1.05rem; }
	.card p { margin: 0; font-size: .92rem; }
	.card__more { display: none; }
	.actions .btn { flex: 1 1 auto; white-space: nowrap; padding: 14px 16px; }
	.site-header__in { min-height: 66px; }
	}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
