/* Endeavour Industries – layout fixes (loads after base.css) */

/* ---------- Header logo ---------- */
.main-nav .navbar-brand{padding:.15rem 0;margin-right:1rem;display:flex;align-items:center;flex-shrink:1;min-width:0}
.main-nav .navbar-brand img{height:50px;width:auto;max-width:100%;display:block;object-fit:contain}
.main-nav .navbar-toggler{border:0;padding:.35rem .5rem;font-size:1.6rem;line-height:1;color:var(--navy);border-radius:10px;flex-shrink:0}
.main-nav .navbar-toggler:focus{box-shadow:0 0 0 .2rem rgba(0,115,58,.2)}
@media(max-width:1199px){.main-nav .navbar-brand img{height:44px}}
@media(max-width:575px){.main-nav .navbar-brand img{height:42px}.main-nav{padding:.3rem 0}}
@media(max-width:359px){.main-nav .navbar-brand img{height:34px}}

/* ---------- Footer logo ---------- */
.footer-logo{background:#fff;padding:8px 14px;border-radius:12px;height:auto;width:200px;max-width:100%}

/* ---------- Hero slider ---------- */
/* Slides become flex boxes so content is truly centred (the old h-100 chain collapsed
   on mobile and pinned text to the top) and every slide keeps the same height. */
.hero .carousel-item.active,
.hero .carousel-item-next,
.hero .carousel-item-prev{display:flex;align-items:center}
.hero-slide{min-height:620px;height:78vh;max-height:760px}
.hero-slide>.container{width:100%;height:auto!important;padding-top:2rem;padding-bottom:5.5rem}
.hero-slide .row.h-100{height:auto!important}
.hero .carousel-indicators{margin-bottom:4.2rem}
.hero .carousel-indicators [data-bs-target]{height:5px;margin:0 4px;opacity:.55;transition:opacity .3s,width .3s}
.hero .carousel-indicators .active{opacity:1}
.hero{overflow:hidden}

@media(max-width:991px){
  .hero-slide{height:auto;min-height:540px;max-height:none}
  .hero-slide>.container{padding-top:2.5rem;padding-bottom:6rem}
  .hero-copy{text-align:left}
  .hero p{font-size:1rem;margin-bottom:1.4rem}
}
@media(max-width:767px){
  .hero-slide{min-height:520px}
  .hero-slide>.container{padding-top:2.2rem;padding-bottom:5.6rem}
  .hero h1{font-size:clamp(1.65rem,7vw,2.1rem);line-height:1.2}
  .hero p{font-size:.95rem;line-height:1.6}
  .eyebrow{font-size:.7rem;line-height:1.4;border-radius:14px;padding:.35rem .8rem;letter-spacing:.3px}
  .hero .btn-lg{font-size:.92rem;padding:.65rem 1.2rem}
  .hero .d-flex.gap-3{gap:.7rem!important}
  .hero .carousel-indicators{margin-bottom:3.6rem}
  .hero .carousel-indicators [data-bs-target]{width:26px}
  /* highlight cards sit below the slider on phones instead of covering its dots */
  .highlights{margin-top:0;padding-top:1.25rem}
  .hl-card{padding:.9rem}.hl-card i{font-size:1.6rem}.hl-card h6{font-size:.85rem}.hl-card small{font-size:.74rem}
}
@media(max-width:575px){
  .hero-slide{min-height:500px}
  .hero .d-flex.gap-3 .btn{flex:1 1 100%;text-align:center}
}
@media(prefers-reduced-motion:reduce){
  .hero-collage img,.wa-float,.carousel-item.active .hero-copy>*{animation:none}
  *{scroll-behavior:auto}
}

/* ---------- Misc ---------- */
.hero-collage img{max-width:none}
.to-top{bottom:92px}
.skip-link{position:absolute;left:-9999px;top:0;background:#fff;color:var(--navy);padding:.5rem 1rem;z-index:5000}
.skip-link:focus{left:10px;top:10px}
.form-alert{margin-bottom:1rem}
.btn[disabled]{opacity:.7;pointer-events:none}
@media(max-width:575px){.topbar{display:none}.page-hero{padding:2.5rem 0 1.8rem}.footer-bottom{justify-content:center;text-align:center}}

/* ---------- Heading tweaks (semantic h2/h3 now used instead of h5 / slide h1) ---------- */
.hero .hero-copy h1,.hero .hero-copy h2{color:#fff;font-weight:800;font-size:clamp(2rem,4.2vw,3.5rem);line-height:1.15;margin-bottom:1rem}
@media(max-width:767px){.hero .hero-copy h1,.hero .hero-copy h2{font-size:clamp(1.65rem,7vw,2.1rem);line-height:1.2}}
.vm-card h3{color:var(--navy);font-weight:700;margin:.5rem 0}
.info-box h3{font-weight:700;color:var(--navy);margin-bottom:1rem}.info-box h3 i{color:var(--green)}
.cat-card h3{font-weight:700;margin:.6rem 0;color:var(--navy)}.cat-card:hover h3{color:#fff}
.ind-card h3{font-weight:700;margin:.8rem 0 .4rem;color:#fff}
.about-logo h3{color:var(--navy);font-weight:700;margin-top:1rem;font-size:1.1rem}
.page-hero h1{color:#fff}
.badge-cat{display:inline-block}.badge-cat:hover{color:var(--navy)}
.lb-close{cursor:pointer}

/* Wide gutters (g-5) pushed the page ~12px past the screen edge on phones -> sideways scrolling */
@media(max-width:991px){.row.g-5{--bs-gutter-x:1.5rem;--bs-gutter-y:2rem}}

/* ---------- Product photos (sharp 1024px images, square crop) ---------- */
.prod-img img,.detail-img img,.gal-item img{display:block;aspect-ratio:1/1;object-fit:cover;object-position:center}
.hero-collage img{aspect-ratio:1/1;object-fit:cover}
.lightbox img{width:auto;height:auto;max-width:min(90vw,1024px);max-height:78vh;object-fit:contain;background:#fff}
