@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');
@import url('./horizontal-showroom.css');
@import url('./public-contrast.css');

/*
 * TK Web Studio shared type + brand shell.
 * Keep this file intentionally small: page-specific layout belongs in that page's
 * stylesheet. This prevents the public site from accumulating competing themes.
 */
:root {
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --tkws-ink: #171717;
  --tkws-ink-2: #242424;
  --tkws-blue: #bd3913;
  --tkws-cyan: #ff754b;
  --tkws-text: #f5f9ff;
  --tkws-muted: #b8c8dc;
  --tkws-line: rgba(255,117,75,.24);
}

/*
 * Typography contract
 * -------------------
 * DM Sans: body copy and functional UI.
 * Syne: headings, display moments and the wordmark only.
 *
 * Keep requested font weights inside the faces we actually load from Google Fonts.
 * Syne is loaded at 600/700/800; DM Sans is loaded at 400/500/600/700/800.
 */
html body,
html body button,
html body input,
html body textarea,
html body select {
  font-family: var(--font-body);
  font-synthesis: none;
}

html body :is(.eyebrow, .pill, .workMeta, .project-tech, .btn, .nav, .tag, .fine, p, li, label, small) {
  font-family: var(--font-body);
}

html body :is(h1, h2, h3, h4, h5, h6, .brand, .brand__name, .display-type, .home-fit__price) {
  font-family: var(--font-display);
}

html body :is(h1, h2, .display-type, .home-fit__price) {
  font-weight: 800;
}

html body :is(h3, h4) {
  font-weight: 700;
}

html body :is(h5, h6) {
  font-weight: 600;
}

/* One predictable logo size across Home, Showroom and the rest of the public site. */
html body .header .brand img {
  display: block;
  width: 64px !important;
  height: 40px !important;
  max-width: 64px !important;
  flex: 0 0 64px !important;
  border-radius: 0;
  object-fit: contain !important;
}

/* Keep the shared navigation legible and stop page-level experiments stretching it. */
html body .header__inner {
  min-height: 72px;
}

html body .nav a,
html body .tk-nav-services__link,
html body .tk-nav-services__toggle {
  font-family: var(--font-body);
}

/* A calmer, usable footer layout at laptop widths and below. */
@media (max-width: 980px) {
  html body .footer__inner {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "brand" "links" "copy" !important;
    gap: 22px !important;
    padding: 32px 0 110px !important;
    text-align: center !important;
  }

  html body .footer__inner > .brand {
    justify-self: center !important;
  }

  html body .footer__links {
    justify-content: center !important;
  }

  html body .footer-copy {
    justify-self: stretch !important;
    max-width: 100%;
    text-align: center !important;
  }
}

@media (max-width: 700px) {
  html body .header__inner {
    min-height: 64px !important;
  }

  html body .header .brand img {
    width: 56px !important;
    height: 36px !important;
    max-width: 56px !important;
    flex-basis: 56px !important;
  }
}

/* The public header uses one light surface on every route and screen size.
   These shell rules take precedence over older page-specific header themes. */
html body.tk-public-page .header {
  background: #fafafa !important;
  color: #242424 !important;
  border-bottom: 1px solid #dedbd5 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 1600;
}
html body.tk-public-page .header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #242424 !important;
}
html body .brand__name {
  font: 800 12px/1.25 var(--font-display);
  letter-spacing: .08em;
  white-space: nowrap;
}
html body.tk-public-page .header .nav a,
html body.tk-public-page .header .tk-nav-services__toggle {
  color: #404040 !important;
  background: transparent !important;
  font-size: .875rem !important;
}
html body.tk-public-page .header .nav a:hover,
html body.tk-public-page .header .nav a:focus-visible,
html body.tk-public-page .header .nav a[aria-current="page"] {
  color: #a92f0e !important;
  background: #fff0e9 !important;
}
html body.tk-public-page .header .nav .nav-cta {
  background: #bd3913 !important;
  color: #ffffff !important;
  border-color: #bd3913 !important;
  box-shadow: none !important;
}
html body.tk-public-page .header .nav .nav-cta:hover {
  background: #a32d0c !important;
}
html body.tk-public-page .header .nav .nav-demo {
  border-color: #dedbd5 !important;
  box-shadow: none;
}
html body.tk-public-page .header .tk-nav-submenu {
  background: #ffffff !important;
  border-color: #dedbd5 !important;
  box-shadow: 0 12px 32px rgba(23,23,23,.12);
}
html body.tk-public-page .header .tk-nav-submenu small {
  color: #666666;
  font-size: .8125rem;
}
html body.tk-public-page .header .menuBtn {
  color: #242424 !important;
  background: #ffffff !important;
  border: 1px solid #c9c5bf !important;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
html body.tk-public-page .header .menuBtn span {
  background: #242424 !important;
}
html body .header :is(a, button):focus-visible {
  outline: 2px solid #a92f0e;
  outline-offset: 3px;
}
html body .footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  justify-self: start;
}
/* Preserve the original TK logo and give it room within the footer brand. */
html body .footer .brand img {
  display: block;
  width: 96px;
  height: 60px;
  max-width: 96px;
  flex: 0 0 96px;
  padding: 6px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}

@media (max-width: 1100px) {
  html body.tk-public-page .header .menuBtn { display: inline-flex !important; }
  html body.tk-public-page .header .nav {
    display: none !important;
    position: absolute !important;
    inset: calc(100% + 8px) 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 100px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 10px !important;
    border: 1px solid #dedbd5 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 40px rgba(23,23,23,.15) !important;
  }
  html body.tk-public-page .header .nav.open { display: flex !important; }
  html body.tk-public-page .header .nav > a,
  html body.tk-public-page .header .tk-nav-services__link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 8px !important;
  }
  html body.tk-public-page .header .tk-nav-services {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    width: 100%;
  }
  html body.tk-public-page .header .tk-nav-services__toggle {
    min-height: 44px;
    border-color: #dedbd5 !important;
  }
  html body.tk-public-page .header .tk-nav-submenu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
  }
}
@media (max-width: 980px) {
  html body .footer .brand { justify-self: center; }
}
