/* modern.css - small, modern styles for updated index.html */
:root{
  --primary:#0d6efd;
  --brand: rgb(155,51,49);
  --secondary-accent:#212529;
  --bg:#f8f9fa;
  --muted:#6c757d;
  --max-width:1200px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

body{font-family:var(--font-sans);background:var(--bg);}
html, body{overflow-x:clip;}
main{overflow-x:clip;}

/* Hero */
.hero{height:60vh;min-height:420px;position:relative;background:#000;color:#fff}
.hero-video{object-fit:cover;height:100%;max-height:none}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));}
.hero-content{z-index:2}
.hero-logo{max-width:360px;width:60%;height:auto}

/* Cards */
.card-img-top{height:160px;object-fit:cover;background:#f3f3f3}
.card{border:0}

/* Services visuals */
#services .service-card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:linear-gradient(135deg, rgba(155,51,49,0.08), rgba(255,255,255,0.95) 40%);
  border:1px solid rgba(155,51,49,0.3);
  border-radius:18px;
  height:100%;
}
#services .service-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:6px;
  background:linear-gradient(90deg, var(--brand), rgb(205,99,97));
  z-index:2;
}
#services .service-icon{
  height:172px;
  position:relative;
  background:rgba(155,51,49,0.08);
}
#services .service-photo{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:grayscale(100%) contrast(105%);
  transition:transform 360ms ease, filter 320ms ease;
}
#services .service-photo-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(0,0,0,0.35), rgba(155,51,49,0.28));
  pointer-events:none;
}
#services .service-body{
  padding:1.2rem 1.2rem 1.1rem;
  display:flex;
  flex-direction:column;
}
#services .service-title{
  color:var(--brand);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  font-size:1.28rem;
  margin-bottom:0.55rem;
}
#services .service-text{
  color:#2e3338;
  margin-top:0;
  font-size:0.96rem;
}

/* Animations */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animate service photos when their container becomes visible */
.animate-on-scroll.is-visible .service-photo{
  animation: pop-in 520ms cubic-bezier(.22,.9,.28,1) both;
}

/* Slight hover lift for cards and service photos */
.card{transition:transform 220ms ease, box-shadow 220ms ease}
.card:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(0,0,0,0.08)}
#services .card:hover{
  border-color:rgba(155,51,49,0.5);
  box-shadow:0 18px 40px rgba(103,24,23,0.24);
}
#services .service-card:hover .service-photo{transform:scale(1.04);filter:grayscale(100%) contrast(110%)}

@media (max-width:991px){
  #services .service-card{border-radius:14px}
  #services .service-icon{height:208px;flex-basis:auto}
  #services .service-body{padding:1.3rem}
  #services .service-title{margin-bottom:0.6rem}
}

/* CTA entrance pulse (one-time) when scrolled into view */
@keyframes cta-pulse { 0%{transform:scale(1)}50%{transform:scale(1.03)}100%{transform:scale(1)} }
.cta-pulse.animate-on-scroll.is-visible{animation: cta-pulse 1200ms ease 0s 1}

/* Services CTA banner */
.services-cta{background:linear-gradient(180deg, rgba(155,51,49,0.08), rgba(155,51,49,0.04));border:1px solid rgba(155,51,49,0.22)}
.services-cta h3{font-size:1.25rem;margin-bottom:0.25rem}
.services-cta p{margin-bottom:0.75rem}
.services-cta .btn-primary{padding:0.45rem 0.9rem;font-size:0.95rem}

@media (max-width:576px){
  .services-cta{padding:1rem}
}

/* Contact instructions block styling */
.contact-instructions{background:rgba(0,0,0,0.03);border:1px solid rgba(0,0,0,0.04)}
.contact-instructions a{color:var(--brand);text-decoration:none}
.contact-instructions a:hover{color:rgb(140,45,44)}

/* contact cards */
.contact-card img{object-fit:cover}

/* Footer */
footer a{opacity:0.85}

/* Utility */
.object-fit-cover{object-fit:cover}

@media (max-width:768px){
  .hero{height:50vh}
  .hero-logo{width:70%}
}

@media (max-width:991px){
  .container{
    padding-left:1rem !important;
    padding-right:1rem !important;
  }
  header .container{
    gap:0.75rem;
  }
  header .container > div{
    gap:0.5rem !important;
  }
  .hero{
    min-height:340px;
  }
  .hero-content h1{
    font-size:1.25rem;
    line-height:1.3;
  }
  #services .service-text{
    font-size:0.94rem;
    line-height:1.45;
  }
}

/* Scroll animations */
.animate-on-scroll{opacity:0;transform:translateY(10px);transition:opacity 600ms ease, transform 600ms ease;transition-delay:0ms}
.animate-on-scroll.is-visible{opacity:1;transform:none}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce){
  .animate-on-scroll{transition:none;transform:none;opacity:1}
}

