/**
 * Orlando Studio - Hero Section Component
 * Above-the-fold hero with sign-up form
 * BEM: hero, hero__content, hero__title, hero__subtitle, hero__form
 */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(60px + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  background: transparent; /* Let body pattern show through */
  position: relative;
  overflow: hidden;
}

/* Vignette overlay - darkens edges for better text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-radial-overlay);
  pointer-events: none;
  z-index: 1;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

.hero__content {
  /* Orlando Note: Could use .max-w-800 + .text-center utilities in HTML */
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Responsive adjustments - Following Usable mobile optimization standards */
/* Tablets and Mobile - Stack form vertically */
@media (max-width: 900px) {
  .hero__form {
    padding: var(--space-2xl) var(--space-xl) !important;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }
  
  .hero__form form {
    flex-direction: column !important;
    gap: var(--space-md);
  }
  
  .hero__form .input-group {
    width: 100%;
  }
  
  .hero__form .input-group__field {
    width: 100%;
    min-height: 48px; /* WCAG 2.1 AA compliant touch target */
  }
  
  .hero__form .btn {
    width: 100%;
    min-height: 48px; /* WCAG 2.1 AA compliant touch target */
  }
}

/* Mobile Devices (up to 767px) - Comfortable padding */
@media (max-width: 767px) {
  .hero__content {
    max-width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  .hero__title {
    margin-bottom: var(--space-lg);
  }
  
  .hero__subtitle {
    font-size: var(--font-size-body);
    margin-bottom: var(--space-xl);
  }
  
  .hero__form {
    padding: var(--space-2xl) var(--space-lg) !important;
  }
  
  .hero__form-heading {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-md);
  }
  
  .hero__form-note {
    font-size: var(--font-size-small);
    margin-bottom: var(--space-md);
  }
}

/* Ultra-Small Mobile Devices (up to 640px) - Compact but comfortable */
@media (max-width: 640px) {
  .hero__content {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
  
  .hero__form {
    padding: var(--space-xl) var(--space-md) !important;
    border-radius: var(--radius);
  }
  
  .hero__form-heading {
    font-size: var(--font-size-h4);
    margin-bottom: var(--space-sm);
  }
  
  .hero__form-note {
    font-size: var(--font-size-tiny);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-sm);
  }
  
  .hero__form form {
    gap: var(--space-sm);
  }
  
  .hero__form .input-group__field {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-small);
    min-height: 48px; /* Maintain WCAG compliance */
  }
  
  .hero__form .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-small);
    min-height: 48px; /* Maintain WCAG compliance */
  }
}

.hero__title {
  font-size: var(--font-size-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-xl);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  text-shadow: var(--text-shadow-lg);
}

.hero__subtitle {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  font-weight: var(--font-normal);
  text-shadow: var(--text-shadow-md);
}

.hero__form {
  max-width: 650px;
  margin: 0 auto;
  background: var(--color-surface-95);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-tomato);
  box-shadow: var(--shadow-hero);
  backdrop-filter: blur(20px);
}

.hero__form-heading {
  font-size: var(--font-size-h2);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-xl);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
  text-shadow: var(--text-shadow-md);
}

.hero__form-note {
  /* Orlando Note: Could use .text-center utility in HTML */
  color: var(--color-text-secondary);
  font-size: var(--font-size-body);
  margin: 0 0 var(--space-xl) 0;
  text-align: center;
  line-height: var(--line-height-relaxed);
}

.hero__form form {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  align-items: flex-start;
}

.hero__form .input-group {
  margin-bottom: 0;
  flex: 1;
}

.hero__form .input-group__field {
  background: var(--color-surface-light-80);
  border-color: var(--color-olive-20);
  font-size: var(--font-size-body);
  padding: var(--space-md) var(--space-lg);
  min-height: 48px;
}

.hero__form .input-group__field:focus-visible {
  background: var(--color-surface-light-100);
  border-color: var(--color-teal);
  outline: 1px solid var(--color-teal);
  outline-offset: 2px;
}

.hero__form .btn {
  min-height: 48px;
  font-size: var(--font-size-body);
  padding-left: var(--space-2xl);
  padding-right: var(--space-2xl);
  white-space: nowrap;
  flex-shrink: 0;
}
