/* =============================================================================
   Kashi Interior — base layer

   Reset, page shells, and the primitives shared by every section. Tokens live
   in kashi-tokens.css; section-specific rules live in assets/css/sections/*.

   THE FIDELITY RULE: every declaration below is copied character-for-character
   from the `style` / `style-hover` / `style-focus` attribute it derives from in
   Kashi Interior Claude Design/*.dc.html. The only permitted substitution is a
   colour literal for the --kashi-* token whose default IS that literal.
   Anything net-new carries a /* NET-NEW *​/ note saying why.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   01 · RESET — mirrors the <style> block in each design page's <helmet>
   -------------------------------------------------------------------------- */

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

/* NET-NEW: the design puts scroll-behavior on <body>, where it does nothing.
   Moved to <html> so in-page anchors actually glide.
   overflow-x is `clip`, not the source's `hidden`: `hidden` turns the element
   into a scroll container, which silently kills position:sticky on the header.
   `clip` suppresses the same horizontal overflow without that side effect. */
html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--kashi-font-body);
	color: var(--kashi-text);
	-webkit-font-smoothing: antialiased;
}

/* The ground colour differs per page: the landing sits on cream, the other
   seven on the shell. Driven by a body class rather than a blanket rule. */
body.kashi-bg-cream {
	background: var(--kashi-cream);
}

body.kashi-bg-shell {
	background: var(--kashi-shell);
}

/*
 * Kept at the design's own specificity, deliberately.
 *
 * An earlier revision raised this to `body[class] a` (0,2,1) to outrank
 * Elementor's site-wide `.elementor-kit-N` class. That also outranked every
 * single-class component rule in this theme — `.k-btn--gold` is (0,1,0) — so
 * every button rendered gold-on-gold with an invisible label.
 *
 * Header and footer isolation does not depend on this rule: both carry their
 * own doubled selectors in kashi-header-footer.css. A generic link colour is
 * not worth breaking the cascade for.
 */
a {
	color: var(--kashi-gold);
	text-decoration: none;
}

a:hover {
	color: var(--kashi-navy);
}

img {
	max-width: 100%;
}

/* The design ships three different placeholder colours across its pages.
   Reproduced as body classes rather than normalised to one. */
body.k-ph-a input::placeholder,
body.k-ph-a textarea::placeholder {
	color: var(--kashi-ph-a);
}

body.k-ph-b input::placeholder,
body.k-ph-b textarea::placeholder {
	color: var(--kashi-ph-b);
}

/* NET-NEW: in-page anchors (#projects, #testimonials) would otherwise land
   underneath the sticky header. */
section[id] {
	scroll-margin-top: 100px;
}

/* -----------------------------------------------------------------------------
   02 · SHELLS — the three gutter idioms, kept distinct
   -------------------------------------------------------------------------- */

/* Idiom A — full-bleed section, content capped at 1440px by the gutter itself. */
.k-shell--max {
	padding-left: var(--kashi-gut-max);
	padding-right: var(--kashi-gut-max);
}

/* Idiom B — the source's doubled max(). Renders identically to A, but is kept
   separate so a future edit to either cannot silently change the other. */
.k-shell--maxmax {
	padding-left: var(--kashi-gut-maxmax);
	padding-right: var(--kashi-gut-maxmax);
}

/* Idiom C — section hugs the viewport; an inner .k-shell does the capping. */
.k-shell--bleed {
	padding-left: var(--kashi-gut);
	padding-right: var(--kashi-gut);
}

/* The inner 1440px column used inside idiom C sections. */
.k-shell {
	max-width: var(--kashi-max);
	margin-inline: auto;
	width: 100%;
}

.k-main {
	display: block;
}

/* -----------------------------------------------------------------------------
   03 · GROUNDS
   -------------------------------------------------------------------------- */

.k-ground-navy {
	background: var(--kashi-navy-deep);
	color: #fff;
}

.k-ground-cream {
	background: var(--kashi-cream);
}

.k-ground-shell {
	background: var(--kashi-shell);
}

/* -----------------------------------------------------------------------------
   04 · EYEBROW — the gold rule + tracked label opening most sections
   -------------------------------------------------------------------------- */

.k-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
}

.k-eyebrow__label {
	font-size: 12px;
	letter-spacing: 0.2em;
	color: var(--kashi-gold);
	font-weight: 500;
}

/* The hero eyebrow is the one that is 13px and sentence case. */
.k-eyebrow--hero .k-eyebrow__label {
	font-size: 13px;
	letter-spacing: 0.14em;
}

.k-eyebrow--sm .k-eyebrow__label {
	font-size: 11px;
}