/* Person contact cards */
.person-card{border:1px solid rgba(0,0,0,0.04);transition:transform 220ms ease, box-shadow 220ms ease;transition-delay:0ms}
.person-card:hover,.person-card:focus-within{transform:translateY(-6px);box-shadow:0 10px 30px rgba(0,0,0,0.08)}
.person-photo{width:120px;height:120px;object-fit:cover;border:0;box-shadow:none;background:transparent}
.person-photo--icon{
  display:grid;
  place-items:center;
  background:linear-gradient(145deg, #f5f6f7, #eceff1);
  color:#5a626a;
}
.person-photo--icon svg{
  width:52px;
  height:52px;
}
#contact .person-card h4{
  font-size:1.02rem;
  line-height:1.15;
  font-weight:600;
  margin-bottom:0.2rem !important;
}
#contact .person-card small{
  font-size:0.8rem;
  line-height:1.25;
  margin-bottom:0.8rem !important;
}
.contact-links{
  font-weight:500;
  font-size:0.88rem;
}
.contact-link{
  color:var(--muted);
  text-decoration:none;
  padding:3px 8px;
  border-radius:8px;
}
#contact .contact-link.mt-2{
  margin-top:0.22rem !important;
}
.contact-link svg{opacity:0.9}
.contact-link:hover,.contact-link:focus{background:rgba(155,51,49,0.06);color:var(--brand);text-decoration:none}

/* Brand buttons */
.btn-primary{background:var(--brand);border-color:var(--brand)}
.btn-primary:hover,.btn-primary:focus{background:rgb(140,45,44);border-color:rgb(140,45,44)}
.btn-outline-primary{color:var(--brand);border-color:var(--brand)}
.btn-outline-primary:hover,.btn-outline-primary:focus{background:rgba(155,51,49,0.06)}

@media (max-width:576px){
  .container{
    padding-left:0.9rem !important;
    padding-right:0.9rem !important;
  }
  .person-photo{width:96px;height:96px}
  #contact .person-card h4{
    font-size:1rem;
  }
  #contact .person-card small{
    font-size:0.78rem;
    margin-bottom:0.65rem !important;
  }
  header .container{
    flex-wrap:wrap;
    justify-content:center !important;
    text-align:center;
    padding-top:0.85rem !important;
    padding-bottom:0.85rem !important;
  }
  header .container > a img{
    height:46px;
  }
  .hero{
    height:56vh;
    min-height:300px;
  }
  .hero-logo{
    width:78%;
    max-width:300px;
  }
  .hero-content h1{
    font-size:1.05rem;
  }
  #services .service-icon{
    height:184px;
  }
  #services .service-title{
    font-size:1.1rem;
  }
  .differentiators-strip .diff-item{
    padding:0.9rem 0.25rem 0.9rem 0;
  }
  .primary-contact-lead{
    font-size:1rem;
  }
  .primary-contact-link{
    font-size:1.05rem;
    width:100%;
    padding-left:0;
    padding-right:0;
  }
  .primary-contact-link span{
    word-break:break-word;
    overflow-wrap:anywhere;
  }
  #contact .person-card{
    padding:1rem 0.85rem !important;
  }
  .contact-links{
    width:100%;
    font-size:0.88rem;
  }
  .contact-addresses{
    padding-top:1rem !important;
    padding-bottom:1rem !important;
  }
}

/* Supplier logos */
.supplier-logo{max-height:64px;max-width:140px;object-fit:contain;margin:12px;opacity:0.95}
.supplier-logo:hover{opacity:1}
@media (max-width:576px){
  .supplier-logo{
    max-width:110px;
    max-height:52px;
    margin:8px;
  }
}

/* Section headings: unify sizes and spacing for consistency */
/* h2 used for main section titles, h3 for sub-section headings */
h2, .container > h2 {
  font-size:1.75rem; /* ~28px on desktop */
  line-height:1.15;
  font-weight:600;
  margin-bottom:1rem;
}

h3, .container > h3 {
  font-size:1.25rem; /* ~20px */
  line-height:1.2;
  font-weight:600;
  margin-bottom:0.75rem;
}

@media (max-width:768px){
  h2{font-size:1.5rem}
  h3{font-size:1.125rem}
}

/* Explicit section heading size to keep all major section titles identical */
.section-title{
  font-size:1.75rem !important;
  line-height:1.15;
  font-weight:600;
}
@media (max-width:768px){
  .section-title{font-size:1.5rem !important}
}

/* Standardized vertical spacing for main sections */
.site-section{padding-top:3.5rem;padding-bottom:3.5rem}
@media (min-width:992px){
  .site-section{padding-top:4.5rem;padding-bottom:4.5rem}
}
@media (max-width:576px){
  .site-section{padding-top:2.5rem;padding-bottom:2.5rem}
}

