/* ============================================
   NAKHOMBE CONSULTANTS — Home Page Styles
   Styles specific to index.html only
   ============================================ */

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

/* Hero Slider Background */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 46, 22, 0.88) 0%,
    rgba(66, 42, 25, 0.75) 50%,
    rgba(15, 23, 42, 0.82) 100%
  );
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: var(--nav-height);
  padding-bottom: 160px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-300);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--green-300) 0%, var(--green-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

/* Hero Slider Indicators */
.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-indicator {
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.hero-indicator.active {
  width: 56px;
  background: var(--green-400);
}

/* Hero Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stats .container {
  display: flex;
  justify-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 900px;
}

.stat-item {
  text-align: center;
  padding: 28px 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number span {
  color: var(--green-400);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding) 0;
  background: white;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.about-image:hover img {
  transform: scale(1.03);
}

/* Decorative element behind the image */
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--green-200);
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* Experience badge floating on the image */
.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 140px;
  height: 140px;
  background: var(--gradient-green);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.about-experience-badge .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-experience-badge .text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.3;
}

.about-content .section-subtitle {
  margin-bottom: 28px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.about-feature:hover {
  background: var(--green-50);
  transform: translateY(-2px);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-green);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 1.1rem;
}

.about-feature-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 2px;
}

.about-feature-text p {
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ============================================
   SERVICES SECTION (Homepage Cards)
   ============================================ */
.services {
  padding: var(--section-padding) 0;
  background: var(--slate-50);
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  border: 1px solid var(--slate-100);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.service-card-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  z-index: 1;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
  transition: color 0.3s var(--ease-out);
}

.service-card:hover .service-card-body h3 {
  color: var(--green-600);
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-500);
  transition: all 0.3s var(--ease-out);
}

.service-card-link:hover {
  gap: 10px;
  color: var(--green-700);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ============================================
   CTA NEXUS — Architectural Editorial Section
   ============================================ */
.cta-nexus {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--gradient-hero);
  overflow: hidden;
}

/* Background image layer */
.cta-nexus-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-nexus-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-nexus-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(5, 46, 22, 0.92) 0%,
    rgba(44, 26, 14, 0.88) 100%
  );
}

/* Animated geometric background shapes */
.cta-nexus-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cta-geo {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: ctaGeoFloat 20s ease-in-out infinite;
}

.cta-geo-1 {
  width: 500px;
  height: 500px;
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, transparent 70%);
  animation-delay: 0s;
}

.cta-geo-2 {
  width: 350px;
  height: 350px;
  bottom: -15%;
  left: -8%;
  background: radial-gradient(circle, rgba(176, 137, 104, 0.1) 0%, transparent 70%);
  animation-delay: -7s;
}

.cta-geo-3 {
  width: 200px;
  height: 200px;
  top: 20%;
  left: 40%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes ctaGeoFloat {
  0%, 100% { opacity: 0.5; transform: scale(1) translate(0, 0); }
  25% { opacity: 0.8; transform: scale(1.1) translate(20px, -15px); }
  50% { opacity: 0.6; transform: scale(0.95) translate(-10px, 20px); }
  75% { opacity: 0.9; transform: scale(1.05) translate(15px, 10px); }
}

.cta-grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* CTA Inner Layout */
.cta-nexus-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

/* Editorial Text Side */
.cta-editorial .section-label {
  color: var(--green-300);
}

.cta-editorial .section-label::before,
.cta-editorial .section-label::after {
  background:
    var(--green-400) center center / 100% 2px no-repeat,
    var(--green-400) left center / 2px 10px no-repeat;
}

.cta-editorial .section-label::after {
  background:
    var(--green-400) center center / 100% 2px no-repeat,
    var(--green-400) right center / 2px 10px no-repeat;
}

.cta-headline {
  margin-bottom: 24px;
}

.cta-line-1 {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.cta-line-2 {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
}

.cta-italic {
  font-family: var(--font-display);
  font-style: italic;
  background: linear-gradient(135deg, var(--green-300) 0%, var(--green-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.cta-italic::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: italicUnderline 2s var(--ease-out) 1s forwards;
}

@keyframes italicUnderline {
  to { transform: scaleX(1); }
}

.cta-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 32px;
}

/* Promise Badges */
.cta-promises {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-promise {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out);
}

.cta-promise:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.cta-promise svg {
  color: var(--green-400);
  flex-shrink: 0;
}

.promise-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.promise-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Action Card — Glassmorphism */
.cta-action-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  overflow: hidden;
}

.cta-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(22,163,74,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-action-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.3;
}

.cta-action-card > p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 28px;
}

.cta-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-cta-main {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1rem;
}

.btn-cta-phone,
.btn-cta-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.btn-cta-phone:hover,
.btn-cta-email:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-cta-phone svg,
.btn-cta-email svg {
  color: var(--green-400);
}

/* ============================================
   FOOTER INQUIRY BAR (Home only)
   ============================================ */
.footer-inquiry {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-inquiry-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-inquiry-text h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.footer-inquiry-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.footer-inquiry-form {
  display: flex;
  gap: 12px;
  flex: 1;
}

.footer-inquiry-form input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
  outline: none;
}

.footer-inquiry-form input::placeholder {
  color: rgba(255,255,255,0.35);
}

.footer-inquiry-form input:focus {
  border-color: var(--green-500);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}

.footer-inquiry-btn {
  padding: 12px 24px !important;
  white-space: nowrap;
  border-radius: var(--radius-full) !important;
}

.footer-inquiry-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  text-align: right;
}

/* ============================================
   RESPONSIVE — HOME (TABLET)
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

/* ============================================
   RESPONSIVE — HOME (MOBILE)
   ============================================ */
@media (max-width: 768px) {
  /* Hero */
  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 20px 16px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-experience-badge {
    width: 110px;
    height: 110px;
    bottom: -12px;
    right: -12px;
  }

  .about-experience-badge .number {
    font-size: 2rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* CTA */
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ============================================
   SMALL MOBILE — HOME
   ============================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}
