/*
 * bn-pricing.css — Pricing page styles
 * Loaded only on /pricing.php
 * Relies on bn-style.css CSS variables and shared components.
 */

/* ── PAGE HERO ────────────────────────────────────────────── */

.pricing-hero {
  padding: 132px 24px 72px;
  text-align: center;
}

.pricing-hero__inner {
  max-width: 640px;
  margin: 0 auto;
}

.pricing-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bn-acc-text);
  margin-bottom: 20px;
}

.pricing-hero__headline {
  font-family: var(--bn-font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--bn-text);
  margin-bottom: 20px;
}

.pricing-hero__sub {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--bn-text-muted);
  line-height: 1.7;
}

/* ── SHARED SECTION WRAPPER ───────────────────────────────── */

.pricing-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-section + .pricing-section {
  padding-top: 0;
}

.pricing-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bn-acc-text);
  margin-bottom: 12px;
}

.pricing-section__headline {
  font-family: var(--bn-font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bn-text);
  margin-bottom: 8px;
}

.pricing-section__sub {
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ── PROJECT CARDS (Web Design / AI & Creative) ───────────── */

.pricing-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Single centered project card (e.g. the custom-quote AI & creative card) */
.pricing-project-grid--solo {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.pricing-project-card {
  background: var(--bn-surf);
  border: 1px solid var(--bn-bdr);
  border-radius: 12px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.pricing-project-card--featured {
  border-color: var(--bn-acc);
}

.pricing-project-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bn-acc-text);
  margin-bottom: 20px;
}

.pricing-project-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.pricing-project-card__from {
  font-size: 14px;
  color: var(--bn-text-muted);
}

.pricing-project-card__num {
  font-family: var(--bn-font-display);
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--bn-text);
}

.pricing-project-card__unit {
  font-size: 15px;
  color: var(--bn-text-muted);
}

.pricing-project-card__note {
  font-size: 13px;
  color: var(--bn-text-faint);
  margin-bottom: 28px;
}

.pricing-project-card__divider {
  width: 28px;
  height: 3px;
  background: var(--bn-acc);
  border-radius: 2px;
  margin-bottom: 24px;
}

.pricing-project-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 36px;
}

.pricing-project-card__feature {
  font-size: 14px;
  color: var(--bn-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.pricing-project-card__feature::before {
  content: '✓';
  font-size: 11px;
  font-weight: 700;
  color: var(--bn-acc);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-project-card__cta {
  margin-top: auto;
}

/* ── MAINTENANCE PLANS ────────────────────────────────────── */
/* Reuses .plan-grid / .plan-card from bn-pages.css            */

.pricing-plans-wrap {
  background: var(--bn-surf);
  padding: 80px 24px;
}

.pricing-plans-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--bn-text-faint);
  margin-top: 24px;
  line-height: 1.6;
}

/* ── FAQ Accordion ────────────────────────────────────────── */

.pricing-faq {
  max-width: 720px;
  margin: 0 auto;
}

.pricing-faq__item {
  border-bottom: 1px solid var(--bn-bdr);
  transition: border-color var(--bn-transition);
}

.pricing-faq__item:first-child {
  border-top: 1px solid var(--bn-bdr);
}

/* Trigger button */
.pricing-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--bn-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--bn-text);
  line-height: 1.4;
  touch-action: manipulation;
  transition: color var(--bn-transition);
}

.pricing-faq__btn:hover {
  color: var(--bn-acc);
}

/* Chevron icon — rotates 180° when open */
.pricing-faq__chevron {
  flex-shrink: 0;
  color: var(--bn-text-faint);
  transition: transform 280ms ease, color var(--bn-transition);
}

.pricing-faq__item--open .pricing-faq__chevron {
  transform: rotate(180deg);
  color: var(--bn-acc);
}

/* Collapsible body — CSS grid trick for smooth height animation */
.pricing-faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
  overflow: hidden;
}

.pricing-faq__item--open .pricing-faq__body {
  grid-template-rows: 1fr;
}

.pricing-faq__body-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 300ms ease;
}

.pricing-faq__item--open .pricing-faq__body-inner {
  padding-bottom: 22px;
}

.pricing-faq__a {
  font-size: 15px;
  color: var(--bn-text-muted);
  line-height: 1.7;
  transition: color var(--bn-transition);
}

.pricing-faq__a a {
  color: var(--bn-acc);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Respect reduced motion — skip the animation, just show/hide */
@media (prefers-reduced-motion: reduce) {
  .pricing-faq__body,
  .pricing-faq__body-inner,
  .pricing-faq__chevron { transition-duration: 0.01ms !important; }
}

/* ── UTILITY CLASSES — replaces inline style= in pricing.php ─ */

/* Push element to bottom of a flex column */
.pricing-mt-auto  { margin-top: auto; }

/* Zero bottom margin override */
.pricing-mb-0     { margin-bottom: 0; }

/* Top spacing for platform labels */
.pricing-mt-32    { margin-top: 32px; }

/* Larger top spacing for a secondary block within a section */
.pricing-mt-48    { margin-top: 48px; }

/* Secondary heading (e.g. the "Also Available" creative block) */
.pricing-section__subhead {
  font-family: var(--bn-font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bn-text);
  margin-bottom: 8px;
}

/* Left-aligned fine-print note (maintenance exclusions, billing) */
.pricing-note--left {
  text-align: left;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Wide single card (Squarespace Care): price/desc left, features right */
.plan-grid--solo-wide {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  margin: 32px 0;
}
.plan-card--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  align-items: center;
}
.plan-card--wide__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
@media (max-width: 640px) {
  .plan-card--wide {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
}

/* Plan card header — name + badge side by side */
.plan-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

/* "Most Popular" / platform tag badge */
.plan-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bn-acc);
  border: 1px solid var(--bn-acc);
  border-radius: 4px;
  padding: 3px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Plans section header spacing */
.pricing-plans-header { margin-bottom: 40px; }

/* Pricing section — first section flush to hero */
.pricing-section--flush { padding-top: 0; }

/* FAQ header — centered */
.pricing-faq-header {
  margin-bottom: 48px;
  text-align: center;
}
.pricing-faq-header .pricing-section__eyebrow {
  display: block;
  justify-content: center;
}
.pricing-faq-header .pricing-section__headline {
  max-width: none;
}


/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 700px) {
  .pricing-hero { padding: 96px 24px 56px; }

  .pricing-project-grid {
    grid-template-columns: 1fr;
  }

  .pricing-project-card {
    padding: 32px 24px;
  }

  .pricing-plans-wrap { padding: 56px 24px; }

  .pricing-section { padding: 56px 24px; }
  .pricing-section + .pricing-section { padding-top: 0; }
}
