/* ============================================================
   COMPONENT: Portfolio / Success Highlights
   FILE: assets/css/portfolio.css
   Depends on: portfolio.html.
   Loaded after process.css (Phase 1.0 §6, in build order).

   Global Card System: `.surface--solid` (surfaces.css) supplies
   the card's white background, hairline border, radius and
   resting shadow — same convention benefits.css/services.css
   already use. Only card-specific layout (icon badge, internal
   spacing) is added here, scoped under .portfolio__card —
   nothing here redefines the surface system itself.

   Section background is light-gray, continuing the white/
   light-gray alternation already established by Statistics
   (white) -> Partners (light-gray) -> Benefits (white) ->
   Services (light-gray) -> Process (white) above it.

   Stage 5.10 correction (Correction #3 — Navy visual rhythm):
   this section's background is now the same navy/gold gradient
   Hero already uses (surfaces.css's .surface--gradient formula,
   copied here rather than referenced as a class so component CSS
   load order can't silently override it) — the second of three
   strategic Navy breaks on the Homepage, not a new color system.
   Heading/subheading text below is switched to white/near-white to
   stay readable on navy; cards keep their existing opaque white
   .surface--solid treatment, so in-card text/icons are unaffected.

   Card = informational (a plain <li>, not a link): same
   convention benefits.css uses, since these are category
   highlights rather than individual destination pages. The path
   to the full Portfolio page is the single .portfolio__cta below
   the grid instead, styled with nothing but the existing global
   .btn / .btn--primary / .btn--lg classes from buttons.css — no
   new button variant is introduced here.

   No new JavaScript: this section has no motion/stagger hook and
   no .js-motion-ready toggle, unlike Statistics/Benefits/
   Services/Process — the cards are simply visible, matching the
   "static HTML/CSS is enough, do not add JavaScript" rule for
   this stage. The hover states below are pure CSS `:hover`.
   ============================================================ */

.portfolio {
  background:
    radial-gradient(circle at 78% 25%, rgba(var(--color-gold-rgb), 0.14), transparent 28%),
    linear-gradient(120deg, #061a32 0%, var(--color-navy) 52%, #153c62 100%);
  padding-block: var(--space-10);
}

.portfolio__inner {
  text-align: center;
}

.portfolio__heading {
  margin: 0 0 var(--space-2);
  color: var(--color-white);
  font-size: var(--text-h3);
}

.portfolio__subheading {
  max-width: 640px;
  margin: 0 auto var(--space-6);
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-body);
}

/* ------------------------------------------------------------
   GRID
   Single column on mobile, 2 columns on tablet, 4 across on
   desktop for the four highlight cards — mirrors the
   column-count progression already used by Statistics/Partners/
   Benefits/Services.
------------------------------------------------------------ */
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);

  list-style: none;
}

/* ------------------------------------------------------------
   CARD
------------------------------------------------------------ */
.portfolio__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: left;

  transition:
    border-color var(--duration-fast) var(--ease-premium),
    box-shadow var(--duration-fast) var(--ease-premium),
    transform var(--duration-fast) var(--ease-premium);
}

.portfolio__card:hover {
  border-color: rgba(var(--color-navy-rgb), 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.portfolio__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: rgba(var(--color-gold-rgb), 0.12);
  color: var(--color-gold);
}

.portfolio__icon svg {
  width: 24px;
  height: 24px;
}

.portfolio__title {
  margin: 0;
  color: var(--color-navy);
  font-size: 1.125rem;
  line-height: var(--line-height-heading);
}

.portfolio__text {
  margin: 0;
  color: var(--color-dark-gray);
  font-size: var(--text-small);
  line-height: var(--line-height-body);
}

/* ------------------------------------------------------------
   CTA
   Reuses the existing global .btn system exactly as hero.html's
   CTAs do — centered below the grid as the section's single,
   clear path to the full Portfolio page.
------------------------------------------------------------ */
.portfolio__cta-wrap {
  margin-top: var(--space-6);
}

/* ------------------------------------------------------------
   RESPONSIVE
   Breakpoint values copied from tokens.css's documented
   reference values, same convention benefits.css/services.css
   use.
------------------------------------------------------------ */

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* Desktop and up: 4 across */
@media (min-width: 1024px) {
  .portfolio {
    padding-block: var(--space-12);
  }

  .portfolio__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }

  .portfolio__card {
    padding: var(--space-5);
  }

  .portfolio__cta-wrap {
    margin-top: var(--space-8);
  }
}

/* Small mobile: tighten spacing, keep cards compact */
@media (max-width: 479px) {
  .portfolio {
    padding-block: var(--space-8);
  }

  .portfolio__grid {
    gap: var(--space-3);
  }

  .portfolio__card {
    padding: var(--space-3);
  }
}

/* ------------------------------------------------------------
   REDUCED MOTION
   Same convention as benefits.css/services.css: the hover lift
   is removed for users who have requested less motion, while
   state changes that aren't motion (border/shadow) remain.
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .portfolio__card:hover {
    transform: none;
  }
}
