/*
Theme Name: BalanceTape Reclaim
Theme URI: /
Author: Lojer Oy / reconstructed with OpenAI
Description: Modern Gutenberg-friendly BalanceTape brand theme with production-safe Polylang routing, editable PHP header/footer files, Customizer controls and SEO metadata.
Version: 1.3.7
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: balancetape-reclaim
*/

:root {
  --bt-blue: #0782c8;
  --bt-blue-strong: #006dac;
  --bt-blue-dark: #11374d;
  --bt-navy: #0c2c3f;
  --bt-cyan: #42bad2;
  --bt-ink: #153246;
  --bt-muted: #627683;
  --bt-soft: #f2f9fb;
  --bt-soft-strong: #e6f4f8;
  --bt-border: #dce8ed;
  --bt-white: #fff;
  --bt-header-bg: #fff;
  --bt-header-text: #153246;
  --bt-footer-bg: #0c2c3f;
  --bt-footer-text: #c9dce5;
  --bt-footer-accent: #a9e3ef;
  --bt-header-logo-height: 54px;
  --bt-footer-logo-height: 48px;
  --bt-header-image-opacity: .10;
  --bt-footer-image-opacity: .12;
  --bt-header-bg-image: none;
  --bt-footer-bg-image: none;
  --bt-max: 1320px;
  --bt-content: 920px;
  --bt-radius-sm: 14px;
  --bt-radius: 24px;
  --bt-radius-lg: 34px;
  --bt-shadow-sm: 0 8px 28px rgba(18, 57, 78, .07);
  --bt-shadow: 0 24px 70px rgba(18, 57, 78, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bt-ink);
  background: #fff;
  font-family: "Segoe UI", Aptos, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bt-blue-strong); text-decoration-thickness: .075em; text-underline-offset: .18em; }
a:hover { color: var(--bt-blue-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.bt-container { width: min(calc(100% - 64px), var(--bt-max)); margin-inline: auto; }
.site-main { min-height: 60vh; overflow: clip; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bt-header-bg);
  isolation: isolate;
  border-bottom: 1px solid rgba(220, 232, 237, .9);
  box-shadow: 0 6px 24px rgba(15, 49, 68, .04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--bt-header-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--bt-header-image-opacity);
  pointer-events: none;
}
.admin-bar .site-header { top: 32px; }
.bt-header-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.bt-header-row > * { margin-block-start: 0; margin-block-end: 0; }


/* Global BalanceTape | Lojer Group header lockup
   Use the theme/current site logo for BalanceTape so we do not hard-code
   the old white-background logo asset. */
.bt-global-brand {
  flex: 0 0 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.bt-global-brand-primary {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.bt-global-brand-primary .bt-brand,
.bt-global-brand-primary .custom-logo-link {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  box-shadow: none !important;
}

.bt-global-brand-primary img,
.bt-global-brand-primary .custom-logo-link img {
  display: block !important;
  width: auto !important;
  height: 34px !important;
  max-width: 245px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

.bt-global-brand-divider {
  width: 1px;
  height: 34px;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, .48);
}

.bt-global-brand-lojer {
  display: block;
  width: auto;
  height: 40px;
  max-width: 160px;
  max-height: 40px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  filter: none;
}

/* Hide elements that may still be appended by the old page-level logo script. */
.bt-global-brand > .bt-header-logo-divider,
.bt-global-brand > .bt-header-lojer-logo {
  display: none !important;
}
.bt-brand,
.custom-logo-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bt-header-text);
  text-decoration: none;
}
.site-header .custom-logo-link img { display: block; width: auto; max-width: 280px; max-height: var(--bt-header-logo-height); }
.bt-logo-desktop, .bt-logo-mobile { display: inline-flex; align-items: center; }
.bt-logo-mobile { display: none; }
.bt-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 25deg, var(--bt-blue), var(--bt-cyan), #1ea6cf, var(--bt-blue));
  box-shadow: inset 0 0 0 7px #fff, inset 0 0 0 10px var(--bt-blue);
}
.bt-mark::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
}
.bt-brand-name {
  font-size: 1.16rem;
  line-height: .95;
  letter-spacing: .145em;
  font-weight: 800;
  text-transform: uppercase;
}
.bt-brand-name span {
  display: block;
  margin-top: 5px;
  font-size: .64em;
  font-weight: 650;
  letter-spacing: .28em;
}
.main-navigation { margin-left: auto; }
.main-navigation .bt-menu,
.main-navigation .menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.main-navigation li { position: relative; list-style: none; }
.main-navigation > ul > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--bt-header-text);
  font-size: .91rem;
  font-weight: 690;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.main-navigation > ul > li > a:hover,
