/* Reference-led homepage hero. All rules are scoped to the React component. */
.civic-hero {
  background: #09263e;
  padding: clamp(40px, 4vh, 54px) 0 calc(clamp(85px, 8.2vw, 170px) + 24px);
  isolation: isolate;
}
.civic-hero .hero-banner {
  opacity: 1;
  background-position: center;
}
.civic-hero .hero-banner::after {
  background:
    linear-gradient(
      90deg,
      rgba(5, 30, 55, 0.95) 0%,
      rgba(6, 33, 53, 0.83) 30%,
      rgba(7, 35, 52, 0.44) 54%,
      rgba(7, 35, 52, 0.08) 78%
    ),
    linear-gradient(0deg, rgba(3, 25, 42, 0.3), transparent 65%);
}
.civic-hero .container {
  width: 90%;
  max-width: 1760px;
  padding: 0;
}
.civic-hero .home-hero-v2-inner {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 3vw, 56px);
}
.civic-hero .home-hero-v2-text {
  min-width: 0;
  text-align: left;
}
.civic-hero .home-hero-v2-text h1 {
  font-family: var(--font-main);
  font-size: clamp(42px, 3.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0, 15, 30, 0.12);
}
.hero-greeting,
.hero-brand {
  display: block;
}
.civic-hero .hero-brand {
  font-size: 1.14em;
  white-space: nowrap;
}
.hero-brand > span {
  color: #5ba8fa;
}
.civic-hero .home-hero-v2-text .home-hero-slogan {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.3em;
  margin: 0 0 16px;
  color: #ffd344;
  font-size: clamp(16px, 1.2vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  letter-spacing: -0.025em;
}
.civic-hero .home-hero-v2-text .hero-intro {
  max-width: 610px;
  font-size: clamp(16px, 0.95vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 26px;
  color: #f3f6fa;
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hero-highlights li + li {
  border-left: 1px solid rgba(159, 195, 232, 0.3);
  padding-left: 16px;
}
.hero-highlight-icon {
  flex: 0 0 44px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(50, 119, 223, 0.6), rgba(39, 89, 161, 0.8));
  color: #e7f2ff;
  font-size: 23px;
}
.hero-highlights li:nth-child(2) .hero-highlight-icon {
  background: linear-gradient(135deg, #0867e4, #0641b4);
}
.hero-highlights strong {
  display: block;
  color: #fff;
  font-size: clamp(14px, 0.84vw, 16px);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 4px;
}
.hero-highlights li div > span {
  display: block;
  color: #dbe6f1;
  font-size: clamp(12px, 0.68vw, 13px);
  line-height: 1.4;
}
.civic-hero .home-hero-v2-actions {
  gap: 24px;
  justify-content: flex-start;
}
.civic-hero .home-hero-v2-actions .btn {
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  gap: 12px;
  justify-content: center;
}
.civic-hero .home-hero-v2-actions .btn-primary {
  background: #1c6efb;
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 8px 22px rgba(0, 77, 222, 0.35);
}
.civic-hero .home-hero-v2-actions .btn-primary:hover {
  background: #0954d6;
}
.civic-hero .home-hero-v2-actions .btn-outline {
  border: 2px solid #d4dfeb;
  color: #fff;
  background: rgba(8, 32, 52, 0.24);
}
.civic-hero .home-hero-v2-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}
.civic-hero .home-hero-v2-actions .bi-arrow-right {
  font-size: 19px;
  line-height: 1;
}
.civic-hero .home-hero-v2-search {
  min-width: 0;
  transform: translateY(10px);
}
.civic-hero .search-autocomplete-wrapper {
  min-width: 0;
}
.civic-hero .search-submit-btn {
  flex-shrink: 0;
}
.civic-hero-waves {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(85px, 8.2vw, 170px);
}
.civic-hero a:focus-visible,
.civic-hero button:focus-visible {
  outline: 3px solid #73b7ff;
  outline-offset: 5px;
}
.civic-hero .home-search-box .search-box:focus-visible {
  outline: 3px solid #075bea;
  outline-offset: 2px;
}
.civic-hero .search-autocomplete-item {
  padding: 0;
}
.civic-hero .search-autocomplete-item a {
  display: block;
  padding: 12px 14px;
  color: #112640;
  text-decoration: none;
}
.directory-search {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 24px;
}
.directory-search input {
  min-width: 0;
  flex: 1;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}
.directory-search button {
  min-width: 52px;
}
.directory-result-count {
  margin-bottom: 24px;
}
@media (max-width: 1450px) and (min-width: 1051px) {
  .civic-hero .container {
    width: 90%;
  }
  .civic-hero .home-hero-v2-inner {
    gap: 40px;
  }
  .hero-highlights {
    gap: 12px;
  }
  .hero-highlights li {
    gap: 10px;
  }
  .hero-highlights li + li {
    padding-left: 12px;
  }
  .hero-highlight-icon {
    flex-basis: 42px;
    height: 46px;
    font-size: 23px;
    border-radius: 13px;
  }
}
@media (max-width: 1050px) {
  .civic-hero {
    padding: 64px 0 105px;
  }
  .civic-hero .container {
    width: calc(100% - 64px);
    max-width: 760px;
  }
  .civic-hero .home-hero-v2-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .civic-hero .hero-banner::after {
    background:
      linear-gradient(90deg, rgba(5, 30, 55, 0.94), rgba(6, 33, 53, 0.66)),
      linear-gradient(0deg, rgba(5, 30, 55, 0.55), transparent);
  }
  .civic-hero .home-hero-v2-text h1 {
    font-size: clamp(42px, 7vw, 65px);
  }
  .civic-hero .home-hero-v2-text .home-hero-slogan {
    font-size: clamp(17px, 2.8vw, 24px);
  }
  .civic-hero .home-hero-v2-text .hero-intro {
    font-size: 18px;
  }
  .civic-hero .home-hero-v2-search {
    transform: none;
  }
  .hero-highlights strong {
    font-size: 17px;
  }
  .hero-highlights li div > span {
    font-size: 13px;
  }
}
@media (max-width: 600px) {
  .civic-hero {
    padding: 42px 0 90px;
  }
  .civic-hero .container {
    width: calc(100% - 40px);
  }
  .civic-hero .home-hero-v2-text {
    text-align: center;
  }
  .civic-hero .hero-banner {
    background-position: 68% center;
  }
  .civic-hero .home-hero-v2-text h1 {
    font-size: clamp(30px, 7.9vw, 47px);
    margin-bottom: 18px;
  }
  .civic-hero .home-hero-v2-text .home-hero-slogan {
    justify-content: center;
    text-align: center;
    font-size: clamp(14px, 3.7vw, 20px);
    margin-bottom: 18px;
  }
  .civic-hero .home-hero-v2-text .hero-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 26px;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 290px;
    margin: 0 auto 28px;
  }
  .hero-highlights li {
    gap: 14px;
    align-items: center;
    justify-content: center;
  }
  .hero-highlights li > div {
    flex: 0 1 220px;
    text-align: left;
  }
  .hero-highlights li + li {
    border: 0;
    padding: 0;
  }
  .hero-highlight-icon {
    flex-basis: 44px;
    height: 46px;
    font-size: 23px;
    border-radius: 13px;
  }
  .hero-highlights strong {
    font-size: 16px;
    margin: 0 0 4px;
  }
  .hero-highlights li div > span {
    font-size: 13px;
  }
  .civic-hero .home-hero-v2-actions {
    gap: 12px;
    flex-wrap: nowrap;
  }
  .civic-hero .home-hero-v2-actions .btn {
    flex: 1;
    min-height: 44px;
    padding: 10px;
    font-size: 14px;
    gap: 8px;
    border-radius: 9px;
  }
  .civic-hero .home-hero-v2-actions .bi-arrow-right {
    font-size: 19px;
  }
  .civic-hero .home-search-box .search-autocomplete-wrapper .search-box {
    min-width: 0;
    font-size: 16px;
  }
  .civic-hero .home-search-tags a {
    min-height: 44px;
    padding: 8px 12px;
  }
  .civic-hero-waves {
    height: 65px;
  }
}
