/* Desket homepage styles.
   Colours, type sizes, spacing, radii and sizes come from tokens.css (the brand kit file, unchanged).
   Values defined here are layout decisions approved for this site; raw colours are limited to
   the footer's translucent rules, which have no token. */

/* This site uses the light theme only. The kit's dark theme is opt-in via [data-theme="dark"];
   some hosts (such as the Claude artifact viewer) set that attribute from the viewer's own theme,
   so the light values are restated here. They are copied from tokens.css, not new colours. */
:root, :root[data-theme="dark"] {
  color-scheme: light;
  --dk-paper: #FFFFFF;
  --dk-paper-2: #F3F6FB;
  --dk-mist: #F5F8FC;
  --dk-line: #D3DCE9;
  --dk-line-2: #E4EAF3;
  --dk-ink: #0A0B0B;
  --dk-ink-2: #4B5A6E;
  --dk-ink-3: #7A8699;
  --dk-sky: #DDE7F6;
  --dk-sky-2: #EBF1FA;
  --dk-action: #14304E;
  --dk-action-deep: #0E2238;
  --dk-action-bg: #DDE7F6;
  --dk-on-action: #FFFFFF;
  --dk-head: #14304E;
  --dk-accent-text: #C2462D;
  --dk-ev-checked: #187435;
  --dk-ev-checked-bg: #E7F5EC;
  --dk-ev-stated: #8A6100;
  --dk-ev-stated-bg: #FFF4D6;
  --dk-ev-missing: #62666F;
  --dk-ev-missing-bg: #EEEFF1;
  --dk-flag: #B42318;
  --dk-flag-bg: #FBEAE7;
  --dk-pct-low: #E7F5EC;
  --dk-pct-mid: #FFF9E6;
  --dk-pct-high: #FBEAE7;
}

/* ---------- Fonts (self-hosted, SIL OFL; see fonts/LICENSE-*) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
/* Metric-matched fallbacks so text doesn't reflow when the real fonts arrive */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 107.7%; ascent-override: 89.95%; descent-override: 22.4%; line-gap-override: 0%; }
@font-face { font-family: "Outfit Fallback"; src: local("Arial Bold"), local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 95.92%; ascent-override: 104.26%; descent-override: 27.11%; line-gap-override: 0%; }

:root {
  --font-ui: "Inter", "Inter Fallback", var(--dk-font-ui);
  --font-head: "Outfit", "Outfit Fallback", var(--dk-font-head);

  /* Layout: equal side margins that scale with the screen (16px on phones → 96px on large screens),
     content up to 1600px wide (widened from the kit's 1160px container at the owner's request) */
  --gutter: clamp(var(--dk-gutter), 5vw, 96px);
  --content-max: 1600px;
  --section-space: var(--dk-s8);        /* 64 between sections on phones, 96 from 900px */
  --head-gap: var(--dk-s6);             /* section head → content */
  --card-gap: var(--dk-s4);
  --card-pad: var(--dk-s5);
  --stack-xs: var(--dk-s3);             /* eyebrow → heading, heading → text */

  /* Footer rules on navy (no token exists for this) */
  --footer-rule: rgb(255 255 255 / 0.18);
}
@media (min-width: 900px)  { :root { --card-gap: var(--dk-s5); --section-space: calc(var(--dk-s8) * 1.5); } }


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-ui); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
.rounded { border-radius: var(--dk-radius-lg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: var(--dk-s4); top: -100px; z-index: 100; padding: var(--dk-s3) var(--dk-s4); background: var(--dk-navy); color: var(--dk-on-action); border-radius: var(--dk-radius); }
.skip-link:focus { top: var(--dk-s4); }

.container { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

.icon { width: 20px; height: 20px; flex: none; display: block; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--font-ui); font-size: var(--dk-text-min); font-weight: 600; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dk-navy); margin-bottom: var(--stack-xs); }
/* Coral rules are decorative accents (large, non-text), per the PDFs */
@media (min-width: 900px) {
  .eyebrow--line, .eyebrow--lines { display: flex; align-items: center; gap: var(--dk-s4); }
  .eyebrow--line::after, .eyebrow--lines::after, .eyebrow--lines::before { content: ""; width: 40px; height: 2px; background: var(--dk-coral); flex: none; }
  .eyebrow--lines { justify-content: center; }
}
.h-hero { max-width: 12ch; text-wrap: balance; font-size: clamp(40px, 16px + 3.6vw, 64px); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; color: var(--dk-head); }
.h-section { text-wrap: balance; font-size: var(--dk-text-h1); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--dk-head); }
@media (min-width: 900px) { .h-section { font-size: var(--dk-text-h1-wide); } }
.h-card { font-size: var(--dk-text-h2); font-weight: 700; line-height: 1.2; color: var(--dk-head); }
.h-item { display: block; font-family: var(--font-head); font-size: var(--dk-text-h3); font-weight: 600; line-height: 1.3; color: var(--dk-head); }
.lead { font-size: var(--dk-text-h3); line-height: 1.5; color: var(--dk-ink-2); }
.lead-sm { font-size: var(--dk-text-body); line-height: var(--dk-leading); color: var(--dk-ink-2); max-width: var(--dk-measure); }
.small { font-size: var(--dk-text-small); line-height: 1.55; color: var(--dk-ink-2); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--dk-s3); min-height: var(--dk-tap); padding: var(--dk-s3) var(--dk-s5); border: 0; border-radius: var(--dk-radius-chip); font-family: var(--font-ui); font-size: var(--dk-text-body); font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--dk-fast) var(--dk-ease); }
.btn .icon { width: 20px; height: 20px; }
.btn--cta { background: var(--dk-cta); color: var(--dk-on-cta); }
.btn--cta:hover, .btn--cta:active { background: var(--dk-cta-deep); }
.btn--navy { background: var(--dk-action); color: var(--dk-on-action); }
.btn--navy:hover, .btn--navy:active { background: var(--dk-action-deep); }
.btn--light { background: var(--dk-sky); color: var(--dk-navy); }
.btn--light:hover, .btn--light:active { background: var(--dk-paper); }
.btn--compact { padding-inline: var(--dk-s4); font-size: var(--dk-text-small); }
.btn--block { width: 100%; }

