.hero {
  background: #d7eafa;
  height: auto;
  overflow: visible;
}

.hero::after { content: none !important; }

.hero-slide {
  background-color: #d7eafa;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.hero-slide-one {
  background-image: linear-gradient(90deg, #d7eafa 0%, rgba(215,234,250,.96) 42%, rgba(215,234,250,0) 66%), url('assets/hero.png');
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
}

.hero-slide-two {
  background-image: linear-gradient(90deg, #d7eafa 0%, rgba(215,234,250,.97) 43%, rgba(215,234,250,0) 68%), url('assets/hero-2.png');
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
}

.hero-slide-three {
  background-image: linear-gradient(90deg, #d7eafa 0%, rgba(215,234,250,.97) 43%, rgba(215,234,250,0) 68%), url('assets/hero-3.png');
  background-position: center, right center;
  background-size: 100% 100%, auto 100%;
}

.hero .carousel-inner { overflow: hidden; }
.hero > .carousel { height: 630px !important; }
.hero .carousel-item { transition: opacity .75s ease-in-out; }
.hero .hero-copy { position: relative; z-index: 2; }
.hero .hero-copy h1 { color: #082d3d; text-shadow: 0 1px 0 rgba(255,255,255,.18); }
.hero .hero-copy p { color: #3f5c69; font-weight: 500; }

.hero .slide-count {
  right: auto;
  bottom: 35px;
  left: max(24px, calc((100% - 1240px) / 2));
  width: auto;
  height: 48px;
  margin: 0;
  align-items: center;
  justify-content: flex-start;
}

.hero .slide-count button {
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 11px;
  text-indent: 0;
  opacity: 1;
}

.hero .slide-count button.active { border-color: var(--navy); }
.hero .hero-control { width: 56px; opacity: 0; transition: opacity .25s ease; }
.hero:hover .hero-control { opacity: .65; }
.hero .carousel-control-prev { left: 8px; }
.hero .carousel-control-next { right: 8px; }
.hero .hero-control span:first-child {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(8,45,61,.75);
  background-size: 18px;
}

.hero .contact-strip {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: 51%;
  height: 132px;
  margin: 0 0 0 auto;
  transform: none;
}
.hero .contact-strip,
.hero .contact-strip small,
.hero .contact-strip strong { color: #fff; }

/* Company introduction */
.about {
  position: relative;
  overflow: hidden;
  padding-top: 46px;
  padding-bottom: 56px;
  border-top: 30px solid var(--navy);
  background: #fff;
}

.about .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(45px, 6vw, 80px);
  min-height: 510px;
  margin: 0;
}
.about .row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0 !important;
}
.about .container { max-width: 1200px; }

.about-photo {
  height: 510px;
  min-height: 0;
  background-image: url('assets/hero-2.png');
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 45px rgba(8,45,61,.08);
  isolation: isolate;
}

.about-photo::before,
.about-photo::after { content: none; }

.about-video {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-content: center;
  width: 215px;
  height: 94px;
  padding: 18px 22px;
  background: var(--red);
  color: #fff;
  border: 0;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.about-video:hover { background: #b91f16; transform: translateY(-3px); }
.about-video span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  font-size: 11px;
}
.about-video small { align-self: end; font-size: 9px; opacity: .8; }
.about-video strong { align-self: start; font-size: 11px; }

.about-copy { position: relative; z-index: 1; padding: 0 !important; }
.about-copy .eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.about-copy h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.12;
  color: #082d3d;
}
.about-copy p { max-width: 520px; margin: 24px 0 30px; color: #52666f; line-height: 1.8; }
.about-copy .metric {
  max-width: 520px;
  margin: 20px 0;
  align-items: center;
}
.about-copy .metric b,
.about-copy .metric strong { color: #082d3d; font-size: 11px; }
.about-copy .metric strong { color: var(--red); }
.about-copy .metric span {
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: #e8ecee;
}
.about-copy .metric i { height: 4px; border-radius: 3px; }
.about-copy .text-link {
  position: relative;
  margin-top: 24px;
  padding-bottom: 5px;
  text-decoration: none;
}
.about-copy .text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--navy);
  transition: right .2s ease;
}
.about-copy .text-link:hover::after { right: 35%; }

/* Explicit contrast prevents text from inheriting image/background colors. */
.values,
.values h2,
.values h3 { color: #fff; }
.values { background: var(--navy); }
.values .value-copy > small { color: #b9c9cf; }
.values .value-copy p { color: #d1dde1; }
.values .experience,
.values .experience span { color: #fff; }

.services h2,
.services .service-card h3,
.testimonial h2,
.faq h2,
.newsletter h2 { color: #082d3d; }
.service-card p,
.testimonial blockquote,
.faq .accordion-body,
.newsletter p { color: #53676f; }
.service-card.featured,
.service-card.featured h3,
.service-card.featured p,
.service-card.featured a { color: #fff; }
.testimonial b { color: #082d3d; }
.testimonial .role { color: #71838b; }
.accordion-button { color: #082d3d !important; }

footer,
footer h4,
footer .footer-brand { color: #fff; }
footer p,
footer .col-lg-2 a,
footer .col-lg-3 a { color: #b7c7cd; }

/* Final interaction polish */
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { color: #fff; background: var(--red); }
a, button, input { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.btn-red:hover,
.newsletter button:hover { color: #fff; background: #b91f16; transform: translateY(-2px); }
.quote-btn:hover { color: #fff; background: #0d4054; }
.nav-link:hover { color: var(--red); }
.service-card { transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(8,45,61,.1); }
footer a:hover { color: #fff !important; }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 3px solid rgba(217,39,28,.35); outline-offset: 3px; }
.newsletter input:focus { border-bottom-color: var(--red); box-shadow: 0 2px 0 rgba(217,39,28,.08); }

/* Services alignment */
.services {
  padding-top: 48px;
  padding-bottom: 36px;
  border-top: 30px solid var(--red);
  background: #f7f8f8;
}
.services .container { max-width: 1200px; }
.services .section-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}
.services .section-title > small,
.services .section-title > h2 { grid-column: 1; }
.services .section-title h2 {
  max-width: 520px;
  margin: 14px 0 0;
  line-height: 1.12;
}
.services .arrows {
  position: static;
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  gap: 10px;
  align-self: end;
}
.services .arrows button {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.services .arrows button:hover {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}
.services > .container > .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 38px 0 0 !important;
}
.services > .container > .row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}
.services .service-card {
  height: 100%;
  min-height: 365px;
  padding: 54px 34px 36px;
  display: flex;
  flex-direction: column;
}
.services .service-card em { flex: 0 0 auto; }
.services .service-card h3 { margin: 24px 0 14px; }
.services .service-card p { margin-bottom: 0; }
.services .service-card a { margin-top: auto; padding-top: 26px; }

/* Testimonial alignment */
.testimonial {
  padding-top: 38px;
  padding-bottom: 52px;
  border-top: 30px solid var(--navy);
  background: #fff;
}
.testimonial .container { max-width: 1200px; }
.testimonial .row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(55px, 7vw, 95px);
  margin: 0;
}
.testimonial .row > [class*="col-"] {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
.testimonial-photo {
  width: 100%;
  height: 500px;
  margin: 0;
  background-position: center;
  background-size: cover;
  box-shadow: -42px -42px 0 var(--navy);
}
.testimonial .row > div:last-child { max-width: 440px; }
.testimonial .row > div:last-child > small {
  display: block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .08em;
}
.testimonial h2 {
  margin: 18px 0 38px;
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.12;
}
.testimonial .stars { margin-bottom: 16px; }
.testimonial blockquote {
  position: relative;
  margin: 0 0 24px;
  padding-left: 22px;
  border-left: 3px solid var(--red);
  line-height: 1.8;
}
.testimonial .role { margin-top: 6px; }

/* FAQ alignment */
.faq {
  padding-top: 46px;
  padding-bottom: 48px;
  border-top: 30px solid var(--red);
  background: #f6f7f7;
}

.newsletter { border-top: 30px solid var(--navy); }
.faq .container { max-width: 1200px; }
.faq .row {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: clamp(50px, 7vw, 90px);
  margin: 0;
}
.faq .row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}
.faq-title { align-self: center; }
.faq-title small {
  display: block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .08em;
}
.faq-title h2 {
  margin: 18px 0 34px;
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.12;
}
.faq-title .btn-red { min-height: 44px; display: inline-flex; align-items: center; }
.faq .accordion { border-top: 1px solid #d9dfe1; }
.faq .accordion-item {
  border: 0;
  border-bottom: 1px solid #d9dfe1;
  background: transparent;
}
.faq .accordion-button {
  min-height: 68px;
  padding: 20px 2px;
  background: transparent !important;
  font-size: 12px;
  line-height: 1.45;
}
.faq .accordion-button::after { margin-left: 24px; }
.faq .accordion-body {
  max-width: 760px;
  padding: 0 35px 24px 2px;
  line-height: 1.8;
}

/* Header alignment */
.site-header {
  height: 82px;
  padding: 0;
}

.site-header .header-inner {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 0 48px;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.site-header .site-logo img {
  display: block;
  width: 168px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.footer-logo {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 3px;
  background: #fff;
}
.footer-logo img {
  display: block;
  width: 220px;
  height: auto;
}

.site-header .navbar-collapse,
.site-header .navbar-nav {
  height: 100%;
}

.site-header .navbar-nav {
  gap: 0 !important;
  margin: 0 0 0 auto;
}

.site-header .nav-item,
.site-header .dot {
  display: flex;
  align-items: center;
}

.site-header .nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 19px !important;
  white-space: nowrap;
}

.site-header .dot {
  padding: 0 1px;
}

.site-header .quote-item,
.site-header .quote-btn {
  height: 100%;
}

.site-header .quote-item {
  margin-left: 20px;
}

.site-header .quote-btn {
  min-width: 216px;
  margin: 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .hero .hero-slide { background-position: center, right center; }

  .site-header {
    height: 70px;
  }

  .site-header .header-inner {
    padding: 0 20px;
  }

  .site-header .navbar-toggler {
    padding: 5px 8px;
    border: 0;
    box-shadow: none;
  }

  .site-header .navbar-collapse {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: auto;
    padding: 14px 20px 20px;
    background: #fff;
    border-top: 1px solid #edf0f1;
    box-shadow: 0 12px 24px rgba(8, 45, 61, .1);
  }

  .site-header .navbar-nav {
    height: auto;
    align-items: stretch !important;
  }

  .site-header .nav-link {
    height: auto;
    padding: 12px 0 !important;
  }

  .site-header .quote-item {
    height: auto;
    margin: 8px 0 0;
  }

  .site-header .quote-btn {
    min-width: 0;
    height: 48px;
    padding: 0 22px;
    background: var(--navy);
    color: #fff;
  }

  body { overflow-x: hidden; }
  .container { max-width: 720px; }
  .hero {
    height: auto;
    overflow: visible !important;
  }
  .hero > .carousel { height: 620px !important; }
  .hero-slide::after { content:""; position:absolute; inset:0; z-index:0; background:rgba(216,235,250,.76); }
  .hero .container { z-index: 1; }
  .hero-copy { padding-top: 35px; }
  .hero .contact-strip {
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 40px);
    max-width: 720px;
    margin: 0 auto;
    transform: none;
    justify-content: space-evenly;
  }
  .about { padding-top: 46px; padding-bottom: 54px; }
  .photo-frame { min-height: 430px; }
  .about .row {
    grid-template-columns: 1fr;
    gap: 55px;
    min-height: 0;
  }
  .about-copy { padding: 0 !important; }
  .about-copy h2,
  .about-copy p,
  .about-copy .metric { max-width: none; }
  .value-copy { padding: 65px 35px; }
  .value-photo { background-position: center 15%; }
  .service-card { height: 100%; min-height: 350px; }
  .testimonial { padding-top: 38px; padding-bottom: 54px; }
  .testimonial .row { grid-template-columns: 1fr; gap: 65px; }
  .testimonial-photo { max-width: 620px; }
  .testimonial .row > div:last-child { max-width: 620px; }
  .faq-title { padding-top: 0; padding-bottom: 35px; }
  .newsletter .container { max-width: none; padding: 0; }
  .newsletter .row { margin: 0; }
  footer { padding-top: 60px; }

  .faq { padding-top: 46px; padding-bottom: 50px; }
  .faq .row { grid-template-columns: 1fr; gap: 42px; }
  .faq-title { padding: 0; }

  .services { padding-top: 48px; padding-bottom: 34px; }
  .services > .container > .row { gap: 18px; }
  .services .service-card { min-height: 350px; padding: 44px 25px 32px; }
}

@media (max-width: 767px) {
  body { font-size: 13px; }
  .container { width: 100%; padding-left: 22px; padding-right: 22px; }
  h2 { font-size: 30px; line-height: 1.15; }

  .hero {
    height: auto;
  }
  .hero > .carousel { height: 590px !important; }
  .hero .hero-slide { background-position: center, 68% center; }
  .hero-slide::after { background: rgba(216,235,250,.88); }
  .hero-copy { padding: 0 5px; }
  .hero h1 { font-size: clamp(38px, 11vw, 50px); letter-spacing: -1.5px; }
  .hero p { max-width: 440px; margin: 20px 0 26px; }
  .hero .slide-count { bottom: 72px; left: 22px; gap: 12px; }
  .hero .hero-control { display: none; }
  .hero .contact-strip {
    bottom: auto;
    height: 164px;
    padding: 18px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .hero .contact-strip div { grid-template-columns: 45px 1fr; }
  .hero .contact-strip strong { font-size: 10px; }

  .section-pad { padding: 85px 0; }
  .about { padding-top: 40px; padding-bottom: 48px; background: #fff; }
  .about .row { gap: 45px; }
  .photo-frame { height: 390px; min-height: 0; }
  .about-photo { background-position: center; }
  .about .ps-lg-5 { padding-left: 12px !important; }
  .about h2 br { display: none; }
  .about p { margin: 20px 0 28px; }

  .values { height: auto; }
  .values .container { padding: 0; }
  .values .row { margin: 0; }
  .experience { padding: 28px 22px; }
  .value-copy { padding: 55px 22px 45px; }
  .value-copy h2 { margin: 18px 0 32px; }
  .value-copy article { gap: 15px; }
  .value-copy p { font-size: 11px; }
  .value-photo { height: 440px; }

  .section-title h2 { margin-top: 16px; }
  .arrows { top: 35px; bottom: auto; }
  .services .row { margin-top: 15px !important; }
  .service-card { min-height: 0; padding: 42px 28px; }
  .service-card h3 { font-size: 22px; }
  .services { padding-top: 42px; padding-bottom: 30px; }
  .services > .container > .row {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px !important;
  }
  .services .service-card { min-height: 330px; }

  .testimonial { padding-top: 34px; padding-bottom: 48px; }
  .testimonial-photo {
    height: 390px;
    margin: 0 0 0 24px;
    box-shadow: -24px -24px 0 var(--navy);
  }
  .testimonial .row { gap: 48px; }
  .testimonial h2 { margin: 18px 0 32px; }

  .faq { padding: 42px 0; }
  .faq-title h2 { margin: 18px 0 30px; }
  .accordion-button { line-height: 1.45; padding-right: 8px; }
  .faq .row { gap: 35px; }
  .faq .accordion-button { min-height: 62px; }

  .newsletter-photo { height: 390px; }
  .newsletter .col-lg-7 { padding: 50px 22px !important; }
  .newsletter h2 br { display: none; }
  .newsletter form { margin: 35px 0 45px; flex-direction: column; gap: 16px !important; }
  .newsletter input { width: 100%; }
  .newsletter button { align-self: flex-start; min-height: 46px; padding: 0 28px; }
  .logos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

  footer .container { padding-left: 22px; padding-right: 22px; }
  footer .row { --bs-gutter-y: 42px; }
  .social { margin-top: 30px; }
  .copyright { margin-top: 45px; }
  .copyright .container { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 420px) {
  .site-header .header-inner { padding: 0 16px; }
  .site-header .navbar-brand { font-size: 20px; }
  .site-header .site-logo img { width: 142px; max-height: 54px; }
  .hero { height: auto; }
  .hero > .carousel { height: 560px !important; }
  .hero h1 { font-size: 37px; }
  .hero p br { display: none !important; }
  .slide-count { gap: 22px; }
  .hero .contact-strip { width: calc(100% - 24px); }
  .photo-frame { height: 310px; }
  .about-video { width: 190px; height: 82px; padding: 14px 18px; }
  .value-photo { height: 360px; }
  .arrows { position: static; margin-top: 22px; }
  .testimonial-photo { height: 310px; }
  .newsletter-photo { height: 320px; }
  .logos { grid-template-columns: 1fr; }
  footer .col-6 { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
.hero-slide-one{background-image:linear-gradient(90deg,#d7eafa 0%,rgba(215,234,250,.96) 40%,rgba(215,234,250,.04) 68%),url('assets/cablecon-african-engineering-team.webp')!important}.hero-slide-two{background-image:linear-gradient(90deg,#d7eafa 0%,rgba(215,234,250,.97) 40%,rgba(215,234,250,.04) 68%),url('assets/cablecon-heavy-equipment-site.webp')!important}.hero-slide-three{background-image:linear-gradient(90deg,#d7eafa 0%,rgba(215,234,250,.97) 40%,rgba(215,234,250,.04) 68%),url('assets/cablecon-industrial-tools-supplies.webp')!important}
