/* Bowe Recruitment: adapter so the homepage design works with block-editor markup */

/* ---------- Spacing resets (front + editor) ---------- */
.bowe-home .wp-block-group > *,
.editor-styles-wrapper :where(.bh-section,.bh-journey,.bh-cta) .wp-block-group > *{margin-block-start:0;}
.editor-styles-wrapper :where(.bh-section,.bh-journey,.bh-cta,.bh-hero,.bh-ticker,.bh-tmarquee) :where(h1,h2,h3,p,figure,blockquote){margin:0;padding:0;}
.bowe-home > *{margin-block:0;}
.bowe-home .alignfull{margin-left:0 !important;margin-right:0 !important;max-width:none !important;width:auto !important;}
.bowe-home :where(.wp-block-image){margin:0;}
.bowe-home .wp-block-heading{color:inherit;}

/* ---------- Buttons (core Buttons block) ---------- */
:is(.bowe-home,.editor-styles-wrapper) .wp-block-buttons{display:flex;flex-wrap:wrap;gap:16px;}
.wp-block-button.bh-btn{padding:0 !important;background:none !important;border:0 !important;display:inline-block;transform:none !important;}
.bh-btn .wp-block-button__link{
  display:inline-flex !important;align-items:center;gap:10px;padding:17px 34px !important;border-radius:999px !important;
  font-family:var(--bw-display) !important;font-weight:700 !important;font-size:13px !important;line-height:1.2 !important;
  letter-spacing:.16em;text-transform:uppercase;text-decoration:none !important;border:2px solid transparent !important;box-shadow:none !important;
  transition:transform .3s var(--bw-ease),background .3s,color .3s,border-color .3s;
}
.bh-btn .wp-block-button__link:hover{transform:translateY(-3px);}
.bh-btn--gold .wp-block-button__link{background:var(--bw-gold) !important;color:var(--bw-ink) !important;}
.bh-btn--gold .wp-block-button__link:hover{background:var(--bw-gold-lt) !important;}
.bh-btn--ghost .wp-block-button__link{background:transparent !important;border-color:rgba(245,243,238,.55) !important;color:var(--bw-cream) !important;}
.bh-btn--ghost .wp-block-button__link:hover{border-color:var(--bw-gold) !important;color:var(--bw-gold) !important;}
.bh-btn--ink .wp-block-button__link{background:var(--bw-ink) !important;color:var(--bw-gold) !important;}
.bh-btn--ink .wp-block-button__link:hover{background:#2a2622 !important;}
.bh-btn .wp-block-button__link::after{content:"\2192";transition:transform .3s var(--bw-ease);}
.bh-btn .wp-block-button__link:hover::after{transform:translateX(4px);}

/* Text link (paragraph with class bh-link) */
.bh-about__text p.bh-link,p.bh-link{display:inline-flex;font-size:13px;line-height:1.4;margin-top:30px !important;color:var(--bw-ink);}
p.bh-link a{color:inherit !important;text-decoration:none !important;}

/* Reveal direction without data attributes */
.bowe-js .reveal-left{transform:translateX(-50px);}
.bowe-js .reveal-right{transform:translateX(50px);}

/* ---------- Hero ---------- */
.bh-hero__nav{grid-template-columns:repeat(var(--n,5),1fr);}
.bh-hero__ctas.wp-block-buttons{margin-top:40px;}

/* ---------- About ---------- */
.bh-about__media::before{content:"";position:absolute;left:0;bottom:0;width:78%;height:82%;border:2px solid var(--bw-gold);}
.bh-about__media .wp-block-image{position:relative;margin:0 !important;}
.bh-about__media .wp-block-image img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;filter:saturate(.85) contrast(1.05);display:block;}
.bh-about__badge{z-index:2;}
.bh-about__badge p:first-child{font-family:var(--bw-display);font-weight:700;font-size:40px;line-height:1;color:var(--bw-gold);}
.bh-about__badge p:last-child{font-size:12px;letter-spacing:.18em;text-transform:uppercase;}

/* ---------- Stats ---------- */
.bh-stat > p{margin:0;}

/* ---------- Services tiles ---------- */
.bh-tile.wp-block-group{background-size:cover;background-position:center;}
.bh-tile p.bh-tile__num{font-size:14px;opacity:1;line-height:1;}
.bh-tile p.bh-tile__more{font-size:12px;opacity:1;}
.bh-tile__more a{color:inherit !important;text-decoration:none !important;}
.bh-tile__more a::after{content:"";position:absolute;inset:0;z-index:3;border-radius:inherit;}
.bh-tile:focus-within{outline:2px solid var(--bw-gold);outline-offset:4px;}
.bh-tile--gold p{color:var(--bw-ink);}
.bh-tile--dark p,.bh-tile--feature p{color:var(--bw-cream);}
.bh-tile--dark p.bh-tile__num,.bh-tile--dark p.bh-tile__more,.bh-tile--feature p.bh-tile__num,.bh-tile--feature p.bh-tile__more{color:var(--bw-gold);}