.text-link { display: inline-flex; align-items: center; min-height: var(--dk-tap); color: var(--dk-action); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }

.icon-btn { display: grid; place-items: center; flex: none; width: var(--dk-tap); height: var(--dk-tap); border-radius: 50%; background: var(--dk-action); color: var(--dk-on-action); transition: background-color var(--dk-fast) var(--dk-ease); }
.icon-btn:hover, .icon-btn:active { background: var(--dk-action-deep); }

/* Icon tiles: navy line icon on a pale-blue tile (no coral dot: it read as an error badge) */
.icon-tile, .step__icon, .icon-dot { position: relative; display: grid; place-items: center; flex: none; color: var(--dk-navy); }

.icon-tile { width: 56px; height: 56px; border-radius: var(--dk-radius-card); background: var(--dk-sky-2); }
.icon-tile .icon { width: 30px; height: 30px; position: relative; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--dk-paper); border-bottom: var(--dk-border) solid var(--dk-line-2); padding-top: env(safe-area-inset-top); }
.site-header__bar { display: flex; align-items: center; gap: var(--dk-s4); min-height: 72px; }
.site-header__logo { display: block; flex: none; padding-block: var(--dk-s3); }
.site-header__logo img { width: 112px; height: auto; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--dk-s2); }
.quote-short { display: none; }
@media (max-width: 359px) { .quote-long { display: none; } .quote-short { display: inline; } }

