/* =========================================================
   Home page — brand-first hero, paths, catalog, motion
   Fonts: Fraunces (display) + Outfit (UI) — loaded on home only
   ========================================================= */

:root {
  --home-ink: #0b1220;
  --home-navy: #0f2557;
  --home-blue: #1a56db;
  --home-sky: #38bdf8;
  --home-amber: #f5b942;
  --home-cream: #f7f5f0;
  --home-muted: #64748b;
  --home-radius: 1.15rem;
}

/* ----- Hero ----- */
.home-hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(245, 185, 66, 0.12), transparent 50%),
    linear-gradient(155deg, #071536 0%, var(--home-navy) 42%, #123a7a 78%, #0c4a6e 100%);
}

.home-hero__glow {
  position: absolute;
  inset: -20% -10% auto 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.45), transparent 65%);
  animation: home-glow-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  animation: home-grid-pan 28s linear infinite;
  pointer-events: none;
  opacity: 0.7;
}

@keyframes home-glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 6%) scale(1.12); }
}

@keyframes home-grid-pan {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  text-align: center;
  padding: 5.5rem 1rem 4.5rem;
}

.home-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
  margin-bottom: 1.5rem;
}

.home-hero__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.home-hero__title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  color: #fff;
}

.home-hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--home-amber);
}

.home-hero__lede {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.home-btn {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.home-btn--accent {
  background: var(--home-amber);
  color: var(--home-ink);
  box-shadow: 0 8px 28px rgba(245, 185, 66, 0.35);
}

.home-btn--accent:hover {
  color: var(--home-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 185, 66, 0.45);
}

.home-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.home-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.home-hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.home-hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--home-amber);
  animation: home-scroll-dot 1.6s ease-in-out infinite;
}

@keyframes home-scroll-dot {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* ----- Reveal motion ----- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__glow,
  .home-hero__grid,
  .home-hero__scroll span {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----- Paths ----- */
.home-paths {
  background: #eef2f7;
  padding: 4.5rem 0 3.5rem;
}

.home-section-head {
  margin-bottom: 2rem;
}

.home-section-head--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.home-eyebrow {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-blue);
  margin-bottom: 0.4rem;
}

.home-section-head h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: var(--home-ink);
  margin: 0;
  letter-spacing: -0.02em;
}

.home-section-head__sub {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--home-muted);
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.home-paths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .home-paths__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-path {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--home-radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(15, 37, 87, 0.08);
  box-shadow: 0 4px 24px rgba(15, 37, 87, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-path:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 37, 87, 0.1);
  color: inherit;
}

.home-path__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e8eefc;
  color: var(--home-blue);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.home-path--cert .home-path__icon {
  background: #fff4de;
  color: #b45309;
}

.home-path h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--home-ink);
}

.home-path p {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--home-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.home-path__go {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--home-blue);
}

.home-path--cert .home-path__go {
  color: #b45309;
}

/* ----- Trust strip ----- */
.home-trust {
  background: #fff;
  border-bottom: 1px solid rgba(15, 37, 87, 0.08);
  padding: 1rem 0;
}

.home-trust__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 1.25rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--home-muted);
}

.home-trust__row strong {
  color: var(--home-navy);
  font-weight: 600;
}

.home-trust__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* ----- Catalog ----- */
.home-catalog {
  background: #f3f6fb;
  padding: 4rem 0 4.5rem;
}

.home-catalog--certs {
  background: #fff;
}

.home-link-all {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--home-blue);
  text-decoration: none;
}

.home-link-all:hover {
  color: var(--home-navy);
}

.home-link-all--muted {
  color: var(--home-muted);
  font-weight: 500;
}

.home-featured {
  margin-bottom: 2rem;
}

.home-featured__row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .home-featured__row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-featured__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 37, 87, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-featured__item:hover {
  border-color: rgba(26, 86, 219, 0.35);
  transform: translateY(-2px);
  color: inherit;
}

.home-featured__item strong {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--home-ink);
}

.home-featured__item span {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.8rem;
  color: var(--home-muted);
}

/* Cards — interaction containers only */
.home-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--home-radius);
  overflow: hidden;
  border: 1px solid rgba(15, 37, 87, 0.07);
  box-shadow: 0 2px 18px rgba(15, 37, 87, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 37, 87, 0.12);
}

.home-card__media {
  display: block;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.home-card__media--cert {
  height: 150px;
}

.home-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-card:hover .home-card__media img {
  transform: scale(1.05);
}

.home-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #dbeafe, #e0f2fe);
  color: var(--home-blue);
  font-size: 3.5rem;
  opacity: 0.55;
}

.home-card__placeholder--cert {
  background: linear-gradient(145deg, #ffedd5, #fef3c7);
  color: #d97706;
}

.home-card__ribbon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--home-amber);
  color: var(--home-ink);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.home-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.home-card__cat {
  align-self: flex-start;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--home-blue);
  background: #eff6ff;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

.home-card__cat--cert {
  color: #c2410c;
  background: #fff7ed;
}

.home-card__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.home-card__title a {
  color: var(--home-ink);
  text-decoration: none;
}

.home-card__title a:hover {
  color: var(--home-blue);
}

.home-card__desc {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--home-muted);
  line-height: 1.5;
  margin: 0 0 0.85rem;
  flex-grow: 1;
}

.home-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--home-muted);
  margin-bottom: 1rem;
}

.home-card__btn {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--home-navy);
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  transition: background 0.2s ease;
}

.home-card__btn:hover {
  background: var(--home-blue);
  color: #fff;
}

.home-card__btn--cert {
  background: #b45309;
}

.home-card__btn--cert:hover {
  background: #d97706;
  color: #fff;
}
