/* Shared site chrome: skip link, header, mobile menu and footer.
   Loaded on every page before the page's own stylesheet. Every class is
   prefixed with tbc- so page styles never collide with it. Markup lives in
   _partials/ and is copied into pages by tools/sync-layout.js. */

.tbc-skip,
.tbc-header,
.tbc-footer {
  --tbc-cream: #fffaf2;
  --tbc-brown-950: #21110b;
  --tbc-gutter: clamp(20px, 4vw, 72px);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.tbc-header *, .tbc-footer * { box-sizing: border-box; }
.tbc-header a, .tbc-footer a { color: inherit; text-decoration: none; }
.tbc-header img, .tbc-footer img { display: block; max-width: none; border-radius: 0; }

.tbc-skip {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 1001;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--tbc-cream);
  color: #17110d;
  font-weight: 700;
  text-decoration: none;
}
.tbc-skip:focus { transform: none; }

/* Header */
.tbc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--tbc-cream);
  background: rgba(33,17,11,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease, box-shadow .25s ease;
}
.tbc-header.is-scrolled { background: rgba(33,17,11,.96); box-shadow: 0 10px 36px rgba(33,17,11,.14); }
.tbc-header__inner {
  width: min(100%, 1360px);
  min-height: 78px;
  margin-inline: auto;
  padding-inline: var(--tbc-gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.tbc-logo { display: inline-flex; align-items: center; justify-self: start; line-height: 1; }
.tbc-logo img { width: 116px; height: 78px; object-fit: contain; }

.tbc-nav { display: flex; align-items: center; gap: clamp(20px, 2vw, 34px); margin: 0; padding: 0; }
.tbc-nav a, .tbc-cta { color: rgba(255,250,242,.94); font-size: 13px; font-weight: 650; letter-spacing: 0; }
.tbc-nav a { position: relative; }
.tbc-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.tbc-nav a:hover::after, .tbc-nav a:focus-visible::after, .tbc-nav a[aria-current="page"]::after { right: 0; }

.tbc-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(182,94,60,.26), rgba(216,154,106,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s ease, border-color .2s ease;
}
.tbc-cta:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.32); }

.tbc-menu-toggle { display: none; justify-self: end; width: 44px; height: 44px; margin: 0; padding: 10px; border: 0; background: none; cursor: pointer; }
.tbc-menu-toggle span { display: block; width: 24px; height: 1.5px; margin: 6px 0; background: var(--tbc-cream); }

.tbc-mobile-menu { padding: 24px var(--tbc-gutter) 34px; background: var(--tbc-brown-950); color: var(--tbc-cream); border-top: 1px solid rgba(255,255,255,.08); }
.tbc-mobile-menu[hidden] { display: none; }
.tbc-mobile-menu nav { display: grid; gap: 8px; }
.tbc-mobile-menu nav a { padding: 10px 0; font-size: clamp(28px, 8vw, 42px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.tbc-mobile-menu nav a[aria-current="page"] { color: #d89a6a; }
.tbc-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--tbc-brown-950);
  background: linear-gradient(135deg, #f0d3ba 0%, #d89a6a 48%, #b65e3c 100%);
  font-size: 14px;
  font-weight: 760;
}
body.tbc-menu-open { overflow: hidden; }

/* Footer */
.tbc-footer { margin: 0; color: var(--tbc-cream); background: #1f100a; }
.tbc-footer__inner {
  width: min(100%, 1360px);
  margin-inline: auto;
  padding: 60px var(--tbc-gutter) 30px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.tbc-footer__brand img { width: 150px; height: 104px; object-fit: contain; }
.tbc-footer__brand p { max-width: 390px; margin: 18px 0 0; color: rgba(255,250,242,.62); font-size: 14px; }
.tbc-footer__col { display: grid; align-content: start; gap: 10px; }
.tbc-footer__col p { margin: 0 0 6px; color: rgba(255,250,242,.48); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.tbc-footer__col a { color: rgba(255,250,242,.82); font-size: 14px; overflow-wrap: anywhere; }
.tbc-footer__col a:hover { color: var(--tbc-cream); }
.tbc-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,250,242,.45);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .tbc-header__inner { grid-template-columns: 1fr auto; }
  .tbc-nav, .tbc-cta { display: none; }
  .tbc-menu-toggle { display: block; }
}
@media (max-width: 820px) {
  .tbc-footer__inner { grid-template-columns: 1fr 1fr; }
  .tbc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .tbc-header__inner { min-height: 70px; padding-inline: 20px; }
  .tbc-logo img { width: 96px; height: 66px; }
  .tbc-footer__inner { padding-inline: 20px; gap: 30px; }
  .tbc-footer__brand img { width: 132px; height: 92px; }
  .tbc-footer__bottom { flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .tbc-header, .tbc-nav a::after, .tbc-cta { transition: none; }
}