/* Reduced top padding for sections that should sit closer to the previous content */
.section--tight-top{padding-top:1.25rem}
@media (min-width:992px){.section--tight-top{padding-top:2rem}}

/* Differentiators section (non-card layout) */
.differentiators-strip{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  background:transparent;
}
.diff-item{
  padding:1.1rem 1rem 1rem;
  display:flex;
  flex-direction:column;
  gap:0.7rem;
}
.diff-item + .diff-item{
  border-left:1px solid rgba(33,37,41,0.18);
}
.diff-icon{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:var(--secondary-accent);
  background:transparent;
}
.diff-icon svg{
  width:22px;
  height:22px;
}
.diff-title{
  margin:0;
  font-size:1.05rem;
  line-height:1.25;
  color:var(--secondary-accent);
}
.diff-text{
  color:#3f464d;
  font-size:0.95rem;
  line-height:1.45;
}

@media (max-width:991px){
  .differentiators-strip{grid-template-columns:1fr}
  .diff-item + .diff-item{
    border-left:0;
    border-top:0;
  }
}

/* Keep suppliers area stable height to avoid layout shift */
.suppliers-section .carousel-inner{min-height:120px;display:flex;align-items:center}
.suppliers-section .carousel-item{transition:transform 900ms cubic-bezier(.22,.9,.28,1)}

/* Ensure logos are centered within a fixed-height container */
.suppliers-section .d-flex{min-height:120px;align-items:center}

/* Primary customer contact */
.primary-contact{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.primary-contact-lead{
  color:#252b31;
  max-width:760px;
  font-size:1.08rem;
  line-height:1.5;
  font-weight:500;
}
.primary-contact-links{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0.55rem;
}
.primary-contact-link{
  color:var(--secondary-accent);
  text-decoration:none;
  font-weight:700;
  font-size:1.2rem;
  letter-spacing:0.01em;
  display:inline-flex;
  align-items:center;
  gap:0.55rem;
  padding:6px 10px;
  border-radius:8px;
}
.primary-contact-link svg{
  width:20px;
  height:20px;
  flex:0 0 20px;
}
.primary-contact-link:hover{
  background:rgba(155,51,49,0.06);
  color:var(--brand);
  text-decoration:none;
}

/* Address details under contact cards (no card wrappers) */
.contact-addresses{
  background:#3a4148;
  border:0;
}
.address-title{
  color:#f8f9fa;
  font-size:0.95rem;
  font-weight:700;
  letter-spacing:0.02em;
  text-transform:uppercase;
  position:relative;
  padding-left:0.55rem;
}
.address-title::before{
  content:"";
  position:absolute;
  left:0;
  top:0.12em;
  width:3px;
  height:0.9em;
  border-radius:999px;
  background:linear-gradient(180deg, #f8f9fa, #ced4da);
}
.contact-addresses address{
  color:#e9ecef;
  margin-bottom:0;
  font-size:0.92rem;
  line-height:1.5;
}
.address-meta{
  color:#ced4da;
  font-size:0.84rem;
}

/* Shared brand styling across page sections */
.site-section h2{
  position:relative;
  padding-left:0.8rem;
}
.site-section h2::before{
  content:"";
  position:absolute;
  left:0;
  top:0.1em;
  width:4px;
  height:0.9em;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(33,37,41,0.9), rgba(33,37,41,0.55));
}

#contact .person-card{
  position:relative;
  background:linear-gradient(135deg, rgba(33,37,41,0.04), rgba(255,255,255,0.97) 42%);
  border:1px solid rgba(33,37,41,0.12);
  border-left:0;
  border-right:0;
  box-shadow:0 12px 28px rgba(33,37,41,0.08);
  padding:1.05rem 0.9rem !important;
}

#contact .person-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, rgba(33,37,41,0.88), rgba(80,87,94,0.8));
  z-index:2;
}

#contact .person-card h4{
  color:var(--secondary-accent);
}
@media (min-width:992px){
  #contact .person-card h4{
    white-space:nowrap;
    font-size:0.98rem;
  }
}

#contact.site-section{
  padding-bottom:0 !important;
}

#suppliersCarousel{
  border:0;
  border-radius:0;
  padding:0;
  background:transparent;
  box-shadow:none;
}

/* About section carousel */
#aboutCarousel{
  border-radius:14px;
  border:0;
  background:transparent;
  box-shadow:none;
  overflow:hidden;
}
.about-carousel-indicators{
  margin-bottom:0.6rem;
}
.about-carousel-indicators [data-bs-target]{
  width:24px;
  height:3px;
  border-radius:999px;
  border:0;
  background-color:rgba(255,255,255,0.6);
}
.about-carousel-indicators .active{
  background-color:var(--secondary-accent);
}
