/*
Theme Name: Kernel Solutions
Text Domain: kernel-solutions
Description: Fast, SEO-optimised, responsive theme for Kernel Solutions Pvt Ltd: healthcare infrastructure, OT, fabrication and interiors.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

:root {
	--ink: #0a1f33;
	--ink2: #112f4d;
	--ink3: #071524;
	--paper: #f4f7fa;
	--line: #dbe3ea;
	--mut: #475a6d;
	--or: #f98500;
	--or2: #ffa133;
	--ort: #a95500;
	--r: 4px;
	--f-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
body { margin: 0; font: 400 1rem/1.65 var(--f-body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.02; margin: 0 0 .5em; letter-spacing: .005em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.55rem; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--or); color: var(--ink); padding: .75rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }

@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; gap: .6rem; min-height: 48px; padding: .8rem 1.4rem; font: 700 1rem/1 var(--f-body); text-decoration: none; border: 2px solid transparent; border-radius: var(--r); cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-or { background: var(--or); color: var(--ink); }
.btn-or:hover { background: var(--or2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 46px; width: auto; max-width: 210px; object-fit: contain; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; flex-direction: column; box-shadow: 0 18px 30px rgba(10, 31, 51, .12); }
.nav-open .nav { display: flex; }
.nav a { padding: .95rem 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a.btn { margin-top: 1rem; border-bottom: 0; }
.hd-phone { display: none; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hd-phone svg { width: 18px; height: 18px; color: var(--ort); }
.nav-toggle { width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); display: grid; place-items: center; cursor: pointer; padding: 0; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 22px; height: 2px; background: var(--ink); content: ""; position: relative; transition: .2s; }
.nav-toggle i::before { position: absolute; top: -7px; }
.nav-toggle i::after { position: absolute; top: 7px; }
.nav-open .nav-toggle i { background: transparent; }
.nav-open .nav-toggle i::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle i::after { top: 0; transform: rotate(-45deg); }

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.5rem; padding: 0; border: 0; background: none; box-shadow: none; }
	.nav a { padding: .4rem 0; border: 0; font-size: .95rem; }
	.nav a:not(.btn):hover { color: var(--ort); }
	.nav a.btn { margin: 0; padding: .7rem 1.2rem; min-height: 44px; }
}
@media (min-width: 1200px) { .hd-phone { display: inline-flex; } }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(60% 70% at 85% 8%, rgba(249, 133, 0, .22), transparent 60%),
	linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px,
	linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px; }
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font: 700 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--or); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero h1 em { font-style: normal; color: var(--or); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .84); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.hero-fig { position: relative; margin: 0; }
.hero-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px)); }
.spec { position: relative; margin: -2rem 1rem 0; background: #fff; color: var(--ink); padding: 1rem 1.2rem; border-left: 4px solid var(--or); font-size: .92rem; line-height: 1.45; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.spec b { display: block; font: 700 1.25rem/1.1 var(--f-head); text-transform: uppercase; margin-bottom: .25rem; }
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (min-width: 900px) {
	.hero-grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; }
	.spec { position: absolute; left: -2rem; bottom: -1.75rem; margin: 0; max-width: 290px; }
}

/* Proof strip */
.proof { background: var(--paper); border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.proof li { padding: 1.25rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof li:nth-child(2n) { border-right: 0; }
.proof strong { display: block; font: 700 1.7rem/1 var(--f-head); text-transform: uppercase; margin-bottom: .3rem; }
.proof span { font-size: .9rem; color: var(--mut); line-height: 1.4; display: block; }
@media (min-width: 900px) {
	.proof ul { grid-template-columns: repeat(4, 1fr); }
	.proof li { border-bottom: 0; border-right: 1px solid var(--line) !important; padding: 1.6rem 1.5rem; }
	.proof li:last-child { border-right: 0 !important; }
}

/* Sections */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.alt { background: var(--paper); }
.dark { background: var(--ink); color: #fff; }
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head p { color: var(--mut); font-size: 1.1rem; }
.sec .eyebrow { color: var(--ort); }
.dark .eyebrow, .hero .eyebrow, .contact-sec .eyebrow { color: var(--or); }
.dark .sec-head p { color: rgba(255, 255, 255, .78); }

/* Services */
.svc { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc article { background: #fff; padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; transition: background .2s; }
.svc article:hover { background: var(--paper); }
.svc .no { font: 700 1rem/1 var(--f-head); letter-spacing: .14em; color: var(--ort); margin-bottom: 1rem; }
.svc p { color: var(--mut); margin-bottom: 1.1rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: .25rem .8rem; border: 1px solid var(--line); border-radius: 99px; font-size: .85rem; font-weight: 600; text-decoration: none; background: #fff; }
.chips a:hover { border-color: var(--or); background: #fff4e6; }
@media (min-width: 700px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .svc { grid-template-columns: repeat(3, 1fr); } }

/* Split blocks */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split figure { margin: 0; position: relative; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.split figure::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(249, 133, 0, .6); border-radius: var(--r); z-index: -1; }
.split > div, .split > figure { min-width: 0; }
.ticks { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1rem; height: 1rem; background: var(--or); clip-path: polygon(0 52%, 14% 38%, 36% 62%, 86% 8%, 100% 22%, 36% 90%); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; }
.tags li { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 99px; font-size: .88rem; font-weight: 600; background: #fff; }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
	.split.rev figure { order: 2; }
}
.dark .split figure::after { border-color: rgba(249, 133, 0, .7); }

/* Clients */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logos li { background: #fff; display: grid; place-items: center; padding: 1.25rem; min-height: 104px; }
.logos img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .85; transition: .2s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (min-width: 620px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1040px) { .logos { grid-template-columns: repeat(7, 1fr); } }
.more { margin-top: 1.5rem; }
.more a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--or); }

/* Steps + values */
.steps, .values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li, .values li { background: #fff; border-top: 3px solid var(--or); padding: 1.4rem 1.3rem 1.5rem; }
.steps .n { display: block; font: 700 2.4rem/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: .6rem; }
.steps h3, .values h3 { margin-bottom: .4rem; }
.steps p, .values p { color: var(--mut); margin: 0; }
@media (min-width: 640px) { .steps, .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps, .values { grid-template-columns: repeat(4, 1fr); } }

/* Leadership */
.people { display: grid; gap: 1.5rem; max-width: 760px; }
.person { display: grid; grid-template-columns: 110px 1fr; gap: 1.1rem; align-items: center; background: #fff; border: 1px solid var(--line); padding: 1rem; border-radius: var(--r); }
.person img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; }
.person h3 { margin: 0 0 .15rem; font-size: 1.4rem; }
.person p { margin: 0; color: var(--mut); }
@media (min-width: 700px) { .people { grid-template-columns: 1fr 1fr; max-width: none; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font: 700 1.35rem/1.2 var(--f-head); text-transform: uppercase; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font: 400 1.8rem/1 var(--f-body); color: var(--ort); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--mut); padding-right: 2rem; }

/* CTA strip */
.cta-strip { background: var(--or); color: var(--ink); }
.cta-strip .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; padding: 1.75rem 0; }
.cta-strip h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-strip .btn-dark:hover { background: var(--ink3); }

/* Contact */
.contact-sec { background: var(--ink); color: #fff; }
.contact { display: grid; gap: 2.5rem; }
.contact .lead { color: rgba(255, 255, 255, .8); }
.info-list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.info-list b { display: block; font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--or); margin-bottom: .35rem; }
.info-list a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.info-list a:hover { border-color: var(--or); }
.card-form { background: #fff; color: var(--ink); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r); }
.card-form h3 { font-size: 1.8rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1.5px solid #b8c4d0; border-radius: var(--r); font: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .9rem 1rem; border-radius: var(--r); margin-bottom: 1rem; font-weight: 600; }
.notice.ok { background: #e6f6ee; color: #0c5c34; }
.notice.err { background: #fdeaea; color: #8a1c1c; }
.fine { font-size: .85rem; color: var(--mut); margin: .75rem 0 0; }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 6fr; gap: 4.5rem; align-items: start; } }

/* Footer */
.site-footer { background: var(--ink3); color: rgba(255, 255, 255, .78); padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1.2rem; letter-spacing: .06em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--or); }
.foot-bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.foot-credit { margin: 1rem 0 0; font-size: .8rem; text-align: center; opacity: .75; }
.foot-credit a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

/* Mobile action bar */
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--ink); border-top: 2px solid var(--or); padding-bottom: env(safe-area-inset-bottom); }
.m-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; color: #fff; font: 600 .78rem/1 var(--f-body); text-decoration: none; }
.m-bar a:last-child { background: var(--or); color: var(--ink); }
.m-bar svg { width: 20px; height: 20px; }
@media (max-width: 959px) { body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); } }
@media (min-width: 960px) { .m-bar { display: none; } }

/* Inner pages */
.page-hero { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 48px 48px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose a { color: var(--ort); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose img { border-radius: var(--r); margin: 1.2rem 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.cards { display: grid; gap: 1.25rem; }
.cards article { border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--r); }
.cards h2 { font-size: 1.7rem; }
.cards time { color: var(--mut); font-size: .88rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.navigation.pagination { margin-top: 2rem; }
.navigation .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.navigation .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); text-decoration: none; border-radius: var(--r); }
.navigation .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.alignwide, .alignfull { max-width: 100%; }