/* ---------- Journey (parallax band) ---------- */
.bh-journey.wp-block-group{background-size:cover;background-position:center;}
.bh-journey__card .wp-block-buttons{margin-top:0;}

/* ---------- Why us ---------- */
.bh-why__list{display:block;}
.bh-why__item{display:grid;grid-template-columns:110px 1fr;gap:24px;padding:40px 0;border-top:1px solid rgba(20,18,16,.14);}
.bh-why__item:last-child{border-bottom:1px solid rgba(20,18,16,.14);}
.bowe-js .bh-why__item.reveal.is-in{transition:opacity .9s var(--bw-ease),transform .9s var(--bw-ease),padding .4s var(--bw-ease);}
.bh-why__item:hover{padding-left:14px;}
.bh-why__item p.bh-why__num{font-family:var(--bw-display);font-weight:700;font-size:64px;line-height:.9;color:transparent;-webkit-text-stroke:1.5px var(--bw-gold);transition:color .4s;}
.bh-why__item:hover p.bh-why__num{color:var(--bw-gold);}
.bh-why__item h3{font-family:var(--bw-display);font-weight:700;font-size:24px;margin-bottom:10px !important;color:var(--bw-ink);}
.bh-why__item .bh-why__body p{font-size:16px;line-height:1.65;color:#4a433c;}

/* ---------- Testimonials ---------- */
.bh-testimonials > .bh-tmarquee{margin-top:0;}

/* ---------- CTA ---------- */
.bh-cta__inner .wp-block-buttons{justify-content:center;}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .bh-hero__nav{grid-template-columns:repeat(var(--n,5),1fr);}
}
@media (max-width:760px){
  .bh-why__item{grid-template-columns:70px 1fr;}
  .bh-why__item p.bh-why__num{font-size:44px;}
  .bh-hero__ctas.wp-block-buttons{margin-top:32px;}
}

/* ---------- Editor only ---------- */
.editor-styles-wrapper .is-root-container > :is(.bh-section,.bh-journey,.bh-cta,.wp-block-bowe-hero,.wp-block-bowe-ticker,.bowe-ssr){margin-block:0 !important;}
.editor-styles-wrapper :is(.bh-section,.bh-journey,.bh-cta,.bh-hero,.bh-ticker){font-family:var(--bw-body);}
.editor-styles-wrapper .bh-hero{min-height:640px;}
.editor-styles-wrapper .bh-tile__more a::after{display:none;}

/* Editor: keep hero headline cream like the live site */
.editor-styles-wrapper .bh-hero .bh-hero__title,.editor-styles-wrapper .bh-hero .bh-hero__title span{color:var(--bw-cream) !important;}
.editor-styles-wrapper .bh-hero .bh-hero__title em{color:var(--bw-gold) !important;}
.editor-styles-wrapper .ba-hero h1,.editor-styles-wrapper .bk-emotion h2{color:var(--bw-cream) !important;}
.editor-styles-wrapper .ba-hero h1 em,.editor-styles-wrapper .bk-emotion h2 em{color:var(--bw-gold) !important;}

/* Hero slide tabs: labels only, no numbers */
.bh-hero__dot{grid-template-columns:1fr;}
.bh-hero__dot-num{display:none;}

/* Hero slide option: show the whole (tall) photo on the right, blended into the dark left side */
.bh-hero__slide--fit{background-size:auto 100% !important;background-position:right center !important;background-repeat:no-repeat !important;background-color:var(--bw-ink);}
.bh-hero__slide--fit::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--bw-ink) 0%,var(--bw-ink) 34%,rgba(20,18,16,.6) 46%,rgba(20,18,16,0) 62%);}
@media (max-width:760px){.bh-hero__slide--fit{background-size:cover !important;background-position:70% center !important;}.bh-hero__slide--fit::after{display:none;}}

/* Lighter bottom shade so details near the base of slides stay visible */
.bh-hero__scrim{background:linear-gradient(90deg,rgba(20,18,16,.92) 0%,rgba(20,18,16,.72) 38%,rgba(20,18,16,.25) 70%,rgba(20,18,16,.45) 100%),linear-gradient(0deg,rgba(20,18,16,.85) 0%,rgba(20,18,16,.4) 12%,rgba(20,18,16,0) 24%),linear-gradient(180deg,rgba(198,150,46,.18),rgba(198,150,46,0) 30%) !important;}

.bh-hero__slide--fit::after{background:linear-gradient(90deg,var(--bw-ink) 0%,var(--bw-ink) 30%,rgba(20,18,16,.55) 45%,rgba(20,18,16,0) 60%) !important;}

/* Hero video slides */
.bh-hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s ease;}
.bh-hero__video.is-ready{opacity:1;}
@media (max-width:760px),(prefers-reduced-motion:reduce){.bh-hero__video{display:none;}}

/* Smooth hero video: no zoom animation on the video slide, keep it on its own GPU layer */
.bh-hero__slide:has(.bh-hero__video){transform:none !important;transition:opacity 1.4s var(--bw-ease) !important;}
.bh-hero__video{will-change:opacity;transform:translateZ(0);backface-visibility:hidden;}
