/* ============================================================
   TBRANDS — Header + Footer  (layout.css)
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
:root { --tbh-h: 72px; }
body  { padding-top: var(--tbh-h); }

.tbh {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--tbh-h);
  background: transparent;
  transition: background .35s, box-shadow .35s;
}
.tbh.is-hidden   { transform: translateY(-100%); transition: transform .4s cubic-bezier(.77,0,.175,1); }
.tbh.is-scrolled {
  background: rgba(8,5,0,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
body:not(.is-front-page) .tbh {
  background: rgba(8,5,0,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.tbh__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.25rem,3vw,2.5rem);
  height: 100%;
  display: flex; align-items: center; gap: 1.5rem;
}

/* ── Left slot ── */
.tbh__left {
  display: flex; align-items: center; flex-shrink: 0;
}

/* Logo */
.tbh__logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.tbh__logo-img {
  height: 48px; width: auto; display: block;
  filter: brightness(0) invert(1); opacity: .95;
  transition: opacity .2s;
}
.tbh__logo-fallback {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: .14em; color: #fff;
  text-transform: uppercase;
}
/* Desktop: show logo-desktop, hide logo-mobile */
.tbh__logo--mobile { display: none; }
.tbh__logo--desktop { display: flex; }

/* ── Center slot: nav desktop / logo mobile ── */
.tbh__center {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}
.tbh__nav { width: 100%; }
.tbh__nav-list,
.tbh__nav > ul {
  display: flex; justify-content: center;
  gap: clamp(.7rem,1.6vw,1.8rem);
  list-style: none; padding: 0; margin: 0;
}
.tbh__nav-list li > a,
.tbh__nav > ul > li > a {
  font-family: 'Inter', sans-serif;
  font-size: clamp(.6rem,.75vw,.7rem); font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.82); text-decoration: none;
  position: relative; padding-bottom: 2px; white-space: nowrap;
  display: block; transition: color .2s;
}
.tbh__nav-list li > a::after,
.tbh__nav > ul > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: #e05a00;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.tbh__nav-list li > a:hover,
.tbh__nav > ul > li > a:hover { color: #fff; }
.tbh__nav-list li > a:hover::after,
.tbh__nav > ul > li > a:hover::after { transform: scaleX(1); }
.tbh__nav .current-menu-item > a { color: #fff !important; }

/* ── Right slot ── */
.tbh__right {
  display: flex; align-items: center;
  gap: 1.2rem; flex-shrink: 0;
}

/* CTA */
.tbh__cta {
  display: inline-flex; align-items: center;
  padding: .62rem 1.4rem;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .67rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.tbh__cta:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.tbh__cta--mobile  { display: none; }
.tbh__cta--desktop { display: inline-flex; }

/* Burger — min 44px touch target */
.tbh__burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 12px; min-height: 44px !important; min-width: 44px;
  align-items: center; justify-content: center;
}
.tbh__burger-bar {
  display: block; width: 22px; height: 1.5px;
  background: #fff; transition: transform .3s, opacity .3s;
  transform-origin: center;
}

/* ── Mobile: CTA left | Logo center | Burger right ── */
@media (max-width: 960px) {
  .tbh__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left center right";
    gap: 0;
    padding: 0 1.25rem;
  }
  .tbh__left   { grid-area: left;   justify-self: start; align-self: center; }
  .tbh__center { grid-area: center; justify-self: center; align-self: center; flex: unset; }
  .tbh__right  { grid-area: right;  justify-self: end;   align-self: center; }

  /* show mobile logo in center, hide desktop logo */
  .tbh__logo--desktop { display: none; }
  .tbh__logo--mobile  { display: flex; }
  .tbh__logo-img      { height: 38px; }

  /* hide nav, show CTA (left) and burger */
  .tbh__nav          { display: none; }
  .tbh__burger       { display: flex; }
  .tbh__cta--desktop { display: none; }
  .tbh__cta--mobile  { display: inline-flex; }
  .tbh__right .tb-lang { display: none; }
}

@media (max-width: 480px) {
  :root { --tbh-h: 60px; }
  .tbh__logo-img     { height: 30px; }
  .tbh__cta--mobile  { padding: .48rem .8rem; font-size: .6rem; letter-spacing: .06em; }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE DRAWER
   ══════════════════════════════════════════════════════════════ */
.tbh-mobile {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; visibility: hidden;
}
.tbh-mobile.is-open { pointer-events: auto; visibility: visible; }

.tbh-mobile__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; transition: opacity .4s;
}
.tbh-mobile.is-open .tbh-mobile__overlay { opacity: 1; }

.tbh-mobile__drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #0d0800;
  display: flex; flex-direction: column;
  padding: 1.75rem 1.75rem 2rem;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.77,0,.175,1);
  overflow-y: auto;
  box-shadow: -4px 0 32px rgba(0,0,0,.5);
}
.tbh-mobile.is-open .tbh-mobile__drawer { transform: translateX(0); }

