/* ============================================================
   SAUDI EXPAT GUIDE — hero.css
   Hero Section Styles
   © 2026 Saudi Expats Guide
============================================================ */

/* ── Hero Main ── */
.hero {
  background-color: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
}

/* ── Hero Background Pattern ── */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 128, 128, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(197, 160, 89, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* ── Hero Gold Line Top ── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--gold),
    var(--teal),
    var(--gold),
    transparent
  );
}

/* ── Hero Inner ── */
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge i {
  font-size: 13px;
}

/* ── Hero Heading ── */
.hero-heading {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-heading span {
  color: var(--gold);
  position: relative;
}

.hero-heading .highlight-teal {
  color: var(--teal-light);
}

/* ── Hero Subtext ── */
.hero-subtext {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-loose);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ── Hero Buttons ── */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-buttons .btn {
  padding: 14px 32px;
  font-size: 15px;
}

.hero-buttons .btn-primary {
  background-color: var(--cta-orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(211, 84, 0, 0.3);
}

.hero-buttons .btn-primary:hover {
  background-color: #b94600;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(211, 84, 0, 0.4);
}

.hero-buttons .btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-buttons .btn-secondary:hover {
  border-color: var(--teal);
  background-color: rgba(0, 128, 128, 0.15);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Hero Stats Bar ── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.hero-stat:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-black);
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat .stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ── Search Bar Section ── */
.hero-search {
  background-color: var(--white);
  padding: 28px 0;
  box-shadow: 0 4px 20px var(--shadow);
}

.hero-search-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-off-white);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

.search-bar i {
  color: var(--text-muted);
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  padding: 6px 0;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  background-color: var(--teal);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--weight-semi);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.search-bar button:hover {
  background-color: var(--teal-dark);
}

/* ── Popular Searches ── */
.popular-searches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  justify-content: center;
}

.popular-searches span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

.popular-searches a {
  font-size: 12px;
  color: var(--teal);
  background-color: rgba(0, 128, 128, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(0, 128, 128, 0.15);
}

.popular-searches a:hover {
  background-color: var(--teal);
  color: var(--white);
}

/* ── Responsive Hero ── */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 50px;
  }

  .hero-heading {
    font-size: var(--text-3xl);
  }

  .hero-subtext {
    font-size: var(--text-base);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
  }

  .hero-buttons .btn {
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .hero-stat {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 0 20px;
    width: 100%;
  }

  .hero-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: var(--text-2xl);
  }

  .hero-badge {
    font-size: 11px;
  }

  .hero-stats {
    padding: 20px;
  }
}