/* ═══════════════════════════════════════════════════════════════
   HABIBAYAN HOME PAGE STYLES (index.html)
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
.hb-hero {
  min-height: 100vh;
  background:
    linear-gradient(to top, #16213E 0%, rgba(22, 33, 62, 0.9) 35%, rgba(22, 33, 62, 0.55) 70%, rgba(22, 33, 62, 0.25) 100%),
    url('/images/weave2.1.png') center / cover no-repeat;
  background-color: #16213E;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 60px 80px;
}

.hb-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hb-hero-circle {
  display: none;
}

.hb-hero-circle-1 {
  width: 700px;
  height: 700px;
  background: var(--gold);
  top: -200px;
  right: -200px;
  animation: hbFloat 8s ease-in-out infinite;
}

.hb-hero-circle-2 {
  width: 400px;
  height: 400px;
  background: var(--sunset);
  bottom: -100px;
  left: 30%;
  animation: hbFloat 11s ease-in-out infinite reverse;
}

.hb-hero-lines {
  display: none;
}

.hb-hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hb-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: hbFadeUp 0.8s ease both;
}

.hb-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
  animation: hbFadeUp 0.8s 0.1s ease both;
}

.hb-hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hb-hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  margin-bottom: 44px;
  animation: hbFadeUp 0.8s 0.2s ease both;
  font-weight: 300;
}

.hb-hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: hbFadeUp 0.8s 0.3s ease both;
}

/* ─── STATS BAR ─── */
.hb-stats-bar {
  background: var(--cream);
  border-top: 3px solid var(--gold);
  padding: 40px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.hb-stat-item {
  padding: 0 40px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.hb-stat-item:last-child {
  border-right: none;
}

.hb-stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.hb-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--sunset);
  line-height: 1;
  margin-bottom: 4px;
}

.hb-stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.3px;
}

.hb-stat-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ─── ABOUT CARDS ─── */
.hb-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.hb-about-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.hb-about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--sunset);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.hb-about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
}

.hb-about-card:hover::before {
  transform: scaleY(1);
}

.hb-about-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.hb-about-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
  font-weight: 300;
}

.hb-about-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sunset);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 20px;
  transition: gap 0.2s;
}

.hb-about-card .learn-more:hover {
  gap: 10px;
}

/* ─── STORIES ─── */
.hb-stories-section {
  background: var(--deep);
  padding: 100px 60px;
}

.hb-stories-section .hb-section-title {
  color: #fff;
}

.hb-stories-section .hb-section-lead {
  color: rgba(255, 255, 255, 0.6);
}

.hb-stories-section .hb-section-tag {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold);
}

.hb-stories-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.hb-stories-carousel {
  position: relative;
}

.hb-stories-viewport {
  overflow: visible;
}

.hb-stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hb-stories-nav {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--sunset);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232, 98, 42, 0.32);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hb-stories-nav:hover {
  background: var(--sunset-dark);
  transform: scale(1.06);
}

.hb-stories-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hb-stories-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 166, 35, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hb-stories-dot.active {
  background: var(--sunset);
  transform: scale(1.28);
}

.hb-story-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.hb-story-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 98, 42, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hb-story-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 98, 42, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.hb-story-card:hover::after {
  opacity: 1;
}

.hb-story-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sunset), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  border: 2px solid rgba(245, 166, 35, 0.3);
}

.hb-story-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}

.hb-story-location {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hb-story-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 300;
  display: block;
}

.hb-story-tag {
  display: inline-block;
  margin-top: 14px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ─── VIDEO CTA SECTION ─── */
.hb-cta-section {
  background: var(--cream);
  padding: 100px 60px;
}

.hb-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hb-cta-text .hb-section-title {
  margin-bottom: 20px;
}

.hb-cta-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 36px;
  font-weight: 300;
}

/* Video carousel in CTA */
.hb-video-carousel {
  position: relative;
}

.hb-carousel-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hb-carousel-inner {
  overflow: hidden;
  border-radius: 20px;
  flex: 1;
  min-width: 0;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
}

.hb-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  width: 100%;
}

.hb-carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
}

.hb-video-card {
  background: var(--deep);
  border-radius: 0;
  overflow: hidden;
}

.hb-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, var(--ocean), var(--sky));
  overflow: hidden;
}

.hb-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.hb-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: var(--sunset);
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 12px 32px rgba(232, 98, 42, 0.4);
  border: none;
}

.hb-video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 3px;
}

.hb-video-play-btn:hover {
  background: var(--sunset-dark);
  transform: translate(-50%, -50%) scale(1.1);
}

.hb-video-play-btn.playing {
  opacity: 0;
  pointer-events: none;
}

.hb-video-info {
  padding: 18px 24px;
  background: var(--cream);
}

.hb-video-info h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  font-size: 1.05rem;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.hb-video-info p {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 300;
}

.hb-carousel-btn {
  background: var(--sunset);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232, 98, 42, 0.3);
}

.hb-carousel-btn:hover {
  background: var(--sunset-dark);
  transform: scale(1.1);
}

.hb-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 2px;
}

