/**
 * Haqq Vine Enterprise (HVE) - Dedicated Modern Homepage Styles
 * Visual and thematic reference inspired by ADG (adg.co.ke)
 * Scoped strictly under .homepage-wrap to protect all other pages.
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Urbanist:wght@300;400;500;600;700;800&display=swap');

.homepage-wrap {
  --hp-navy-deep: #FFFFFF;
  --hp-navy-slate: #F8F9FA;
  --hp-navy-card: #FFFFFF;
  --hp-gold: #a28651;
  --hp-gold-hover: #b89a61;
  --hp-gold-light: #dfba73;
  --hp-olive: #667436;
  --hp-linen: #374151;
  --hp-muted: #6B7280;
  --hp-border: rgba(162, 134, 81, 0.28);
  --hp-border-subtle: #E5E7EB;
  --hp-font-heading: 'Urbanist', 'Montserrat', sans-serif;
  --hp-font-body: 'Montserrat', sans-serif;

  background-color: var(--hp-navy-deep);
  color: var(--hp-linen);
  font-family: var(--hp-font-body);
  overflow-x: hidden;
}

/* Typography Overrides inside Homepage Wrap */
.homepage-wrap h1,
.homepage-wrap h2,
.homepage-wrap h3,
.homepage-wrap h4,
.homepage-wrap h5,
.homepage-wrap h6 {
  font-family: var(--hp-font-heading);
  letter-spacing: -0.02em;
  color: #111827;
}

.hp-hero-carousel-section h1,
.hp-hero-carousel-section h2,
.hp-hero-carousel-section h3,
.hp-hero-carousel-section .hp-slide-heading {
  color: #FFFFFF !important;
}

/* Category Eyebrow Pill (ADG Style) */
.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hp-gold);
  margin-bottom: 0.75rem;
}
.hp-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: var(--hp-gold);
}

/* ADG-style Badge */
.hp-badge {
  display: inline-block;
  background: var(--hp-gold);
  color: var(--hp-linen);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}

/* Buttons */
.hp-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--hp-gold);
  color: #FFFFFF !important;
  font-family: var(--hp-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--hp-gold);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(162, 134, 81, 0.4);
}
.hp-btn-gold:hover {
  background: var(--hp-gold-hover);
  border-color: var(--hp-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(162, 134, 81, 0.6);
  color: #FFFFFF !important;
}

.hp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: #FFFFFF !important;
  font-family: var(--hp-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  text-decoration: none;
}
.hp-btn-outline:hover {
  border-color: var(--hp-gold);
  color: var(--hp-gold) !important;
  background: rgba(162, 134, 81, 0.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   1. HERO CAROUSEL SECTION
   ========================================================================== */
.hp-hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hp-carousel-container {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 560px;
  max-height: 850px;
  display: flex;
}

.hp-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hp-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide Background Image */
.hp-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.hp-carousel-slide.is-active .hp-slide-bg {
  transform: scale(1.05); /* Subtle Ken Burns zoom effect */
}

/* ADG-Inspired Deep Navy Atmospheric Overlay */
.hp-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 18, 30, 0.88) 0%,
    rgba(27, 42, 73, 0.72) 50%,
    rgba(12, 18, 30, 0.82) 100%
  );
  z-index: 2;
}

/* Slide Content */
.hp-slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 820px;
  padding: 2rem 0;
}

.hp-slide-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hp-gold);
  background: rgba(162, 134, 81, 0.15);
  border: 1px solid var(--hp-border);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hp-slide-heading {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: 1rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hp-slide-desc {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--hp-linen);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 640px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hp-slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Carousel Nav Controls */
.hp-carousel-prev,
.hp-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(27, 42, 73, 0.6);
  border: 1px solid var(--hp-border);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}
.hp-carousel-prev { left: 24px; }
.hp-carousel-next { right: 24px; }

.hp-carousel-prev:hover,
.hp-carousel-next:hover {
  background: var(--hp-gold);
  color: #FFFFFF;
  border-color: var(--hp-gold);
  transform: translateY(-50%) scale(1.08);
}

/* Carousel Pagination Indicators (Dots) */
.hp-carousel-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.hp-carousel-dot.is-active {
  width: 32px;
  border-radius: 6px;
  background: var(--hp-gold);
  box-shadow: 0 0 12px rgba(162, 134, 81, 0.6);
}

/* ==========================================================================
   2. INTRODUCTION SECTION (ADG Style Editorial Split)
   ========================================================================== */
.hp-intro-section {
  padding: 6.5rem 0;
  position: relative;
  background: #FFFFFF;
  border-bottom: 1px solid var(--hp-border-subtle);
}

.hp-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.hp-intro-heading {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  color: #111827;
  margin-bottom: 1.25rem;
}

.hp-intro-heading span {
  color: var(--hp-gold);
}

.hp-intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4B5563;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

