/* =============================================================================
   YAD AL MA — HERO SECTION STYLES
   ============================================================================= */

/* -----------------------------------------------------------------------------
   MAIN HOMEPAGE HERO
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

/* Hero background parallax container */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Multi-layer overlay for depth */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(10, 22, 40, 0.92) 30%, rgba(10, 22, 40, 0.45) 70%, rgba(10, 22, 40, 0.3) 100%),
    linear-gradient(to top, rgba(10, 22, 40, 0.5) 0%, transparent 50%);
}

/* Green tint overlay */
.hero-green-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.3) 0%, transparent 60%);
}

/* Content area */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 7rem 0 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: center;
}

.hero-text {
  max-width: 680px;
}

/* Hero eyebrow label */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 1.1rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-dot 2s ease infinite;
}

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

/* Hero title */
.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero-title .highlight {
  color: var(--color-accent);
  display: block;
}

.hero-title .green-highlight {
  background: linear-gradient(135deg, #4CAF50, #81C784);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: var(--space-10);
  font-weight: var(--fw-regular);
}

/* Hero CTA group */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-12);
}

/* Hero trust indicators */
.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.hero-trust-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.hero-trust-value {
  font-weight: var(--fw-semibold);
  color: var(--color-white);
}

.hero-trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
}

/* Hero stats box (right side) */
.hero-stats-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 240px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6);
  text-align: center;
  transition: background var(--transition-base), transform var(--transition-base);
}

.hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-1);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--fw-medium);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-base);
}

.hero-scroll:hover { color: rgba(255, 255, 255, 0.9); }

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-line 2s ease infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Hero scroll cue button */
.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  transition: all var(--transition-base);
  animation: hero-scroll-bounce 2s infinite;
  text-decoration: none;
}

.hero-scroll-cue:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateX(-50%) translateY(3px);
}

.hero-scroll-cue svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  flex-shrink: 0;
}

@keyframes hero-scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(8px); }
  60% { transform: translateX(-50%) translateY(4px); }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1.25rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Homepage Hero Headings & Actions */
.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero-heading-line {
  display: block;
}

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

.hero-subheading {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 650px;
  margin-bottom: var(--space-10);
  font-weight: var(--fw-regular);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-12);
}

/* Hero Stats Bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.hero-stat-suffix {
  color: var(--color-accent);
  font-size: 0.8em;
  margin-left: 2px;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
}

/* General Inner Page Hero */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
  text-align: center;
}

.page-hero .breadcrumb {
  justify-content: center;
  margin-bottom: var(--space-4);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg .page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.75) 0%, rgba(10, 22, 40, 0.85) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 650px;
  margin: 0 auto;
}

/* Hero shape divider */

.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}

.hero-shape svg {
  width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------------------------------------------------------
   FULL SCREEN VIDEO HERO (alternative)
   ----------------------------------------------------------------------------- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

/* -----------------------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-stats-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: unset;
    width: 100%;
  }

  .hero-stat-card {
    flex: 1;
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-cta-group {
    gap: var(--space-3);
  }

  .hero-trust {
    gap: var(--space-4);
  }

  .hero-trust-divider { display: none; }

  .hero-stat-card {
    padding: var(--space-4);
  }

  .hero-stat-number {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .hero-stats-box {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat-card {
    min-width: calc(50% - var(--space-2));
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
}
