/* ===== HCK Homepage — mockup navy + yellow ===== */

.hck-homepage,
.hck-hero,
.hck-features,
.hck-products,
.hck-projects,
.hck-testimonials,
.hck-about,
.hck-section {
  --hck-navy: var(--fs-color-primary, #002d72);
  --hck-gold: var(--fs-color-secondary, #f7d322);
  --hck-text: #1a1a1a;
  --hck-muted: #5c6470;
}

.hck-svg-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  color: var(--hck-navy);
}
.hck-svg-icon svg {
  width: 100%;
  height: 100%;
}

/* Hero slider */
.hck-hero-slider {
  position: relative;
  min-height: 560px;
  color: #fff;
  overflow: hidden;
}
.hck-hero__slides {
  position: relative;
  min-height: 560px;
}
.hck-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
  background-size: cover;
  background-position: center;
}
.hck-hero__slide .hck-hero__bg {
  z-index: 0;
}
.hck-hero__slide .hck-hero__layout {
  position: relative;
  z-index: 1;
}
.hck-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hck-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 22, 48, 0.92) 0%,
    rgba(8, 22, 48, 0.72) 42%,
    rgba(8, 22, 48, 0.15) 100%
  );
}
.hck-hero__layout {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 108px;
}
.hck-hero__panel {
  max-width: 560px;
}
.hck-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}
.hck-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--hck-gold);
  text-transform: uppercase;
}
.hck-hero__subtitle {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-style: italic;
  opacity: 0.95;
}
.hck-hero__checks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.hck-hero__checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.hck-hero__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--hck-gold);
  box-shadow: inset 0 0 0 3px var(--hck-navy);
}
.hck-hero__checks li::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--hck-navy);
}
.hck-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hck-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}
.hck-hero__wave-svg {
  width: 100%;
  height: 120px;
  display: block;
  vertical-align: bottom;
}
.hck-hero__wave-navy {
  fill: var(--hck-navy, #002d72);
}
.hck-hero__wave-gold {
  fill: var(--hck-gold, #f7d322);
  filter: drop-shadow(0 6px 8px rgba(0, 23, 64, 0.18));
}

.hck-hero__dots {
  position: absolute;
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(72px, 8vw, 88px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hck-hero__dot {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.hck-hero__dot.is-active {
  background: var(--hck-gold);
  border-color: var(--hck-gold);
  transform: scale(1.1);
}

.hck-repeater-item--slide {
  border-left: 4px solid var(--fs-color-secondary, #f7d322);
}

/* USP bar — chớm đè nhẹ lên sóng hero */
.hck-features {
  position: relative;
  z-index: 5;
  margin-top: -24px;
  padding-bottom: 32px;
}
.hck-features__bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-radius: 18px 18px 14px 14px;
  box-shadow: 0 22px 56px rgba(0, 45, 114, 0.14);
  overflow: hidden;
}
.hck-features__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 26px 20px;
  border-right: 1px solid #e8ebf0;
}
.hck-features__item:last-child {
  border-right: 0;
}
.hck-features__text h3 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--hck-navy);
  line-height: 1.35;
}
.hck-features__text p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hck-muted);
  line-height: 1.45;
}

/* Section heads */
.hck-section {
  padding: 64px 0;
}
.hck-section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}
.hck-section__head--light .hck-section__title,
.hck-section__head--light .hck-section__subtitle {
  color: #fff;
}
.hck-section__title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hck-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hck-section__subtitle {
  margin: 0;
  color: var(--hck-muted);
  font-size: 0.98rem;
}

/* Products */
.hck-products {
	background: #fff;
	padding: 56px 0 72px;
}
.hck-products__slider {
	position: relative;
}
.hck-products__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.hck-products__viewport::-webkit-scrollbar {
	display: none;
}
.hck-products__track {
	display: flex;
	gap: 22px;
	flex-wrap: nowrap;
}
.hck-product-card {
	flex: 0 0 calc(25% - 16.5px);
	min-width: calc(25% - 16.5px);
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid rgba(0, 45, 114, 0.06);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 32px rgba(0, 45, 114, 0.09);
	text-decoration: none;
	color: inherit;
	transition:
		box-shadow 0.3s ease,
		transform 0.3s ease,
		border-color 0.3s ease;
}
.hck-product-card:hover {
	border-color: rgba(247, 211, 34, 0.45);
	box-shadow: 0 18px 40px rgba(0, 45, 114, 0.14);
	transform: translateY(-5px);
}
.hck-product-card__image {
	display: block;
	overflow: hidden;
	background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
	position: relative;
}
.hck-product-card__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(0, 45, 114, 0.04) 100%);
	pointer-events: none;
}
.hck-product-card__img,
.hck-product-card__image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	min-height: 200px;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}
.hck-product-card:hover .hck-product-card__img,
.hck-product-card:hover .hck-product-card__image img {
	transform: scale(1.05);
}
.hck-product-card__body {
	padding: 20px 18px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 10px;
	flex: 1;
	min-height: 96px;
}
.hck-product-card__cat {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #7a8494;
	text-transform: uppercase;
}
.hck-product-card__title {
	font-size: 1.06rem;
	font-weight: 800;
	line-height: 1.45;
	color: var(--hck-navy);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
}
.hck-products__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 28px;
}
.hck-products__dots.is-hidden {
	display: none;
}
.hck-products__dot {
	width: 28px;
	height: 3px;
	border: 0;
	border-radius: 2px;
	background: #d5dbe5;
	padding: 0;
	cursor: pointer;
	transition: background 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}