.menu-btn { display: grid; place-items: center; width: var(--dk-tap); height: var(--dk-tap); padding: 0; border: var(--dk-border) solid var(--dk-line); border-radius: var(--dk-radius); background: var(--dk-paper); color: var(--dk-navy); cursor: pointer; }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .icon--close, .menu-btn[aria-expanded="true"] .icon--menu { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__link { display: flex; align-items: center; gap: var(--dk-s1); min-height: var(--dk-tap); padding: 0; border: 0; background: none; color: var(--dk-navy); font-size: var(--dk-text-body); font-weight: 500; text-decoration: none; cursor: pointer; }
.site-nav__toggle .icon--chev { width: 18px; height: 18px; transition: transform var(--dk-fast) var(--dk-ease); }
.site-nav__toggle[aria-expanded="true"] .icon--chev { transform: rotate(180deg); }
.site-nav__menu { list-style: none; margin: 0; padding: 0; }
.site-nav__menu a { display: flex; align-items: center; min-height: var(--dk-tap); color: var(--dk-ink); text-decoration: none; }
.site-nav__menu a:hover, .site-nav__link:hover { color: var(--dk-action-deep); text-decoration: underline; text-underline-offset: 5px; }
.js .site-nav__toggle[aria-expanded="false"] + .site-nav__menu { display: none; }
.site-nav__menu a[aria-current="page"] { color: var(--dk-navy); font-weight: 600; }

/* Phone/tablet: nav is a panel under the header bar */
@media (max-width: 1079px) {
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; background: var(--dk-paper); border-bottom: var(--dk-border) solid var(--dk-line); }
  .site-nav__list { max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding: var(--dk-s2) var(--gutter) var(--dk-s5); }
  .site-nav__list > li { border-bottom: var(--dk-border) solid var(--dk-line-2); }
  .site-nav__link { width: 100%; justify-content: space-between; font-size: var(--dk-text-h3); font-family: var(--font-head); font-weight: 600; min-height: 56px; }
  .site-nav__menu { padding: 0 0 var(--dk-s3) var(--dk-s4); }
  .no-js .site-nav { position: static; }
  .no-js .site-header__bar { flex-wrap: wrap; }
  .no-js .menu-btn { display: none; }
}
/* Desktop: inline nav with dropdowns */
@media (min-width: 1080px) {
  .site-header__bar { min-height: 80px; gap: var(--dk-s6); }
  .site-header__logo img { width: 128px; }
  .menu-btn { display: none; }
  .site-nav { margin-inline: auto; }
  .site-header__actions { margin-left: 0; }
  .site-nav__list { display: flex; align-items: center; gap: var(--dk-s6); }
  .site-nav__list > li { position: relative; }
  .site-nav__link { font-size: var(--dk-text-small); }
  .site-nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--dk-coral); } /* active mark, as on the kit's tabs */
  .site-nav__menu { position: absolute; top: 100%; left: calc(-1 * var(--dk-s4)); min-width: 240px; padding: var(--dk-s2) var(--dk-s4); background: var(--dk-paper); border: var(--dk-border) solid var(--dk-line); border-radius: var(--dk-radius); }
  .site-nav__menu a { font-size: var(--dk-text-small); }
}

/* ---------- Sections ---------- */
/* Each section only pads its top, so gaps never double up; the last one pads its bottom too. */
.section { padding-top: var(--section-space); }
.section--last { padding-bottom: var(--section-space); }
.section-head { margin-bottom: var(--head-gap); }
.section-head .h-section + .lead-sm { margin-top: var(--stack-xs); }
@media (min-width: 900px) {
  .section-head--center-desktop { text-align: center; }
  .section-head--center-desktop .lead-sm { margin-inline: auto; }
}

/* ---------- Hero ---------- */
/* Under 1100px: text, then the photo edge to edge. From 1100px: as in the reference, one full-width
   photo behind the hero with the text on the plain wall at the left. The wide photo is the PDF hero
   with its baked-in text removed (wall filled in from the surrounding pixels). */
/* Phones/tablets (mobile reference): text on the photo's own wall colour, then the rest of the photo
   continues underneath. The two background colours are sampled from the photo's wall, not UI colours. */