.tbh-mobile__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2.5rem; flex-shrink: 0;
}
.tbh-mobile__logo { display: flex; align-items: center; text-decoration: none; }
.tbh-mobile__logo img {
  height: 32px; width: auto;
  filter: brightness(0) invert(1); opacity: .9;
}
.tbh-mobile__close {
  background: none; border: none; color: rgba(255,255,255,.55);
  cursor: pointer; padding: 12px; min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s; line-height: 1;
}
.tbh-mobile__close:hover { color: #fff; }
.tbh-mobile__close svg { display: block; }

.tbh-mobile__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; flex: 1;
}
.tbh-mobile__list li {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tbh-mobile__list a {
  display: block; padding: 1rem 0;
  font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.tbh-mobile__list a:hover { color: #fff; padding-left: .4rem; }

.tbh-mobile__foot {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 1rem;
  flex-shrink: 0;
}
.tbh-mobile__foot .tb-lang { color: rgba(255,255,255,.4); }
.tbh-mobile__cta {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem;
  background: #e05a00; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: background .2s;
}
.tbh-mobile__cta:hover { background: #c94f00; }


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.tbf {
  background: #08050a !important;
  color: rgba(255,255,255,.6);
  font-family: 'Inter', sans-serif;
}

.tbf__main { border-bottom: 1px solid rgba(255,255,255,.07); }
.tbf__main-inner {
  max-width: 1400px; margin: 0 auto;
  padding: clamp(3.5rem,6vw,5.5rem) clamp(1.25rem,3vw,3rem) clamp(2.5rem,4vw,4rem);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 2.5rem 4rem; align-items: start;
}

/* Brand col */
.tbf__logo { display: block; text-decoration: none; margin-bottom: 1.25rem; }
.tbf__logo img {
  height: 52px; width: auto; display: block;
  filter: brightness(0) invert(1); opacity: .88;
}
.tbf__logo-text {
  font-family: 'Inter', sans-serif; font-size: .95rem;
  font-weight: 800; letter-spacing: .14em; color: #fff;
  text-decoration: none; display: block; margin-bottom: 1.25rem;
}
.tbf__addr {
  font-size: .76rem; line-height: 1.7;
  color: rgba(255,255,255,.35); margin: 0 0 .6rem;
}
.tbf__email {
  font-size: .76rem; color: rgba(255,255,255,.45);
  text-decoration: none; letter-spacing: .04em; transition: color .2s;
}
.tbf__email:hover { color: #fff; }

/* Nav cols */
.tbf__nav-head {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin: 0 0 1.1rem;
}
.tbf__nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.tbf__nav-list a {
  font-size: .78rem; color: rgba(255,255,255,.45);
  text-decoration: none; letter-spacing: .02em; transition: color .2s;
}
.tbf__nav-list a:hover { color: #fff; }

/* Samples col */
.tbf__samples-text {
  font-size: .78rem; line-height: 1.7;
  color: rgba(255,255,255,.38); margin: 0 0 1.4rem;
}
.tbf__samples-btn {
  display: inline-flex; padding: .8rem 1.5rem;
  background: #e05a00; color: #fff;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: background .2s;
}
.tbf__samples-btn:hover { background: #c94f00; }

/* Bottom bar */
.tbf__bottom-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 1.4rem clamp(1.25rem,3vw,3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.tbf__copy { font-size: .66rem; color: rgba(255,255,255,.28); letter-spacing: .05em; margin: 0; }
.tbf__bottom-right { display: flex; align-items: center; gap: 1.4rem; }
.tbf__legal {
  font-size: .66rem; color: rgba(255,255,255,.28);
  text-decoration: none; letter-spacing: .08em; text-transform: uppercase; transition: color .2s;
}
.tbf__legal:hover { color: rgba(255,255,255,.65); }

/* Footer social icons */
.tbf__social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.tbf__social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.55);
  border-radius: 50%;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.tbf__social-link:hover {
  color: #fff;
  border-color: #e05a00;
  background: #e05a00;
  transform: translateY(-2px);
}

/* Powered by Webcore */
.tbf__powered {
  display: inline-flex; align-items: baseline; gap: .4em;
  text-decoration: none;
  padding-right: 1.4rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.tbf__powered-label {
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.28); transition: color .25s;
}
.tbf__powered-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.55);
  transition: color .25s;
}
.tbf__powered:hover .tbf__powered-brand { color: #e05a00; }
.tbf__powered:hover .tbf__powered-label { color: rgba(255,255,255,.45); }

.tbf .tb-lang     { color: rgba(255,255,255,.28); }
.tbf .tb-lang a   { color: rgba(255,255,255,.22); }
.tbf .tb-lang a:hover { color: rgba(255,255,255,.65); }

/* Footer responsive */
@media (max-width: 1000px) {
  .tbf__main-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .tbf__brand      { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .tbf__main-inner { grid-template-columns: 1fr; gap: 2rem; }
  .tbf__brand      { grid-column: auto; }
}
