:root {
  --ka-navy: #17324D;
  --ka-navy-dark: #15375a;
  --ka-orange: #e07b39;
  --ka-orange-dark: #c96a2c;
  --ka-text: #1f2a37;
  --ka-muted: #5b6673;
  --ka-bg-soft: #f7f3ee;
  --ka-pill: #e8eef5;
  --ka-shadow: 0 4px 14px rgba(20, 40, 70, 0.1);
  --ka-radius: 12px;
}
img {
  max-width: 100%;
}
/* ẩn icon ảnh lỗi khi chưa có ảnh */
img.ph {
  background: linear-gradient(135deg, #e9e4dc, #d8d2c8);
  color: transparent;
}

.ka-section-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 28px;
  text-transform: uppercase;
}
.ka-section-sub {
  margin: 0;
}

/* ===== BUTTONS ===== */
.ka-btn {
  border-radius: 12px;
  padding: 11px 26px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 14px;
}
.ka-btn-primary {
  background: var(--ka-orange);
  border: 1px solid var(--ka-orange);
  color: #fff;
  background: linear-gradient(180deg, #E4732F 0%, #CA5E1C 100%);
}
.ka-btn-primary:hover,
.ka-btn-primary:focus-visible {
  background: var(--ka-orange-dark);
  border-color: var(--ka-orange-dark);
  color: #fff;
}
.ka-btn-outline {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--ka-navy);
  color: var(--ka-navy);
}
.ka-btn-outline:hover,
.ka-btn-outline:focus-visible {
  background: var(--ka-navy);
  color: #fff;
}
.ka-btn-outline:hover svg path{
  stroke: #fff;
}
.ka-btn-navy {
  background: var(--ka-navy-dark);
  border: 1px solid var(--ka-navy-dark);
  color: #fff;
}
.ka-btn-navy:hover,
.ka-btn-navy:focus-visible {
  background: #0f2a47;
  color: #fff;
}
.ka-btn:focus-visible,
.ka-pill:focus-visible,
.ka-arrow:focus-visible {
  outline: 3px solid rgba(31, 78, 121, 0.35);
  outline-offset: 2px;
}

/* ===== HERO ===== */
.ka-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: bottom;
}

.ka-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient( 90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 32%, rgba(255, 255, 255, 0.45) 48%, rgba(255, 255, 255, 0) 62% );
}
.ka-hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.ka-eyebrow ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ka-eyebrow ul li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.ka-eyebrow ul li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ka-text);
}
.ka-title {
  font-weight: 900;
  color: var(--ka-navy);
  line-height: 1.12;
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.ka-title span {
  display: block;
}
.ka-title .quote {
  color: #C57A3E;
  font-style: italic;
  font-weight: 700;
}
.ka-title .rest {
  font-weight: 700;
}
.ka-sub p{
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  font-size: 18px;
  font-weight: 500;
}
.ka-sub ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.ka-sub ul li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 38px;
  border: 1px solid #FFF;
  background: rgba(233, 233, 233, 0.60);
  backdrop-filter: blur(2px);
}
.ka-chip i {
  color: var(--ka-muted);
}
.ka-slogan {
  position: absolute;
  right: 4%;
  bottom: 9%;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: "FC-VIP-Alpha-Brights";
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: rotate(-6deg);
  text-align: left;
}
.ka-slogan span {
  display: block;
}
.ka-slogan span + span {
  transform: translateX(14px);
}
.ka-hero .ka-btn-primary{
  padding-left: 40px;
  padding-right: 40px;
}

/* ===== KHU VỰC ===== */
.ka-area {
  border-bottom: 1px solid #F7F4EE;
}
.ka-area-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ka-area-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 0 0 auto;
}
.ka-area-info i {
  font-size: 2.1rem;
  color: var(--ka-navy);
}
.ka-area-info strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}
.ka-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.ka-area-list li a {
  background:#E8EFF7;
  font-weight: 500;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  display: block;
}