.main-navigation > ul > .current-menu-item > a,
.main-navigation > ul > .current-menu-ancestor > a,
.main-navigation > ul > .current_page_item > a,
.main-navigation > ul > .current_page_ancestor > a {
  color: var(--bt-blue-strong);
  background: var(--bt-soft);
}
.main-navigation .menu-item-has-children > a::after,
.main-navigation .page_item_has_children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.main-navigation .sub-menu,
.main-navigation .children {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 245px;
  display: block;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--bt-border);
  border-radius: 15px;
  box-shadow: 0 18px 45px rgba(17, 55, 77, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li:hover > .children,
.main-navigation li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.main-navigation .sub-menu a,
.main-navigation .children a {
  display: block;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--bt-ink);
  font-size: .9rem;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
}
.main-navigation .sub-menu a:hover,
.main-navigation .children a:hover { color: var(--bt-blue-strong); background: var(--bt-soft); }

.bt-language { flex: 0 0 auto; position: relative; }
.bt-language details { position: relative; }
.bt-language summary {
  min-width: 48px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--bt-border);
  border-radius: 11px;
  color: var(--bt-header-text);
  background: transparent;
  cursor: pointer;
  list-style: none;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.bt-language summary::-webkit-details-marker { display: none; }
.bt-language summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.bt-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 180px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--bt-border);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(17, 55, 77, .14);
}
.bt-language-menu li { margin: 0; }
.bt-language-menu a,
.bt-language-menu span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--bt-ink);
  font-size: .88rem;
  text-decoration: none;
}
.bt-language-menu a:hover { background: var(--bt-soft); color: var(--bt-blue-strong); }
.bt-language-menu .is-current { color: var(--bt-blue-strong); background: var(--bt-soft); font-weight: 750; }
.bt-language-code { color: var(--bt-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }


.bt-header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--bt-blue);
  color: #fff;
  font-size: .86rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(7,130,200,.14);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.bt-header-cta:hover {
  color: #fff;
  background: var(--bt-blue-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(7,130,200,.20);
}

.bt-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  border: 1px solid var(--bt-border);
  border-radius: 11px;
  background: #fff;
  color: var(--bt-header-text);
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(17,55,77,.08);
}
.bt-menu-icon { width: 20px; margin: 0; display: grid; gap: 4px; }
.bt-menu-icon i { display: block; height: 2px; border-radius: 2px; background: var(--bt-header-text); transition: .18s ease; }
.bt-mobile-toggle[aria-expanded="true"] .bt-menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bt-mobile-toggle[aria-expanded="true"] .bt-menu-icon i:nth-child(2) { opacity: 0; }
.bt-mobile-toggle[aria-expanded="true"] .bt-menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Homepage */
.home .entry-content > * { max-width: none; }
.home .entry-content { overflow: clip; }
.bt-hero {
  padding: 34px 0 22px;
  background: #fff;
  border: 0;
}
.bt-hero-grid {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(42px, 6vw, 90px);
  padding: clamp(48px, 6vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(66,186,210,.12), transparent 27%),
    linear-gradient(112deg, #f7fbfc 0%, #f0f8fa 48%, #e9f5f8 100%);
  border: 1px solid #e1edf1;
  border-radius: var(--bt-radius-lg);
}
.bt-hero-grid::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 64px;
  right: -110px;
  bottom: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(7,130,200,.08), rgba(66,186,210,.16));
  transform: rotate(-13deg);
}
.bt-eyebrow {
  color: var(--bt-blue-strong);
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
}
.bt-hero h1 {
  max-width: 680px;
  margin: .2em 0 .24em;
  font-size: clamp(3.3rem, 6.4vw, 6.5rem);
  line-height: .91;
  letter-spacing: -.052em;
  font-weight: 780;
}
.bt-hero h1 span { color: var(--bt-blue); font-weight: 430; }
.bt-lead {
  max-width: 610px;
  margin: 0;
  color: #536b7a;
  font-size: clamp(1.08rem, 1.7vw, 1.36rem);
  line-height: 1.62;
}
.bt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.bt-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--bt-blue);
  border-radius: 12px;
  background: var(--bt-blue);
  color: #fff;
  box-shadow: 0 7px 18px rgba(7,130,200,.16);
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.bt-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  background: var(--bt-blue-dark);
  border-color: var(--bt-blue-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17,55,77,.19);
}
.bt-button.alt { background: rgba(255,255,255,.72); color: var(--bt-blue-strong); box-shadow: none; }
.bt-button.alt:hover { background: #fff; color: var(--bt-blue-dark); border-color: #b8dbe9; }
.bt-hero-image { position: relative; z-index: 1; }
.bt-hero-image::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -46px;
  bottom: -38px;
  border-radius: 50%;
  background: rgba(66,186,210,.14);
}
.bt-hero-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--bt-shadow);
}

