/* Homepage-only carousel. Uses the existing FAQ / action-button theme tokens. */
.tbHeroContainer { padding-top:16px; }
.tbHero__fallback { min-height:300px; padding:60px 24px; text-align:center; background:#f6f4ef; border:1px solid #d1cfc9; border-radius:6px; }
.tbHero__fallback .tbHero__button { margin:6px; }
body.tb-home-carousel-tiles-ready .tb-home-info { display:none!important; }
.tbHero { --hero-border:#d1cfc9; --hero-ink:#242424; --hero-muted:#595c58; --hero-brown:#755437; color:var(--hero-ink); font-family:inherit; line-height:1.5; width:100%; margin:0 0 28px; }
.tbHero *, .tbHero *::before, .tbHero *::after { box-sizing:border-box; }
.tbHero [hidden] { display:none!important; }
.tbHero :is(button,a):focus-visible { outline:3px solid #276a85; outline-offset:4px; }
.tbHero svg { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.tbHero__stage { position:relative; isolation:isolate; background:#e9e5db; border-radius:var(--tb-ui-radius,6px); overflow:hidden; }
.tbHero__slides { display:grid; grid-template-columns:minmax(0,1fr); touch-action:pan-y; }
.tbHero__slide { grid-area:1/1; width:100%; min-width:0; position:relative; display:grid; place-items:center; aspect-ratio:100/31; min-height:300px; padding:70px 80px 86px; visibility:hidden; pointer-events:none; }
.tbHero__slide[data-active] { visibility:visible; pointer-events:auto; z-index:1; }
.tbHero__photo { position:absolute; inset:0; overflow:hidden; z-index:-1; background:linear-gradient(120deg,#ddd7ca,#eeeae1); }
.tbHero__photo img { width:100%; height:100%; object-fit:cover; object-position:var(--hero-position,50% 50%); display:block; }
.tbHero__photo[data-failed]::after { content:'Timber Build'; display:grid; place-items:center; position:absolute; inset:0; font-weight:700; color:#755437; opacity:.2; font-size:38px; }
.tbHero__copy { width:fit-content; max-width:650px; background:rgba(255,255,255,var(--hero-caption-opacity,.40)); padding:24px 32px; text-align:center; border:1px solid rgba(255,255,255,.25); border-radius:var(--tb-ui-radius,6px); box-shadow:0 4px 20px #30282008; }
.tbHero__title { margin:0 0 8px; font-family:inherit; font-size:clamp(25px,2.5vw,38px); font-weight:700; line-height:1.14; color:var(--hero-ink); letter-spacing:-.02em; overflow-wrap:anywhere; }
.tbHero__description { margin:0 0 18px; font-size:17px; line-height:1.5; color:var(--hero-ink); overflow-wrap:anywhere; }
.tbHero__button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; max-width:100%; padding:10px 15px; border:1px solid var(--hero-border); border-radius:var(--tb-ui-button-radius,4px); background:var(--tb-ui-secondary,#f3f0e8); color:var(--tb-ui-secondary-text,#654321); font-family:inherit; font-size:var(--tb-ui-button-font,14px); font-weight:700; line-height:1.4; text-decoration:none; cursor:pointer; box-shadow:0 3px 0 #d1cfc9; }
.tbHero__button:hover { background:var(--tb-ui-secondary-hover,#e9e4da); color:var(--tb-ui-secondary-text,#654321); text-decoration:none; }
.tbHero__button--primary { background:var(--tb-ui-primary,#d90000); color:var(--tb-ui-primary-text,#fff); border-color:transparent; box-shadow:0 3px 0 #b5a696; }
.tbHero__button--primary:hover { background:var(--tb-ui-primary-hover,#ad0000); color:var(--tb-ui-primary-text,#fff); }
.tbHero__navigation { position:absolute; inset:0; z-index:3; pointer-events:none; }
.tbHero__arrow { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; display:grid; place-items:center; background:#fffffff2; color:var(--hero-brown); border:1px solid var(--hero-border); border-radius:50%; cursor:pointer; box-shadow:0 2px 5px #0002; pointer-events:auto; }
.tbHero__arrow:hover { background:#f3f0e8; }
.tbHero__arrow--prev { left:16px; }.tbHero__arrow--next { right:16px; }
.tbHero__controls { position:absolute; top:14px; right:14px; z-index:3; display:flex; align-items:center; gap:6px; padding:0 8px; background:#fffffff2; border:1px solid var(--hero-border); border-radius:var(--tb-ui-radius,6px); }
.tbHero__count { font-size:13px; font-variant-numeric:tabular-nums; min-width:40px; text-align:center; }
.tbHero__play { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:6px; border:0; background:transparent; color:var(--hero-brown); font-family:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.tbHero__play svg { width:17px; height:17px; }
.tbHero__dots { position:absolute; z-index:3; bottom:42px; left:50%; transform:translateX(-50%); display:flex; justify-content:center; padding:0; border:0; background:transparent; max-width:calc(100% - 32px); }
.tbHero__dot { width:32px; height:44px; flex:none; display:grid; place-items:center; padding:0; border:0; background:transparent; cursor:pointer; color:var(--tb-ui-primary,#d90000); }
.tbHero__dot::before { content:''; width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 2px #fff; }
.tbHero__dot[aria-current]::before { width:22px; border-radius:4px; }
.tbHero__tiles { position:relative; z-index:4; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding:0 32px; margin:-32px 0 0; }
.tbHero__tile { min-width:0; display:flex; flex-direction:column; align-items:center; text-align:center; background:#fff; border:1px solid var(--hero-border); border-radius:var(--tb-ui-radius,6px); padding:20px 20px 18px; box-shadow:0 2px 5px #2920150a; }
.tbHero__tile-title { display:flex; align-items:center; gap:10px; margin:0 0 8px; font-size:16px; line-height:1.3; font-weight:700; }
.tbHero__tile-title svg { color:var(--hero-brown); width:25px; height:25px; }
.tbHero__tile p { font-size:14px; color:var(--hero-muted); margin:0 0 14px; max-width:360px; }
.tbHero__tile .tbHero__button { margin-top:auto; }
.tbHero__sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.tbHero[data-single] .tbHero__slide { padding-bottom:64px; }
/* Glass-inspired treatment belongs to the caption only, never the text or photo. */
@media(min-width:701px) {
  .tbHero__copy[data-glass] { -webkit-backdrop-filter:blur(2px) saturate(115%); backdrop-filter:blur(2px) saturate(115%); border-color:rgba(255,255,255,.5); box-shadow:0 8px 24px #30282014,inset 0 1px 0 #ffffff66,inset 0 -1px 0 #30282012; }
}
@media(min-width:701px) and (prefers-reduced-transparency:reduce) {
  .tbHero__copy, .tbHero__copy[data-glass] { background:rgba(255,255,255,.95); -webkit-backdrop-filter:none; backdrop-filter:none; }
}
@media(min-width:701px) and (max-width:1000px) {
  .tbHero__slide { padding:58px 60px 80px; min-height:300px; }
  .tbHero__copy { padding:14px 22px; max-width:580px; }
  .tbHero__title { font-size:25px; }.tbHero__description { font-size:15px; margin-bottom:12px; }
  .tbHero__tiles { padding:0 16px; gap:10px; }.tbHero__tile { padding:16px 10px; }.tbHero__tile-title { font-size:15px; gap:7px; }
  .tbHero__tile p { font-size:13px; }.tbHero__tile .tbHero__button { font-size:13px; padding:8px; }
}
@media(max-width:700px) {
  .tbHero__stage { border:1px solid var(--hero-border); background:#f6f4ef; }
  .tbHero__slide { display:flex; flex-direction:column; justify-content:flex-start; aspect-ratio:auto; min-height:0; padding:0!important; }
  .tbHero__photo { position:relative; inset:auto; flex:none; aspect-ratio:4/3; width:100%; z-index:auto; }
  .tbHero__photo img { object-position:var(--hero-mobile-position,50% 50%); }
  .tbHero__copy { flex:1; width:100%; max-width:none; background:#f6f4ef; padding:14px 16px 17px; box-shadow:none; border:0; border-radius:0; text-align:center; }
  .tbHero__title, .tbHero__description, .tbHero__controls, .tbHero__dots { display:none; }
  .tbHero__navigation { bottom:auto; aspect-ratio:4/3; }
  .tbHero__arrow, .tbHero__arrow:hover { width:44px; height:44px; padding:0; background:transparent; border:0; border-radius:4px; box-shadow:none; color:#fff; }
  .tbHero__arrow svg { width:28px; height:28px; stroke-width:2.3; filter:drop-shadow(0 1px 2px #000) drop-shadow(0 0 1px #000); }
  .tbHero__arrow--prev { left:6px; }.tbHero__arrow--next { right:6px; }
  .tbHero__tiles { margin:12px 0 0; padding:4px 4px 8px; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:88%; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:4px; scrollbar-width:thin; scrollbar-color:#aaa096 transparent; }
  .tbHero__tile { padding:16px; align-items:flex-start; text-align:left; scroll-snap-align:start; }
  .tbHero__tile p { max-width:none; margin-bottom:12px; }
  .tbHero__tile .tbHero__button { min-height:44px; }
}
@media (min-width:701px) and (prefers-reduced-motion:no-preference) { .tbHero__slide[data-active] .tbHero__copy { animation:tbHero-in .22s ease-out; } }
@keyframes tbHero-in { from { opacity:.65; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
