/* K2 premium art direction: terracotta + slate, sharp editorial geometry. */

html { background: var(--c-cream); }
body { background: var(--c-cream); color: var(--c-ink); }
body, button, input, select, textarea { font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-head); text-wrap: balance; }

/* Floating navigation sentinel */
.header-sentinel { position: absolute; top: 24px; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* Hero: one dark room, one message, one photograph. */
.hero {
	padding-top: calc(var(--nav-h) + 10px);
	background: var(--c-ink);
	border-bottom: 1px solid #2D3A3C;
}
.hero-grid { width: min(1400px, calc(100% - 64px)); min-height: min(82dvh, 780px); }
.hero-grid.container { max-width: none; }
.hero-copy { padding-block: clamp(56px, 8vw, 112px); }
.hero-title { max-width: none; font-size: clamp(4.4rem, 7.5vw, 8.3rem); letter-spacing: -0.085em; line-height: 0.84; color: var(--c-cream); }
.hero-title .line-1, .hero-title .line-2 { white-space: nowrap; }
.hero-title .line-2 { color: var(--c-accent-soft); }
.hero-sub { max-width: 33ch; color: #B7C0BE; }
.hero-cta { gap: 0.75rem; }
.hero .btn { min-height: 48px; }
.hero .btn-primary { background: var(--c-cream); color: var(--c-ink); box-shadow: 4px 4px 0 var(--c-accent); }
.hero .btn-primary:hover { background: #fff; }
.hero .btn-ghost { color: var(--c-cream); border-color: #586467; }
.hero-visual { padding-block: clamp(36px, 5vw, 76px); }
.hero-image-wrap { border-color: #576466; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25); }
.hero-image { aspect-ratio: 1.12 / 1; object-position: center; }
/* The wipe leaves a wet edge behind it: one terracotta rule drawn with the paint. */
.hero-splash { inset: auto 0 0 0; height: 3px; border: 0; background: var(--c-accent); transform-origin: left center; }
.hero-swatches { background: #10191B; border: 1px solid #344143; border-top: 0; }

/* Shared rhythm. */
.section { padding-block: clamp(84px, 11vw, 148px); }
.section-head { margin-bottom: clamp(38px, 5vw, 66px); }
.section-head::after { width: 52px; background: var(--c-accent); }
.section-title { font-size: clamp(2.15rem, 4vw, 4.4rem); letter-spacing: -0.055em; line-height: 0.94; }
.section-sub { max-width: 42ch; color: var(--c-ink-soft); }
.section-link { color: var(--c-accent-dark); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.btn { border-radius: 2px; box-shadow: none; font-family: var(--font-body); letter-spacing: 0.02em; }
.btn-primary { background: var(--c-accent); box-shadow: 4px 4px 0 var(--c-ink); }
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-ghost { border-color: var(--c-ink); }
.btn:active { transform: scale(0.98); }

/* Editorial statement. */
.editorial-intro { background: var(--c-ink); border-bottom: 1px solid #2D3A3C; }
.editorial-grid { width: min(1280px, 92%); }
.editorial-copy h2 { max-width: 15ch; font-size: clamp(3.2rem, 6.8vw, 7.2rem); }
.editorial-copy p { max-width: 48ch; color: #B7C0BE; }
.editorial-aside { color: #B7C0BE; }
.editorial-rule, .editorial-stat { border-color: #405052; }
.editorial-link { color: var(--c-cream); border-color: var(--c-accent-soft); }

/* Colour of the year: one large crop + a specimen rail. */
.coty { background: var(--c-cream); border-block: 1px solid var(--c-line); }
.coty-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(26px, 5vw, 76px); }
.coty-copy .section-title { font-size: clamp(2.6rem, 5vw, 5rem); }
.coty-image img { border-radius: 0; box-shadow: 0 18px 42px rgba(24, 33, 35, 0.12); aspect-ratio: 0.9 / 1; }
.coty-palette { gap: 0; border-top: 1px solid var(--c-line); }
.palette-card { padding: 12px 10px 0 0; text-align: left; border-bottom: 1px solid var(--c-line); }
.palette-block { height: 76px; box-shadow: none; }
.palette-card strong { font-size: 0.75rem; }

/* Paint range: editorial feature tile followed by quiet specimens. */
.range { background: #F7F8F6; }
.range-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.range-card { grid-column: span 3; border: 0; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); border-radius: 0; background: transparent; box-shadow: none; }
.range-card:first-child { grid-column: span 6; grid-row: span 2; }
/* The fourth specimen closes the second row so the grid stays gapless. */
.range-card:last-child { grid-column: span 6; }
.range-card:hover { box-shadow: none; background: #fff; }
.range-media img, .range-media .img-fallback { aspect-ratio: 1.18 / 1; border-radius: 0; }
.range-card:first-child .range-media img, .range-card:first-child .range-media .img-fallback { aspect-ratio: 1.3 / 1; }
.range-card:last-child .range-media img, .range-card:last-child .range-media .img-fallback { aspect-ratio: 1.9 / 1; }
.range-body { padding: 1.1rem 1.2rem 1.4rem; }
.range-body h3 { font-size: 1.2rem; }
.range-actions .btn { box-shadow: none; }
.range-actions .btn-primary { background: var(--c-ink); }

/* Performance proof: index-like list, not icon cards. */
.why { background: var(--c-cream); }
.why .section-title { max-width: 8ch; }
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--c-line); }
.why-item { min-height: 120px; align-items: flex-start; padding: 1.2rem 1.1rem 1.4rem 0; border-bottom: 1px solid var(--c-line); border-radius: 0; }
.why-icon { display: none; }
.why-text { line-height: 1.4; }
.why-text strong { font-size: 1rem; font-weight: 600; }

/* Visualizer: frame the interaction as a gallery tool. */
.visualizer { background: #E1E6E4; border-block: 1px solid var(--c-line); }
.vis-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.55fr) minmax(180px, 0.6fr); }
.vis-stage { border-radius: 0; box-shadow: 12px 12px 0 var(--c-ink); border: 1px solid var(--c-ink); }
.vis-label { border-radius: 2px; background: var(--c-cream); color: var(--c-ink); }
.vis-handle { border-radius: 50%; }
.vis-shade-btn { border-radius: 2px; background: transparent; border-color: var(--c-line); }
/* A chevron promises navigation; this control only re-tints the wall. */
.vis-shade-btn .k2p-icon { display: none; }
.vis-shade-btn.active { background: var(--c-cream); border-color: var(--c-ink); box-shadow: inset 3px 0 0 var(--c-accent); }

/* Services: one tall lead image, two supporting entries. */
.services { background: #F7F8F6; }
.services-grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); grid-template-rows: repeat(2, auto); gap: 0; border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); }
.service-card { border: 0; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); border-radius: 0; box-shadow: none; background: transparent; }
.service-card:first-child { grid-row: span 2; }
.service-card:hover { box-shadow: none; background: #fff; }
.service-media img, .service-media .img-fallback { border-radius: 0; }
.service-card:first-child .service-media img, .service-card:first-child .service-media .img-fallback { aspect-ratio: 1.3 / 1; }
.service-body { padding: 1.4rem 1.45rem 1.6rem; }
.service-body h3 { font-size: 1.5rem; }

/* Inspiration: let photography carry the section. */
.inspiration { background: var(--c-cream); }
.gallery-filters { justify-content: flex-start; margin: -14px 0 2rem; }
.filter-pill { border-radius: 2px; background: transparent; border-color: var(--c-line); color: var(--c-ink-soft); }
.filter-pill.active { background: var(--c-ink); border-color: var(--c-ink); }
.gallery-grid { grid-auto-rows: clamp(170px, 18vw, 270px); gap: 8px; }
.gallery-item { border-radius: 0; }
.gallery-item figcaption { background: var(--c-cream); padding: 8px 10px; border-top-color: var(--c-line); }

/* Dealer locator: clear utility, not a loud promotional strip. */
.dealers-band { background: var(--c-cream); color: var(--c-ink); border-block: 1px solid var(--c-line); }
.dealers-pin { border-radius: 2px; background: var(--c-accent); }
.dealers-lead h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.dealers-lead p, .dealers-call span { color: var(--c-ink-soft); }
.dealers-form { border: 1px solid var(--c-ink); border-radius: 2px; background: #fff; }
.dealers-form .btn { background: var(--c-ink); border-radius: 0; }
.dealers-call a { color: var(--c-accent-dark); }

/* Footer styling is unified in global-craft.css */

@media (max-width: 1100px) {
	.hero-grid { width: min(1100px, calc(100% - 44px)); }
	.range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.range-card, .range-card:first-child, .range-card:last-child { grid-column: auto; grid-row: auto; }
	.range-card:first-child .range-media img, .range-card:first-child .range-media .img-fallback,
	.range-card:last-child .range-media img, .range-card:last-child .range-media .img-fallback { aspect-ratio: 1.18 / 1; }
	.coty-grid { grid-template-columns: 1fr 1.2fr; }
	.coty-palette { grid-column: 1 / -1; grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
	.nav-inner { padding-inline: 12px; }
	.hero-grid { width: min(680px, calc(100% - 40px)); }
	.hero-copy { padding-block: 64px 42px; }
	.hero-title { font-size: clamp(4rem, 13vw, 6.6rem); }
	.hero-visual { padding-block: 0 48px; }
	.why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vis-grid { grid-template-columns: 1fr 1.6fr; }
	.vis-shades, .vis-handwritten { grid-column: 2; }
	.services-grid { grid-template-columns: 1fr 1fr; }
	.service-card:first-child { grid-row: span 2; }
}

@media (max-width: 640px) {
	.nav-inner { min-height: 62px; }
	.nav-actions .btn { display: none; }
	.hero-grid { width: calc(100% - 32px); }
	.hero-copy { padding-block: 54px 40px; }
	.hero-title { font-size: clamp(3.7rem, 18vw, 5.6rem); }
	.hero-title .line-1, .hero-title .line-2 { white-space: normal; }
	.hero-sub { font-size: 0.92rem; }
	.hero-image { aspect-ratio: 0.95 / 1; }
	.hero-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 11px; }
	.section { padding-block: 76px; }
	.coty-grid, .vis-grid, .services-grid { grid-template-columns: 1fr; }
	.coty-palette { grid-column: auto; grid-template-columns: repeat(2, 1fr); }
	.coty-image { order: -1; }
	.why-grid { grid-template-columns: 1fr; }
	.why-item { min-height: 92px; }
	.vis-shades, .vis-handwritten { grid-column: auto; }
	.service-card:first-child { grid-row: auto; }
	.range-grid { grid-template-columns: 1fr; }
	.range-card .range-media img, .range-card .range-media .img-fallback { aspect-ratio: 1.6 / 1; }
	.dealers-inner { align-items: stretch; }
	.dealers-form { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-image-wrap, .range-card, .service-card, .gallery-item { will-change: auto; }
}
