/* hero.css */
.hero {
  background:
    radial-gradient(circle at top right, rgba(212, 135, 10, 0.28), transparent 28%),
    linear-gradient(135deg, #1f402b 0%, #2d5a3d 58%, #44684b 100%);
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 6rem) 4rem;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero { min-height: min(85vh, 780px); }
}

/* Geometric pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -10%;
  bottom: -18%;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: rgba(244, 217, 168, 0.14);
  filter: blur(18px);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

.hero-content {
  color: var(--color-surface-raised);
  max-width: 42rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.hero-content .text-display {
  font-family: var(--font-arabic-black), var(--font-english-black), sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin-bottom: 1.25rem;
  line-height: 1.05;
  max-width: 11ch;
}

@media (min-width: 1024px) {
  .hero-content .text-display {
    font-size: max(52px, 4vw);
  }
}

.hero-content p {
  color: var(--color-surface);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  max-width: 36rem;
}

/* Search bar inside hero */
.hero-search {
  position: relative;
  max-width: 640px;
  background: var(--color-surface-raised);
  border-radius: 14px;
  padding: 0.5rem;
  display: flex;
  box-shadow: var(--shadow-paper-lifted);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 1rem;
  font-size: 1.125rem;
  background: transparent;
  outline: none;
  color: var(--color-ink);
}

.hero-search button {
  background-color: var(--color-amber);
  color: var(--color-ink);
  border-radius: 10px;
  padding: 0 1.5rem;
  font-weight: bold;
  font-size: 1.125rem;
  transition: var(--transition-fast);
}

.hero-search button:hover {
  background-color: #e59a1c;
}

/* WOW 7: Search Autocomplete */
.hero-search:focus-within {
  border-color: var(--color-amber);
  box-shadow: 0 0 0 2px var(--color-amber), var(--shadow-paper-lifted);
}

.hero-search {
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-khaki);
  border-radius: 8px;
  box-shadow: var(--shadow-paper-lifted);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.autocomplete-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-khaki);
  color: var(--color-ink);
  text-decoration: none;
  border-right: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

html[dir="ltr"] .autocomplete-item {
  border-right: none;
  border-left: 3px solid transparent;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: var(--color-surface-sunken);
  border-right-color: var(--color-amber);
}

html[dir="ltr"] .autocomplete-item:hover,
html[dir="ltr"] .autocomplete-item.active {
  border-right-color: transparent;
  border-left-color: var(--color-amber);
}

.autocomplete-item-title {
  font-weight: bold;
}

.autocomplete-item-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.autocomplete-no-match {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-secondary);
}

.autocomplete-no-match a {
  color: var(--color-gov-green);
  font-weight: bold;
  text-decoration: underline;
}

.hero-tags {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: var(--font-small);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
}

.tag:hover {
  background-color: var(--color-amber);
  color: var(--color-ink);
  border-color: var(--color-amber);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.hero-note-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.14);
  border: 1px solid rgba(255, 248, 237, 0.26);
  font-weight: 700;
}

.hero-mascot {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-mascot-frame {
  background: rgba(255, 248, 237, 0.1);
  border: 1px solid rgba(255, 248, 237, 0.18);
  border-radius: 28px;
  padding: 1rem;
  box-shadow: 0 24px 40px rgba(16, 12, 7, 0.24);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero-mascot-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(255, 248, 237, 0.34);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.hero-mascot-frame::after {
  content: "";
}

.hero-mascot img {
  display: block;
  width: min(100%, 520px);
  max-height: none;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 30px rgba(22, 16, 10, 0.24);
}

.stats-bar {
  background-color: var(--color-amber);
  color: var(--color-ink);
  padding-block: 1rem;
  font-weight: bold;
  font-size: 1.25rem;
}

.stats-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.illustrated-tips {
  margin-bottom: 4rem;
}

.illustrated-tips-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.illustrated-tips-head h2 {
  margin-bottom: 0.5rem;
}

.illustrated-tips-head p {
  color: var(--color-text-secondary);
}

.illustrated-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.illustrated-tip-card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-khaki);
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: var(--shadow-paper);
}

.illustrated-tip-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .hero-content .text-display {
    max-width: 100%;
  }

  .hero-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .illustrated-tips-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-block: 2.5rem;
  }

  .hero-kicker {
    font-size: 0.85rem;
  }
}
