/**
 * @file
 * Hero section styles for Invertir Pro theme.
 *
 * Inspired by cristinamoriones.com with split layout and asymmetric accent.
 */

/* ========================================
 * HERO SECTION
 * ======================================== */

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 500px;
  background-color: var(--color-bg-cream);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
}

/* ========================================
 * HERO CONTENT
 * ======================================== */

.hero-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-section__content {
    padding: var(--space-3xl);
    padding-left: calc((100vw - var(--container-max)) / 2 + var(--space-md));
  }
}

@media (min-width: 1200px) {
  .hero-section__content {
    padding-right: var(--space-4xl);
  }
}

/* Tagline */
.hero-section__tagline {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-widest);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* Title */
.hero-section__title {
  font-family: var(--font-display);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .hero-section__title {
    font-size: var(--font-size-5xl);
  }
}

/* Subtitle */
.hero-section__subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

/* Description */
.hero-section__description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

@media (min-width: 768px) {
  .hero-section__description {
    font-size: var(--font-size-lg);
  }
}

/* CTA Button */
.hero-section__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--color-black);
  color: var(--color-white);
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal) var(--ease-out-expo);
  align-self: flex-start;
}

.hero-section__cta:hover {
  background-color: var(--color-text-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.hero-section__cta svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.hero-section__cta:hover svg {
  transform: translateX(4px);
}

/* ========================================
 * HERO IMAGE
 * ======================================== */

.hero-section__image-wrapper {
  position: relative;
  min-height: 300px;
  order: -1;
}

@media (min-width: 768px) {
  .hero-section__image-wrapper {
    order: 0;
    min-height: auto;
  }
}

.hero-section__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Asymmetric peach accent shape - behind image */
.hero-section__accent {
  position: absolute;
  top: 10%;
  right: -10%;
  width: 70%;
  height: 80%;
  background-color: var(--color-peach);
  border-radius: 50% 0 0 50%;
  z-index: 0;
}

@media (max-width: 767px) {
  .hero-section__accent {
    top: 5%;
    right: -20%;
    width: 80%;
    height: 90%;
  }
}

/* Image container sits above accent */
.hero-section__image-container {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: var(--space-xl);
}

@media (min-width: 768px) {
  .hero-section__image-container {
    padding: var(--space-2xl);
    padding-right: calc((100vw - var(--container-max)) / 2 + var(--space-md));
  }
}

.hero-section__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ========================================
 * HERO STATS (Optional)
 * ======================================== */

.hero-section__stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.hero-section__stat {
  text-align: left;
}

.hero-section__stat-value {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1;
}

.hero-section__stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ========================================
 * HERO VARIANT - CENTERED
 * ======================================== */

.hero-section--centered {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero-section--centered .hero-section__content {
  align-items: center;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.hero-section--centered .hero-section__description {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section--centered .hero-section__cta {
  align-self: center;
}

/* ========================================
 * HERO VARIANT - DARK
 * ======================================== */

.hero-section--dark {
  background-color: var(--color-black);
}

.hero-section--dark .hero-section__tagline,
.hero-section--dark .hero-section__description {
  color: rgba(255, 255, 255, 0.7);
}

.hero-section--dark .hero-section__title,
.hero-section--dark .hero-section__subtitle {
  color: var(--color-white);
}

.hero-section--dark .hero-section__cta {
  background-color: var(--color-peach);
  color: var(--color-black);
}

.hero-section--dark .hero-section__cta:hover {
  background-color: var(--color-peach-light);
}

/* ========================================
 * ANIMATIONS
 * ======================================== */

.hero-section__content {
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.hero-section__image-container {
  animation: fadeIn 1s var(--ease-out-expo) 0.2s forwards;
  opacity: 0;
}

.hero-section__accent {
  animation: fadeIn 1.2s var(--ease-out-expo) forwards;
}