/* Four rule widths appear in the source. They are not interchangeable. */
.k-rule {
	height: 1px;
	background: var(--kashi-gold);
	flex: none;
}

.k-rule--28 {
	width: 28px;
}

.k-rule--30 {
	width: 30px;
}

.k-rule--34 {
	width: 34px;
}

.k-rule--60 {
	display: block;
	width: 60px;
}

/* -----------------------------------------------------------------------------
   05 · HEADINGS
   -------------------------------------------------------------------------- */

/* The gold italic accent inside every heading. The author only wraps the word
   in <em>; the styling lives here. */
.k-h em,
.k-h i {
	font-style: italic;
	color: var(--kashi-gold);
}

.k-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.k-head__lede {
	max-width: 540px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--kashi-text-muted);
	font-weight: 300;
	margin: 0;
}

/* -----------------------------------------------------------------------------
   06 · ICON CHIP — the round tan disc behind service and contact icons
   -------------------------------------------------------------------------- */

.k-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	border-radius: 999px;
	background: var(--kashi-tan);
	color: var(--kashi-gold-muted);
}

.k-chip--56 {
	width: 56px;
	height: 56px;
}

.k-chip--40 {
	width: 40px;
	height: 40px;
}

.k-chip--32 {
	width: 32px;
	height: 32px;
}

/* -----------------------------------------------------------------------------
   07 · BUTTONS
   -------------------------------------------------------------------------- */

.k-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border-radius: 999px;
	font-family: var(--kashi-font-body);
	border: none;
	cursor: pointer;
	transition: background .25s ease, color .25s ease, border-color .25s ease;
}

/* Navy pill, white label — the hero's primary action. */
.k-btn--navy {
	background: var(--kashi-navy);
	color: #fff;
	font-size: 15px;
	min-height: 48px;
	padding: 0 32px;
}

.k-btn--navy:hover,
.k-btn--navy:focus-visible {
	background: var(--kashi-gold);
	color: #fff;
}

/* Outlined pill on a light ground — the hero's "Watch Video". */
.k-btn--ghost {
	color: var(--kashi-navy);
	font-size: 15px;
	height: 48px;
	padding: 0 26px 0 13px;
	gap: 12px;
	border: 1px solid var(--kashi-border-strong);
	background: transparent;
}

.k-btn--ghost:hover,
.k-btn--ghost:focus-visible {
	border-color: var(--kashi-gold);
	color: var(--kashi-gold);
}

/* Outlined pill on a dark ground. */
.k-btn--ghost-light {
	color: #fff;
	font-size: 15px;
	padding: 12px 30px;
	border: 1px solid var(--kashi-on-dark-35);
	background: transparent;
}

.k-btn--ghost-light:hover,
.k-btn--ghost-light:focus-visible {
	background: var(--kashi-gold);
	border-color: var(--kashi-gold);
	color: #fff;
}

/* Gold uppercase pill — the recurring CTA. */
.k-btn--gold {
	background: var(--kashi-gold);
	color: var(--kashi-navy-deep);
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 12px 32px;
}

.k-btn--gold:hover,
.k-btn--gold:focus-visible {
	background: #fff;
	color: var(--kashi-navy-deep);
}

/* Gold pill, sentence case, 14px — the landing CTA band only. */
.k-btn--gold-lg {
	background: var(--kashi-gold);
	color: var(--kashi-navy-deep);
	font-size: 14px;
	min-height: 46px;
	padding: 0 30px;
	font-weight: 500;
}

.k-btn--gold-lg:hover,
.k-btn--gold-lg:focus-visible {
	background: #fff;
	color: var(--kashi-navy-deep);
}

/* White pill on a dark ground. */
.k-btn--white {
	background: #fff;
	color: var(--kashi-navy-deep);
	font-size: 14px;
	min-height: 46px;
	padding: 0 30px;
	font-weight: 500;
}

.k-btn--white:hover,
.k-btn--white:focus-visible {
	background: var(--kashi-gold);
	color: var(--kashi-navy-deep);
}

/* Navy uppercase pill — service and contact CTA cards. */
.k-btn--navy-caps {
	background: var(--kashi-navy-deep);
	color: #fff;
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 12px 32px;
}

.k-btn--navy-caps:hover,
.k-btn--navy-caps:focus-visible {
	background: var(--kashi-gold);
	color: #fff;
}

/* Navy uppercase pill at a fixed 46px — project and post footer navigation.
   Note the hover colour differs from --navy-caps. Not a mistake; not merged. */
.k-btn--navy-tall {
	background: var(--kashi-navy-deep);
	color: #fff;
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	height: 46px;
	padding: 0 30px;
}

