/* css/trek-bf-inject.css */
/* Site-safe TREK BF styles for injection into trekcampers.com.
   Scoped to .bf-hero / .bf-bar — no global reset. Use this on the preview and
   production sites, not assets/trek-bf.css (that file is for standalone mockups
   and includes a global * {margin:0;padding:0} reset).
*/
@font-face{font-family:Trocchi;src:url(/bf20/fonts/wix-trocchi.woff2) format('woff2')}
@font-face{font-family:"Work Sans";font-weight:100 900;src:url(/bf20/fonts/WorkSans.ttf) format('truetype')}
/* TREK palette from TREK Campers Brand Guideline 2024 R3 */
:where(.bf-hero,.bf-bar){--black:#2B2928;--brown:#96430F;--green:#606850;--gold:#CBAE64;--tsand:#F5EFE3;
 --panel:#2B2928;--h1:#F5EFE3;--text:#F5EFE3;--kicker:#F5EFE3;--accent:#CBAE64;--btn:#CBAE64;--btnText:#2B2928;--cdBg:rgba(245,239,227,.1);
 --barBg:#2B2928;--barText:#F5EFE3}
.bf-hero,.bf-bar{font-family:"Work Sans",Helvetica,Arial,sans-serif;text-align:left}
.bf-panel,.bf-bar{background:#2B2928 url(/bf20/img/topo-black.jpg) center/cover}
.bf-h1{font-family:Trocchi,Georgia,serif;font-weight:400;font-size:54px;line-height:1.06;max-width:560px}
.bf-code b{font-family:"Work Sans",sans-serif;font-weight:700}
.cd-box b{font-weight:600}
@media (max-width:760px){.bf-h1{font-size:34px}}

.bf-hero,.bf-hero *,.bf-bar,.bf-bar *{box-sizing:border-box;margin:0;padding:0}
.bf-hero{position:relative;height:500px;max-width:1440px;margin:0 auto;overflow:hidden;background:var(--panel);--split:46%}
.bf-photo{position:absolute;top:0;bottom:0;left:var(--split);right:0;overflow:hidden}
.bf-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--pos)}
.bf-panel{position:absolute;top:0;bottom:0;left:0;width:calc(var(--split) + 72px);z-index:2;display:flex;align-items:center;background:var(--panel);clip-path:polygon(0 0,100% 0,calc(100% - 72px) 100%,0 100%)}
.bf-inner{padding:0 112px 0 88px;width:100%}
.bf-kicker{display:flex;align-items:center;gap:12px;color:var(--kicker);font-weight:600;font-size:13px;letter-spacing:2.2px;text-transform:uppercase;margin-bottom:14px}
.bf-kicker span{color:var(--accent)}
.bf-kicker i{width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.7}
.bf-h1{color:var(--h1);margin-bottom:14px}
.bf-sub{color:var(--text);font-size:17px;line-height:1.5;max-width:560px;margin-bottom:22px}
.bf-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.bf-btn{display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:0 34px;border-radius:999px;background:var(--btn);color:var(--btnText);font-weight:600;font-size:17px;text-decoration:none;white-space:nowrap}
.bf-code{display:inline-flex;align-items:center;gap:10px;min-height:54px;padding:0 20px;border:2px dashed var(--accent);border-radius:12px;color:var(--text)}
.bf-code small{font-size:13px;letter-spacing:1px;text-transform:uppercase;opacity:.85}
.bf-code b{font-size:28px;letter-spacing:3px;color:var(--accent);line-height:1}
.bf-cd{display:flex;align-items:center;gap:8px;color:var(--text);margin-bottom:8px}
.bf-cd .cd-label{font-size:13.5px;margin-right:6px;opacity:.9}
.cd-box{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:50px;height:46px;border-radius:8px;background:var(--cdBg)}
.cd-box b{font-size:19px;line-height:1;color:var(--h1);font-variant-numeric:tabular-nums}
.cd-box small{font-size:9.5px;letter-spacing:1px;text-transform:uppercase;opacity:.8;margin-top:3px}
.cd-ended{font-size:14px;font-weight:600}
.bf-close{font-size:12.5px;color:var(--text);opacity:.85;margin-bottom:10px}
.bf-tc{font-size:11px;line-height:1.45;color:var(--text);opacity:.72;max-width:560px}
/* tablet */
@media (max-width:1100px){.bf-hero{--split:56%}.bf-inner{padding:0 90px 0 32px}.bf-sub{font-size:16px}}
/* mobile: photo on top, panel below */
@media (max-width:760px){
 .bf-hero{display:block;height:auto}
 .bf-photo{position:relative;left:auto;height:210px}
 .bf-panel{position:relative;width:auto;clip-path:none}
 .bf-photo img{object-position:var(--mpos)}
 .bf-inner{padding:24px 20px 26px}
 .bf-kicker{font-size:11.5px;letter-spacing:1.8px;margin-bottom:10px}
 .bf-sub{font-size:15.5px;margin-bottom:18px}
 .bf-actions{gap:10px;margin-bottom:16px}
 .bf-btn{flex:1 1 100%;min-height:52px}
 .bf-code{flex:1 1 100%;justify-content:center;min-height:50px}
 .bf-cd{gap:6px;flex-wrap:wrap}
 .bf-cd .cd-label{flex:1 1 100%;margin:0 0 2px}
 .cd-box{min-width:0;flex:1;height:48px}
}
/* announcement bar */
.bf-bar{display:flex;align-items:center;justify-content:center;gap:18px;min-height:46px;padding:7px 20px;background:var(--barBg);color:var(--barText);font-size:14.5px;line-height:1.3}
.bar-msg{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bar-tag{color:var(--accent);text-transform:uppercase;letter-spacing:1.6px;font-size:12.5px}
.bar-dates{opacity:.85}
.bar-dates:before{content:"·";margin-right:10px;opacity:.6}
.bar-code{border:1.5px dashed var(--accent);border-radius:6px;padding:2px 10px;font-size:13px;white-space:nowrap}
.bar-code b{color:var(--accent);letter-spacing:1.5px;font-size:15px}
.bar-cd{font-size:13px;opacity:.9;white-space:nowrap;font-variant-numeric:tabular-nums}
.bar-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border-radius:999px;background:var(--btn);color:var(--btnText);font-weight:600;font-size:13.5px;text-decoration:none;white-space:nowrap}
@media (max-width:760px){
 .bf-bar{flex-wrap:wrap;gap:6px 10px;padding:8px 14px;font-size:13px;justify-content:flex-start}
 .bar-msg{flex:1 1 100%;gap:6px}
 .bar-tag{font-size:11px}
 .bar-dates,.bar-cd{display:none}
 .bar-main{font-size:13px}
 .bar-btn{margin-left:auto;padding:5px 14px;font-size:13px}
}

