/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  padding: 6rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0 6rem;
  }
}

.hero--page {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .hero--page {
    padding: 6rem 0;
  }
}

.hero--service {
  padding: 8rem 0 4rem;
}

@media (min-width: 768px) {
  .hero--service {
    padding: 10rem 0 6rem;
  }
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 141, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 141, 238, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero__line {
  position: absolute;
  height: 2px;
  opacity: 0.3;
}

.hero__line--1 {
  top: 8rem;
  right: 6rem;
  width: 10rem;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  transform: rotate(45deg);
}

.hero__line--2 {
  bottom: 10rem;
  left: 8rem;
  width: 8rem;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  transform: rotate(-45deg);
}

.hero__content {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero__title {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero__title-gradient {
  display: block;
  margin-top: 0.5rem;
  background: linear-gradient(to right, var(--deep-blue), var(--blue-bright), var(--warm-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(91, 141, 238, 0.3));
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--light-gray);
  margin-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--text-xl);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

.hero__stats {
  max-width: 56rem;
  margin: 0 auto;
  gap: 1rem;
}

.hero--page .hero__content {
  max-width: 52rem;
  text-align: left;
  margin: 0;
}

.hero--page .hero__content--center {
  text-align: center;
  margin: 0 auto;
  max-width: 52rem;
}

.hero--page .hero__subtitle {
  margin-left: 0;
  margin-bottom: 2rem;
  max-width: 40rem;
}

.hero--page .hero__stats {
  max-width: none;
  margin: 0;
  width: 100%;
}

.hero--page .hero__content--center .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero--page .hero__subtitle {
    margin-bottom: 2.5rem;
  }

  .hero--page .hero__stats {
    gap: 1.15rem;
  }
}

/* Glow positions for hero */
.glow--tr {
  top: 0;
  right: 0;
  width: 700px;
  height: 700px;
  opacity: 0.2;
  transform: translate(50%, -50%);
}

.glow--bl {
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  opacity: 0.15;
  transform: translate(-50%, 50%);
}

.glow--center {
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  opacity: 0.1;
  transform: translate(-50%, -50%);
  filter: blur(150px);
}

.glow--tr-sm {
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  opacity: 0.08;
  transform: translate(50%, -50%);
}

.glow--bl-sm {
  bottom: 0;
  left: 0;
  width: 600px;
  height: 600px;
  opacity: 0.08;
  transform: translate(-50%, 50%);
}

.glow--center-lg {
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  opacity: 0.08;
  transform: translate(-50%, -50%);
  filter: blur(150px);
}

.glow--center-xl {
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  opacity: 0.08;
  transform: translate(-50%, -50%);
  filter: blur(150px);
}

.glow--page {
  opacity: 0.15;
}

/* Quick routes link cards */
.route-card h3 {
  margin-bottom: 0.5rem;
}

.route-card p {
  color: var(--light-gray);
  margin-bottom: 1rem;
  flex-grow: 1;
  font-size: var(--text-base);
}

/* How we help decorative lines */
.decor-line {
  position: absolute;
  height: 2px;
  width: 16rem;
  opacity: 0.4;
}

.decor-line--left {
  top: 25%;
  left: 0;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.decor-line--right {
  bottom: 25%;
  right: 0;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

/* Credit history two-col */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.two-col__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.two-col h2 {
  margin-bottom: 1.5rem;
}

.two-col > div > p.lead {
  font-size: var(--text-lg);
  color: var(--light-gray);
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Employment */
.employment-col {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px var(--primary-glow);
}

.employment-col h3 {
  margin-bottom: 1.5rem;
}

.employment-col .check-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.employment-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .employment-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Partners count */
.partner-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
  text-align: center;
}

.partner-card:hover {
  box-shadow: 0 25px 50px -12px var(--primary-glow);
  transform: translateY(-0.25rem);
  border-color: var(--border-strong);
}

.partner-card__count {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.partner-card h4 {
  margin-bottom: 0.5rem;
}

.partner-card p {
  font-size: var(--text-sm);
  color: var(--light-gray);
}

.partners-grid {
  margin-bottom: 3rem;
}

/* Final CTA benefits */
.cta-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .cta-benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 5.5rem;
  padding: 1.25rem 1rem;
  background: rgba(20, 25, 34, 0.3);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.cta-benefit:hover {
  border-color: var(--border-strong);
}

.cta-benefit p {
  margin: 0;
  color: var(--off-white);
  font-weight: var(--fw-semibold);
  font-size: var(--text-lg);
  line-height: 1.35;
  text-align: center;
}

/* Page listing stats (testimonials) */
.page-stats {
  padding: 3rem 0;
  background: var(--dark-surface);
}

.page-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .page-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-stats__value {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.page-stats__label {
  font-size: var(--text-sm);
  color: var(--light-gray);
}

/* Service page legal box */
.legal-box {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px var(--primary-glow);
}

.legal-box p {
  color: var(--light-gray);
  margin-bottom: 1rem;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.legal-box strong {
  color: var(--white);
  font-weight: var(--fw-semibold);
}

/* Link wrapper for cards */
a.card-link-wrap {
  display: block;
  height: 100%;
  color: inherit;
}

a.card-link-wrap .card {
  height: 100%;
}

/* mb helpers for section spacing */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }

.text-white { color: var(--white); }
.text-light { color: var(--light-gray); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

.gap-8 { gap: 2rem; }
