/* Morrowframe layout kit: the shared phone-first structure every client site is built on.
   The look comes from the brand, never from here. Colors and text scale read the tokens in
   design-tokens.css (the portal edits those by name; don't rename them). Set the brand's own
   tokens below in the site's stylesheet :root (not in design-tokens.css, which the portal rewrites):
     --font-display   heading face. Must differ from the body face and not be a default
                      (Inter, Roboto, Arial, Helvetica, Open Sans, system-ui, Poppins, Montserrat).
     --font-body      body face.
     --radius         corner shape (2px square trade, 999px soft studio...).
     --heading-weight 400-900. Bold, black and uppercase headings are fine on client sites.
     --heading-case   none | uppercase.
     --signature      the one motif only this business has (a background value: a tick rule, a
                      stitched edge, a blueprint grid, a stamp). Place it 2-4 times with .k-signature.
   Phone first; the desktop layer starts at 900px. Reference markup: _kit-reference.html. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--color-background, #f5f6f5);
  color: var(--color-ink, #14181b);
  font: 400 max(16px, calc(1rem * var(--text-scale-body, 1))) / 1.6 var(--font-body, system-ui, sans-serif);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .k-h1, .k-h2 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-weight: var(--heading-weight, 700);
  text-transform: var(--heading-case, none);
  line-height: 1.1;
  text-wrap: balance;
}
p { margin: 0; max-width: 65ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-accent, #e08d3c); outline-offset: 2px; }

.k-wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.k-skip { position: absolute; left: 8px; top: -100px; z-index: 20; padding: 12px 16px; background: var(--color-surface, #fff); color: var(--color-ink, #14181b); border-radius: var(--radius, 6px); }
.k-skip:focus { top: 8px; }

/* Header: logo + labeled Menu button on phones; inline nav + one primary button on desktop. */
.k-head { position: sticky; top: 0; z-index: 10; background: var(--color-surface, #fff); border-bottom: 1px solid var(--color-border, #dde3e1); }
.k-head .k-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.k-logo { display: inline-flex; align-items: center; min-height: 48px; font: var(--heading-weight, 700) 20px/1.1 var(--font-display, Georgia, serif); text-transform: var(--heading-case, none); text-decoration: none; }
.k-nav, .k-head .k-head-cta { display: none; }
.k-menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 14px;
  border: 1px solid var(--color-border, #dde3e1); border-radius: var(--radius, 6px);
  background: transparent; color: var(--color-ink, #14181b); font: 600 16px var(--font-body, system-ui, sans-serif); cursor: pointer;
}
.k-bars { width: 18px; height: 12px; display: grid; align-content: space-between; }
.k-bars i { display: block; height: 2px; background: currentColor; }
.k-menu { position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: var(--color-background, #f5f6f5); padding: 4px 16px 32px; }
.k-menu[hidden] { display: none; }
.k-menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; margin-bottom: 8px; }
.k-menu ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.k-menu li a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--color-border, #dde3e1); text-decoration: none; font: var(--heading-weight, 700) 22px/1.2 var(--font-display, Georgia, serif); }

/* Buttons */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius, 6px); font: 600 17px var(--font-body, system-ui, sans-serif); text-decoration: none; cursor: pointer;
}
.k-btn.primary { background: var(--color-primary, #1b4b4f); color: var(--color-primary-text, #fff); }
.k-btn.secondary { background: transparent; color: inherit; border-color: currentColor; }

/* Hero: the business's own photo, at least 40% of the first phone screen. Phone: text sits on the
   photo over a dark scrim in the brand's ink. Desktop: split, text left, photo right. */
.k-hero { display: grid; min-height: min(78svh, 640px); background: var(--color-ink, #14181b); color: var(--color-background, #f5f6f5); }
.k-hero-media, .k-hero-text { grid-area: 1 / 1; }
.k-hero-media { width: 100%; height: 100%; object-fit: cover; }
.k-hero-text {
  align-self: end; display: grid; gap: 14px; padding: 96px 16px 24px;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-ink, #14181b) 90%, transparent) 60%, transparent);
}
.k-kicker { font: 600 14px var(--font-body, system-ui, sans-serif); letter-spacing: .02em; }
.k-h1 { font-size: calc(clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem) * var(--text-scale-heading, 1)); }
.k-sub { font-size: 1.0625rem; }
.k-actions { display: grid; gap: 10px; }
.k-hero .k-btn.secondary { color: var(--color-background, #f5f6f5); }
@media (prefers-reduced-motion: no-preference) {
  /* The one entrance allowed: the hero text on load, under 500ms, opacity + translate only. */
  .k-hero-text > * { animation: k-enter .45s ease-out both; }
  .k-btn, .k-row, .k-bar a { transition: filter .15s; }
  .k-btn:hover, .k-row:hover, .k-bar a:hover { filter: brightness(.94); }
}
@keyframes k-enter { from { opacity: 0; transform: translateY(8px); } }

/* Trust strip: real facts with their source. */
.k-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 16px; border-bottom: 1px solid var(--color-border, #dde3e1); color: var(--color-ink-muted, #5b6670); }
.k-trust b { color: var(--color-ink, #14181b); }

/* Sections. Vary the treatment down the page: plain, .k-band (brand color block), .k-photo-band, .k-split. */
.k-sec { padding-block: 40px; display: grid; gap: 16px; }
.k-h2 { font-size: calc(clamp(1.625rem, 1.2rem + 1.6vw, 2.5rem) * var(--text-scale-heading, 1)); }
.k-band { background: var(--color-primary, #1b4b4f); color: var(--color-primary-text, #fff); }
.k-band.ink { background: var(--color-ink, #14181b); color: var(--color-background, #f5f6f5); }
.k-band .k-btn.primary { background: var(--color-primary-text, #fff); color: var(--color-primary, #1b4b4f); }
.k-photo-band { position: relative; }
.k-photo-band img { width: 100%; height: clamp(240px, 45vw, 520px); object-fit: cover; }
.k-photo-band figcaption { padding: 10px 16px; font-size: 14px; color: var(--color-ink-muted, #5b6670); }
.k-split { display: grid; gap: 24px; align-items: center; }
.k-split img { width: 100%; border-radius: min(var(--radius, 6px), 16px); }
.k-signature { display: block; min-height: 14px; background: var(--signature); }

/* Services: full-width tappable rows, each to its own page. Rows, not identical icon cards. */
/* 8px between rows keeps neighbouring targets apart (the 48px + 8px rule). */
.k-rows { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.k-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 4px; border-bottom: 1px solid var(--color-border, #dde3e1); text-decoration: none; }
.k-row strong { font-weight: 600; }
.k-row span { color: var(--color-ink-muted, #5b6670); font-size: 15px; text-align: right; }

/* FAQ */
.k-faq { padding-block: 4px; border-bottom: 1px solid var(--color-border, #dde3e1); }
.k-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-weight: 600; cursor: pointer; list-style: none; }
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after { content: "+"; font-size: 22px; color: var(--color-ink-muted, #5b6670); }
.k-faq[open] summary::after { content: "\2013"; }
.k-faq p { padding-bottom: 16px; color: var(--color-ink-muted, #5b6670); }

/* Form: 3-5 fields, right keyboards (type=tel/email) and autocomplete. */
.k-form { display: grid; gap: 14px; max-width: 560px; }
.k-label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.k-input { min-height: 48px; width: 100%; padding: 10px 12px; font: 16px var(--font-body, system-ui, sans-serif); color: var(--color-ink, #14181b); background: var(--color-surface, #fff); border: 1px solid var(--color-ink-muted, #5b6670); border-radius: calc(var(--radius, 6px) * .6); }
textarea.k-input { min-height: 112px; }
.k-hp { position: absolute; left: -9999px; }

/* Footer clears the action bar so it never covers the last link or the form's submit. */
.k-foot { padding-block: 32px 112px; display: grid; gap: 8px; font-size: 15px; color: var(--color-ink-muted, #5b6670); border-top: 1px solid var(--color-border, #dde3e1); }
.k-foot > a { display: inline-flex; align-items: center; min-height: 48px; }

/* Action bar: pinned in thumb reach on phones. Service: Call + Get a quote. Shop: Shop + Visit/Book. */
.k-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--color-surface, #fff); border-top: 1px solid var(--color-border, #dde3e1);
}
.k-bar a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--radius, 6px); font-weight: 600; text-decoration: none; }
.k-bar .p { background: var(--color-primary, #1b4b4f); color: var(--color-primary-text, #fff); }
.k-bar .s { border: 2px solid var(--color-ink, #14181b); }
.k-bar:has(> a:only-child) { grid-template-columns: 1fr; }

/* Desktop layer: inline nav, no action bar, split hero, multi-column service list. */
@media (min-width: 900px) {
  .k-menu-btn, .k-bar { display: none; }
  .k-nav { display: flex; gap: 8px; }
  .k-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; text-decoration: none; font-weight: 500; }
  .k-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .k-head .k-head-cta { display: inline-flex; }
  .k-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; background: var(--color-background, #f5f6f5); color: var(--color-ink, #14181b); }
  .k-hero-text { grid-area: 1 / 1; align-self: center; padding: 64px 48px 64px max(16px, calc((100vw - 1140px) / 2 + 16px)); background: none; }
  .k-hero-media { grid-area: 1 / 2; min-height: 520px; }
  .k-hero .k-btn.secondary { color: var(--color-ink, #14181b); }
  .k-actions { display: flex; flex-wrap: wrap; }
  .k-sec { padding-block: 72px; }
  .k-rows { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 32px; }
  .k-split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .k-foot { padding-bottom: 40px; }
}