.hero { padding-top: var(--dk-s6); background: linear-gradient(#F8F5F2, #F1EAE4 70%); }
.hero .lead { margin-top: var(--dk-s4); max-width: 30ch; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--dk-s2); margin-top: var(--dk-s5); }
.hero__media { position: relative; display: block; margin-top: var(--dk-s5); }
.hero__media img { width: 100%; }
.hero__media::before { content: ""; position: absolute; inset: 0 0 auto; height: 22%; background: linear-gradient(#F1EAE4, rgb(241 234 228 / 0)); pointer-events: none; z-index: 1; }
@media (min-width: 1100px) {
  .hero { display: grid; padding-top: 0; background: none; }
  .hero__media::before { display: none; }
  .hero__inner, .hero__media { grid-area: 1 / 1; }
  .hero__media { margin-top: 0; }
  .hero__inner { position: relative; z-index: 1; align-self: center; padding-block: var(--dk-s7); }
  .hero__text { max-width: 30rem; }
  /* Cap the banner height on wide screens: the photo keeps its full width and loses only plain wall
     at the top and floor at the bottom, so the text no longer floats in empty space */
  .hero__media img { height: clamp(520px, 36vw, 680px); object-fit: cover; object-position: 60% 55%; }
}

/* ---------- Collections ---------- */
.collections { display: grid; gap: var(--card-gap); }
.ccard { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--dk-radius-card); background: var(--dk-paper); border: var(--dk-border) solid var(--dk-line); }
.ccard__img { width: 100%; }
.ccard__body { flex: 1; display: flex; align-items: flex-start; gap: var(--dk-s4); padding: var(--card-pad); }
.ccard__text { flex: 1; min-width: 0; }
.ccard__text .small { margin-top: var(--dk-s1); }
.ccard__body .icon-btn { margin-left: auto; align-self: center; }
@media (min-width: 600px) and (max-width: 899px) {
  /* Tablet: horizontal cards, text left and photo right (mobile artboard composition) */
  .ccard { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); align-items: center; }
  .ccard__img { order: 2; }
  .ccard__body { flex-direction: column; align-items: flex-start; }
  .ccard__body .icon-btn { margin-left: 0; margin-top: var(--dk-s2); align-self: flex-start; }
}
@media (min-width: 900px) {
  .collections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ccard__body .icon-btn { padding-left: 0; }
  .ccard__body { align-items: stretch; }
  .ccard__text { align-self: stretch; padding-right: var(--dk-s4); border-right: var(--dk-border) solid var(--dk-line); }
}

/* ---------- Interior design services ---------- */
.interior { display: grid; grid-template-areas: "head" "media" "features" "cta"; }
.interior__head { grid-area: head; }
.interior__media { grid-area: media; }
.interior__media img { width: 100%; }
.features { grid-area: features; display: grid; gap: var(--card-gap); margin-top: var(--card-gap); }
.interior__cta { grid-area: cta; margin-top: var(--dk-s6); display: flex; justify-content: center; }
.feature { display: flex; align-items: flex-start; gap: var(--dk-s4); padding: var(--card-pad); border-radius: var(--dk-radius-card); background: var(--dk-paper); border: var(--dk-border) solid var(--dk-line); }
.feature .small { margin-top: var(--dk-s1); }
@media (min-width: 600px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { flex-direction: column; }
}
@media (min-width: 900px) {
  .interior { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "head media" "cta media" "features features"; column-gap: var(--dk-s7); }
  .interior__head { align-self: start; margin-bottom: 0; }
  .interior__cta { justify-content: flex-start; margin-top: var(--dk-s5); align-self: start; }
  .interior__media { align-self: start; }
  .features { margin-top: var(--dk-s6); }
}
/* Desktop (1024px+), like How Desket Works: heading, button and the three services on the left
   (icon square beside the text, no card boxes, 2-column grid); the photo on the right ending level with them */
@media (min-width: 1024px) {
  .interior { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "head media" "cta media" "features media"; align-items: start; }
  .interior__cta { margin-top: var(--dk-s5); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dk-s6) var(--dk-s5); margin-top: var(--dk-s6); }
  .feature { flex-direction: row; align-items: flex-start; padding: 0; border: 0; border-radius: 0; background: none; }
  .feature > div { min-height: 56px; display: flex; flex-direction: column; justify-content: center; }
  .interior__media { position: relative; align-self: stretch; }
  .interior__media img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
}

/* ---------- Process ---------- */
/* Phones: vertical list with three-dash connectors. From 600px: the four steps sit in a 2 x 2 grid (no outer boxes).
   From 900px: heading and the 2 x 2 boxes on the left, the photo on the right at its natural size. */
.process { display: grid; grid-template-areas: "head" "steps" "media"; }
.process__head { grid-area: head; }
.process__media { grid-area: media; margin-top: var(--dk-s6); }
.process__media img { width: 100%; }
.steps { grid-area: steps; display: grid; gap: var(--dk-s5); grid-auto-rows: 1fr; --icon: 56px; }
.step { position: relative; display: flex; gap: var(--dk-s4); align-items: flex-start; }
.step__icon { width: var(--icon); height: var(--icon); border-radius: var(--dk-radius-card); background: var(--dk-sky-2); }
.step__icon .icon { width: 30px; height: 30px; position: relative; }
/* Text block is centred on the icon square when shorter than it, and starts level with its top when taller */
.step__text { min-height: var(--icon); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.step__text .small { margin-top: var(--dk-s1); }
.step__num { color: var(--dk-accent-text); margin-right: var(--dk-s2); font-variant-numeric: tabular-nums; }
/* Vertical connector in the icon column: always exactly three dashes, centred between the squares */
.step:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--icon) / 2 - 1px); width: 2px; top: var(--icon); bottom: calc(-1 * var(--dk-s5));
  background: repeating-linear-gradient(to bottom, var(--dk-line) 0 6px, transparent 6px 12px) center / 2px 30px no-repeat; }
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
  /* Same compact layout as desktop: icon square beside the number, title and description */
  .step { flex-direction: row; align-items: flex-start; }
  .step::after { display: none; }
}
@media (min-width: 900px) {
  /* Same photo size as before (7 of 12 columns, natural proportions, not cropped); heading and the
     2 x 2 step boxes sit in the left column */
  .process { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "head media" "steps media"; column-gap: var(--dk-s7); align-items: start; }
  .process__head { margin-bottom: var(--head-gap); }
  .process__media { margin-top: 0; }
}

