/* ==========================================================================
   KOUL Theme — Homepage Sections CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section 1: Cinematic Hero
   -------------------------------------------------------------------------- */
.hero-cinematic {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s var(--ease-luxury);
  filter: brightness(0.65) contrast(1.05);
}

.hero-cinematic.loaded .hero-img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 8, 0.95) 0%,
    rgba(8, 8, 8, 0.70) 50%,
    rgba(8, 8, 8, 0.90) 100%
  );
  z-index: 2;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 20%,
    rgba(8, 8, 8, 0.85) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--dark-2) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

/* Decorative animated vertical gridlines */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero-lines .line {
  position: absolute;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  width: 1px;
  opacity: 0.2;
}

.line-1 {
  height: 60%;
  top: 20%;
  left: 8%;
}

.line-2 {
  height: 40%;
  top: 30%;
  right: 8%;
}

/* Hero Content Area */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 60px;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.9;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 28px;
}

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

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: var(--grey-2);
  max-width: 600px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  pointer-events: none;
}

.scroll-text {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-1);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(0.5);
  }
}

/* --------------------------------------------------------------------------
   Section 2: Stats (Animated Counters)
   -------------------------------------------------------------------------- */
.stats-section {
  background-color: var(--dark-2);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number, .stat-text {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-1);
  display: block;
  margin-top: 12px;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.3), transparent);
}

/* --------------------------------------------------------------------------
   Section 3: Divisions (4 Premium Cards Grid)
   -------------------------------------------------------------------------- */
.divisions-section {
  padding: var(--section-pad) 0;
  background-color: var(--dark-1);
  position: relative;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: rgba(201, 168, 76, 0.1);
  margin-top: 60px;
}

.division-card {
  position: relative;
  height: 540px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--dark-2);
}

.division-card .card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.division-card .card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-luxury);
  filter: grayscale(40%) brightness(0.3);
}

.division-card:hover .card-bg img {
  transform: scale(1.08);
  filter: grayscale(0%) brightness(0.45);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.97) 0%,
    rgba(8, 8, 8, 0.4) 60%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px;
  z-index: 3;
  transform: translateY(64px);
  transition: transform 0.6s var(--ease-luxury);
}

.division-card:hover .card-content {
  transform: translateY(0);
}

.card-number {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 200;
  color: rgba(201, 168, 76, 0.08);
  position: absolute;
  top: -24px;
  right: 24px;
  line-height: 1;
  transition: color 0.4s;
  user-select: none;
}

.division-card:hover .card-number {
  color: rgba(201, 168, 76, 0.18);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}

.card-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-2);
  line-height: 1.7;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--ease-luxury) 0.1s;
}

.division-card:hover .card-desc {
  opacity: 1;
  transform: translateY(0);
}

.card-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-link .arrow {
  transition: transform 0.3s var(--ease-luxury);
}

.card-link:hover .arrow {
  transform: translateX(6px);
}

/* --------------------------------------------------------------------------
   Section 4: Why KOUL (3 columns grid)
   -------------------------------------------------------------------------- */
.why-section {
  padding: var(--section-pad) 0;
  background-color: var(--dark-2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  background-color: rgba(201, 168, 76, 0.15);
}

.why-card {
  background-color: var(--dark-2);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s var(--ease-luxury);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-luxury);
}

.why-card:hover::before,
.why-card.featured::before {
  opacity: 1;
}

.why-card.featured {
  background-color: var(--dark-3);
}

.why-icon {
  margin-bottom: 28px;
}

.why-icon svg {
  color: var(--gold);
}

.why-number {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 200;
  color: rgba(201, 168, 76, 0.05);
  position: absolute;
  top: 20px;
  right: 20px;
  line-height: 1;
  user-select: none;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

.why-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--grey-2);
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Section 5: Global Markets
   -------------------------------------------------------------------------- */
.markets-section {
  padding: var(--section-pad) 0;
  background-color: var(--dark-1);
}

.markets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 50px;
  justify-content: center;
}

.market-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  background-color: var(--dark-3);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-2);
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-luxury);
  cursor: default;
}

.market-badge:hover {
  border-color: rgba(201, 168, 76, 0.6);
  color: var(--white);
  background-color: var(--dark-4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.04);
}

.market-badge span {
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Section 6: CTA Banner (Teal Gradient Background)
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--dark-1) 0%,
    #0a2e2c 50%,
    var(--dark-1) 100%
  );
  padding: 120px 0;
  overflow: hidden;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 10;
}

.cta-text {
  max-width: 600px;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  color: var(--grey-2);
}

.btn-large {
  padding: 22px 52px;
  font-size: 12px;
  letter-spacing: 0.25em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Decorative background diagonal line aesthetics */
.cta-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
}

.cta-lines::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 30%;
  width: 1px;
  height: 200%;
  background: var(--gold);
  transform: rotate(45deg);
}

.cta-lines::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 45%;
  width: 1px;
  height: 200%;
  background: var(--gold);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   HOMEPAGE MEDIA RESPONSIVE RULES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .divisions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }
  .stats-inner {
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }
  .stat-item {
    flex: unset;
    width: 40%;
  }
  .stat-divider {
    display: none;
  }
  .cta-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
  }
  .hero-heading {
    font-size: 42px;
  }
  .hero-sub {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions a {
    width: 100%;
  }
  .divisions-grid {
    grid-template-columns: 1fr;
  }
  .division-card {
    height: 440px;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .why-card {
    padding: 44px 28px;
  }
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .btn-large {
    width: 100%;
  }
  .stats-inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 24px;
  }
  .stat-item {
    width: 100%;
  }
}