.hb-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(232, 98, 42, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hb-carousel-dot:hover {
  background: rgba(232, 98, 42, 0.5);
}

.hb-carousel-dot.active {
  background: var(--sunset);
  transform: scale(1.3);
}

/* ─── GROWTH / FINANCE ─── */
.hb-growth-section {
  padding: 100px 60px;
  background: var(--warm-white);
}

.hb-growth-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hb-growth-header {
  text-align: center;
  margin-bottom: 72px;
}

.hb-growth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hb-growth-image {
  background: var(--sand);
  border-radius: 24px;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.hb-growth-image-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2D6A4F 0%, #1B4A6B 50%, var(--ocean) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.hb-growth-chart-lines {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
}

.hb-chart-bar {
  width: 28px;
  border-radius: 4px 4px 0 0;
  background: rgba(245, 166, 35, 0.6);
  animation: hbGrowBar 1.5s ease both;
}

.hb-chart-bar:nth-child(2) { animation-delay: 0.1s; background: rgba(245, 166, 35, 0.7); }
.hb-chart-bar:nth-child(3) { animation-delay: 0.2s; background: rgba(232, 98, 42, 0.7); }
.hb-chart-bar:nth-child(4) { animation-delay: 0.3s; background: rgba(232, 98, 42, 0.8); }
.hb-chart-bar:nth-child(5) { animation-delay: 0.4s; background: var(--gold); }
.hb-chart-bar:nth-child(6) { animation-delay: 0.5s; background: var(--sunset); }

.hb-growth-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.hb-milestones {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hb-milestone {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
}

.hb-milestone > div:last-child {
  min-width: 0;
  flex: 1;
}

.hb-milestone-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(232, 98, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.hb-milestone:hover .hb-milestone-icon {
  background: rgba(232, 98, 42, 0.18);
}

.hb-milestone h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.hb-milestone p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-mid);
  font-weight: 300;
  margin: 0;
}

/* ─── FEATURES SPLIT ─── */
.hb-features-section {
  background: var(--cream);
  padding: 100px 60px;
}

.hb-feature-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.hb-feature-split:last-child {
  margin-bottom: 0;
}

.hb-feature-split.reverse {
  direction: rtl;
}

.hb-feature-split.reverse > * {
  direction: ltr;
}

.hb-feature-img-block {
  border-radius: 24px;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.hb-feature-img-1 {
  background: linear-gradient(135deg, var(--sky) 0%, #1B4A6B 40%, #2D3A5A 100%);
}

.hb-feature-img-2 {
  background: linear-gradient(135deg, #2D6A4F 0%, #1B5E3B 50%, #0D3B22 100%);
}

.hb-feature-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
}

.hb-mock-post {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
}

.hb-mock-post-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.hb-mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
}

.hb-mock-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.hb-mock-loc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.hb-mock-body {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.hb-mock-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  text-align: center;
}

.hb-mock-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 4px;
}

.hb-mock-card-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.hb-feature-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.hb-feature-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 28px;
}

/* ─── JOIN CTA ─── */
.hb-join-section {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--sky) 60%, #1B4A6B 100%);
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hb-join-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
}

.hb-join-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hb-join-section .hb-section-title {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

.hb-join-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 44px;
}

.hb-join-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* ─── ANIMATIONS ─── */
@keyframes hbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

@keyframes hbFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hbGrowBar {
  from { height: 0; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hb-hero {
    padding: 100px 24px 60px;
  }

  .hb-stats-bar {
    padding: 32px 24px;
    grid-template-columns: 1fr;
  }

  .hb-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px 0;
  }

  .hb-stat-item:last-child {
    border-bottom: none;
  }

  .hb-stories-section {
    padding: 72px 24px;
  }

  .hb-stories-carousel {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    gap: 10px;
    align-items: center;
  }

  .hb-stories-viewport {
    overflow: hidden;
    width: 100%;
  }

  .hb-stories-grid {
    display: flex;
    gap: 0;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .hb-story-card {
    min-width: 100%;
    width: 100%;
  }

  .hb-stories-nav,
  .hb-stories-dots {
    display: flex;
  }

  .hb-stories-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hb-cta-section {
    padding: 72px 24px;
  }

  .hb-cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hb-about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hb-growth-section {
    padding: 72px 24px;
  }

  .hb-growth-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hb-features-section {
    padding: 72px 24px;
  }

  .hb-feature-split,
  .hb-feature-split.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .hb-feature-img-block {
    aspect-ratio: auto;
    min-height: 0;
  }

  .hb-feature-img-overlay {
    position: relative;
    inset: auto;
    padding: 24px;
    justify-content: flex-start;
  }

  .hb-join-section {
    padding: 72px 24px;
  }

  .hb-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hb-join-actions {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hb-stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px 8px;
  }

  .hb-stat-item {
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 8px;
  }

  .hb-stat-item:last-child {
    border-right: none;
  }

  .hb-stat-icon {
    font-size: 1.35rem;
    margin-bottom: 4px;
  }

  .hb-stat-number {
    font-size: 2rem;
    margin-bottom: 2px;
  }

  .hb-stat-label {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .hb-stat-sub {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .hb-stories-carousel {
    grid-template-columns: 28px 1fr 28px;
    gap: 6px;
  }

  .hb-stories-nav {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .hb-feature-img-overlay {
    padding: 16px;
  }

  .hb-mock-post {
    padding: 14px;
  }

  .hb-carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .hb-carousel-container {
    gap: 6px;
  }
}
