/* ============================================================
   COMPONENT: Pricing / Packages (Home teaser)
   FILE: assets/css/pricing.css
   Depends on: pricing.html.
   Loaded after case-studies.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 portfolio.css/testimonials.css/
   case-studies.css already use. Only card-specific layout is
   added here, scoped under .pricing__card — nothing here
   redefines the surface system itself. The featured/middle card
   uses the same surface plus a gold accent border, no new card
   system.

   Section background is white, continuing the white/light-gray
   alternation established above (... Testimonials white ->
   Case Studies light-gray -> Pricing white) here.

   Card CTA: each card has its own inquiry CTA using the existing
   global .btn / .btn--primary / .btn--secondary classes
   (buttons.css) — the featured card uses .btn--primary, the
   other two use .btn--secondary, purely to visually distinguish
   the recommended package; no new button variant is introduced.
   The section-level "view full pricing" link reuses the existing
   .btn--tertiary class.

   No new JavaScript: this section has no motion hook, matching
   the "static HTML/CSS is enough, do not add JavaScript" rule
   Portfolio/Testimonials/Case Studies already follow. The hover
   states below are pure CSS `:hover`.

   RTL readiness (Stage 5.9 scope only): logical properties
   (text-align: start, margin-inline / padding-inline) are used
   instead of physical left/right, matching testimonials.css's/
   case-studies.css's convention, so this section reads correctly
   if an ancestor later sets dir="rtl" for Urdu content — no
   separate RTL stylesheet or breakpoint system is introduced.
   ============================================================ */

.pricing {
  background-color: var(--color-white);
  padding-block: var(--space-10);
}

.pricing__inner {
  text-align: center;
}

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

.pricing__subheading {
  max-width: 640px;
  margin-inline: auto;
  margin-block: 0 var(--space-6);
  color: var(--color-dark-gray);
  font-size: var(--text-body);
}

/* ------------------------------------------------------------
   GRID
   Single column on mobile, 2 columns on tablet, 3 across on
   desktop for the three package cards — mirrors the
   column-count progression already used by Testimonials/Case
   Studies (3-up desktop).
------------------------------------------------------------ */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);

  list-style: none;
}

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

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

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

/* Featured/middle package: same surface, gold accent border to
   draw the eye — no new card system, just a border-color override
   on the existing .surface--solid card. */
.pricing__card--featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.pricing__badge {
  margin: 0;
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background-color: rgba(var(--color-gold-rgb), 0.12);
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.pricing__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.pricing__price-label {
  color: var(--color-dark-gray);
  font-size: var(--text-small);
}

.pricing__price-amount {
  color: var(--color-navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: var(--line-height-heading);
}

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

.pricing__cta {
  margin-block-start: auto;
  padding-block-start: var(--space-2);
  align-self: stretch;
  text-align: center;
}

/* ------------------------------------------------------------
   SECTION CTA
   Reuses the existing global .btn--tertiary class — centered
   below the grid as the section's path to the full Pricing page.
------------------------------------------------------------ */
.pricing__cta-wrap {
  margin-block-start: var(--space-6);
}

/* ------------------------------------------------------------
   RESPONSIVE
   Breakpoint values copied from tokens.css's documented
   reference values, same convention portfolio.css/testimonials.css/
   case-studies.css use.
------------------------------------------------------------ */

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

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

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

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

  .pricing__cta-wrap {
    margin-block-start: var(--space-8);
  }
}

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

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

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

/* ------------------------------------------------------------
   REDUCED MOTION
   Same convention as portfolio.css/testimonials.css/
   case-studies.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) {
  .pricing__card:hover {
    transform: none;
  }
}
