/**
 * Mac Angelo — Pricing Page Styles
 * Covers: page-pricing.php
 *
 * BEM prefix: .ma-pr-*
 * Note: Global .ma-accordion styles live in header-footer.css.
 *
 * @package mac-angelo-child
 * @version 1.0.0
 */

/* ============================================================
   S1 — HERO
   ============================================================ */
.ma-pr-hero {
  background: var(--ma-offwhite, #F9F9F6);
  padding: clamp(52px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ma-pr-hero__geo-tl {
  position: absolute; top: 0; left: 0;
  width: clamp(180px, 22vw, 360px);
  height: clamp(120px, 15vw, 240px);
  background: linear-gradient(135deg, rgba(201,168,76,0.09) 0%, transparent 70%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}
.ma-pr-hero__geo-br {
  position: absolute; bottom: 0; right: 0;
  width: clamp(160px, 18vw, 280px);
  height: clamp(100px, 12vw, 200px);
  background: linear-gradient(315deg, rgba(107,63,160,0.07) 0%, transparent 70%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.ma-pr-hero__inner {
  max-width: var(--ma-max-w, 1280px);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
  position: relative;
  z-index: 1;
}
.ma-pr-hero__headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0.5em 0 0.6em;
}
.ma-pr-hero__headline br { display: block; }
.ma-pr-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  color: #6B6B6B;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 0 2rem;
}
.ma-pr-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}
.ma-pr-hero__trust {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 20px;
}
.ma-pr-hero__trust li {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6B6B6B;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ma-pr-hero__trust span { color: #1A9F9F; font-weight: 700; }

/* ============================================================
   S2 — PRICING TIERS
   ============================================================ */
.ma-pr-packages {
  background: #fff;
  padding: clamp(56px, 7vw, 96px) 0;
}
.ma-pr-packages__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

.ma-pr-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(32px, 4vw, 52px);
  align-items: start;
}

/* Tier card */
.ma-pr-tier {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ma-pr-tier:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* Popular tier — gold ring + lifted by default */
.ma-pr-tier--popular {
  border-color: #C9A84C;
  box-shadow: 0 8px 40px rgba(201,168,76,0.18);
  transform: translateY(-8px);
}
.ma-pr-tier--popular:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(201,168,76,0.22);
}

.ma-pr-tier__popular-badge {
  background: #C9A84C;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 6px 0;
}

.ma-pr-tier__header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--tier-bg, rgba(201,168,76,0.05));
}
.ma-pr-tier__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1A1A1A;
  margin: 0 0 4px;
}
.ma-pr-tier__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6B6B6B;
  line-height: 1.5;
  margin: 0 0 20px;
}

.ma-pr-tier__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.ma-pr-tier__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: var(--tier-color, #C9A84C);
  line-height: 1;
}
.ma-pr-tier__period {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #9B9B9B;
}
.ma-pr-tier__note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #A8A8A0;
  margin: 0;
}