.k-btn--navy-tall:hover,
.k-btn--navy-tall:focus-visible {
	background: var(--kashi-gold);
	color: var(--kashi-navy-deep);
}

/* Quiet inline link with a leading chevron. */
.k-btn--text {
	font-size: 13.5px;
	color: var(--kashi-navy);
	background: transparent;
	padding: 0;
}

.k-btn--text:hover,
.k-btn--text:focus-visible {
	color: var(--kashi-gold);
}

/* -----------------------------------------------------------------------------
   08 · BREADCRUMBS — every inner page hero opens with one
   -------------------------------------------------------------------------- */

.k-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kashi-gold-muted);
	margin-bottom: 26px;
}

.k-crumbs a {
	color: var(--kashi-gold-muted);
}

.k-crumbs a:hover {
	color: var(--kashi-gold);
}

.k-crumbs__current {
	color: var(--kashi-gold);
}

/* -----------------------------------------------------------------------------
   09 · ACCESSIBILITY
   -------------------------------------------------------------------------- */

.k-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.k-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--kashi-navy-deep);
	color: #fff;
	padding: 12px 24px;
	border-radius: 0 0 4px 0;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.k-skip:focus {
	left: 0;
	color: #fff;
}

/* NET-NEW: the design ships no focus styling at all. This ring appears only for
   keyboard users and never shifts layout. */
:focus-visible {
	outline: 2px solid var(--kashi-gold);
	outline-offset: 3px;
}

/* -----------------------------------------------------------------------------
   10 · REVEAL — paired with assets/js/reveal.js
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}

	/* NET-NEW: suppress only the transitions we added, never layout. */
	.k-btn,
	.k-chip {
		transition: none;
	}
}

/* -----------------------------------------------------------------------------
   11 · PROSE — the editor's own content, on pages that are not hand-composed
   -------------------------------------------------------------------------- */

.k-prose {
	font-size: 15.5px;
	line-height: 1.95;
	color: var(--kashi-text-muted);
	font-weight: 300;
}

.k-prose > * {
	margin: 0 0 20px;
}

.k-prose > *:last-child {
	margin-bottom: 0;
}

.k-prose h2 {
	font-family: var(--kashi-font-display);
	font-size: clamp(22px, 2.3vw, 28px);
	font-weight: 500;
	color: var(--kashi-text);
	margin: 0 0 16px;
}

.k-prose h3 {
	font-family: var(--kashi-font-display);
	font-size: 19px;
	font-weight: 500;
	color: var(--kashi-text);
	margin: 0 0 14px;
}

.k-prose h4,
.k-prose h5,
.k-prose h6 {
	font-family: var(--kashi-font-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--kashi-text);
	margin: 0 0 12px;
}

.k-prose a {
	color: var(--kashi-gold);
	border-bottom: 1px solid transparent;
}

.k-prose a:hover {
	border-bottom-color: var(--kashi-gold);
}

.k-prose img {
	height: auto;
	border-radius: 4px;
}

.k-prose figure {
	margin: 0 0 28px;
}

.k-prose figcaption {
	font-size: 12.5px;
	color: var(--kashi-text-meta);
	font-weight: 300;
	margin-top: 12px;
}

.k-prose ul,
.k-prose ol {
	padding-left: 20px;
}

.k-prose li {
	margin-bottom: 8px;
}

.k-prose blockquote {
	border-left: 2px solid var(--kashi-gold);
	padding: 4px 0 4px 22px;
	margin: 0 0 28px;
}

.k-prose blockquote p {
	font-family: var(--kashi-font-display);
	font-style: italic;
	font-size: clamp(17px, 1.7vw, 21px);
	line-height: 1.65;
	color: var(--kashi-text);
	margin: 0;
}

.k-prose table {
	width: 100%;
	border-collapse: collapse;
}

.k-prose th,
.k-prose td {
	border: 1px solid var(--kashi-hairline-strong);
	padding: 10px 14px;
	text-align: left;
}

.k-prose code,
.k-prose pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
	background: var(--kashi-cream);
}

.k-prose pre {
	padding: 18px 20px;
	border-radius: 4px;
	overflow-x: auto;
}

/* -----------------------------------------------------------------------------
   12 · ADMIN BAR — the only viewport media query the theme authors
   -------------------------------------------------------------------------- */

.admin-bar .k-header.k-header {
	top: 32px;
}

.admin-bar .k-aside {
	top: 142px;
}

@media screen and (max-width: 782px) {

	.admin-bar .k-header.k-header {
		top: 46px;
	}

	.admin-bar .k-aside {
		top: 156px;
	}
}
