/**
 * Hero Section Styles
 */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('https://orangefieldinvest.com/media/hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding: var(--space-4) 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 130, 0, 0.7) 0%,
    rgba(247, 181, 56, 0.6) 50%,
    rgba(52, 31, 31, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: var(--space-6) 0 !important; /* Override container padding completely */
  max-width: 1400px;
  width: 100%;
  animation: fadeInUp 1s ease-out;
}

.hero-grid {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.hero-text {
  flex: 0 0 50%; /* EXACTLY 50% width */
  max-width: 50%;
  text-align: left;
}

.hero-carousel-wrapper {
  flex: 0 0 50%; /* EXACTLY 50% width */
  max-width: 50%;
  position: relative;
  overflow: visible;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-3);
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

.hero-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* No padding - arrows will be positioned absolutely */
}

/* Apply mask only to the carousel itself, not the container with arrows */
.hero-carousel-container .carousel {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.hero-cta .btn {
  min-width: 200px;
  box-shadow: var(--shadow-xl);
}

.hero-cta .btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.hero-cta .btn-outline {
  border-color: white;
  color: var(--color-dark);
  background-color: white;
}

.hero-cta .btn-outline:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: white;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* About Section */
.about-section {
  background-color: var(--color-bg-lighter);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-content {
  padding: var(--space-4);
}

.about-content p {
  margin-bottom: var(--space-3);
  line-height: 1.8;
  color: var(--color-text);
}

/* Process Section */
.process-section {
  background-color: white;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.process-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.process-content {
  padding: var(--space-4);
}

.process-content p {
  margin-bottom: var(--space-3);
  line-height: 1.8;
  color: var(--color-text);
}

.process-steps {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-lg);
}

.process-step h4 {
  margin-bottom: 0.5rem;
  color: var(--color-dark);
  text-align: center;
  width: 100%;
}

.process-step p {
  margin: 0;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  text-align: center;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-title {
  font-size: var(--text-4xl);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive */
/* Medium laptops (1024px - 1366px) */
@media (max-width: 1366px) {
  .hero-content {
    padding: var(--space-5) var(--space-4) !important;
    max-width: 100%;
  }

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

  .hero-subtitle {
    font-size: var(--text-base);
    line-height: 1.6;
  }

  .hero-text {
    padding: 0 var(--space-2);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    flex-direction: column;
    gap: var(--space-5);
  }

  .hero-text {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 var(--space-3);
  }

  .hero-carousel-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

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

  .hero-cta {
    justify-content: center;
  }

  .about-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .process-grid .process-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-6) 0;
    background-attachment: scroll;
  }

  .hero-content {
    padding: var(--space-4) var(--space-4) !important;
  }

  .hero-text {
    padding: 0 var(--space-3);
  }

  .hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
    line-height: 1.7;
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-cta .btn {
    width: 100%;
    font-size: var(--text-base);
    padding: 1rem 1.5rem;
  }

  /* Remove fade mask on mobile */
  .hero-carousel-container .carousel {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .about-content,
  .process-content {
    padding: 0;
  }

  /* Center step card titles */
  .process-step h4 {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: var(--space-3) var(--space-3) !important;
  }

  .hero-text {
    padding: 0 var(--space-2);
  }

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

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

  .process-steps {
    gap: var(--space-2);
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: var(--text-base);
  }
}
