/* KN Construction – Hero, Consultation & Team sections */

/* ========== Hero banner (reliable on mobile) ========== */
.kn-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.kn-hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.kn-hero-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(14, 18, 29, 0.72) 0%,
    rgba(14, 18, 29, 0.45) 45%,
    rgba(14, 18, 29, 0.35) 100%
  );
  pointer-events: none;
}

.introone {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.introone .swiper,
.introone .container {
  position: relative;
  z-index: 2;
}

.introone__content h1 {
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.introone__desc {
  color: #f1f1f1 !important;
}

@media (max-width: 768px) {
  .introone {
    min-height: 88vh;
  }

  .kn-hero-bg__img {
    object-position: center 30%;
  }

  .kn-hero-bg__overlay {
    background: linear-gradient(
      180deg,
      rgba(14, 18, 29, 0.55) 0%,
      rgba(14, 18, 29, 0.75) 100%
    );
  }

  .section-top__subtitle,
  .introone__content h1 {
    display: block !important;
  }

  .introone__content {
    text-align: center;
    margin-top: auto;
    padding-top: 42vh;
    padding-bottom: 48px;
  }

  .introone__content .custom-btn {
    margin: 0 auto;
    display: inline-flex;
  }
}

/* Hide legacy banner divs if still present elsewhere */
.banner-desktop,
.banner-mobile {
  display: none !important;
}

/* ========== Scroll animations ========== */
.kn-animate-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.kn-animate.is-visible .kn-animate-item,
.kn-animate-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kn-animate-item[data-delay="120"] { transition-delay: 0.12s; }
.kn-animate-item[data-delay="150"] { transition-delay: 0.15s; }
.kn-animate-item[data-delay="180"] { transition-delay: 0.18s; }
.kn-animate-item[data-delay="200"] { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .kn-animate-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== Free Consultation ========== */
.kn-consult {
  position: relative;
  padding: clamp(56px, 8vw, 100px) 0;
  background: linear-gradient(135deg, #0e121d 0%, #1a2235 50%, #0e121d 100%);
  overflow: hidden;
}

.kn-consult__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 94, 20, 0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: kn-glow-pulse 6s ease-in-out infinite;
}

@keyframes kn-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.kn-consult__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.kn-consult__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ff5e14;
  margin-bottom: 14px;
  position: relative;
  padding-left: 28px;
}

.kn-consult__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #ff5e14;
  transform: translateY(-50%);
}

.kn-consult__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 18px;
}

.kn-consult__desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
  max-width: 520px;
}

.kn-consult__perks {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.kn-consult__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.kn-consult__perks i {
  color: #ff5e14;
  font-size: 18px;
  flex-shrink: 0;
}

.kn-consult__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.kn-consult__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.kn-consult__btn--primary {
  background: #ff5e14;
  color: #fff;
  border: 2px solid #ff5e14;
}

.kn-consult__btn--primary:hover {
  background: #e54f0a;
  border-color: #e54f0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 94, 20, 0.35);
  color: #fff;
}

.kn-consult__btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.kn-consult__btn--ghost:hover {
  border-color: #ff5e14;
  color: #ff5e14;
  transform: translateY(-2px);
}

.kn-consult__img-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: kn-float 5s ease-in-out infinite;
}

@keyframes kn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.kn-consult__img-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.kn-consult__badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.97);
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  animation: kn-badge-in 0.8s ease 0.5s both;
}

@keyframes kn-badge-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.kn-consult__badge strong {
  font-size: 28px;
  font-weight: 800;
  color: #ff5e14;
}

.kn-consult__badge span {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 991px) {
  .kn-consult__grid {
    grid-template-columns: 1fr;
  }

  .kn-consult__visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .kn-consult__desc {
    max-width: none;
  }
}

@media (max-width: 576px) {
  .kn-consult__actions {
    flex-direction: column;
  }

  .kn-consult__btn {
    width: 100%;
  }
}

/* ========== Team / Specialists ========== */
.kn-team-wrap {
  background: #0e121d;
}

.kn-team {
  padding-bottom: clamp(40px, 6vw, 64px);
}

.kn-team__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.kn-team__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ff5e14;
  margin-bottom: 12px;
}

.kn-team__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
}