.bt-section { padding: 92px 0; }
.bt-section.soft {
  background: linear-gradient(180deg, #f3fafc 0%, #eaf6f9 100%);
  border-top: 1px solid #e0edf1;
  border-bottom: 1px solid #e0edf1;
}
.bt-section-title { max-width: 840px; margin: 0 auto 46px; text-align: center; }
.bt-section-title h2 {
  margin: 8px 0 14px;
  font-size: clamp(2.15rem, 4.1vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -.038em;
}
.bt-section-title p { margin: 0 auto; color: var(--bt-muted); font-size: 1.08rem; line-height: 1.75; }
.bt-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.bt-card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bt-border);
  border-radius: 20px;
  box-shadow: var(--bt-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bt-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--bt-blue), var(--bt-cyan));
  opacity: .75;
}
.bt-card:hover { transform: translateY(-4px); border-color: #c9dfe8; box-shadow: 0 18px 46px rgba(18,57,78,.1); }
.bt-card h3 { margin: 13px 0 10px; font-size: 1.34rem; line-height: 1.25; }
.bt-card p { color: #526a79; }
.bt-card p:last-child { margin-bottom: 0; }
.bt-card a { font-weight: 720; }
.bt-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bt-soft-strong);
  color: var(--bt-blue-strong);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.home .bt-section.soft .wp-block-columns { align-items: center; gap: clamp(40px, 7vw, 90px); }
.home .bt-section.soft .wp-block-column:first-child { font-size: 1.05rem; }
.home .bt-section.soft .wp-block-image { margin: 0; }
.home .bt-section.soft .wp-block-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 30px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(220,232,237,.95);
  border-radius: 22px;
  box-shadow: var(--bt-shadow-sm);
}

