/* ============================================================
           DESIGN TOKENS & SYSTEM VARIABLES
        ============================================================ */
:root {
  --hit-brand-bg: #f5f8f4;
  --hit-brand-surface: #ffffff;
  --hit-brand-primary: #0b2c24;
  --hit-brand-secondary: #3b4d45;
  --hit-brand-muted: #7c8e85;
  --hit-brand-accent: #faaf0c;
  --hit-brand-accent-dark: #7a5406;
  --hit-brand-border: #e2e9e3;

  --hit-font-heading: "Playfair Display", Georgia, serif;
  --hit-font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Requested font stack, assigned deliberately by role */
  --hit-font-card-title: serif;
  --hit-font-card-body: sans-serif;
  --hit-font-card-ui: sans-serif;
  --hit-font-card-accent: fangsong;

  --hit-radius-lg: 24px;
  --hit-radius-md: 16px;
  --hit-radius-sm: 12px;

  --hit-shadow-sm: 0 4px 20px rgba(11, 44, 36, 0.04);
  --hit-shadow-md: 0 12px 35px rgba(11, 44, 36, 0.07);
  --hit-shadow-lg: 0 24px 55px rgba(11, 44, 36, 0.12);

  --hit-transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================================
           CORE RESET & LAYOUT UTILITIES
        ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--hit-font-body);
  background-color: var(--hit-brand-bg);
  color: var(--hit-brand-primary);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

.hit-section-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
           HERO COMPONENT
        ============================================================ */
.hit-hero-block {
  padding: 100px 0 80px;
  position: relative;
}

.hit-hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hit-hero-split h1 {
  font-family: serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--hit-brand-primary);
}

.hit-hero-split h1 .hit-text-highlight {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.hit-hero-split h1 .hit-text-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 16px;
  background: var(--hit-brand-accent);
  opacity: 0.35;
  z-index: -1;
  border-radius: 4px;
}

.hit-hero-desc {
  font-family: var(--hit-font-body);
  font-size: 1.15rem;
  color: #929497;
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hit-hero-button-group {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hit-btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 36px;
  border-radius: var(--hit-radius-sm);
  box-shadow: var(--hit-shadow-sm);
  transition: var(--hit-transition-smooth);
}

.hit-btn-cta-primary:hover {
  background: var(--hit-brand-accent);
  color: var(--hit-brand-primary);
  transform: translateY(-3px);
  box-shadow: var(--hit-shadow-md);
}

.hit-link-cta-secondary {
  color: var(--hit-brand-primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.hit-link-cta-secondary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--hit-brand-accent);
  transition: var(--hit-transition-smooth);
}

.hit-link-cta-secondary:hover::after {
  height: 4px;
  background-color: var(--hit-brand-primary);
}

.hit-hero-frame {
  position: relative;
  border-radius: var(--hit-radius-lg);
  overflow: hidden;
  box-shadow: var(--hit-shadow-md);
  aspect-ratio: 4 / 3.2;
}

.hit-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hit-hero-floating-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--hit-radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--hit-shadow-lg);
  max-width: 85%;
}

.hit-hero-floating-card .hit-stat-metric {
  font-family: var(--hit-font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--hit-brand-primary);
  line-height: 1;
}

.hit-hero-floating-card .hit-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--hit-brand-secondary);
  line-height: 1.4;
}

/* ============================================================
           MARQUEE SECTION
        ============================================================ */
.hit-partners-panel {
  padding: 60px 0;
  background-color: transparent;
  border-top: 1px solid var(--hit-brand-border);
  border-bottom: 1px solid var(--hit-brand-border);
  margin: 40px 0 60px;
}

.hit-partners-panel h4 {
  text-align: center;
  font-family: var(--hit-font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hit-brand-secondary);
  margin-bottom: 30px;
}

.hit-marquee-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.hit-marquee-track {
  display: flex;
  width: max-content;
  gap: 32px;
  align-items: center;
  animation: hitMarqueeScroll 35s linear infinite;
}

.hit-marquee-viewport:hover .hit-marquee-track {
  animation-play-state: paused;
}

.hit-dp-brand-capsule {
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  flex-shrink: 0;
  border: 1px solid var(--hit-brand-border);
  box-shadow: var(--hit-shadow-sm);
  transition: var(--hit-transition-smooth);
}

.hit-dp-brand-capsule:hover {
  transform: translateY(-3px);
  border-color: var(--hit-brand-accent);
  box-shadow: var(--hit-shadow-md);
}