.hck-products__dot.is-active {
	background: var(--hck-gold);
	width: 36px;
}
.hck-products__dot:hover {
	opacity: 0.85;
}

/* Projects */
.hck-projects {
	background: var(--hck-navy);
	color: #fff;
	padding: 72px 0 0;
	position: relative;
}
.hck-section__head--light .hck-section__subtitle {
	color: rgba(255, 255, 255, 0.82);
}
.hck-projects__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}
.hck-project-card__image {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.hck-project-card__img {
	width: 100%;
	height: 210px;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.hck-project-card:hover .hck-project-card__img {
	transform: scale(1.04);
}
.hck-project-card__meta {
	padding: 16px 4px 0;
}
.hck-project-card__meta h3 {
	margin: 0 0 6px;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
}
.hck-project-card__meta h3 a {
	color: inherit;
	text-decoration: none;
}
.hck-project-card__meta h3 a:hover {
	color: var(--hck-gold);
}
.hck-project-card__meta p {
	margin: 0;
	font-size: 0.86rem;
	opacity: 0.88;
}
.hck-projects__cta {
	text-align: center;
	margin: 40px 0 0;
}
.hck-projects__stats {
  position: relative;
  margin-top: 48px;
  padding-bottom: 48px;
  transform: translateY(50%);
  z-index: 4;
}
.hck-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.hck-stats-bar__item {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid #eceef2;
}
.hck-stats-bar__item:last-child {
  border-right: 0;
}
.hck-stats-bar__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.hck-stats-bar__number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--hck-navy);
  line-height: 1;
  margin-bottom: 6px;
}
.hck-stats-bar__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hck-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* About */
.hck-about {
  background: #fff;
  padding-top: calc(64px + 80px);
  padding-bottom: 72px;
}
.hck-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hck-about__img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.hck-about__title {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hck-navy);
  text-transform: uppercase;
}
.hck-about__title span {
  display: inline-block;
  border-bottom: 3px solid var(--hck-navy);
  padding-bottom: 6px;
}
.hck-about__text {
  color: var(--hck-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}
.hck-about__checks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.hck-about__checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--hck-text);
}
.hck-about__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--hck-gold);
}
.hck-about__checks li::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--hck-navy);
}

