/* CEYMAT brands + discovery homepage (2026-10-14). Separate file; remove <link id="ceymat-brands">
   from website.custom_code_head to roll back. Uses the round-3 palette: #172027 ink, #bb0f12 accent, #f6f7f8 light. */

/* Text wordmark: brand names in Ceymat's own type, never imitation logos */
.cm-wordmark { display: block; font-weight: 800; letter-spacing: -.01em; color: #172027; line-height: 1.1; overflow-wrap: anywhere; }
.cm-sept h1.cm-wordmark--xl { font-size: clamp(36px, 5vw, 56px); margin: 0 0 12px; }
.cm-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #bb0f12; }

/* Breadcrumb */
.cm-crumbs { padding-top: 16px; }
.cm-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.cm-crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.cm-crumbs a { color: inherit; }

/* Brand tiles (overview + homepage) */
.cm-brandtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; }
.cm-brandtiles--home { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.cm-sept a.cm-brandtile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 16px; background: #fff;
  border: 1px solid rgba(23, 32, 39, .12); border-radius: 12px; color: #172027; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cm-sept a.cm-brandtile:hover, .cm-sept a.cm-brandtile:focus-visible { border-color: #bb0f12; box-shadow: 0 2px 10px rgba(23, 32, 39, .08); }
.cm-sept a.cm-brandtile:focus-visible { outline: 2px solid #bb0f12; outline-offset: 2px; }
.cm-brandtile .cm-wordmark { font-size: 22px; }
.cm-brandtiles--rich .cm-brandtile .cm-wordmark { font-size: 26px; }
.cm-brandtile__count { font-size: 14px; font-weight: 600; color: #bb0f12; }
.cm-brandtile__groups { font-size: 13px; line-height: 1.4; color: #4a5560; }
.cm-sept .cm-homebrands { padding: 48px 0; }
.cm-note { font-size: 14px; color: #4a5560; }

/* Brand page head */
.cm-sept .cm-brandhead { padding: 28px 0 36px; }
.cm-brandhead__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cm-brandhead .lead { max-width: 640px; }
.cm-brandhead__card { padding: 20px 22px; background: #f6f7f8; border-radius: 12px; }
.cm-sept .cm-brandhead__card h2 { font-size: 18px; margin: 0 0 10px; }
.cm-checks { margin: 0; padding: 0; list-style: none; }
.cm-checks li { position: relative; padding: 0 0 8px 24px; line-height: 1.45; }
.cm-checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid #bb0f12; border-bottom: 2px solid #bb0f12; transform: rotate(-45deg); }

/* Product groups with counts */
.cm-sept .cm-brandgroups { padding: 8px 0 32px; }
.cm-grouplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cm-sept .cm-grouplist a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid rgba(23, 32, 39, .12);
  border-radius: 10px; color: #172027; text-decoration: none; font-weight: 600; }
.cm-sept .cm-grouplist a:hover, .cm-sept .cm-grouplist a:focus-visible { border-color: #bb0f12; }
.cm-grouplist a span { font-weight: 400; color: #4a5560; }

/* Related links + store CTA */
.cm-sept .cm-related { padding: 40px 0 24px; }
.cm-related__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; }
.cm-linklist { margin: 0; padding: 0; list-style: none; }
.cm-linklist li { padding: 4px 0; }
.cm-linklist a { font-weight: 600; color: #bb0f12; }
.cm-linklist--cols { columns: 2; column-gap: 24px; }
.cm-storecta { background: #172027; color: #fff; }
.cm-sept .cm-storecta { padding: 36px 0; }
.cm-storecta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.cm-sept .cm-storecta h2 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.cm-storecta p { margin: 0 0 4px; }
.cm-storecta__hours { display: flex; align-items: center; gap: 8px; opacity: .85; font-size: 15px; }
.cm-storecta__hours svg { width: 18px; height: 18px; flex: none; }
.cm-storecta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-sept .cm-storecta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }

/* Homepage: Levelit feature (static text) directly followed by its product grid */
.cm-sept .cm-levelit { padding: 44px 0 8px; background: #f6f7f8; }
.cm-levelit__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.cm-sept .cm-levelit h2 { margin: 0 0 8px; }
.cm-levelit p { margin: 0; max-width: 600px; }
.cm-levelit__systems { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cm-levelit__systems li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 16px; background: #fff;
  border: 1px solid rgba(23, 32, 39, .1); border-radius: 10px; }
.cm-levelit__systems span { color: #4a5560; }
.cm-featured.cm-levelit-products { padding-top: 16px; }

/* Homepage: application routes */
.cm-sept .cm-routes { padding: 44px 0; }
.cm-routes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cm-route { padding: 20px; border: 1px solid rgba(23, 32, 39, .12); border-radius: 12px; background: #fff; }
.cm-sept .cm-route h3 { font-size: 19px; margin: 0 0 4px; }
.cm-route p { margin: 0 0 10px; color: #4a5560; font-size: 15px; }
.cm-route ul { margin: 0; padding: 0; list-style: none; }
.cm-route li { padding: 3px 0; }
.cm-route a { font-weight: 600; color: #bb0f12; }

/* Supplier page */
.cm-sept .cm-supplier { padding: 24px 0 32px; }
.cm-supplier__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cm-supplier__card { padding: 20px 22px; border: 1px solid rgba(23, 32, 39, .12); border-radius: 12px; }
.cm-sept .cm-supplier__card h2 { font-size: 20px; margin: 0 0 10px; }
.cm-supplier--contact { background: #f6f7f8; }
.cm-sept .cm-supplier--contact { padding: 36px 0; }

@media (max-width: 991.98px) {
  .cm-brandtiles--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cm-routes__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .cm-brandhead__grid, .cm-related__grid, .cm-supplier__grid, .cm-levelit__grid { grid-template-columns: minmax(0, 1fr); }
  .cm-brandtiles, .cm-brandtiles--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cm-sept a.cm-brandtile { padding: 14px 12px; }
  .cm-brandtile .cm-wordmark, .cm-brandtiles--rich .cm-brandtile .cm-wordmark { font-size: 20px; }
  .cm-grouplist { grid-template-columns: minmax(0, 1fr); }
  .cm-linklist--cols { columns: 1; }
  .cm-storecta__actions { width: 100%; }
  .cm-storecta__actions .btn { flex: 1 1 100%; justify-content: center; }
  .cm-sept .cm-levelit, .cm-sept .cm-routes, .cm-sept .cm-homebrands { padding-top: 32px; padding-bottom: 32px; }
  .cm-sept .cm-levelit { padding-bottom: 4px; }
}