.bf-hero a,.bf-bar a{text-decoration:none}
.bf-hero h1{letter-spacing:normal}
/* TREK NZ sales ($500 / BF500) variant */
.bf-sales{--panel:#606850;--btn:#96430F;--btnText:#fff;--accent:#CBAE64;--cdBg:rgba(245,239,227,.14);--barBg:#606850}
.bf-sales .bf-panel,.bf-bar.bf-sales{background:#606850 url(/bf20/img/topo-green.jpg) center/cover}
.bf-sales .bf-code b{font-size:26px}
.bf-sales .bf-h1{font-size:50px}@media (max-width:760px){.bf-sales .bf-h1{font-size:34px}}

/* Inset cards for the deals section / clearance block */
.bf-hero.bf-inset{border-radius:16px;margin:0 0 22px;--split:50%;max-width:none;box-shadow:0 14px 32px rgba(43,41,40,.16)}
.bf-hero.bf-inset .bf-inner{padding:0 96px 0 44px}
.bf-hero.bf-inset .bf-h1{font-size:46px;max-width:520px}
@media (max-width:1100px){
  .bf-hero.bf-inset .bf-inner{padding:0 80px 0 28px}
  .bf-hero.bf-inset .bf-h1{font-size:40px}
}
@media (max-width:760px){
  .bf-hero.bf-inset{margin:0 0 16px}
  .bf-hero.bf-inset .bf-inner{padding:22px 18px 24px}
  .bf-hero.bf-inset .bf-h1{font-size:32px}
}

/* css/strip-trek.css */
/* TREK BF20 strip (NZ only): TREK Gold #CBAE64 bar, TREK Black #2B2928 text (6.74:1, WCAG AA),
   black Book now button with Sand #F5EFE3 text (12.64:1). Stands apart from TREK's white/topo header.
   Apply only on NZ pages. Do not inject on /au or /au/*. */
.bf-bar.tv2{background:#CBAE64;color:#2B2928;font-family:"Work Sans",Helvetica,Arial,sans-serif;min-height:44px;gap:16px;padding:6px 20px;border-bottom:1px solid rgba(43,41,40,.15)}
.bf-bar.tv2 .bar-tag{color:#2B2928;font-weight:700;letter-spacing:1.6px}
.bf-bar.tv2 .bar-main{font-weight:500}
.bf-bar.tv2 .bar-mob{display:none}
.bf-bar.tv2 .bar-dates,.bf-bar.tv2 .bar-cd{opacity:1}
.bf-bar.tv2 .bar-code{border:1.5px dashed #2B2928;color:#2B2928}
.bf-bar.tv2 .bar-code b{color:#2B2928;font-weight:700}
.bf-bar.tv2 .bar-btn{background:#2B2928;color:#F5EFE3}
/* Tablet: keep the strip on one line (same approach as the approved ERW strip fix). */
@media (min-width:761px) and (max-width:1100px){
  .bf-bar.tv2 .bar-dates{display:none}
}
@media (min-width:761px) and (max-width:899px){
  .bf-bar.tv2{gap:10px;padding:6px 12px}
  .bf-bar.tv2 .bar-main{display:none}
  .bf-bar.tv2 .bar-mob{display:inline;font-weight:500}
}
@media (max-width:760px){
 .bf-bar.tv2{flex-wrap:nowrap;gap:6px;padding:6px 8px 6px 10px;min-height:40px;font-size:12px;justify-content:space-between}
 .bf-bar.tv2 .bar-msg{flex:0 0 auto;flex-wrap:nowrap;gap:5px;white-space:nowrap}
 .bf-bar.tv2 .bar-tag{font-size:10.5px;letter-spacing:.4px}
 .bf-bar.tv2 .bar-main,.bf-bar.tv2 .bar-dates,.bf-bar.tv2 .bar-cd,.bf-bar.tv2 .bar-word,.bf-bar.tv2 .bar-arrow{display:none}
 .bf-bar.tv2 .bar-mob{display:inline;font-size:12px}
 .bf-bar.tv2 .bar-code{flex:0 0 auto;padding:0 5px;font-size:12px}
 .bf-bar.tv2 .bar-code b{font-size:13px;letter-spacing:1px}
 .bf-bar.tv2 .bar-btn{flex:0 0 auto;margin-left:0;padding:5px 11px;font-size:12px}
}
@media (max-width:350px){.bf-bar.tv2{gap:4px;padding:6px 6px 6px 8px}.bf-bar.tv2 .bar-msg{gap:4px}.bf-bar.tv2 .bar-tag{font-size:9px;letter-spacing:.2px}.bf-bar.tv2 .bar-mob,.bf-bar.tv2 .bar-code{font-size:10.5px}.bf-bar.tv2 .bar-btn{font-size:10.5px;padding:5px 9px}.bf-bar.tv2 .bar-code b{font-size:11px;letter-spacing:.5px}}

/* css/deals.css */


/* TREK NZ Black Friday deals section. Mirrors the ERW /deals "Live offers" block:
   a short heading, then stacked inset offer cards. Two independent offers:
   BF20 rentals (black/gold) and $500 sales (green/brown). NZ only. */

.trek-deals{background:#F5EFE3;padding:36px 0 48px;color:#2B2928;font-family:"Work Sans",Helvetica,Arial,sans-serif}
.trek-deals .wrap{width:min(1200px,calc(100% - 48px));margin:0 auto}
.trek-deals .eyebrow{margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:2.2px;text-transform:uppercase;color:#96430F}
.trek-deals .deals-title{margin:0 0 28px;font-family:Trocchi,Georgia,serif;font-weight:400;font-size:clamp(32px,4vw,48px);line-height:1.1;color:#2B2928}

.trek-deals .bf-hero.bf-inset{border-radius:16px;margin:0 0 22px;--split:50%;max-width:none;box-shadow:0 14px 32px rgba(43,41,40,.16)}
.trek-deals .bf-hero.bf-inset .bf-inner{padding:0 96px 0 44px}
.trek-deals .bf-hero.bf-inset .bf-h1{font-size:46px;max-width:520px}
.trek-deals .bf-sales{--panel:#606850;--btn:#96430F;--btnText:#fff;--accent:#CBAE64;--cdBg:rgba(245,239,227,.14)}
.trek-deals .bf-sales .bf-panel{background:#606850 url(/bf20/img/topo-green.jpg) center/cover}
.trek-deals .bf-sales .bf-code b{font-size:26px}

.trek-deals-empty{background:#fff;border-radius:16px;padding:28px 32px;color:#2B2928}
.trek-deals-empty strong{display:block;font-family:Trocchi,Georgia,serif;font-size:26px;font-weight:400;margin-bottom:8px}
.trek-deals-empty p{margin:0;font-size:16px;line-height:1.5}

@media (max-width:1100px){
  .trek-deals .bf-hero.bf-inset .bf-inner{padding:0 80px 0 28px}
  .trek-deals .bf-hero.bf-inset .bf-h1{font-size:40px}
}
@media (max-width:760px){
  .trek-deals .bf-kicker{font-size:11px;letter-spacing:1.4px;flex-wrap:nowrap;white-space:nowrap;gap:8px}

  .trek-deals{padding:24px 0 32px}
  .trek-deals .wrap{width:min(1200px,calc(100% - 32px))}
  .trek-deals .deals-title{margin-bottom:20px}
  .trek-deals .bf-hero.bf-inset{margin:0 0 16px}
  .trek-deals .bf-hero.bf-inset .bf-inner{padding:22px 18px 24px}
  .trek-deals .bf-hero.bf-inset .bf-h1{font-size:32px}
  .trek-deals-empty{padding:22px 18px}
}

/* css/gate.css */
/* Date-switch classes, same pattern as ERW BF20.
   html.bf20-on  = BF20 rentals window (20 Nov 00:00 NZDT – 3 Dec 00:00 NZDT)
   html.bf500-on = $500 sales window (already on, off 1 Dec 00:00 NZDT) */
html:not(.bf20-on) .bf20-only{display:none!important}
html.bf20-on .bf20-hide{display:none!important}
html:not(.bf500-on) .bf500-only{display:none!important}
html.bf500-on .bf500-hide{display:none!important}
html.bf20-on .trek-deals-empty,
html.bf500-on .trek-deals-empty{display:none!important}

/* popup/bf-popup.css */
/* BF20 Black Friday pop-up. Scoped to .bf20-pop so it can sit on any page. Brand set by .bf20-erw / .bf20-trek on the root. */
.bf20-pop{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:20px}
.bf20-pop.is-open{display:flex}
.bf20-pop *{box-sizing:border-box;margin:0;padding:0}
.bf20-erw{--p:#243752;--h:#fff;--t:#fff;--a:#FDCC90;--b:#F79963;--bt:#243752;--cd:rgba(255,255,255,.1);--fh:Oswald,Impact,sans-serif;--fb:Poppins,Arial,sans-serif}
.bf20-trek{--p:#2B2928;--h:#F5EFE3;--t:#F5EFE3;--a:#CBAE64;--b:#CBAE64;--bt:#2B2928;--cd:rgba(245,239,227,.1);--fh:Trocchi,Georgia,serif;--fb:"Work Sans",Helvetica,Arial,sans-serif}
.bf20-backdrop{position:absolute;inset:0;background:rgba(10,14,20,.55);opacity:0;transition:opacity .25s}
.bf20-pop.is-open .bf20-backdrop{opacity:1}
.bf20-card{position:relative;width:100%;max-width:480px;max-height:calc(100vh - 40px);overflow:auto;border-radius:18px;background:var(--p);color:var(--t);font-family:var(--fb);box-shadow:0 30px 80px rgba(0,0,0,.4);transform:translateY(16px);opacity:0;transition:transform .3s,opacity .3s}
.bf20-trek .bf20-card{background:#2B2928 url(/bf20/img/topo-black.jpg) center/cover}
.bf20-pop.is-open .bf20-card{transform:none;opacity:1}
.bf20-ph{height:170px;position:relative;overflow:hidden}
.bf20-ph img{width:100%;height:100%;object-fit:cover;display:block}
.bf20-x{position:absolute;top:12px;right:12px;z-index:3;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.95);color:#1d1d1d;font-size:24px;line-height:40px;text-align:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.bf20-x:focus-visible,.bf20-copy:focus-visible,.bf20-book:focus-visible{outline:3px solid var(--a);outline-offset:2px}
.bf20-bd{padding:22px 28px 22px}
.bf20-k{font-size:11.5px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--a);margin-bottom:8px}
.bf20-h{font-family:var(--fh);color:var(--h);font-weight:400;font-size:32px;line-height:1.08;margin-bottom:10px}
.bf20-erw .bf20-h{font-weight:600;text-transform:uppercase;font-size:34px;line-height:1.02}
.bf20-s{font-size:14.5px;line-height:1.5;margin-bottom:16px}
.bf20-erw .bf20-s{font-weight:300}
.bf20-code{display:flex;align-items:center;justify-content:space-between;gap:10px;border:2px dashed var(--a);border-radius:12px;padding:8px 8px 8px 16px;margin-bottom:12px}
.bf20-code span{font-size:11.5px;letter-spacing:1px;text-transform:uppercase;opacity:.85}
.bf20-code b{font-size:26px;letter-spacing:3px;color:var(--a);margin-right:auto;margin-left:8px}
.bf20-erw .bf20-code b{font-family:Oswald,sans-serif;font-weight:600}
.bf20-copy{border:1.5px solid var(--a);background:transparent;color:var(--t);font:600 13.5px var(--fb);padding:9px 14px;border-radius:999px;cursor:pointer;white-space:nowrap}
.bf20-copy.copied{background:var(--a);color:var(--bt)}
.bf20-book{display:flex;align-items:center;justify-content:center;min-height:50px;border-radius:999px;background:var(--b);color:var(--bt);font-weight:600;font-size:16px;text-decoration:none;margin-bottom:14px}
.bf20-cd{display:flex;align-items:center;gap:6px;margin-bottom:10px;font-size:12.5px}
.bf20-cd .l{margin-right:auto;opacity:.9}
.bf20-cd .bx{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:46px;height:40px;border-radius:7px;background:var(--cd)}
.bf20-cd .bx b{font-size:16px;line-height:1;color:var(--h);font-variant-numeric:tabular-nums}
.bf20-erw .bf20-cd .bx b{font-family:Oswald,sans-serif;font-weight:600;font-size:17px}
.bf20-cd .bx small{font-size:8.5px;letter-spacing:.8px;text-transform:uppercase;opacity:.8;margin-top:2px}
.bf20-tc{font-size:10.5px;line-height:1.45;opacity:.72}
.bf20-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* mobile bottom sheet */
@media (max-width:600px){
 .bf20-pop{align-items:flex-end;padding:0}
 .bf20-card{max-width:none;border-radius:20px 20px 0 0;max-height:88vh;transform:translateY(100%)}
 .bf20-card:before{content:"";position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:rgba(255,255,255,.7);z-index:3}
 .bf20-ph{height:130px}
 .bf20-bd{padding:18px 20px calc(18px + env(safe-area-inset-bottom))}
 .bf20-h,.bf20-erw .bf20-h{font-size:28px}
 .bf20-s{font-size:14px;margin-bottom:14px}
}
@media (prefers-reduced-motion:reduce){.bf20-card,.bf20-backdrop{transition:none}}

/* css/trek-photo.css */
/* TREK NZ BF20 pop-up: taller photo band for the Medium Premium side-on shot so the whole van shows */
.bf20-trek .bf20-ph{height:200px}
.bf20-trek .bf20-ph img{object-position:50% 52% !important}
.bf20-trek .bf20-ph:after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;background:linear-gradient(rgba(43,41,40,0),rgba(43,41,40,.45));pointer-events:none}
@media (max-width:600px){.bf20-trek .bf20-ph{height:150px}.bf20-trek .bf20-ph img{object-position:50% 53% !important}}