/* ADG-style Impact Statistics */
.hp-stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hp-border-subtle);
}

.hp-stat-item h3 {
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  font-weight: 800;
  color: var(--hp-olive);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hp-stat-item p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--hp-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Editorial Image Frame */
.hp-intro-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--hp-border);
}

.hp-intro-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hp-intro-image-wrap:hover img {
  transform: scale(1.03);
}

.hp-intro-image-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(12, 18, 30, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hp-border);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
}

.hp-intro-image-tag strong {
  display: block;
  color: var(--hp-gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hp-intro-image-tag span {
  color: var(--hp-linen);
  font-size: 0.75rem;
}

/* ==========================================================================
   3. SERVICES SECTION (Image-Led Visual Cards)
   ========================================================================== */
.hp-services-section {
  padding: 6.5rem 0;
  background: var(--hp-navy-slate);
  position: relative;
}

.hp-section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.hp-section-header-center h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.hp-section-header-center p {
  color: var(--hp-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.hp-service-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.hp-service-card:hover {
  transform: translateY(-6px);
  border-color: var(--hp-border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.hp-service-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #F3F4F6;
}

.hp-service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hp-service-card:hover .hp-service-img-wrap img {
  transform: scale(1.06);
}

.hp-service-overlay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--hp-gold);
  border: 1px solid var(--hp-border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}

.hp-service-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.hp-service-desc {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.hp-service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hp-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.hp-service-link:hover {
  gap: 0.7rem;
  color: var(--hp-gold-light);
}

/* ==========================================================================
   4. WHY CHOOSE US (Atelier Highlights)
   ========================================================================== */
.hp-benefits-section {
  padding: 6.5rem 0;
  background: #FFFFFF;
  border-top: 1px solid var(--hp-border-subtle);
}

.hp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.hp-benefit-item {
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.hp-benefit-item:hover {
  border-color: var(--hp-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.hp-benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(162, 134, 81, 0.12);
  border: 1px solid var(--hp-border);
  color: var(--hp-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.hp-benefit-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.hp-benefit-text {
  font-size: 0.875rem;
  color: var(--hp-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   5. FEATURED SECTION (Showcase Presentation)
   ========================================================================== */
.hp-featured-section {
  padding: 6.5rem 0;
  background: var(--hp-navy-slate);
  position: relative;
}

.hp-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.hp-featured-content {
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-featured-heading {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827;
}

.hp-featured-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 2rem;
}

.hp-featured-visual {
  position: relative;
  min-height: 380px;
  background: #F3F4F6;
}

.hp-featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   6. CALL TO ACTION (Minimal High-Impact Banner)
   ========================================================================== */
.hp-cta-section {
  padding: 6.5rem 0;
  background: #FFFFFF;
  position: relative;
  text-align: center;
  border-top: 1px solid var(--hp-border-subtle);
}

.hp-cta-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #1B2A49 0%, #121E34 100%);
  border: 1px solid var(--hp-border);
  box-shadow: 0 20px 40px -10px rgba(27, 42, 73, 0.4);
}

.hp-cta-heading {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
}

.hp-cta-sub {
  font-size: 1.1rem;
  color: #E2E8F0;
  margin-bottom: 2.25rem;
  line-height: 1.5;
}

.hp-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hp-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hp-featured-card {
    grid-template-columns: 1fr;
  }
  .hp-featured-content {
    padding: 2.5rem;
  }
  .hp-featured-visual {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hp-carousel-container {
    height: 70vh;
    min-height: 460px;
    max-height: 560px;
  }
  .hp-carousel-prev,
  .hp-carousel-next {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
  .hp-carousel-prev { left: 8px; }
  .hp-carousel-next { right: 8px; }
  
  .hp-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .hp-stat-item {
    min-width: 0;
  }
  .hp-intro-section,
  .hp-services-section,
  .hp-benefits-section,
  .hp-featured-section,
  .hp-cta-section {
    padding: 3.5rem 0;
  }
  .hp-cta-box {
    padding: 2.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .hp-slide-heading {
    font-size: 1.75rem !important;
    line-height: 1.25;
  }
  .hp-slide-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .hp-slide-buttons,
  .hp-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hp-btn-gold,
  .hp-btn-outline {
    width: 100%;
    padding: 0.85rem 1.25rem;
    justify-content: center;
  }
  .hp-services-grid,
  .hp-benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hp-intro-image-wrap img {
    height: 300px;
  }
  .hp-cta-heading {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hp-carousel-container {
    min-height: 420px;
    height: 65vh;
  }
  .hp-carousel-prev,
  .hp-carousel-next {
    display: none; /* Rely on dots and swipe on tiny screens */
  }
  .hp-slide-heading {
    font-size: 1.45rem !important;
  }
  .hp-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hp-intro-heading {
    font-size: 1.5rem;
  }
  .hp-intro-image-wrap img {
    height: 240px;
  }
}