.kn-team__intro {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.kn-team__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

.kn-team__card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kn-team__card:hover {
  border-color: rgba(255, 94, 20, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.kn-team__photo {
  position: relative;
  overflow: hidden;
}

.kn-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  transition: transform 0.5s ease;
}

.kn-team__card:hover .kn-team__photo img {
  transform: scale(1.04);
}

.kn-team__photo-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ff5e14;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
}

.kn-team__details {
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kn-team__name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.kn-team__role {
  font-size: 14px;
  font-weight: 600;
  color: #ff5e14;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kn-team__bio {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 18px;
}

.kn-team__skills {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.kn-team__skills li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.kn-team__skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #ff5e14;
  border-radius: 50%;
}

.kn-team__cta {
  display: inline-flex;
  align-self: flex-start;
  padding: 12px 24px;
  background: #ff5e14;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.kn-team__cta:hover {
  background: #e54f0a;
  transform: translateY(-2px);
  color: #fff !important;
}

.kn-team__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kn-team__stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.kn-team__stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 94, 20, 0.4);
}

.kn-team__stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #ff5e14;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kn-team__stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.kn-team__stat--accent {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 94, 20, 0.15), rgba(255, 94, 20, 0.05));
}

.kn-team__stat-icon {
  font-size: 28px;
  color: #ff5e14;
}

.kn-team__stat--accent .kn-team__stat-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.kn-team-wrap .counterone {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kn-team-wrap .counterone__number,
.kn-team-wrap .counterone__text {
  color: #fff;
}

.kn-team-wrap .counterone__item {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1199px) {
  .kn-team__layout {
    grid-template-columns: 1fr;
  }

  .kn-team__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .kn-team__stat--accent {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .kn-team__card {
    grid-template-columns: 1fr;
  }

  .kn-team__photo img {
    min-height: 280px;
  }

  .kn-team__stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .kn-team__stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kn-consult__glow,
  .kn-consult__img-frame,
  .kn-consult__badge {
    animation: none;
  }
}

/* ========== Simple Footer ========== */
.kn-footer {
  background: #0e121d;
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(48px, 6vw, 72px) 0 0;
}

.kn-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px 32px;
  padding-bottom: 40px;
}

.kn-footer__logo img {
  max-height: 56px;
  width: auto;
  margin-bottom: 16px;
}

.kn-footer__tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 20px;
  max-width: 280px;
}

.kn-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kn-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.kn-footer__social a:hover {
  background: #ff5e14;
  color: #fff;
  transform: translateY(-2px);
}

.kn-footer__heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.kn-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kn-footer__links li {
  margin-bottom: 10px;
}

.kn-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.kn-footer__links a:hover {
  color: #ff5e14;
}

.kn-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kn-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.kn-footer__contact-list i {
  color: #ff5e14;
  margin-top: 4px;
  flex-shrink: 0;
}

.kn-footer__contact-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.kn-footer__contact-list a:hover {
  color: #ff5e14;
}

.kn-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.kn-footer__bar p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991px) {
  .kn-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .kn-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .kn-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ========== Testimonials ========== */
.kn-testimonials {
  background: #f5f6f8;
}

.kn-testimonials__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.kn-testimonials__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ff5e14;
  margin-bottom: 10px;
}

.kn-testimonials__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #0e121d;
  margin: 0 0 12px;
}

.kn-testimonials__intro {
  font-size: 16px;
  line-height: 1.65;
  color: #666;
  margin: 0;
}

.kn-testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 26px;
  height: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.kn-testimonials-slider .swiper-slide-active .kn-testimonial-card {
  box-shadow: 0 12px 40px rgba(255, 94, 20, 0.12);
}

.kn-testimonial-card__stars {
  color: #ff5e14;
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 3px;
}

.kn-testimonial-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 20px;
  flex: 1;
}

.kn-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.kn-testimonial-card__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.kn-testimonial-card__author strong {
  display: block;
  font-size: 15px;
  color: #0e121d;
  margin-bottom: 2px;
}

.kn-testimonial-card__author span {
  font-size: 13px;
  color: #888;
}

.kn-testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.kn-testimonials-prev,
.kn-testimonials-next {
  width: 44px;
  height: 44px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 50%;
  color: #0e121d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.kn-testimonials-prev:hover,
.kn-testimonials-next:hover {
  border-color: #ff5e14;
  background: #ff5e14;
  color: #fff;
}

.kn-testimonials-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.kn-testimonials-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kn-testimonials-pagination .swiper-pagination-bullet-active {
  background: #ff5e14;
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .kn-testimonial-card {
    padding: 22px 20px;
  }
}
