/* EB-5 Theme — matches the main PrimeCIC site palette and design */

:root {
  --primary: var(--blue);
  --primary-dark: #1c3f6f;
  --primary-light: #3b66a3;
  --primary-soft: var(--blue-soft);

  --accent: var(--red);
  --accent-dark: var(--red-deep);
  --accent-soft: var(--red-soft);

  --glow-accent: var(--glow-blue);
}

html.theme-dark {
  --primary: var(--blue);
  --primary-dark: #6d96f0;
  --primary-light: #b3ccff;
  --primary-soft: var(--blue-soft);

  --accent: var(--red);
  --accent-dark: var(--red-deep);
  --accent-soft: var(--red-soft);

  --glow-accent: var(--glow-blue);
}

/* ---------- Layout classes used on EB-5 pages ---------- */
/* (equivalents of the main site's .card-grid, .section-head, hero styles) */

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.section-header {
  max-width: 720px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.4rem);
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.9rem;
}

.section-subtitle {
  color: var(--muted);
}

.section-soft {
  background: color-mix(in srgb, var(--bg-soft) 55%, transparent);
}

.hero-center {
  text-align: center;
}

/* Hero: breathing room under the CTAs + tinted background that fades
   down and blends into the page instead of ending abruptly */
.hero {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary) 10%, transparent) 0%,
    color-mix(in srgb, var(--primary) 5%, transparent) 45%,
    transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 1.3rem auto 2rem;
}

.hero-center .hero-actions {
  justify-content: center;
}

/* ---------- EB-5 components ---------- */

/* Secondary button — mirrors the main site's ghost button style */
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* Highlighted card — soft red/amber wash like the main CTA banner */
.card-highlight {
  background: linear-gradient(130deg, color-mix(in srgb, var(--red) 12%, var(--surface)), color-mix(in srgb, var(--amber) 10%, var(--surface)) 60%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--red) 30%, var(--line));
}

.card-highlight:hover {
  border-color: color-mix(in srgb, var(--red) 55%, var(--line));
}

/* Big investment figures */
.amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--red);
  margin: 0.8rem 0 1rem;
  letter-spacing: -0.01em;
}

/* Duration label on timeline cards */
.duration {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid color-mix(in srgb, var(--red) 25%, var(--line));
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.9rem;
  margin: 0.4rem 0 0.8rem;
}

/* Checklist used on EB-5 pages */
ul.feature-list {
  display: block;
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

ul.feature-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

ul.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* CTA box — styled like the main site's cta-banner */
.cta-box {
  position: relative;
  border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(130deg, color-mix(in srgb, var(--red) 22%, var(--surface)), color-mix(in srgb, var(--amber) 16%, var(--surface)) 60%, var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 0.7rem;
}

.cta-box p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 1.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid {
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .section-header {
    margin-bottom: 1.6rem;
  }

  .cta-box {
    padding: 2rem 1.3rem;
    border-radius: 20px;
  }
}
