/* =========================================================
   EPA HOME ENHANCE — homepage-only polish
   Hero accents + section imagery treatments.
   Reuses existing design tokens (--epa-*, --sp-*, --radius-*).
   Layout/responsive grids live in global-bundle.css + responsive.css.
   ========================================================= */

/* ── Hero: split layout shell ─────────────────────────────── */
.hero--split {
  padding: calc(var(--header-height) + var(--sp-14)) 0 var(--sp-20);
}

.hero__content .badge {
  display: inline-flex;
  align-items: center;
}

.hero__title {
  background: none;
}

/* Decorative gradient blobs behind the hero (purely cosmetic) */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero__blob--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--epa-primary-glow) 0%, transparent 70%);
}

.hero__blob--2 {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

/* ── Hero: visual column ──────────────────────────────────── */
.hero__visual {
  position: relative;
  max-width: 460px;
  margin-left: auto;
}

.hero__image-card {
  padding: var(--sp-3);
  transform: rotate(1.5deg);
}

.hero__image-card img {
  aspect-ratio: 5 / 6;
  height: auto;
  display: block;
}

/* Floating glass accent cards */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3) var(--sp-4);
  z-index: 2;
  animation: heroFloat 5s ease-in-out infinite;
}

.hero__float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero__float-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--epa-text);
}

.hero__float-text span {
  font-size: 0.72rem;
  color: var(--epa-text-muted);
}

.hero__float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.hero__float-icon--amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.hero__float-icon--green { background: linear-gradient(135deg, #059669, #10b981); }

.hero__float--rating    { top: 8%;  left: -8%;  animation-delay: 0s; }
.hero__float--students  { bottom: 14%; left: -12%; animation-delay: 0.8s; }
.hero__float--selection { bottom: -4%; right: -6%; animation-delay: 1.6s; }

.hero__avatars {
  display: flex;
  align-items: center;
}

.hero__avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -10px;
}

.hero__avatars img:first-child { margin-left: 0; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── About section: framed image ──────────────────────────── */
.home-inline-39 {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ── Course pathway cards: icon halo lift ─────────────────── */
.nav-card__icon {
  position: relative;
  transition: transform var(--t-normal, 300ms);
}

.nav-card:hover .nav-card__icon {
  transform: scale(1.08) rotate(-4deg);
}

/* ── Success story cards: student avatar ──────────────────── */
.success-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-4);
}

/* ── Dream college tiles: real imagery + responsive sizing ── */
.college-tile {
  width: clamp(120px, 40vw, 156px);
  height: clamp(120px, 40vw, 156px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-normal, 300ms), box-shadow var(--t-normal, 300ms);
}

.college-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.college-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 30%, rgba(15, 23, 42, 0.82) 100%);
  z-index: 1;
}

.college-tile strong {
  position: relative;
  z-index: 2;
  padding-bottom: var(--sp-4);
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.college-tile:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* ── Testimonials: author row with avatar ─────────────────── */
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.testimonial__author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial__author strong { font-size: 0.9rem; }

/* ── CTA block: atmospheric background image ──────────────── */
.home-inline-84 {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-inline-84::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&q=80&w=1200") center/cover no-repeat;
  opacity: 0.16;
  z-index: -1;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet & below: hero collapses to one column (handled in
   responsive.css). Center the visual and tame the floats. */
@media (max-width: 992px) {
  .hero__visual {
    margin: var(--sp-8) auto 0;
  }
  .hero__float--rating    { left: 0; }
  .hero__float--students  { left: -4%; }
  .hero__float--selection { right: 0; }
}

@media (max-width: 768px) {
  .hero--split {
    padding-top: calc(var(--header-height) + var(--sp-8));
    text-align: center;
  }
  .hero__content .hero__desc,
  .hero__content .hero__features {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__features {
    display: inline-flex;
    text-align: left;
  }
  .hero__actions,
  .hero__trust {
    justify-content: center;
  }
  /* Floats can crowd small screens — keep only the rating chip,
     reposition it safely inside the frame. */
  .hero__float--students,
  .hero__float--selection {
    display: none;
  }
  .hero__float--rating {
    top: auto;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    animation: none;
  }
  .hero__image-card {
    transform: none;
  }
}

@media (max-width: 420px) {
  .hero__float--rating { display: none; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero__float {
    animation: none;
  }
}