/* Side by side (1024px+, all desktop sizes): equal halves; each step has its icon beside the text so the 2 x 2 grid is compact,
   and the photo runs from the heading to the bottom of steps 03/04 (only lightly trimmed at the sides) */
@media (min-width: 1024px) {
  .process { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .process__head { align-self: start; }
  .steps { align-self: end; }
  .process__media img { height: 100%; object-fit: cover; object-position: 28% center; }
}
/* Smaller laptops: keep the 2 x 2 boxes but give them the full width under the heading and photo */
@media (min-width: 900px) and (max-width: 1023px) {
  .process { grid-template-areas: "head media" "steps steps"; }
  .steps { margin-top: var(--dk-s6); }
}

/* ---------- Services ---------- */
.services { display: grid; gap: var(--card-gap); }
/* Photo shown whole (never cropped) at every size: its column is capped so the square photo sets a modest card height */
.scard { display: grid; grid-template-columns: minmax(0, 1fr) min(45%, 260px); align-items: center; overflow: hidden; border-radius: var(--dk-radius-card); background: var(--dk-paper); border: var(--dk-border) solid var(--dk-line); }
.scard__text { padding: var(--card-pad); padding-right: var(--dk-s4); }
.scard__text .small { margin-top: var(--dk-s2); }
.scard__text .icon-btn { margin-top: var(--dk-s5); }
.scard__img { width: 100%; height: auto; }
/* Phones: text on the left, photo on the right filling its side of the card from top to bottom */
@media (max-width: 599px) {
  /* Photo shown whole (square, not cropped) on the right, text on the left */
  .scard { grid-template-columns: minmax(0, 1fr) var(--svc-img, 54%); align-items: center; }
  .scard__text { padding: var(--dk-s4) var(--dk-s2) var(--dk-s4) var(--dk-s4); }
  .scard__text .icon-btn { margin-top: var(--dk-s3); }
  .scard .h-card { font-size: var(--dk-text-h3); }
  /* Both cards the same height, so the photo has the same space above and below in each */
  .services { grid-auto-rows: 1fr; }
  /* Whole photo, framed inside the card with rounded corners */
  /* Same space above, right of and below the photo (photo whole, not cropped); text kept compact so it
     is never taller than the photo */
  .scard__img { align-self: start; height: auto; width: calc(100% - var(--dk-s3)); margin: var(--dk-s3) var(--dk-s3) var(--dk-s3) 0; border-radius: var(--dk-radius); }
  .scard .small { font-size: var(--dk-text-min); }
  .scard .icon-btn { width: 44px; height: 44px; }
}
@media (min-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Desktop: shorter cards - smaller (still uncropped) photo and tighter text spacing */
@media (min-width: 1024px) {
  .scard { grid-template-columns: minmax(0, 1fr) min(40%, 200px); }
  .scard__text { padding: var(--dk-s5) var(--dk-s5) var(--dk-s5) var(--dk-s6); }
  .scard__text .icon-btn { margin-top: var(--dk-s4); }
}

/* Shorter service descriptions on phones, where the text sits in a narrow column beside the photo */
.only-phone { display: none; }
@media (max-width: 599px) { .only-phone { display: inline; } .only-wide { display: none; } }

/* ---------- Materials & craftsmanship ---------- */
/* Phones and tablets: heading, then the benefit icons, then the material cards; the large photo is desktop-only */
.craft { display: grid; grid-template-areas: "head" "benefits" "cards"; }
@media (max-width: 1023px) { .craft__media { display: none; } }
/* Phones: benefits in a 2-column grid (1 2 / 3), icon on top and label underneath */
@media (max-width: 599px) {
  .craft .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dk-s5) var(--dk-s4); }
  .craft .benefits li { flex-direction: column; align-items: flex-start; gap: var(--dk-s3); }
}
.craft__head { grid-area: head; }
.craft__media { grid-area: media; }
.craft__media img { width: 100%; }
.mcards { grid-area: cards; display: grid; gap: var(--card-gap); margin-top: var(--dk-s6); }
.mcard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--dk-s4); align-items: center; padding: var(--dk-s3); border-radius: var(--dk-radius-card); background: var(--dk-paper); border: var(--dk-border) solid var(--dk-line); }
.mcard__img { width: 100%; border-radius: var(--dk-radius); }
.mcard .small { margin-top: var(--dk-s1); }
.mcard > div { padding-right: var(--dk-s2); }
.benefits { grid-area: benefits; display: grid; gap: var(--dk-s4); }
.benefits li { display: flex; align-items: center; gap: var(--dk-s4); font-family: var(--font-head); font-size: var(--dk-text-body); font-weight: 600; line-height: 1.3; color: var(--dk-head); }
.icon-dot { width: 56px; height: 56px; border-radius: var(--dk-radius-card); background: var(--dk-sky-2); }
.icon-dot .icon { width: 30px; height: 30px; position: relative; }
@media (min-width: 600px) {
  .mcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mcard { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .mcard > div { padding: 0 var(--dk-s2) var(--dk-s2); }
  /* Same columns as the cards above; each item starts at the left of its column with the icon square
     beside the text, like the How Desket Works steps */
  .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
  .benefits li { justify-content: flex-start; }
}
/* Desktop (1024px+), like How Desket Works: heading and the three benefits on the left, the photo on the
   right ending level with them, the three material cards in a full row underneath */
@media (min-width: 1024px) {
  /* Like How Desket Works: the photo runs from the top of the heading to the bottom of the benefits.
     Benefits laid out like the Interior Design Services items: icon square beside the label, 2-column grid */
  .craft { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head media" "benefits media" "cards cards"; align-items: start; }
  .craft__head { margin-bottom: var(--dk-s6); }
  .benefits { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dk-s6) var(--dk-s5); }
  .mcards { margin-top: var(--dk-s6); }
  .craft__media { position: relative; align-self: stretch; }
  .craft__media img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
}
@media (min-width: 1100px) {
  /* Photo column capped so the card stays short; the photo keeps its full frame (not cropped) */
  .mcard { grid-template-columns: min(40%, 150px) minmax(0, 1fr); align-items: center; }
  .mcard > div { padding: 0 var(--dk-s2) 0 0; }
}

/* ---------- Consultation ---------- */
.consult { display: grid; grid-template-areas: "head" "choices" "form"; }
.consult__head { grid-area: head; }
.choices { grid-area: choices; display: grid; gap: var(--card-gap); border: 0; padding: 0; min-width: 0; }  /* same gap as the other card rows */
.choice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--dk-s3); row-gap: var(--dk-s3); align-items: start; align-content: start; padding: var(--dk-s4); border: var(--dk-border-strong) solid transparent; border-radius: var(--dk-radius-card); background: var(--dk-paper); border: var(--dk-border) solid var(--dk-line); cursor: pointer; }
.choice .icon-tile { grid-column: 1; grid-row: 1; }
.choice__text { grid-column: 1 / -1; grid-row: 2; }
.choice__text .small { display: block; margin-top: var(--dk-s1); }
.choice input { grid-column: 2; grid-row: 1; justify-self: end; appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: var(--dk-s3) 0 0; border: 1.5px solid var(--dk-ink-3); border-radius: 50%; background: var(--dk-paper) center / 16px 16px no-repeat; cursor: pointer; transition: background-color var(--dk-fast) var(--dk-ease), border-color var(--dk-fast) var(--dk-ease); }
/* Round selector as in the design: empty circle, navy with a white tick when chosen */
.choice input:checked { border-color: var(--dk-action); background-color: var(--dk-action); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.choice:hover input:not(:checked) { border-color: var(--dk-action); }
@media (forced-colors: active) { .choice input { appearance: auto; } }
.choice:has(input:checked) { border-color: var(--dk-action); background: var(--dk-sky); }
.choice:has(input:checked) .icon-tile { background: var(--dk-paper); }
.choice:has(input:focus-visible) { outline: var(--dk-focus); outline-offset: var(--dk-focus-offset); }
.choice input:focus-visible { outline: none; }
.choices .field__error { grid-column: 1 / -1; }
@media (min-width: 340px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.consult__form { grid-area: form; display: grid; gap: var(--dk-s4); margin-top: var(--dk-s5); }
.field__label { display: block; margin-bottom: var(--dk-s2); font-size: var(--dk-text-small); font-weight: 600; color: var(--dk-ink); }
.field__optional { font-weight: 400; color: var(--dk-ink-2); }
.field__box { position: relative; display: flex; align-items: center; min-height: 56px; border: var(--dk-border) solid var(--dk-line); border-radius: var(--dk-radius); background: var(--dk-paper); color: var(--dk-navy); }
.field__box > .icon { position: absolute; left: var(--dk-s4); top: 18px; pointer-events: none; }
.field__box input, .field__box select, .field__box textarea { width: 100%; min-height: 54px; padding: var(--dk-s3) var(--dk-s4) var(--dk-s3) 52px; border: 0; border-radius: var(--dk-radius); background: transparent; font-size: var(--dk-text-body); color: var(--dk-ink); }
.field__box select { appearance: none; padding-right: 48px; cursor: pointer; }
.field__box textarea { min-height: 120px; resize: vertical; line-height: 1.5; padding-top: 15px; }
.field__box--area > .icon { top: 17px; }
.field__box > .field__chev { left: auto; right: var(--dk-s4); top: 50%; transform: translateY(-50%); }
/* Custom Project Type dropdown (JS enhancement; the native select stays underneath for the value) */
.field__box.is-enhanced select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.select-btn { width: 100%; min-height: 54px; padding: var(--dk-s3) 48px var(--dk-s3) 52px; border: 0; border-radius: var(--dk-radius); background: transparent; font-size: var(--dk-text-body); color: var(--dk-ink); text-align: left; cursor: pointer; }
.select-btn.is-empty { color: var(--dk-ink-2); }
.select-btn:focus-visible { outline: none; }
.field__box .field__chev { transition: transform var(--dk-fast) var(--dk-ease); }
.field__box.is-open .field__chev { transform: translateY(-50%) rotate(180deg); }
.field__box.is-open { border-color: var(--dk-action); }
.select-list { position: absolute; z-index: 15; top: calc(100% + var(--dk-s2)); left: 0; right: 0; margin: 0; padding: var(--dk-s2); list-style: none; background: var(--dk-paper); border: var(--dk-border) solid var(--dk-line); border-radius: var(--dk-radius); max-height: 260px; overflow-y: auto; }
.select-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--dk-s3); min-height: var(--dk-tap); padding: 0 var(--dk-s3) 0 44px; border-radius: 8px; font-size: var(--dk-text-body); color: var(--dk-ink); cursor: pointer; }
.select-list li.is-active { background: var(--dk-sky-2); }
.select-list li[aria-selected="true"] { font-weight: 600; color: var(--dk-navy); }
.select-list__check { width: 18px; height: 18px; color: var(--dk-navy); visibility: hidden; }
.select-list li[aria-selected="true"] .select-list__check { visibility: visible; }
/* Field names shown inside the boxes, as in the design; real labels stay for screen readers.
   Placeholder uses the secondary-text token (not the lighter placeholder token) so it stays readable. */
