@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==================================================
   KANDOO KANS
   Brand Variables & Global Foundation
================================================== */

:root {
  --kdk-blue: #0469a8;
  --kdk-dark-blue: #004685;
  --kdk-green: #7fdc1d;
  --kdk-dark: #101820;
  --kdk-light: #f3f7fa;
  --kdk-white: #ffffff;
  --kdk-text: #344054;
  --kdk-border: #e1e8ed;
  --kdk-radius: 20px;
  --kdk-width: 1310px;
  --kdk-shadow: 0 12px 35px rgba(16, 24, 32, 0.08);
  --kdk-font: 'Plus Jakarta Sans', Arial, sans-serif;
}

body {
  font-family: var(--kdk-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--kdk-text);
  background: var(--kdk-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--kdk-font);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--kdk-dark);
}

.kdk-container {
  width: 100%;
  max-width: var(--kdk-width);
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* ==================================================
   KDK — Shared Custom Buttons
================================================== */

.kdk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: var(--kdk-font);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background-color .25s ease,
              color .25s ease,
              transform .25s ease,
              box-shadow .25s ease;
}

.kdk-btn:hover {
  transform: translateY(-3px);
}

/* Green Button */

.kdk-btn--green {
  background: var(--kdk-green);
  color: var(--kdk-dark);
}

.kdk-btn--green:hover {
  background: #ffffff;
  color: var(--kdk-dark);
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

/* Blue Button */

.kdk-btn--blue {
  background: var(--kdk-blue);
  color: #ffffff;
}

.kdk-btn--blue:hover {
  background: var(--kdk-dark-blue);
  color: #ffffff;
}

/* Outline Button */

.kdk-btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: #ffffff;
}

.kdk-btn--outline:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--kdk-dark);
}

/* Keyboard Accessibility */

.kdk-btn:focus-visible,
.kdk-header-social a:focus-visible {
  outline: 3px solid var(--kdk-green);
  outline-offset: 4px;
}

/* ==================================================
   KDK — Anchor Positioning
================================================== */

#Residential,
#FAQs {
  scroll-margin-top: 150px;
}

/* ==================================================
   KDK — Full Width Native T4 Header
================================================== */

#t4-header {
  background: #ffffff;
  padding: 18px clamp(20px, 4vw, 80px);
  border: 0;
  border-bottom: 4px solid var(--kdk-green);
  box-shadow: none;
}

/* Full Width Header Row */

#t4-header > .t4-row {
  margin-left: 0;
  margin-right: 0;
  align-items: center;
}

/* Header Columns */

#t4-header .header-1 {
  padding-left: 0;
}

#t4-header .header-social {
  padding-right: 0;
}

/* Native T4 Header Block */

#t4-header .header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

#t4-header .header-r {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Joomla Custom Module Wrapper */

#t4-header .header-social .custom {
  margin: 0;
  padding: 0;
}

/* ==================================================
   KDK — Logo Dimensions
================================================== */

.navbar-brand.logo-control {
  padding: 0;
  margin: 0;
  max-width: 100%;
}

/* Desktop Logo */

.navbar-brand.logo-control img.logo-img {
  width: auto !important;
  height: auto !important;
  max-height: 115px;
  max-width: 100%;
  object-fit: contain;
}

/* Mobile Logo */

.navbar-brand.logo-control img.logo-img-sm {
  width: auto !important;
  height: auto !important;
  max-height: 85px;
  max-width: 100%;
  object-fit: contain;
}

/* Off-Canvas Logo */

#off-canvas-left .t4-off-canvas-header img {
  width: auto !important;
  height: auto !important;
  max-height: 75px;
  max-width: 80%;
  object-fit: contain;
}

/* ==================================================
   KDK — Header Social & Contact Information
================================================== */

.kdk-header-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  font-family: var(--kdk-font);
}

/* Contact Information */

.kdk-header-social__contact {
  text-align: right;
}

