/* ============================================================
   GOP — Hero Section CSS
   ============================================================ */

/* ============================================================
   Hero Slider
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-height) - var(--topbar-height));
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-dark) 100%);
  padding-block: var(--space-8);
}

.hero__slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide.active { opacity: 1; }

/* Image Box */
.hero__image-box {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  position: relative;
  border: 4px solid rgba(255,255,255,0.05);
}

.hero__image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

.hero__slide.active .hero__image-box img {
  transform: scale(1);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-block: var(--space-10);
  z-index: 2;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 400px;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
}

.hero__text-col {
  max-width: 780px;
}

.hero__action-col {
  width: 100%;
  position: relative;
  padding-bottom: 40px;
  z-index: 2;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(232, 25, 44, 0.15);
  border: 1px solid rgba(232, 25, 44, 0.4);
  color: #FF6B7A;
  padding: 6px var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  animation: fadeDown 0.6s ease 0.2s both;
  backdrop-filter: blur(4px);
}

.hero__tag-dot {
  width: 6px;
  height: 6px;
  background: var(--color-red);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
  box-shadow: 0 0 6px rgba(232,25,44,0.6);
}

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

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  color: white;
  line-height: 1.08;
  margin-bottom: var(--space-5);
  animation: fadeDown 0.6s ease 0.35s both;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #A8FFDF 0%, #E8F5F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: var(--space-8);
  animation: fadeDown 0.6s ease 0.5s both;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeDown 0.6s ease 0.65s both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slide Indicators */
.hero__indicators {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-10);
  animation: fadeIn 1s ease 1s both;
  position: relative;
  z-index: 10;
}

.hero__indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  padding: 0;
}

.hero__indicator.active {
  width: 32px;
  background: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* Hero Nav Arrows */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
}

.hero__arrow:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-50%) scale(1.05);
}

.hero__arrow--prev { left: var(--space-6); }
.hero__arrow--next { right: var(--space-6); }

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.45);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
  z-index: 10;
}

.hero__scroll-line {
  width: 2px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-green-light);
  animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

/* ============================================================
   Action Card
   ============================================================ */
.hero-action-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fadeDown 0.6s ease 0.8s both;
  
  position: absolute;
  bottom: 0;
  left: -15%;
  width: 95%;
  z-index: 5;
}

.hero-action-card__label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-green-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-action-card__title {
  color: white;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.hero-action-card__desc {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.hero-action-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-action-card__meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
}

.hero-action-card__meta-item i {
  color: var(--color-green-light);
  width: 16px;
  text-align: center;
  margin-top: 3px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  background: linear-gradient(100deg, var(--color-green-deeper) 0%, var(--color-green) 50%, var(--color-green-dark) 100%);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), rgba(232,25,44,0.2), transparent);
}

/* Decorative circle in background */
.stats-bar::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.stats-bar__item {
  text-align: center;
  padding: var(--space-4) var(--space-6);
  position: relative;
}

.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stats-bar__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.stats-bar__suffix {
  font-size: var(--text-2xl);
  color: rgba(255,255,255,0.8);
}

.stats-bar__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-green-deeper) 0%, var(--color-green) 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 25, 44, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-5);
}

.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover { color: white; }

.page-hero__breadcrumb .sep {
  font-size: 10px;
  opacity: 0.5;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: white;
  margin-bottom: var(--space-4);
  line-height: 1.05;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    max-height: none;
    padding-block: var(--space-12);
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }
  .hero__action-col {
    padding-bottom: 0;
  }
  .hero__image-box {
    aspect-ratio: 16/9;
  }
  .hero-action-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: -60px; /* Overlap image from bottom */
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh; /* Ensure it takes at least screen height */
    max-height: none;
    padding-bottom: 4rem;
  }
  /* Make active slide push the container height */
  .hero__slide {
    position: absolute;
    visibility: hidden;
  }
  .hero__slide.active {
    position: relative;
    visibility: visible;
  }
  .hero__content {
    position: relative;
  }
  .hero__arrow { display: none; }
  .hero__scroll-hint { display: none; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(2)::after { display: none; }
  .page-hero__title { font-size: var(--text-4xl); }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .stats-bar__number { font-size: var(--text-3xl); }
}