.hit-dp-brand-capsule img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

@keyframes hitMarqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
           SERVICES COMPONENT — redesigned card section
        ============================================================ */
.hit-services-block {
  padding: 40px 0 120px;
}

.hit-services-headline {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.hit-services-headline .hit-section-eyebrow {
  font-family: var(--hit-font-card-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #faaf0c;
  margin-bottom: 16px;
  display: inline-block;
}

.hit-services-headline h2 {
  font-family: var(--hit-font-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hit-services-headline h2 span {
  color: #faaf0c;
  background: linear-gradient(120deg, var(--hit-brand-accent) 0%, #fcd675 100%);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

.hit-services-headline p {
  font-family: var(--hit-font-card-body);
  color: var(--hit-brand-secondary);
  font-size: 1.1rem;
  font-weight: 400;
}

/* Equal-height grid: every row stretches its cards to match the tallest one */
.hit-services-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 28px;
}

/* Fixed-size, professional card shell */
.hit-service-card-item {
  background: rgb(250 175 12 / 7%);
  border: 1px solid var(--hit-brand-border);
  border-radius: var(--hit-radius-lg);
  padding: 32px 26px 28px;
  box-shadow: var(--hit-shadow-sm);
  transition: var(--hit-transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 300px;
}

/* Accent rail that reveals on hover — signature detail */
.hit-service-card-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--hit-brand-accent), #fcd675);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--hit-transition-smooth);
}

.hit-service-card-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--hit-shadow-lg);
  border-color: rgba(250, 175, 12, 0.4);
}

.hit-service-card-item:hover::before {
  transform: scaleX(1);
}

.hit-card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.hit-card-icon-frame {
  width: 54px;
  height: 54px;
  border-radius: var(--hit-radius-sm);
  background: #ffc1071a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--hit-transition-smooth);
}

.hit-service-card-item:hover .hit-card-icon-frame {
  background: var(--hit-brand-primary);
}

.hit-card-icon-frame i {
  font-size: 21px;
  color: var(--hit-brand-primary);
  transition: var(--hit-transition-smooth);
}

.hit-service-card-item:hover .hit-card-icon-frame i {
  color: #ffffff;
}

.hit-card-index-tag {
  font-family: var(--hit-font-card-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--hit-brand-muted);
  letter-spacing: 0.04em;
}

.hit-service-card-item h3 {
  font-family: var(--hit-font-card-title);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--hit-brand-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hit-service-card-item p {
  font-family: var(--hit-font-card-body);
  font-size: 0.93rem;
  color: var(--hit-brand-secondary);
  line-height: 1.6;
  font-weight: 400;
  flex-grow: 1;
  /* fills remaining space so every button lands on the same baseline */
}

.hit-card-divider {
  height: 1px;
  background: var(--hit-brand-border);
  margin: 18px 0 16px;
}

/* Action button */
.hit-card-action-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--hit-brand-primary);
  font-family: var(--hit-font-card-ui);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  width: max-content;
  transition: var(--hit-transition-smooth);
}

.hit-card-action-btn i {
  font-size: 0.8rem;
  transition: var(--hit-transition-smooth);
}

.hit-service-card-item:hover .hit-card-action-btn {
  color: rgb(229 185 84);
}

.hit-service-card-item:hover .hit-card-action-btn i {
  transform: translateX(6px);
}

/* ============================================================
           RESPONSIVE CONFIGURATION
        ============================================================ */
@media (max-width: 1200px) {
  .hit-services-layout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hit-hero-split {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hit-hero-frame {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .hit-hero-desc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hit-services-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hit-service-card-item {
    min-height: 280px;
  }

  .hit-section-wrapper {
    padding: 18px 24px;
  }

  .hit-hero-block {
    padding: 60px 0 40px;
  }

  .hit-dp-brand-capsule {
    width: 130px;
    height: 75px;
    padding: 10px;
    border-radius: 10px;
  }

  .hit-marquee-track {
    gap: 20px;
    animation-duration: 25s;
  }
}

@media (max-width: 540px) {
  .hit-services-layout-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .hit-service-card-item {
    height: auto;
    min-height: 0;
  }

  .hit-hero-button-group {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hit-btn-cta-primary {
    width: 100%;
    justify-content: center;
  }

  .hit-hero-floating-card {
    left: 16px;
    bottom: 16px;
    padding: 12px 16px;
  }

  .hit-hero-floating-card .hit-stat-metric {
    font-size: 1.6rem;
  }
}