.field__box input::placeholder, .field__box textarea::placeholder { color: var(--dk-ink-2); opacity: 1; }
.field__box select:invalid { color: var(--dk-ink-2); }
.field__box select option { color: var(--dk-ink); }
.field__box:focus-within { border-color: var(--dk-action); outline: var(--dk-focus); outline-offset: 1px; }
.field__box input:focus-visible, .field__box select:focus-visible, .field__box textarea:focus-visible { outline: none; }
.field__box:has([aria-invalid="true"]) { border-color: var(--dk-flag); border-width: 2px; }
.field__hint { margin-top: var(--dk-s1); font-size: var(--dk-text-min); line-height: 1.45; color: var(--dk-ink-2); }
.field__error { margin-top: var(--dk-s2); font-size: var(--dk-text-small); font-weight: 600; line-height: 1.45; color: var(--dk-flag); }
.field__error::before { content: "! "; }
.consult__form .btn--block { margin-top: var(--dk-s2); }
.form-status { padding: var(--dk-s4); border-radius: var(--dk-radius); background: var(--dk-sky); color: var(--dk-ink); font-size: var(--dk-text-small); line-height: 1.5; }
.form-status.is-error { background: var(--dk-flag-bg); color: var(--dk-flag); }
.form-status:focus { outline: var(--dk-focus); outline-offset: 2px; }