/* Content pages */
.bt-page-header {
  position: relative;
  padding: 74px 0 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(66,186,210,.14), transparent 25%),
    linear-gradient(180deg, #f2f9fb 0%, #fff 100%);
  border-bottom: 1px solid var(--bt-border);
}
.bt-page-header h1 {
  max-width: 900px;
  margin: 10px 0 0;
  font-size: clamp(2.6rem, 5.6vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.048em;
}
.bt-page-header p { max-width: 760px; margin: 18px 0 0; color: var(--bt-muted); font-size: 1.12rem; }
.bt-content-shell { width: min(calc(100% - 64px), var(--bt-content)); margin: 0 auto; padding: 68px 0 100px; }
.entry-content > * { max-width: var(--bt-content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--bt-max); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 2.2em; margin-bottom: .65em; font-size: clamp(1.8rem, 3.1vw, 2.65rem); line-height: 1.12; letter-spacing: -.025em; }
.entry-content h3 { margin-top: 1.7em; font-size: 1.35rem; line-height: 1.28; }
.entry-content p, .entry-content li { color: #405967; }
.entry-content .has-large-font-size { color: var(--bt-ink); line-height: 1.55; }
.entry-content .wp-block-columns { gap: 30px; }
.entry-content .wp-block-group { border-radius: 0; }
.entry-content .is-style-bt-panel {
  margin-block: 18px;
  padding: 28px 30px;
  background: linear-gradient(135deg, #f3fafc, #edf7fa);
  border: 1px solid var(--bt-border);
  border-radius: 18px;
}
.entry-content .is-style-bt-panel h3 { margin-top: 0; }
.entry-content figure img { border-radius: 18px; }

.bt-product-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.bt-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--bt-border);
  border-radius: 20px;
  box-shadow: var(--bt-shadow-sm);
}
.bt-product img { width: 100%; height: 250px; object-fit: contain; margin-bottom: 18px; padding: 14px; background: #f8fbfc; border-radius: 15px; }
.bt-product h3 { margin: 0 0 8px; }
.bt-product p { flex: 1 1 auto; }
.bt-product .bt-button { margin-top: 12px; }
.bt-swatch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0; }
.bt-swatch { width: 25px; height: 25px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d7dd; }

.bt-technique { display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--bt-border); }
.bt-tape-shape { height: 76px; width: 76px; border-radius: 16px 16px 34px 16px; background: linear-gradient(135deg, var(--bt-cyan), var(--bt-blue)); transform: rotate(-12deg); box-shadow: 0 8px 18px rgba(7,130,200,.14); }
.bt-step-list { counter-reset: steps; list-style: none; padding: 0; }
.bt-step-list li { counter-increment: steps; position: relative; min-height: 46px; padding: 4px 0 26px 62px; }
.bt-step-list li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bt-blue); color: #fff; font-weight: 820; box-shadow: 0 6px 16px rgba(7,130,200,.16); }
.bt-faq details { padding: 18px 0; border-bottom: 1px solid var(--bt-border); }
.bt-faq details:first-child { border-top: 1px solid var(--bt-border); }
.bt-faq summary { cursor: pointer; color: var(--bt-ink); font-size: 1.08rem; font-weight: 760; }
.bt-faq details p { padding-right: 30px; }
.bt-distributors { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.bt-distributor { padding: 25px; background: #fff; border: 1px solid var(--bt-border); border-radius: 18px; box-shadow: var(--bt-shadow-sm); }
.bt-distributor h3 { margin-top: 0; }

/* Footer */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 30px;
  background: var(--bt-footer-bg);
  color: var(--bt-footer-text);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--bt-footer-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--bt-footer-image-opacity);
  pointer-events: none;
}
.site-footer > .bt-container { position: relative; z-index: 1; }
.site-footer a { color: var(--bt-footer-text); text-decoration-color: currentColor; text-decoration-thickness: .06em; }
.site-footer a:hover { color: var(--bt-footer-accent); }
.site-footer .bt-brand { color: var(--bt-footer-text); }
.site-footer .bt-mark { width: 44px; height: 44px; flex-basis: 44px; }
.site-footer .custom-logo-link img { display: block; width: auto; max-width: 300px; max-height: var(--bt-footer-logo-height); }
.bt-footer-grid { display: grid; grid-template-columns: minmax(260px,1.65fr) repeat(3,minmax(150px,1fr)); gap: 54px; }
.bt-footer-grid > * { margin-block-start: 0; margin-block-end: 0; }
.bt-footer-brand p { max-width: 410px; margin-top: 22px; color: var(--bt-footer-text); }
.site-footer h3 { margin: 5px 0 18px; color: var(--bt-footer-text); font-size: .82rem; text-transform: uppercase; letter-spacing: .13em; }
.site-footer p { color: var(--bt-footer-text); }
.bt-footer-links { margin: 0; padding: 0; list-style: none; }
.bt-footer-links li + li { margin-top: 10px; }
.bt-footer-links a { text-decoration: none; }
.bt-footer-lojer { font-weight: 720; }
.bt-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 54px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.14); color: var(--bt-footer-text); opacity: .72; font-size: .82rem; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1180px) {
  .bt-header-row { gap: 18px; }
  .bt-global-brand { gap: 13px; }
  .bt-global-brand-primary img,
  .bt-global-brand-primary .custom-logo-link img {
    height: 30px !important;
    max-width: 205px !important;
    max-height: 30px !important;
  }
  .bt-global-brand-divider { height: 30px; }
  .bt-global-brand-lojer { height: 34px; max-width: 140px; max-height: 34px; }
  .main-navigation > ul > li > a { padding-inline: 9px; font-size: .86rem; }
  .bt-brand-name { font-size: 1.04rem; }
  .bt-mark { width: 44px; height: 44px; flex-basis: 44px; }
}