/* ===== DỊCH VỤ ===== */
.ka-services {
  padding: 3.2rem 0 2.6rem;
}
.ka-carousel-wrap {
  position: relative;
  margin-top: 1.4rem;
}
.ka-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 18px;
  scrollbar-width: none;
  cursor: grab;
}
.ka-track::-webkit-scrollbar {
  display: none;
}
.ka-svc {
  flex: 0 0 calc((100% - 100px) / 6);
  min-width: 190px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--ka-radius);
  box-shadow: var(--ka-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ka-svc:hover {
  box-shadow: 0 8px 22px rgba(20, 40, 70, 0.16);
  color: inherit;
}
.ka-svc img {
  width: 100%;
  aspect-ratio: 197 / 180;
  object-fit: cover;
  display: block;
}
.ka-svc-body {
  padding: 0.9rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ka-svc-name {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  margin-bottom: 0.7rem;
}
.ka-svc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ka-orange);
  font-weight: 700;
  font-size: 0.92rem;
}
.ka-svc-foot b {
  font-size: 1.35rem;
}
.ka-svc-foot .soft {
  font-weight: 500;
}
.ka-svc-foot i {
  color: var(--ka-text);
  font-size: 0.85rem;
}
.ka-arrow {
  position: absolute;
  top: 40%;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  color: var(--ka-navy);
}
.ka-arrow.prev {
  left: -45px;
}
.ka-arrow.next {
  right: -45px;
}

/* ===== 4 BƯỚC + GỬI ẢNH ===== */
.ka-quote {
  padding: 0.5rem 0 2.6rem;
}
.ka-box {
  background: var(--ka-bg-soft);
  border-radius: var(--ka-radius);
  padding: 1.7rem 1.6rem;
  height: 100%;
}
.ka-steps {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.ka-step {
  flex: 1 1 0;
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem 0.9rem 1.1rem 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ka-step-num {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ka-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.ka-step-ic-img img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.ka-step p {
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
}
.ka-step-sep {
  align-self: center;
  font-size: 0.8rem;
  color: var(--ka-text);
}
.ka-send {
  position: relative;
  overflow: hidden;
}
.ka-send h3 {
  color: var(--ka-orange);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.ka-send p {
  max-width: 230px;
}
.ka-send .btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 199px;
  position: relative;
  z-index: 1;
}
.ka-send .phone {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 190px;
}
.ka-send .canh-cay {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 72px;
}

/* ===== CÔNG TRÌNH ===== */
.ka-projects {
  padding: 1rem 0 3.2rem;
}
.ka-proj-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.ka-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.ka-pill {
  border: 1px solid var(--ka-navy);
  background: #fff;
  color: var(--ka-navy);
  padding: 5px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-family: Roboto;
}
.ka-pill.active,
.ka-pill:hover {
  background: var(--ka-navy-dark);
  color: #fff;
}
.ka-mini-arrows {
  display: flex;
  gap: 0.3rem;
  margin-left: 0.3rem;
}
.ka-mini-arrows button {
  width: 26px;
  height: 32px;
  border: none;
  background: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--ka-text);
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.16);
}
.ka-proj {
  background: #fff;
  border-radius: var(--ka-radius);
  box-shadow: var(--ka-shadow);
  overflow: hidden;
  height: 100%;
}
.ka-ba {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 305 / 161;
  background: #fff;
}
.ka-ba img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 151/161;
}
.ka-ba-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--ka-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.ka-proj-body {
  padding: 1rem 1.1rem 1.1rem;
}
.ka-proj-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.ka-proj-body p {
  margin: 0;
}
.ka-proj-item.is-hidden {
  display: none;
}


#projGrid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 18px;
  scrollbar-width: none;
  cursor: grab;
}
.ka-proj-item{
  flex: 0 0 calc((100% - 100px) / 4);
  min-width: 190px;
  scroll-snap-align: start;
}


.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
/* ===== SỐ LIỆU ===== */
.ka-stats {
  background: var(--ka-navy-dark);
  color: #fff;
  padding: 1.7rem 0;
}
.ka-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ka-stat img {
  max-width: 48px;
}
.ka-stat i {
  font-size: 2.6rem;
  opacity: 0.95;
  line-height: 1;
}
.ka-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}
.ka-stat span {
  font-size: 0.95rem;
  opacity: 0.85;
}
@media (min-width: 992px) {
  .ka-stats .col-lg-3 + .col-lg-3 {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 1.6rem;
  }
}

/* ===== CTA CUỐI TRANG ===== */
.ka-cta {
  position: relative;
  min-height: 476px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #d8e2ec;
  background-position: bottom;
}