.kdk-header-social__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--kdk-dark) !important;
  text-decoration: none !important;
  transition: color .25s ease;
}

.kdk-header-social__phone i {
  color: var(--kdk-blue);
  font-size: 21px;
}

.kdk-header-social__phone:hover {
  color: var(--kdk-blue) !important;
}

.kdk-header-social__location {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

/* Social Media Links */

.kdk-header-social__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.kdk-header-social__label {
  margin-right: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--kdk-dark);
}

.kdk-header-social__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--kdk-blue);
  transition: background .25s ease,
              transform .25s ease,
              box-shadow .25s ease;
}

.kdk-header-social__links a:hover {
  background: var(--kdk-dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(4,105,168,.25);
}

.kdk-header-social__links img {
  display: block;
  width: 25px;
  height: auto;
  object-fit: contain;
}

/* BBB Logo */

.kdk-header-social__links .kdk-header-social__bbb {
  width: 83px;
  border-radius: 100px;
}

.kdk-header-social__links .kdk-header-social__bbb img {
  width: 65px;
}

/* ==================================================
   KDK — Tablet Adjustments
================================================== */

@media (max-width: 991px) {

  .kdk-header-social__phone {
    font-size: 24px;
  }

  .kdk-header-social__label {
    display: none;
  }

}

/* ==================================================
   KDK — Mobile Header
================================================== */

@media (max-width: 767px) {

  #t4-header {
    padding: 15px 20px;
  }

  #t4-header .header-1,
  #t4-header .header-social {
    padding-left: 0;
    padding-right: 0;
    flex: 0 0 100%;
    max-width: 100%;
  }

  #t4-header .header-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  #t4-header .header-r {
    justify-content: center;
  }

  #t4-header .header-r:empty {
    display: none;
  }

  .kdk-header-social {
    align-items: center;
    gap: 8px;
    padding-top: 15px;
  }

  .kdk-header-social__contact {
    text-align: center;
  }

  .kdk-header-social__phone {
    font-size: 22px;
  }

  .kdk-header-social__links {
    justify-content: center;
  }

  .kdk-header-social__links a {
    width: 35px;
    height: 35px;
  }

  .kdk-header-social__links
  .kdk-header-social__bbb {
    width: 75px;
  }

  .kdk-header-social__links
  .kdk-header-social__bbb img {
    width: 60px;
  }

}

/* ==================================================
   KDK — Reduced Motion Accessibility
================================================== */

@media (prefers-reduced-motion: reduce) {

  .kdk-btn,
  .kdk-header-social__phone,
  .kdk-header-social__links a {
    transition: none;
  }

  .kdk-btn:hover,
  .kdk-header-social__links a:hover {
    transform: none;
  }

}

/* ==================================================
   KDK — Homepage HERO
================================================== */

/* T4 Module Position */

#t4-hero {
  padding: 0;
  margin: 0;
  background: var(--kdk-dark-blue);
}

#t4-hero > .t4-section-inner {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

#t4-hero .t4-row {
  margin: 0;
}

#t4-hero .t4-col {
  padding: 0;
}

#t4-hero .custom,
#t4-hero .moduletable {
  margin: 0;
  padding: 0;
}

/* HERO Playback Control Initialization */

.kdk-hero__playback[hidden] {
  display: none !important;
}

/* HERO Container */

.kdk-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 650px;
  min-height: clamp(580px, 72vh, 850px);
  overflow: hidden;
  background: var(--kdk-dark-blue)
              url('/images/TRUCK_VIDEO.jpg')
              center center / cover no-repeat;
}

/* Background Video */

.kdk-hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

/* Cinematic Background Overlay */

.kdk-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 21, 34, .93) 0%,
    rgba(5, 21, 34, .80) 25%,
    rgba(5, 21, 34, .48) 55%,
    rgba(5, 21, 34, .12) 100%
  );
}

/* HERO Content Container */

.kdk-hero__inner {
  position: relative;
  width: 100%;
  padding: 90px clamp(20px, 4vw, 80px);
  box-sizing: border-box;
}