@media (max-width: 1020px) {
  .bt-container, .bt-content-shell { width: min(calc(100% - 40px), var(--bt-max)); }
  .bt-mobile-toggle { display: inline-flex; margin-left: auto; }
  .main-navigation {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--bt-border);
    border-radius: 16px;
    box-shadow: 0 22px 55px rgba(17,55,77,.16);
  }
  .main-navigation.open { display: block; }
  .main-navigation .bt-menu, .main-navigation .menu { display: block; }
  .main-navigation > ul > li > a { min-height: 45px; padding: 11px 12px; font-size: .95rem; }
  .main-navigation .sub-menu, .main-navigation .children {
    position: static;
    min-width: 0;
    padding: 2px 0 6px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .main-navigation .menu-item-has-children > a::after,
  .main-navigation .page_item_has_children > a::after { display: none; }
  .bt-language { margin-left: 0; }
  .bt-hero-grid { grid-template-columns: 1fr 1fr; gap: 38px; padding: 50px 42px; }
  .bt-hero h1 { font-size: clamp(3.25rem, 7vw, 5.3rem); }
  .bt-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .bt-footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .bt-header-row { min-height: 76px; }
  .bt-global-brand { gap: 11px; }
  .bt-global-brand-primary img,
  .bt-global-brand-primary .custom-logo-link img {
    height: 27px !important;
    max-width: 185px !important;
    max-height: 27px !important;
  }
  .bt-global-brand-divider { height: 27px; }
  .bt-global-brand-lojer { height: 31px; max-width: 128px; max-height: 31px; }
  .bt-language summary { height: 40px; }
  .bt-header-cta { min-height: 40px; padding-inline: 12px; font-size: .8rem; }
  .bt-hero { padding-top: 20px; }
  .bt-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 40px; padding: 44px 30px 30px; border-radius: 24px; }
  .bt-hero h1 { max-width: 540px; }
  .bt-hero-image img { aspect-ratio: 1.45 / 1; }
  .bt-section { padding: 70px 0; }
  .bt-card-grid, .bt-product-strip { grid-template-columns: 1fr; }
  .bt-product img { height: 290px; }
  .bt-distributors { grid-template-columns: 1fr; }
  .bt-footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .bt-footer-grid > :first-child, .bt-footer-grid > :last-child { grid-column: 1 / -1; }
}


@media (max-width: 600px) {
  /* WordPress makes the admin bar non-fixed on small screens. The sticky
     header must therefore stick to the viewport top after the bar scrolls away. */
  .admin-bar .site-header { top: 0; }
}

@media (max-width: 560px) {
  .bt-container, .bt-content-shell { width: min(calc(100% - 28px), var(--bt-max)); }
  .bt-header-row { min-height: 68px; gap: 10px; }
  .bt-global-brand { gap: 0; max-width: calc(100vw - 92px); }
  .bt-global-brand-primary img,
  .bt-global-brand-primary .custom-logo-link img {
    height: 25px !important;
    max-width: 170px !important;
    max-height: 25px !important;
  }
  .bt-global-brand-divider,
  .bt-global-brand-lojer { display: none; }
  .bt-brand-name { font-size: .94rem; }
  .bt-brand-header.has-mobile-logo .bt-logo-desktop { display: none; }
  .bt-brand-header.has-mobile-logo .bt-logo-mobile { display: inline-flex; }
  .site-header .custom-logo-link img { max-width: 190px; }
  .bt-header-cta { display: none; }
  .bt-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .bt-language summary { min-width: 44px; padding-inline: 8px; }
  .main-navigation { left: 14px; right: 14px; }
  .bt-hero-grid { padding: 38px 22px 22px; }
  .bt-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .bt-lead { font-size: 1.03rem; }
  .bt-actions { display: grid; }
  .bt-button, .wp-block-button__link { width: 100%; }
  .bt-section { padding: 58px 0; }
  .bt-section-title { margin-bottom: 34px; }
  .bt-card { padding: 24px; }
  .bt-page-header { padding: 55px 0 42px; }
  .bt-content-shell { padding: 48px 0 72px; }
  .bt-technique { grid-template-columns: 62px 1fr; gap: 17px; }
  .bt-tape-shape { width: 58px; height: 58px; }
  .bt-footer-grid { grid-template-columns: 1fr; }
  .bt-footer-grid > * { grid-column: auto !important; }
  .bt-footer-bottom { display: block; }
  .bt-footer-bottom span { display: block; margin-top: 8px; }
}
