/* ============================================================
   Tillex — Layout & component styles
   Translated from the Tillex design system prototype into
   reusable classes so template text stays editable while the
   layout stays locked in CSS.
   ============================================================ */

/* ---- Base element defaults ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body-family);
  font-weight: var(--body-weight);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--heading-family);
  font-weight: var(--heading-weight);
  color: var(--text-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
::selection { background: var(--tillex-yellow); color: #000; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* ---- Sticky footer: keep the footer pinned to the bottom of the viewport
   even when the page content is shorter than the screen. WordPress wraps the
   whole template (header / main / footer) in .wp-site-blocks. ---- */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.wp-site-blocks > main { flex: 1 0 auto; }

/* ---- Layout helpers ---- */
.tlx-container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.tlx-section { padding-block: var(--section-y); }
.tlx-section--subtle { background: var(--bg-subtle); border-top: 1px solid var(--border-default); }
.tlx-eyebrow {
  font-weight: var(--fw-bold); font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cc-orange); margin-bottom: 12px;
}
.tlx-section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 4vw, 48px); }
.tlx-section-head p { font-size: clamp(15px, 2vw, 18px); font-weight: 300; color: var(--ink-600); line-height: 1.55; }

/* ---- Buttons ---- */
.tlx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h-md); padding: 0 22px; border: none; border-radius: var(--radius-md);
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; transition: background var(--dur-fast) var(--ease-standard);
}
.tlx-btn--primary { background: var(--tillex-yellow); color: #000; }
.tlx-btn--primary:hover { background: var(--accent-hover); color: #000; }
.tlx-btn--orange { background: var(--cc-orange); color: #fff; }
.tlx-btn--outline { background: #fff; color: #000; border: 1px solid var(--border-strong); }
.tlx-btn--ghost { background: transparent; color: #000; border: 1px solid var(--border-default); }
.tlx-btn--sm { height: var(--control-h-sm); padding: 0 14px; }

/* ============================================================
   HEADER
   ============================================================ */
.tlx-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border-default); }
.tlx-header__inner {
  max-width: var(--container-max); margin: 0 auto; min-height: 60px;
  padding: 8px var(--gutter); display: flex; align-items: center;
  gap: clamp(12px, 3vw, 32px); flex-wrap: wrap;
}
.tlx-brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.tlx-brand img { height: 40px; width: auto; }
.tlx-brand__rule { width: 1px; height: 28px; background: var(--border-strong); }
.tlx-brand__tag { font-size: 11px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.tlx-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; max-width: 100%; }
.tlx-nav a { padding: 8px 14px; font-size: 14px; white-space: nowrap; font-weight: 400; color: var(--ink-700); border-bottom: 2px solid transparent; }
.tlx-nav a:hover, .tlx-nav .current-menu-item > a { color: #000; border-bottom-color: var(--tillex-yellow); }
/* Nav dropdown (Contact → Become a distributor) */
.tlx-nav__has-sub { position: relative; display: inline-flex; align-items: center; }
.tlx-nav__has-sub > a { padding: 8px 14px; font-size: 14px; color: var(--ink-700); border-bottom: 2px solid transparent; }
.tlx-nav__has-sub:hover > a, .tlx-nav__has-sub:focus-within > a { color: #000; border-bottom-color: var(--tillex-yellow); }
.tlx-nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--border-default); border-radius: 6px;
  box-shadow: var(--shadow-md); padding: 6px; z-index: 60;
  flex-direction: column; display: none;
}
.tlx-nav__has-sub:hover .tlx-nav__sub, .tlx-nav__has-sub:focus-within .tlx-nav__sub { display: flex; }
.tlx-nav__sub a { padding: 9px 12px; font-size: 14px; white-space: nowrap; color: var(--ink-700); border-radius: 4px; border-bottom: 0; }
.tlx-nav__sub a:hover { background: var(--bg-subtle); color: #000; }
.tlx-header__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tlx-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  background: #fff; border: 1px solid var(--border-default); border-radius: 4px; cursor: pointer; color: var(--ink-700);
}

/* Header expanding search: field collapsed to 0 until the magnifier is clicked. */
.tlx-hsearch { display: flex; align-items: center; }
.tlx-hsearch__field {
  width: 0; height: 38px; padding: 0; box-sizing: border-box;
  border: 1px solid transparent; border-radius: 4px;
  background: #fff; color: var(--ink-800); font-size: 14px;
  opacity: 0; pointer-events: none;
  transition: width .25s var(--ease-standard), opacity .2s var(--ease-standard), padding .25s var(--ease-standard), margin .25s var(--ease-standard);
}
.tlx-hsearch.is-open .tlx-hsearch__field {
  width: min(46vw, 220px); padding: 0 12px; margin-right: 6px;
  opacity: 1; pointer-events: auto; border-color: var(--border-strong);
}
.tlx-hsearch__field:focus { outline: none; border-color: var(--tillex-silver); box-shadow: 0 0 0 3px rgba(138, 141, 143, 0.18); }
.tlx-hsearch__field::placeholder { color: var(--text-muted); }

/* ============================================================
   HERO
   ============================================================ */
.tlx-hero { position: relative; min-height: min(78vh, 660px); overflow: hidden; background: #565B5E; }
.tlx-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.tlx-hero__slide.is-active { opacity: 1; }
.tlx-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.tlx-hero__slide--contain img { object-fit: contain; padding: clamp(16px, 4vw, 56px); }
.tlx-hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(52,56,58,.62) 0%, rgba(52,56,58,.30) 42%, rgba(52,56,58,.92) 100%); }
.tlx-hero__body { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.tlx-hero__inner { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: clamp(40px,7vw,76px) var(--gutter); color: #fff; }
.tlx-hero__col { max-width: 760px; }
.tlx-kicker { display: inline-flex; align-items: center; gap: 12px; }
.tlx-kicker__bar { width: 4px; height: 22px; background: var(--tillex-yellow); }
.tlx-kicker__text { font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.tlx-hero h1 { font-size: clamp(34px,5.6vw,60px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 16px; color: #fff; max-width: 16ch; }
.tlx-hero p { font-size: clamp(15px,2vw,18px); font-weight: 300; color: #eef0f0; max-width: 52ch; margin: 0 0 26px; line-height: 1.55; }
.tlx-hero__dots { display: flex; gap: 9px; }
.tlx-hero__dots button { width: 30px; height: 5px; border-radius: 3px; border: none; cursor: pointer; padding: 0; background: rgba(255,255,255,.4); transition: background .2s; }
.tlx-hero__dots button.is-active { background: var(--tillex-yellow); }
.tlx-pills { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-left: 16px; }
.tlx-pills span { font-size: 14px; color: #eef0f0; display: inline-flex; align-items: center; gap: 7px; }
.tlx-pills span::before { content: ""; width: 5px; height: 5px; background: var(--tillex-yellow); border-radius: 50%; }

/* ---- Credentials strip ---- */
.tlx-creds { margin-top: 0; border-top: 3px solid var(--tillex-yellow); border-bottom: 1px solid var(--border-default); background: var(--bg-subtle); }
.tlx-creds__inner { max-width: var(--container-max); margin: 0 auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.tlx-creds__item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-700); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.tlx-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.tlx-cat-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-default); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-xs); }
.tlx-cat-card:hover { box-shadow: var(--shadow-md); }
.tlx-cat-card__media { aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.tlx-cat-card__media img { width: 100%; height: 100%; object-fit: contain; padding: clamp(10px, 2vw, 20px); }
.tlx-cat-card__body { padding: clamp(22px, 2.6vw, 30px); border-top: 4px solid var(--tillex-yellow); flex: 1; display: flex; flex-direction: column; }
.tlx-cat-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tlx-cat-card__title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; color: #000; letter-spacing: -0.01em; }
.tlx-cat-card__count { font-size: 13px; color: var(--text-muted); white-space: nowrap; font-weight: 500; }
.tlx-cat-card__desc { margin: 0 0 20px; font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--ink-600); flex: 1; }
.tlx-cat-card__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cc-orange); }
/* Whole-card click target (stretched link), and hover lift. */
.tlx-cat-card__link { position: absolute; inset: 0; z-index: 2; font-size: 0; }
.tlx-cat-card:hover { box-shadow: var(--shadow-md); }
.tlx-cat-card:hover .tlx-cat-card__cta { color: #000; }
/* Neutralise any stray wpautop <p> that may wrap loose inline content in a card. */
.tlx-cat-card p { margin: 0; }
.tlx-badge-abs { position: absolute; top: 16px; left: 16px; background: var(--cc-orange); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 6px 11px; border-radius: 2px; }

/* ============================================================
   COLOUR CODE FEATURE
   ============================================================ */
.tlx-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.tlx-split__col { flex: 1 1 340px; min-width: 280px; }
.tlx-media-frame { position: relative; width: 100%; aspect-ratio: 16/7; min-height: 180px; border: 1px solid var(--border-default); border-radius: 8px; overflow: hidden; background: var(--bg-subtle); }
.tlx-media-frame img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   PRODUCT CARDS  (featured / catalogue)
   ============================================================ */
.tlx-prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.tlx-prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-xs); }
.tlx-prod-card:hover { box-shadow: var(--shadow-md); }
.tlx-prod-card__media { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 18px; }
.tlx-prod-card__media img { width: 100%; height: 100%; object-fit: contain; }
.tlx-prod-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border-default); }
.tlx-prod-card__cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.tlx-prod-card__name { font-size: 17px; font-weight: 700; color: #000; letter-spacing: -0.01em; }
.tlx-prod-card__spec { font-size: 13px; font-weight: 300; color: var(--ink-600); }

/* ============================================================
   FOOTER
   ============================================================ */
.tlx-footer { background: #B8C2C3; color: #1a1a1a; }
.tlx-footer__inner { max-width: var(--container-max); margin: 0 auto; padding: clamp(44px,6vw,64px) var(--gutter) 32px; }
.tlx-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.tlx-footer img { height: 84px; margin-bottom: 18px; }
.tlx-footer__coltitle { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #000; margin-bottom: 14px; }
.tlx-footer__links { display: flex; flex-direction: column; gap: 9px; }
.tlx-footer__links a { font-size: 14px; color: #2a2e2f; }
.tlx-footer__links a:hover { color: #000; }
.tlx-footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.15); font-size: 13px; color: #3a3f40; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .tlx-nav { order: 3; width: 100%; margin-left: 0; }
  .tlx-hero__body { align-items: flex-end; }
}

/* ============================================================
   COVER-BASED HERO (editable core/cover variant)
   ============================================================ */
.tlx-hero-cover { min-height: min(78vh, 660px); }
.tlx-hero-cover .wp-block-cover__inner-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.tlx-hero-cover h1 { font-size: clamp(34px,5.6vw,60px); line-height: 1.02; letter-spacing: -0.02em; color: #fff; max-width: 16ch; margin: 0 0 16px; }
.tlx-hero-cover p { font-size: clamp(15px,2vw,18px); font-weight: 300; color: #eef0f0; max-width: 52ch; margin: 0; line-height: 1.55; }
.tlx-hero-cover .tlx-hero-kicker { font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: #fff; border-left: 4px solid var(--tillex-yellow); padding-left: 12px; margin: 0 0 16px; }

/* ============================================================
   BLOCK-BASED CATEGORY CARDS (core/columns variant)
   ============================================================ */
.tlx-cat-card .wp-block-image { margin: 0; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tlx-cat-card .wp-block-image img { width: 100%; height: 100%; object-fit: contain; padding: clamp(10px,2vw,20px); }
.tlx-cat-card > .tlx-cat-card__body { border-top: 4px solid var(--tillex-yellow); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.tlx-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.tlx-value-card { background: #fff; border: 1px solid var(--border-default); border-top: 3px solid var(--tillex-yellow); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-xs); }
/* Fact-card icon: a yellow rounded square with a line icon, matching the
   document/contact icon squares. Driven by CSS so it decorates the layout-locked
   card content (which has no icon markup) as well as any new About page built
   from the pattern. One icon per card by position. */
.tlx-value-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 8px;
  background-color: var(--tillex-yellow);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
.tlx-cards-grid > .tlx-value-card:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23333'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M2%2020a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2V8l-7%205V8l-7%205V4a2%202%200%200%200-2-2H4a2%202%200%200%200-2%202Z'/%3E%3Cpath%20d='M17%2018h1'/%3E%3Cpath%20d='M12%2018h1'/%3E%3Cpath%20d='M7%2018h1'/%3E%3C/svg%3E"); }
.tlx-cards-grid > .tlx-value-card:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23333'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.7%206.3a1%201%200%200%200%200%201.4l1.6%201.6a1%201%200%200%200%201.4%200l3.77-3.77a6%206%200%200%201-7.94%207.94l-6.91%206.91a2.12%202.12%200%200%201-3-3l6.91-6.91a6%206%200%200%201%207.94-7.94l-3.76%203.76z'/%3E%3C/svg%3E"); }
.tlx-cards-grid > .tlx-value-card:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23333'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E"); }
.tlx-value-card h4 { margin: 0 0 6px; font-size: 18px; }
.tlx-value-card p { margin: 0; color: var(--text-muted); font-size: 15px; font-weight: 300; line-height: 1.55; }
.tlx-milestones { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; align-items: stretch; }

/* WordPress adds a flow-layout top-margin to every child after the first
   (.is-layout-flow > * + *). Inside our CSS grids that breaks alignment and
   stretching — neutralise it so grid items align and stretch as intended. */
.tlx-cards-grid > *,
.tlx-milestones > *,
.tlx-docs-grid > *,
.tlx-split > *,
.tlx-contact > *,
.tlx-contact-list > *,
.tlx-header__inner > *,
.tlx-nav > *,
.tlx-footer__cols > *,
.tlx-footer__links > *,
.tlx-footer__bottom > * { margin-block: 0 !important; }

/* ---- Editable (block-based) header nav ---- */
.tlx-nav p { margin: 0; }
.tlx-nav p a { display: block; padding: 8px 14px; font-size: 14px; white-space: nowrap; font-weight: 400; color: var(--ink-700); border-bottom: 2px solid transparent; }
.tlx-nav p a:hover { color: #000; border-bottom-color: var(--tillex-yellow); }

/* ---- Editable (block-based) footer ---- */
.tlx-footer__col { display: flex; flex-direction: column; }
.tlx-footer__links p { margin: 0; font-size: 14px; color: #2a2e2f; line-height: 1.5; }
.tlx-footer__links p a { color: #2a2e2f; }
.tlx-footer__links p a:hover { color: #000; }
.tlx-footer__tagline { font-size: 14px; color: #3a3f40; padding-left: 16px; margin: 8px 0 0; }
.tlx-milestone { border-top: 3px solid var(--tillex-yellow); padding-top: 14px; }
.tlx-milestone .tlx-milestone__year { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tlx-milestone p { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }

/* ============================================================
   DOCUMENTS PAGE
   ============================================================ */
.tlx-docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tlx-doc-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.tlx-doc-card:hover { box-shadow: var(--shadow-sm); }
.tlx-doc-card__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 4px; background: var(--tillex-yellow); display: flex; align-items: center; justify-content: center; }
.tlx-doc-card__title { font-weight: 400; font-size: 15px; color: #000; margin: 0; display: block; }
.tlx-doc-card__meta { font-size: 13px; color: var(--text-muted); margin: 0; display: block; text-transform: uppercase; letter-spacing: .04em; }
a.tlx-doc-card { color: inherit; text-decoration: none; }
a.tlx-doc-card:hover { border-color: var(--border-strong); }
.tlx-docs-group-title { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #000; font-weight: 700; margin: 34px 0 14px; }
.tlx-docs-group-title:first-child { margin-top: 0; }
.tlx-docs-empty { color: var(--text-muted); padding: 24px 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.tlx-contact { display: flex; flex-wrap: wrap; gap: clamp(32px,5vw,56px); align-items: flex-start; }
.tlx-contact__col { flex: 1 1 320px; min-width: 280px; }
.tlx-contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.tlx-contact-item { display: flex; gap: 14px; align-items: center; }
.tlx-contact-item__icon { width: 40px; height: 40px; border-radius: 4px; background: var(--bg-inset); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tlx-contact-item__label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; }
.tlx-contact-item__value { font-size: 15px; }
.tlx-form-card { flex: 1 1 340px; min-width: 280px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: clamp(24px,4vw,32px); }
.tlx-form { display: flex; flex-direction: column; gap: 16px; }
.tlx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tlx-form label { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 6px; }
.tlx-form input, .tlx-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 4px; font-size: 16px; outline: none; font-family: inherit; }
.tlx-form input:focus, .tlx-form textarea:focus { border-color: var(--tillex-silver); box-shadow: var(--shadow-focus); }
.tlx-form textarea { resize: vertical; min-height: 110px; }
.tlx-form button { height: 48px; background: var(--tillex-yellow); color: #000; border: none; border-radius: 4px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; width: 100%; }
@media (max-width: 480px) { .tlx-form__row { grid-template-columns: 1fr; } }

/* ---- Fluent Forms — match the Tillex form design ---- */
.tlx-form-card .fluentform { margin: 0; }
.fluentform .ff-el-group { margin-bottom: 16px; }
.fluentform .ff-el-input--label label,
.fluentform label.ff-el-input--label {
	font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--text-muted); margin-bottom: 6px; display: block;
}
.fluentform input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.fluentform textarea,
.fluentform select {
	width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong);
	border-radius: 4px !important; font-size: 16px; line-height: 1.4; outline: none;
	font-family: var(--font-sans) !important; background: #fff; color: var(--text-body) !important; box-shadow: none;
}
.fluentform input:focus, .fluentform textarea:focus, .fluentform select:focus {
	border-color: var(--tillex-silver); box-shadow: var(--shadow-focus);
}
.fluentform textarea { resize: vertical; min-height: 110px; }
.fluentform .ff-el-is-required .asterisk-right,
.fluentform .ff_t_container .text-danger { color: var(--danger); }
.fluentform .ff-btn-submit,
.fluentform .ff-btn.ff-btn-submit,
.fluentform .ff-btn-submit.ff_btn_style,
.fluentform button[type="submit"] {
	height: 48px; width: 100%;
	background: var(--tillex-yellow) !important;
	color: #000 !important;
	border: none !important;
	border-radius: 4px; font-weight: 700; font-size: 14px; text-transform: uppercase;
	letter-spacing: .06em; cursor: pointer; box-shadow: none !important;
}
.fluentform .ff-btn.ff-btn-submit:hover,
.fluentform .ff-btn-submit.ff_btn_style:hover,
.fluentform button[type="submit"]:hover { background: var(--accent-hover) !important; color: #000 !important; }
.fluentform .ff-el-group.ff_t_container { gap: 16px; }
.ff-message-success { border-left: 3px solid var(--tillex-yellow); background: var(--bg-subtle); padding: 16px 18px; border-radius: 4px; }

/* ============================================================
   FRONT PAGE — block-editable hero + section refinements
   The hero, credentials and category sections are now content-only
   locked block groups that reuse the prototype classes. These rules
   restore the layout the original static wp:html markup relied on.
   ============================================================ */
/* Slideshow layer fills the hero behind the editable text column */
.tlx-hero__slides { position: absolute; inset: 0; }
/* The text column overlays the slideshow, but must let dot clicks through */
.tlx-hero__body { pointer-events: none; }
/* Slideshow dots flow directly under the hero text (design placement). They sit
   inside .tlx-hero__body which is pointer-events:none, so re-enable clicks. */
.tlx-hero__col .tlx-hero__dots {
  display: flex; gap: 9px; margin-top: 26px; pointer-events: auto;
}
/* Restored hero pills (editable), under the kicker */
.tlx-hero-pills {
  font-size: 14px; color: #eef0f0; margin: 0 0 22px; padding-left: 16px;
}
/* Editable kicker paragraph (the existing rule is scoped to the cover hero) */
.tlx-hero .tlx-hero-kicker {
  font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; border-left: 4px solid var(--tillex-yellow); padding-left: 12px; margin: 0 0 16px;
}
/* Neutralise WordPress flow-layout margins inside the new block groups so the
   credentials strip and the category grid stay aligned like the static markup */
.tlx-creds__inner > *,
.tlx-cat-grid > * { margin-block: 0 !important; }
.tlx-hero__col > * { margin-block-start: 0 !important; }

/* ============================================================
   FRONT PAGE / FOOTER — review fixes (2026-07)
   ============================================================ */

/* (1) No gap between the sticky header and the hero. The <main> group and its
   first child (the hero) must not carry any flow-layout / root top spacing. */
.wp-block-group.tlx-hero { margin-top: 0 !important; }
main.wp-block-group { margin-top: 0 !important; }
main.wp-block-group > *:first-child { margin-block-start: 0 !important; }

/* (2) Hero kicker pills — restore the spacing the old paragraph had. */
.tlx-hero__col .tlx-pills { margin: 0 0 22px; }

/* (3) Credentials strip icons. */
.tlx-creds__item svg {
  width: 18px; height: 18px; flex: none;
  stroke: var(--tillex-silver); color: var(--tillex-silver);
}

/* (4)(6) Section eyebrow — must win over `.tlx-section-head p` (same specificity,
   later in source) and over theme.json paragraph defaults. */
.tlx-section-head p.tlx-eyebrow,
.tlx-section-head .tlx-eyebrow,
p.tlx-eyebrow,
.tlx-eyebrow {
  font-size: 13px !important; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cc-orange); font-weight: 700; line-height: 1.2; margin: 0 0 12px;
}

/* (4)(6)(7)(8) Section headings — override theme.json h2 (element specificity). */
.tlx-section-head h2,
.tlx-split h2,
.tlx-section h2,
.tlx-section--subtle h2 {
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 700; letter-spacing: -0.02em; color: #000;
}

/* (7)(8) Left-aligned eyebrows with the yellow vertical bar. */
.tlx-eyebrow--bar { display: inline-flex; align-items: center; gap: 12px; }
.tlx-eyebrow--bar::before {
  content: ""; width: 4px; height: 18px; flex: none;
  background: var(--tillex-yellow);
}

/* ---- Page header (archive / category / inner pages) ----
   One consistent, left-aligned header treatment that matches the front-page
   section heads: gold-bar eyebrow, a confident page title, and a light lead
   paragraph. Replaces the ad-hoc per-template heading markup. */
.tlx-page-head { margin-bottom: clamp(28px, 4vw, 40px); }
.tlx-page-head .tlx-eyebrow { margin: 0 0 12px; }

/* Page-header title — ONE size across every page (products, category, about,
   contact, documents). Every page header has the same shape: an eyebrow
   immediately followed by the <h1> page title, so this single rule keeps them
   pixel-identical and on the original design's heading scale. The homepage is
   unaffected (its hero uses .tlx-kicker, its sections use <h2>). */
.tlx-eyebrow + h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #000;
  margin: 0 0 16px;
}
/* Lead paragraph / term description under the title — original section-lead scale. */
.tlx-eyebrow + h1 + p,
.tlx-page-head .wp-block-term-description,
.tlx-page-head .wp-block-term-description p {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 62ch;
  margin: 0;
}
.tlx-page-head .wp-block-term-description { margin-top: 4px; }
/* About intro eyebrow: the live page (built before this) has an inline black
   colour baked in; force it back to the brand orange so every page's eyebrow
   matches. Scoped to the About split intro only. */
.tlx-split__col .tlx-eyebrow { color: var(--cc-orange) !important; }

/* (5) Category cards: keep all three aligned at the same top.
   wpautop wraps the shortcode's inline <a> cards (whose bodies contain block
   <p> descriptions) into stray <p> elements holding EMPTY .tlx-cat-card anchors.
   Those empties render as thin grey lines and occupy grid cells that push the
   middle card down. Removing them from flow restores a clean, aligned 3-up row. */
.tlx-cat-grid { align-items: stretch; }
.tlx-cat-grid > * { margin-block: 0 !important; }
.tlx-cat-grid > p { display: none !important; }
.tlx-cat-grid p:empty { display: none !important; }

/* (8) "All products" — borderless text link variant. */
.tlx-btn.tlx-btn--plain {
  border: none !important; background: transparent !important;
  padding: 0 2px; height: auto; color: #000;
}
.tlx-btn.tlx-btn--plain:hover { color: var(--yellow-700); background: transparent !important; }

/* (9) Trim the excess space between the last (Featured) section and the footer. */
main.wp-block-group > .tlx-section--subtle:last-child { padding-bottom: clamp(28px, 3vw, 40px); }

/* (10) Footer brand tagline pills — yellow dot before each. */
.tlx-footer__pills { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-left: 16px; margin: 10px 0 0; }
.tlx-footer__pills span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #3a3f40; }
.tlx-footer__pills span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none; background: var(--yellow-700); }

/* (11) Footer "Get in touch" column. */
.tlx-footer__contact { display: flex; flex-direction: column; gap: 9px; }
.tlx-footer__contact a,
.tlx-footer__contact .tlx-footer__contact-row {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: #2a2e2f;
}
.tlx-footer__contact a:hover { color: #000; }
.tlx-footer__contact svg { width: 16px; height: 16px; flex: none; stroke: var(--ink-700); color: var(--ink-700); }
.tlx-footer__cvr { color: var(--text-muted); font-size: 13px; }
/* Contact page map (cookieless OpenStreetMap embed) */
.tlx-map iframe { width: 100%; height: 420px; border: 1px solid var(--border-default); border-radius: 8px; display: block; }
.tlx-map__link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--cc-orange); }
/* Small variant, sitting at the bottom of the "Get in touch" column. */
.tlx-map--sm { margin-top: 24px; }
.tlx-map--sm iframe { height: 220px; }
.tlx-footer__social { display: flex; gap: 12px; margin-top: 16px; }
.tlx-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tillex-yellow); color: #000;
  transition: background var(--dur-fast) var(--ease-standard);
}
.tlx-footer__social a:hover { background: var(--accent-hover, #e0a800); }
.tlx-footer__social svg { width: 20px; height: 20px; color: #000; stroke: #000; }

/* (12) Footer column header/link spacing — kill the flow-layout gap the block
   editor inserts between the coltitle and the links group, keep header mb 14px. */
.tlx-footer__col:not(.tlx-footer__brand) > * { margin-block-start: 0 !important; }
.tlx-footer__col .tlx-footer__coltitle { margin: 0 0 14px !important; }

/* ---- Product videos (Documents page) ---- */
.tlx-videos { margin-top: clamp(36px, 5vw, 56px); }
.tlx-videos__heading { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 20px; }
.tlx-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tlx-video-card { margin: 0; }
.tlx-video-card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; margin: 0; cursor: pointer; overflow: hidden;
  border-radius: 8px; background: #000 center / cover no-repeat;
}
.tlx-video-card__media::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12);
  transition: background var(--dur-base, .2s) var(--ease-standard, ease);
}
.tlx-video-card__media:hover::after { background: rgba(0,0,0,.28); }
.tlx-video-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
.tlx-video-card__play svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); transition: transform var(--dur-base, .2s) var(--ease-standard, ease); }
.tlx-video-card__media:hover .tlx-video-card__play svg { transform: scale(1.08); }
.tlx-video-card__iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; display: block; }
.tlx-video-card__title { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: #000; }
.tlx-videos__channel {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--cc-orange);
}

/* ---- Video lightbox modal ---- */
.tlx-video-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tlx-video-modal[hidden] { display: none; }
.tlx-video-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); animation: tlxFade .18s ease; }
.tlx-video-modal__dialog { position: relative; z-index: 1; width: min(94vw, 980px); }
.tlx-video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.tlx-video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tlx-video-modal__close { position: absolute; top: -42px; right: -4px; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: .85; }
.tlx-video-modal__close:hover { opacity: 1; }
@keyframes tlxFade { from { opacity: 0; } to { opacity: 1; } }

/* ---- EPD certification: hero ribbon (links to Documents) + feature panel ---- */
.tlx-epd-ribbon { position: absolute; top: 0; right: 0; margin: 0; width: 380px; height: 380px; overflow: hidden; z-index: 3; pointer-events: none; }
.tlx-epd-ribbon__band {
  position: absolute; top: 68px; right: -104px; width: 420px; transform: rotate(45deg);
  display: block; pointer-events: auto; cursor: pointer; text-decoration: none;
  background: var(--tillex-yellow); color: #000; text-align: center; padding: 15px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
  font-size: 22px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  transition: background var(--dur-base) var(--ease-standard);
}
.tlx-epd-ribbon__band:hover { background: var(--accent-hover); color: #000; }

/* EPD feature panel: the EPD Danmark logo centred in the media frame, linked. */
.tlx-epd-media { display: flex; align-items: center; justify-content: center; padding: clamp(28px,5vw,56px); text-decoration: none; }
.tlx-epd-media img { width: min(100%, 320px); height: auto; }

/* ---- Tight top cluster: slideshow / creds / EPD / categories sit closer ---- */
.tlx-epd-feature { margin-top: 0; padding-block: clamp(40px, 5vw, 60px); }
.tlx-section--tight-top { margin-top: 0; padding-top: clamp(40px, 5vw, 60px); }

/* Generic hidden utility used by the live filters (product cards AND
   sub-category cards on the products page). Previously only li.product was
   hidden, so sub-category-card filtering set the class but nothing hid them. */
.tlx-hidden { display: none !important; }

/* Colour Code chart fills its media frame (scoped so it doesn't hit the EPD panel) */
.tlx-media-frame .wp-block-image { margin: 0; width: 100%; height: 100%; }
.tlx-media-frame .wp-block-image img { width: 100%; height: 100%; object-fit: contain; padding: clamp(10px, 2vw, 22px); }

/* About page hero image: the page is a copied pattern with an empty <img>, so
   render the photo as a background on the figure and hide the empty img. */
.tlx-about-image { margin: 0; aspect-ratio: 16 / 11; border-radius: 8px; overflow: hidden;
  background: url(/wp-content/themes/tillex/assets/img/about-building.webp) center / cover no-repeat; }
.tlx-about-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Products-page sub-category cards: the tile look from the category pages
   (4/3 image, yellow top rule, name + count, no description/CTA). Scoped to
   [data-tlx-cards] so the homepage's 3 designed category cards are untouched.
   auto-fill (not auto-fit) keeps a single filtered card from stretching. */
.tlx-cat-grid[data-tlx-cards] {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  justify-content: start;
  gap: 24px;
}
.tlx-cat-grid[data-tlx-cards] .tlx-cat-card__media { aspect-ratio: 4 / 3; }
.tlx-cat-grid[data-tlx-cards] .tlx-cat-card__media img { padding: 28px; }
.tlx-cat-grid[data-tlx-cards] .tlx-cat-card__body { padding: 20px 22px 22px; border-top: 4px solid var(--tillex-yellow); }
.tlx-cat-grid[data-tlx-cards] .tlx-cat-card__head { margin-bottom: 0; align-items: baseline; }
.tlx-cat-grid[data-tlx-cards] .tlx-cat-card__title { font-size: 20px; }
.tlx-cat-grid[data-tlx-cards] .tlx-cat-card__count { font-size: 13px; }
.tlx-cat-grid[data-tlx-cards] .tlx-cat-card__desc,
.tlx-cat-grid[data-tlx-cards] .tlx-cat-card__cta { display: none; }

/* ---- Product finder tabs (highlight follows the active tab via JS .is-active) ---- */
.tlx-finder__tab {
  flex: 1; padding: 16px 12px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--bg-subtle, #F8F8F8); color: var(--text-muted, #6E7173);
  border-bottom: 3px solid transparent;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.tlx-finder__tab:hover:not(.is-active) { color: #000; }
.tlx-finder__tab.is-active { background: #fff; color: #000; border-bottom-color: var(--tillex-yellow); }

/* ---- Product finder: material tiles (with icons) + filtered-products header ---- */
.tlx-finder-mats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tlx-finder-mat {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 16px 10px; background: var(--bg-subtle); border: 1px solid var(--border-default);
  border-radius: 6px; text-align: center; font-size: 13px; font-weight: 500; color: var(--ink-800);
  text-decoration: none; transition: border-color var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.tlx-finder-mat:hover { border-color: var(--tillex-yellow); background: #fff; color: #000; }
.tlx-finder-mat img { width: 52px; height: 52px; object-fit: contain; }
.tlx-material-filter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 24px; padding: 12px 16px; background: var(--bg-subtle);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); font-size: 14px;
}
.tlx-material-filter a { font-weight: 700; color: var(--cc-orange); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; text-decoration: none; }

/* ---- Round-2 additions ---- */
/* Colour Code logo in the colour-code section */
.tlx-cc-logo { display: block; margin: 0 0 18px; height: auto; }
/* EPD feature: green-tinted "field" behind the EPD Danmark logo */
.tlx-epd-media { border: 1px solid #A6CE39; background: #F4F8EA; }
/* Breadcrumb (single product) */
.tlx-crumbs-wrap { padding-top: 20px; }
.tlx-crumbs-wrap:has(.tlx-crumbs:empty), .tlx-crumbs-wrap:not(:has(.tlx-crumbs)) { display: none; }
.tlx-crumbs { margin: 2px 0 12px; }
.tlx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; }
.tlx-crumbs li { display: inline-flex; align-items: center; color: var(--text-muted); }
.tlx-crumbs li:not(:last-child)::after { content: "\203A"; margin: 0 8px; color: var(--text-muted); }
.tlx-crumbs a { color: var(--ink-600); }
.tlx-crumbs a:hover { color: #000; }
.tlx-crumbs [aria-current="page"] { color: #000; font-weight: 700; }