@media (min-width: 1024px) {
  .consult { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "head form" "choices form"; column-gap: var(--dk-s8); align-items: start; }
  .consult__form { margin-top: 0; padding: var(--dk-s6); border: var(--dk-border) solid var(--dk-line); border-radius: var(--dk-radius-lg); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dk-navy); color: var(--dk-on-action); padding-bottom: env(safe-area-inset-bottom); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer h2 { color: inherit; }
.site-footer .btn--light { color: var(--dk-navy); }
.site-footer .btn--light:hover { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--dk-sky); }
.footer { display: grid; padding-top: var(--dk-s7); padding-bottom: var(--dk-s6); }
.footer__logo { width: 140px; height: auto; }
.footer__tag { margin-top: var(--dk-s3); font-family: var(--font-head); font-size: var(--dk-text-h3); font-weight: 500; color: var(--dk-sky); }
.footer__desc { margin-top: var(--dk-s3); max-width: 42ch; color: var(--dk-navy-soft); }
.footer__brand .btn { margin-top: var(--dk-s5); }

.footer__contact { display: grid; gap: var(--dk-s4); margin-top: var(--dk-s6); }
.footer__contact li { display: flex; align-items: center; gap: var(--dk-s4); }
.footer__contact div { display: flex; flex-direction: column; }
.footer__clabel { font-family: var(--font-head); font-weight: 600; font-size: var(--dk-text-body); }
.footer__contact a { display: inline-flex; align-items: center; min-height: 32px; color: var(--dk-navy-soft); }
@media (min-width: 400px) {
  .footer__contact { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: var(--dk-s6); }
}