/* Buttons */
.hck-btn--yellow {
  background: var(--hck-gold) !important;
  color: var(--hck-navy) !important;
  border: 2px solid var(--hck-gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hck-btn--yellow:hover {
  filter: brightness(1.05);
  color: var(--hck-navy) !important;
}
.hck-btn--outline-yellow {
  background: transparent !important;
  border: 2px solid var(--hck-gold) !important;
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
}
.hck-btn--outline-yellow:hover {
  background: var(--hck-gold) !important;
  color: var(--hck-navy) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .hck-product-card {
    flex: 0 0 calc(50% - 11px);
    min-width: calc(50% - 11px);
  }
  .hck-features__bar,
  .hck-projects__grid,
  .hck-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hck-features__item:nth-child(2n),
  .hck-stats-bar__item:nth-child(2n) {
    border-right: 0;
  }
  .hck-features__item:nth-child(-n + 2),
  .hck-stats-bar__item:nth-child(-n + 2) {
    border-bottom: 1px solid #eceef2;
  }
}
@media (max-width: 767px) {
  .hck-hero .hck-container.hck-hero__layout {
    padding-top: 56px;
    padding-bottom: 96px;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .hck-hero__slide .hck-hero__bg {
    background: linear-gradient(
      105deg,
      rgba(8, 22, 48, 0.94) 0%,
      rgba(8, 22, 48, 0.82) 52%,
      rgba(8, 22, 48, 0.45) 100%
    );
  }
  .hck-hero__wave-svg {
    height: 120px;
  }
  .hck-hero__dots {
    bottom: 64px;
    right: 20px;
  }
  .hck-features {
    margin-top: -16px;
  }
  .hck-products__slider {
    margin: 0;
  }
  .hck-products__dots {
    display: none !important;
  }
  .hck-products__viewport {
    margin: 0 -16px;
    padding: 2px 16px 10px;
  }
  .hck-products__track {
    gap: 14px;
  }
  .hck-product-card {
    flex: 0 0 calc(100% - 40px);
    min-width: calc(100% - 40px);
    scroll-snap-align: start;
    border-radius: 18px;
  }
  .hck-product-card__img,
  .hck-product-card__image img {
    min-height: 240px;
  }
  .hck-product-card__body {
    padding: 22px 20px 26px;
    min-height: 104px;
  }
  .hck-product-card__title {
    font-size: 1.12rem;
  }
  .hck-features__bar,
  .hck-projects__grid,
  .hck-stats-bar,
  .hck-about__grid {
    grid-template-columns: 1fr;
  }
  .hck-features__item,
  .hck-stats-bar__item {
    border-right: 0;
    border-bottom: 1px solid #eceef2;
  }
  .hck-projects__stats {
    transform: none;
    margin-top: 32px;
  }
  .hck-about {
    padding-top: 48px;
  }
}

/* Testimonials */
.hck-testimonials {
  background: #f4f6f9;
  /* Chừa khoảng cho thanh thống kê dự án (translateY 50%) phía trên */
  padding-top: calc(72px + 96px);
  padding-bottom: 72px;
}
.hck-testimonials__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.hck-testimonials__head {
  margin: 0;
  text-align: left;
  max-width: 680px;
}
.hck-testimonials__nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 8px;
}
.hck-testimonials__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid #002d72;
  border-radius: 10px;
  background: #fff;
  color: #002d72;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 45, 114, 0.14);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.hck-testimonials__arrow svg {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.hck-testimonials__arrow svg path {
  stroke: #002d72;
  stroke-width: 3;
}
.hck-testimonials__arrow:hover:not(:disabled) {
  background: var(--hck-navy);
  border-color: var(--hck-navy);
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 45, 114, 0.28);
  transform: translateY(-1px);
}
.hck-testimonials__arrow:hover:not(:disabled) svg path {
  stroke: #fff;
}
.hck-testimonials__arrow:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: #eef1f6;
  border-color: #b8c2d0;
  box-shadow: none;
}
.hck-testimonials__arrow:disabled svg path {
  stroke: #8a96a8;
  stroke-width: 2.5;
}
.hck-testimonials__slider {
  position: relative;
}
.hck-testimonials__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.hck-testimonials__viewport::-webkit-scrollbar {
  display: none;
}
.hck-testimonials__track {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
}
.hck-testimonial-card {
  position: relative;
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 8px 32px rgba(0, 45, 114, 0.08);
  border: 1px solid rgba(0, 45, 114, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.hck-testimonial-card:hover {
  box-shadow: 0 16px 40px rgba(0, 45, 114, 0.12);
  transform: translateY(-3px);
}
.hck-testimonial-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--hck-gold) 0%, #f0c800 100%);
}
.hck-testimonial-card__quote {
  color: rgba(247, 211, 34, 0.55);
  margin-bottom: 8px;
  line-height: 1;
}
.hck-testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}
.hck-testimonial-card__star {
  font-size: 14px;
  color: #dde2ea;
  line-height: 1;
}
.hck-testimonial-card__star.is-filled {
  color: var(--hck-gold);
}
.hck-testimonial-card__text {
  margin: 0 0 auto;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hck-text);
  font-style: italic;
  border: 0;
}
.hck-testimonial-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eef1f5;
}
.hck-testimonial-card__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hck-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.hck-testimonial-card:nth-child(3n + 2) .hck-testimonial-card__avatar {
  background: linear-gradient(135deg, var(--hck-navy) 0%, #1a4a8a 100%);
}
.hck-testimonial-card:nth-child(3n) .hck-testimonial-card__avatar {
  background: linear-gradient(135deg, #1a3d6e 0%, var(--hck-navy) 100%);
}
.hck-testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hck-testimonial-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hck-navy);
  line-height: 1.3;
}
.hck-testimonial-card__location {
  font-size: 0.8rem;
  color: var(--hck-muted);
}
.hck-testimonial-card__service {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c9a000;
  margin-top: 2px;
}
.hck-testimonials__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}
.hck-testimonials__dot {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  background: #c8d0dc;
  cursor: pointer;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s ease,
    opacity 0.25s ease;
}
.hck-testimonials__dot:hover {
  background: #a8b4c6;
  opacity: 1;
}
.hck-testimonials__dot.is-active {
  width: 40px;
  background: linear-gradient(90deg, var(--hck-gold) 0%, #f0c800 100%);
  box-shadow: 0 1px 6px rgba(247, 211, 34, 0.45);
}
@media (max-width: 1100px) {
  .hck-testimonial-card {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}
@media (max-width: 767px) {
  .hck-testimonials {
    padding-top: 56px;
  }
  .hck-testimonials__header {
    flex-direction: column;
    align-items: stretch;
  }
  .hck-testimonials__nav,
  .hck-testimonials__dots {
    display: none !important;
  }
  .hck-testimonials__viewport {
    margin: 0 -16px;
    padding: 2px 16px 10px;
  }
  .hck-testimonial-card {
    flex: 0 0 calc(100% - 32px);
    min-width: calc(100% - 32px);
  }
}
