﻿/* ============================================
   HOME MARKET — Hero + Quiz
   ============================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center center / cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(15,37,53,0.85) 0%, rgba(15,37,53,0.40) 60%, rgba(15,37,53,0.20) 100%),
    linear-gradient(to top, rgba(15,37,53,0.60) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 30px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.3);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-gold 2s ease infinite;
}

.hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-title .gold-word {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease infinite;
  display: inline;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-stat {}
.hero-stat__num {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat__num span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat__label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ---- Search panel (glassmorphism) ---- */
.hero-search {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-top: 28px;
  max-width: 860px;
  animation: scaleIn 0.8s ease 0.4s both;
  box-shadow: 0 8px 48px rgba(0,0,0,0.3);
}

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.08);
  padding: 4px;
  border-radius: var(--r-full);
  width: fit-content;
}
.search-tab {
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: var(--t-base);
  cursor: pointer;
  border: none;
  background: none;
}
.search-tab.active {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 300%;
  animation: goldShimmer 4s ease infinite;
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.search-tab:not(.active):hover { color: var(--white); background: rgba(255,255,255,0.1); }

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.search-select,
.search-input {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  outline: none;
  transition: var(--t-fast);
  appearance: none;
  cursor: pointer;
  color-scheme: dark;
}
.search-input {
  background: rgba(255,255,255,0.12);
}
.search-select {
  background: #1e3f5a;
}
.search-select:focus,
.search-input:focus {
  border-color: rgba(201,169,110,0.6);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.search-select option,
.search-select option:hover,
.search-select option:checked,
.search-select option:focus {
  background-color: #1B3A4B !important;
  color: #ffffff !important;
}
.search-input::placeholder { color: rgba(255,255,255,0.4); }

.search-btn {
  padding: 14px 28px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 300%;
  animation: goldShimmer 4s ease infinite;
  border: none;
  border-radius: var(--r-md);
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Onest', sans-serif;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), animation-duration var(--t-fast);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
}
.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,169,110,0.5);
  animation-duration: 1.5s;
}
.search-btn svg { width: 18px; height: 18px; }

/* ---- Hero scroll divider ---- */
.hero-scroll-divider {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: -1px;
  background: var(--navy);
}
.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: -22px auto 0;
  padding: 14px 28px;
  background: rgba(15,30,42,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 100px;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeUp 1s ease 1.2s both;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-scroll:hover {
  color: var(--gold);
  border-color: rgba(201,169,110,0.6);
  box-shadow: 0 8px 40px rgba(201,169,110,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}
.hero-scroll svg {
  width: 16px; height: 16px;
  animation: bounce 2.5s ease infinite;
  opacity: 0.7;
}

/* ---- Quiz section ---- */
.quiz-section {
  background: var(--navy);
  padding: var(--gap-xl) 0;
  position: relative;
  overflow: hidden;
}
.quiz-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.quiz-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.quiz-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.quiz-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}

/* Progress bar */
.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.quiz-step-dot {
  width: 32px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  transition: var(--t-base);
}
.quiz-step-dot.active {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  background-size: 200%;
  animation: goldShimmer 2s ease infinite;
}
.quiz-step-dot.done {
  background: var(--gold);
  opacity: 0.6;
}

.quiz-body { min-height: 180px; }
.quiz-step { display: none; animation: fadeUp 0.4s ease both; }
.quiz-step.active { display: block; }
.quiz-step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.quiz-option {
  padding: 12px 24px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t-base);
  font-family: 'Onest', sans-serif;
}
.quiz-option:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(201,169,110,0.1);
}
.quiz-option.selected {
  border-color: var(--gold);
  background: rgba(201,169,110,0.15);
  color: var(--gold-light);
  font-weight: 700;
}

/* Quiz form step */
.quiz-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.quiz-form .form-input {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--r-md);
}
.quiz-form .form-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}
.quiz-form .form-input::placeholder { color: rgba(255,255,255,0.35); }
.quiz-form .consent-label { color: rgba(255,255,255,0.45); }

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.quiz-back {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  font-family: 'Onest', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: color var(--t-fast);
}
.quiz-back:hover { color: rgba(255,255,255,0.8); }
.quiz-success {
  display: none;
  text-align: center;
  padding: 32px 0;
  animation: scaleIn 0.5s ease both;
}
.quiz-success.show { display: block; }
.quiz-success-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
}
.quiz-success h3 {
  font-family: 'Cormorant', serif;
  font-size: 26px;
  color: var(--white);
  margin-bottom: 8px;
}
.quiz-success p { font-size: 15px; color: rgba(255,255,255,0.55); }