/* Includes list */
.ma-pr-tier__list {
  list-style: none;
  margin: 0;
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ma-pr-tier__list li {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #3A3A3A;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.ma-pr-tier__list .fa-check {
  font-size: 11px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Footer */
.ma-pr-tier__footer {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ma-pr-tier__best-for {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6B6B6B;
  line-height: 1.5;
  margin: 0 0 16px;
}
.ma-pr-tier__best-for strong { color: #3A3A3A; }

/* Outline button variant for non-popular tiers */
.ma-btn--outline {
  background: transparent;
  border: 1.5px solid var(--btn-border-color, #C9A84C);
  color: var(--btn-text-color, #C9A84C) !important;
}
.ma-btn--outline:hover {
  background: var(--btn-border-color, #C9A84C);
  color: #fff !important;
}

/* Enterprise strip */
.ma-pr-enterprise {
  margin-top: 28px;
  background: var(--ma-offwhite, #F9F9F6);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ma-pr-enterprise__content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}
.ma-pr-enterprise__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(201,168,76,0.10);
  color: #C9A84C;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ma-pr-enterprise__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 4px;
}
.ma-pr-enterprise__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   S3 — HOW PRICING WORKS
   ============================================================ */
.ma-pr-how {
  background: var(--ma-offwhite, #F9F9F6);
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ma-pr-how__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

.ma-pr-how__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(32px, 4vw, 48px);
}

.ma-pr-how-pillar {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 28px 24px;
}
.ma-pr-how-pillar__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #C9A84C;
  line-height: 1;
  margin-bottom: 12px;
}
.ma-pr-how-pillar__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 8px;
}
.ma-pr-how-pillar__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.65;
  margin: 0;
}

.ma-pr-how__cta-strip {
  margin-top: 40px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ma-pr-how__cta-strip p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #4A4A4A;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 240px;
}

/* ============================================================
   S4 — SERVICE PRICING REFERENCE
   ============================================================ */
.ma-pr-reference {
  background: #fff;
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ma-pr-reference__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

.ma-pr-ref-list {
  margin-top: clamp(32px, 4vw, 48px);
}

/* Accordion trigger override for reference section */
.ma-pr-ref-trigger {
  padding: 18px 4px !important;
}

/* Per-category hover + active colour (overrides global teal) */
.ma-pr-ref-accordion .ma-accordion__trigger:hover,
.ma-pr-ref-accordion .ma-accordion__item.is-open .ma-accordion__trigger {
  color: var(--ref-color, #C9A84C) !important;
}
.ma-pr-ref-trigger__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ma-pr-ref-trigger__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* Reference table wrapper — rounded border around each table */
.ma-pr-ref-table-wrap {
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
}

/* Remove default accordion item borders (table-wrap provides separation) */
.ma-pr-ref-accordion .ma-accordion__item {
  border-top: none !important;
  border-bottom: none !important;
}
.ma-pr-ref-accordion .ma-accordion__item + .ma-accordion__item {
  border-top: 1px solid rgba(0,0,0,0.06) !important;
}
.ma-pr-ref-accordion .ma-accordion__panel {
  padding: 0;
}
.ma-pr-ref-accordion .ma-accordion__item.is-open .ma-accordion__panel {
  padding: 8px 0 16px;
}

.ma-pr-ref-table {
  width: 100%;
  border-collapse: collapse;
}
.ma-pr-ref-table {
  margin-block-end: 0 !important;
}

.ma-pr-ref-table th,
.ma-pr-ref-table td {
  border: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  border-block-start: none !important;
}

.ma-pr-ref-table th {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9B9B9B;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ma-pr-ref-table td {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #3A3A3A;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  vertical-align: top;
}
.ma-pr-ref-table tr:last-child td { border-bottom: none !important; }
.ma-pr-ref-table td:first-child { font-weight: 500; }
.ma-pr-ref-table td:last-child { color: #9B9B9B; font-size: 13px; }

.ma-pr-ref-model {
  font-weight: 600;
  font-size: 13px;
}

/* ============================================================
   S5 — FAQ
   ============================================================ */
.ma-pr-faq {
  background: var(--ma-offwhite, #F9F9F6);
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ma-pr-faq__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}
.ma-pr-faq__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  margin-top: clamp(32px, 4vw, 48px);
}
.ma-pr-faq__list { flex: 1; }

.ma-pr-faq__sidebar {
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
}
.ma-pr-faq__sidebar-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.ma-pr-faq__sidebar-icon {
  font-size: 32px;
  color: #C9A84C;
}
.ma-pr-faq__sidebar-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}
.ma-pr-faq__sidebar-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.6;
  margin: 0;
}
.ma-pr-faq__sidebar-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6B6B6B;
  text-decoration: none;
  display: block;
}
.ma-pr-faq__sidebar-link:hover { color: #C9A84C; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ma-pr-tier-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .ma-pr-tier--popular {
    transform: none;
    order: -1;
  }
  .ma-pr-tier--popular:hover {
    transform: translateY(-3px);
  }
  .ma-pr-how__pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .ma-pr-faq__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ma-pr-faq__sidebar {
    position: static;
    order: -1;
  }
  .ma-pr-faq__sidebar-card {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
  }
  .ma-pr-how__cta-strip {
    flex-direction: column;
    text-align: center;
  }
  .ma-pr-enterprise {
    flex-direction: column;
    align-items: flex-start;
  }
  .ma-pr-ref-table th:last-child,
  .ma-pr-ref-table td:last-child {
    display: none;
  }
  .ma-pr-hero__headline br { display: none; }
}
