/**
 * BONCEPT Experience - Hero Carousel & Search Bar Stylesheet
 */

.hero-section {
  position: relative;
  height: 780px;
  background-color: var(--ink);
  color: var(--white);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 1.2s ease;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(16, 35, 27, 0.88) 0%, rgba(16, 35, 27, 0.5) 55%, rgba(16, 35, 27, 0.25) 100%),
              linear-gradient(to top, rgba(16, 35, 27, 0.95) 0%, transparent 60%);
}

.hero-content-wrapper {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  z-index: 5;
}

.hero-text-content {
  max-width: 720px;
}

.hero-heading {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
  transition: opacity 0.3s ease;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--stone);
  margin-bottom: 28px;
  line-height: 1.6;
  min-height: 80px;
  transition: opacity 0.3s ease;
}

.hero-metadata {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.meta-chip svg {
  color: var(--gold);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  right: 48px;
  bottom: 170px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(16, 35, 27, 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--gold);
}

/* Search Panel */
.hero-search-wrapper {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1160px;
  z-index: 20;
}

.search-panel {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 16px 40px rgba(16, 35, 27, 0.15);
  border: 1px solid var(--stone);
}

.search-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 16px;
  align-items: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--moss);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: var(--moss);
  pointer-events: none;
}

.input-field {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background-color: var(--ivory);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--white);
}

@media (max-width: 992px) {
  .hero-heading {
    font-size: 2.75rem;
  }
  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .search-form .btn {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 720px;
  }
  .hero-heading {
    font-size: 2.25rem;
  }
  .carousel-controls {
    right: 24px;
    bottom: 220px;
  }
  .search-form {
    grid-template-columns: 1fr;
  }
  .search-form .btn {
    grid-column: span 1;
  }
}