.kdk-hero__content {
  width: 100%;
  max-width: 900px;
  animation: kdk-hero-enter .85s ease both;
}

/* Eyebrow Label */

.kdk-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 9px 17px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--kdk-font);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.kdk-hero__dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  background: var(--kdk-green);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(127,220,29,.55);
}

/* Main Headline */

.kdk-hero h1 {
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--kdk-font);
  font-size: clamp(48px, 6.4vw, 100px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-transform: none;
  color: #ffffff;
  text-shadow: 0 3px 20px rgba(0,0,0,.12);
}

.kdk-hero h1 span {
  color: var(--kdk-green);
}

/* Supporting Text */

.kdk-hero__subtitle {
  margin: 0 0 32px;
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.3px;
  color: rgba(255,255,255,.90);
}

/* HERO Buttons */

.kdk-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.kdk-hero__actions .kdk-btn {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 14px;
  white-space: nowrap;
}

.kdk-hero__actions .kdk-btn i {
  font-size: 12px;
}

.kdk-hero__actions .kdk-btn--green {
  box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.kdk-hero__actions .kdk-btn--outline {
  backdrop-filter: blur(5px);
  background: rgba(255,255,255,.05);
}

.kdk-hero__actions .kdk-btn--outline:hover {
  background: #ffffff;
  color: var(--kdk-dark);
}

/* Bottom Brand Accent */

.kdk-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--kdk-blue),
    var(--kdk-green)
  );
  pointer-events: none;
}

/* Video Playback Control */

.kdk-hero__playback {
  position: absolute;
  bottom: 25px;
  right: clamp(20px, 4vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  transition: background .25s ease;
}

.kdk-hero__playback:hover {
  background: var(--kdk-blue);
}

.kdk-hero__playback:focus-visible {
  outline: 3px solid var(--kdk-green);
  outline-offset: 3px;
}

/* HERO Entrance Animation */

@keyframes kdk-hero-enter {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================================
   KDK — HERO Tablet
================================================== */

@media (max-width: 991px) {

  .kdk-hero {
    min-height: 600px;
  }

  .kdk-hero h1 {
    font-size: clamp(48px, 7.5vw, 75px);
  }

  .kdk-hero__overlay {
    background: linear-gradient(
      90deg,
      rgba(5,21,34,.90),
      rgba(5,21,34,.42)
    );
  }

}

/* ==================================================
   KDK — HERO Mobile
================================================== */

@media (max-width: 767px) {

  .kdk-hero {
    min-height: 550px;
  }

  .kdk-hero__inner {
    padding: 65px 20px 85px;
  }

  .kdk-hero__content {
    max-width: 100%;
  }

  .kdk-hero__overlay {
    background: rgba(5,21,34,.72);
  }

  .kdk-hero__eyebrow {
    margin-bottom: 20px;
    padding: 8px 13px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .kdk-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(39px, 8.5vw, 60px);
    line-height: 1.08;
    letter-spacing: -.045em;
  }

  .kdk-hero__subtitle {
    margin-bottom: 25px;
    font-size: 16px;
  }

  .kdk-hero__actions {
    gap: 9px;
  }

  .kdk-hero__actions .kdk-btn {
    min-height: 45px;
    padding: 12px 17px;
    font-size: 12px;
  }

  .kdk-hero__playback {
    right: 20px;
    bottom: 20px;
    width: 35px;
    height: 35px;
  }

}

/* Small Mobile Devices */

@media (max-width: 380px) {

  .kdk-hero h1 {
    font-size: 36px;
  }

  .kdk-hero__actions .kdk-btn {
    padding: 11px 14px;
  }

}

/* ==================================================
   KDK — HERO Reduced Motion
================================================== */

@media (prefers-reduced-motion: reduce) {

  .kdk-hero__video,
  .kdk-hero__playback {
    display: none;
  }

  .kdk-hero__content {
    animation: none;
  }

}