/* ============================================================
   KAYOCE LABS — Home Page Styles
   ============================================================ */

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Background layer — full logo image fills entire hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../images/kayoce-logo.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Dark overlay so left-side text stays readable */
  background-color: var(--bg-primary);
}

/* Gradient overlay: dark on left for text legibility, fades to logo on right */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 14, 26, 0.92) 0%,
    rgba(10, 14, 26, 0.75) 40%,
    rgba(10, 14, 26, 0.35) 70%,
    rgba(10, 14, 26, 0.15) 100%
  );
}

/* Hero layout — single column, text anchored to left */
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 100px;
  min-height: calc(100vh - var(--nav-height));
  /* Override .container centering — anchor to left edge */
  margin-left: 0;
  margin-right: auto;
  max-width: 100%;
  width: 100%;
}

/* Left column */
.hero-left {
  max-width: 580px;
  text-align: left;
  align-items: flex-start;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.hero-headline .line-white {
  color: var(--text-white);
}

.hero-headline .line-green {
  color: var(--accent-green);
}

.hero-sub {
  font-size: 17px;
  color: #c0c0c0;
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: flex-start;
}

/* Trust pills */
.trust-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.trust-pill .pill-green {
  color: var(--accent-green);
  font-weight: 600;
}

.trust-pill .pill-gray {
  color: var(--text-secondary);
}

/* Sparkle — fixed to bottom-right corner of hero section */
.hero-sparkle {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 2;
  animation: sparklePulse 3s ease-in-out infinite;
}

@keyframes sparklePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

/* ============================================================
   OUR PROMISE SECTION
   ============================================================ */
.promise-section {
  padding: var(--section-pad) 0;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.promise-sub {
  font-size: 22px;
  color: var(--text-body-alt);
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: -10px;
}

.promise-body {
  font-size: 16px;
  color: #b8b8b8;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 4px;
}

/* ============================================================
   SERVICES PREVIEW SECTION
   ============================================================ */
.services-preview-section {
  padding: var(--section-pad) 0;
}

.services-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 20px;
}

.services-all-link {
  font-size: 14px;
  color: var(--accent-green);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.services-all-link:hover {
  border-bottom-color: var(--accent-green);
}

/* Service cards row */
.service-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  overflow: hidden;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  padding: 32px 30px 28px;
  border-right: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.service-card:last-child {
  border-right: none;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-green);
}

.service-card:hover {
  background: var(--bg-card-hi);
}

.service-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.25;
}

.service-card-primary {
  font-size: 15px;
  color: #b8b8b8;
  line-height: 1.55;
  margin-bottom: 10px;
}

.service-card-secondary {
  font-size: 14px;
  color: #8a8a8a;
  line-height: 1.5;
  margin-bottom: 20px;
}

.service-card-link {
  font-size: 14px;
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.service-card-link:hover {
  border-bottom-color: var(--accent-green);
}

/* ============================================================
   HOME RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .promise-grid {
    gap: 50px;
  }

  .service-cards-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .service-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: var(--nav-height);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 50px;
    padding-bottom: 60px;
    gap: 40px;
    min-height: auto;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-headline {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-pills {
    flex-direction: column;
    gap: 8px;
  }

  .promise-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-preview-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-cards-row {
    grid-template-columns: 1fr;
  }
}