.footer__cols { margin-top: var(--dk-s6); border-top: var(--dk-border) solid var(--footer-rule); }
.fcol { border-bottom: var(--dk-border) solid var(--footer-rule); }
.fcol__title { display: flex; align-items: center; justify-content: space-between; gap: var(--dk-s4); min-height: 56px; cursor: pointer; list-style: none; }
.fcol__title::-webkit-details-marker { display: none; }
.fcol__title h2 { font-size: var(--dk-text-h3); font-weight: 600; line-height: 1.3; }
.fcol__minus, .fcol[open] .fcol__plus { display: none; }
.fcol[open] .fcol__minus { display: block; }
.fcol ul { padding-bottom: var(--dk-s4); }
.fcol li a { display: flex; align-items: center; min-height: 44px; color: var(--dk-navy-soft); font-size: var(--dk-text-small); }

.footer__bottom { display: grid; gap: var(--dk-s5); margin-top: var(--dk-s6); padding-top: var(--dk-s5); border-top: var(--dk-border) solid var(--footer-rule); }
.footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: var(--dk-s4); }
.footer__connect { font-size: var(--dk-text-body); font-weight: 600; }
.social { display: flex; gap: var(--dk-s1); }
.social a { display: grid; place-items: center; width: var(--dk-tap); height: var(--dk-tap); border-radius: var(--dk-radius); }
.social .icon { width: 24px; height: 24px; }
.social a:hover { background: rgb(255 255 255 / 0.1); }
.legal { display: flex; flex-wrap: wrap; }
.legal li { display: flex; align-items: center; }
.legal { column-gap: var(--dk-s5); }
@media (min-width: 600px) {
  .legal { column-gap: 0; }
  .legal li + li::before { content: "|"; padding-inline: var(--dk-s3); color: var(--dk-navy-soft); }
}
.legal a { display: inline-flex; align-items: center; min-height: var(--dk-tap); font-size: var(--dk-text-small); }
.copyright { font-size: var(--dk-text-small); color: var(--dk-navy-soft); }

@media (min-width: 900px) {
  .footer { padding-top: var(--dk-s8); }
  .footer__main { min-width: 0; }
  .footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dk-s5); border-top: 0; margin-top: var(--dk-s6); }
  .fcol { border-bottom: 0; }
  .fcol__title { cursor: default; min-height: 0; padding-bottom: var(--dk-s3); margin-bottom: var(--dk-s2); border-bottom: var(--dk-border) solid var(--footer-rule); }
  .fcol__title .icon { display: none !important; }
  .fcol__title h2 { font-size: var(--dk-text-body); }
  .fcol li a { min-height: 36px; }
  .footer__bottom { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; align-items: center; column-gap: var(--dk-s6); }
  .copyright { text-align: right; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .footer__bottom { grid-template-columns: 1fr auto; }
  .copyright { grid-column: 1 / -1; text-align: left; }
}
/* Brand column beside the links only when there is room for it */
@media (min-width: 1200px) {
  .footer { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--dk-s7); }
  .footer__brand { padding-right: var(--dk-s7); border-right: var(--dk-border) solid var(--footer-rule); align-self: start; }
  .footer__contact { margin-top: 0; }
}

/* ---------- Shop pages (Collections, Collection, Product) ----------
   Layouts come from css/lx-layout.css (layout export, unchanged) with css/lx-tokens.css.
   These few rules match them to the homepage: bold headings like the homepage section titles,
   white collection cards with the same 1px border as the homepage cards. */
.lx .lx-h-page, .lx .lx-h-collection, .lx .lx-h-title, .lx .lx-h-section, .lx .lx-ccard__name { font-weight: 700; }
.lx .lx-ccard { border: var(--dk-border) solid var(--dk-line); }
.lx .lx-ccard__photo { border-radius: var(--dk-radius); }