.ka-cta > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.ka-cta .lead-q {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.ka-cta h2 {
  color: var(--ka-navy);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.1rem;
}
.ka-cta .hint {
  color: var(--ka-navy);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 1.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .ka-hero {
    display: block;
  }
  .ka-hero::before {
    display: none;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 60%,
      rgba(255, 255, 255, 0.35) 100%
    );
  }
  .ka-slogan {
    right: 50%;
    transform: translateX(50%) rotate(-4deg);
    bottom: 1rem;
  }
  .ka-area-list {
    justify-content: flex-start;
  }
  .ka-svc {
    flex-basis: 220px;
  }
  .ka-arrow.prev {
    left: 0;
  }
  .ka-arrow.next {
    right: 0;
  }
  .ka-cta::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.8) 60%,
      rgba(255, 255, 255, 0.3) 100%
    );
  }
  .ka-stats .col-6 {
    margin-bottom: 0.5rem;
  }
}
@media (max-width: 768px) {
  .ka-btn {
    width: 100%;
  }
  .ka-send .btns {
    max-width: none;
  }
  .ka-send .phone {
    display: none;
  }
  .ka-send p {
    max-width: none;
  }
  .ka-stat strong {
    font-size: 20px;
  }
  .ka-stat i {
    font-size: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ka-track {
    scroll-behavior: auto;
  }
  .ka-svc {
    transition: none;
  }
}

@media (max-width: 600px) {
  .banner-hero-mb {
    aspect-ratio: 390/220;
    width: 100%;
    display: block;
    object-fit: cover;
  }
  .ka-hero {
    background-image: none !important;
  }
  .ka-hero > .container {
    position: relative;
    padding-top: 17px;
    background-image: linear-gradient(to bottom, #fff0 0%,#ffffff40 1%,#ffffff6b 2%, #ffffffd1 5%, #fff 7%, white);
    z-index: 1;
    position: relative;
    top: -33px;
    padding-top: 41px;
    margin-bottom: -40px;
  }
  .ka-sub p {
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 16px;
  }
  .ka-title {
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-size: 35px;
    margin-bottom: 12px;
  }
  .ka-title .quote{
    font-size: 20px;
  }
  .ka-sub {
    font-size: 16px;
  }
  .ka-hero .ka-btn-primary{
    height: 44px;
  }
  .ka-sub ul {
    gap: 10px;
  }
  .ka-sub ul li {
    width: calc(50% - 5px);
    gap: 6px;
    padding: 7px 20px;
  }
  /**/
  .ka-box {
    padding: 20px;
  }
  .ka-quote .col-lg-8 {
    margin-top: 10px;
  }
}
@media (max-width: 600px) {
  .ka-area-info svg {
    width: 25px;
  }
  .ka-area-inner,
  .ka-area-info {
    gap: 10px;
  }
  .ka-area-info strong {
    font-size: 16px;
    line-height: 20px;
  }
  .ka-area-list {
    gap: 5px;
  }
  /**/
  .ka-services {
    padding: 16px 0;
  }
  .ka-section-title {
    font-size: 22px;
    line-height: 24px;
  }
  .ka-carousel-wrap {
    margin-top: 10px;
  }
  .ka-svc-body {
    padding: 10px;
  }
  .ka-svc-name {
    font-size: 16px;
    min-height: unset;
    margin-bottom: 10px;
  }
  /**/
  .ka-track {
    gap: 15px;
  }
  /**/
  .ka-steps {
    flex-wrap: wrap;
  }
  .ka-steps .ka-step-sep.sep-2 {
    display: none;
  }
  .ka-steps .ka-step {
    width: calc(50% - 14px);
    flex: unset;
  }
  .ka-send .canh-cay {
    max-width: 49px;
  }
  /**/
  .ka-projects,
  .ka-quote {
    padding-bottom: 20px;
  }
  .ka-filter {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
  }
  /**/
  .ka-stat img {
    max-width: 35px;
  }
  /**/
  .ka-stat span {
    font-size: 12px;
    opacity: 0.85;
  }
  .ka-stat strong {
    font-size: 16px;
  }
  .ka-stat {
    gap: 7px;
  }
  /**/
  .ka-cta {
    min-height: unset;
    padding: 40px 0;
    background-position: left;
  }
  .ka-cta .lead-q {
    font-size: 14px;
    margin-bottom: 0.5rem;
  }
  .ka-cta .hint{
    font-size: 16px;
    margin-bottom: 20px;
  }

  .ka-proj-item{
    min-width: 290px;
  }
  /**/
  .ka-proj-body h3 {
    font-size: 16px;
  }
  .ka-proj-body {
    padding: 15px;
  }
}