/* ==========================================================================
   Bcallvn — Pricing page
   --------------------------------------------------------------------------
   Page-specific styles for resources/views/pages/pricing.blade.php.
   Uses the shared design tokens defined in base.css (colours, spacing,
   radii, shadows, motion) so it tracks the light/dark theme automatically.
   Class names are the BEM-ish set the Blade template already emits:
     .pricing-page / .pricing-container / .pricing-intro / .currency-switch
     .pricing-grid / .pricing-card / .pricing-features
     .pricing-rate-strip / .support-section / .services-section
     .quote-section / .quote-form-* / .pricing-submit
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page shell
   -------------------------------------------------------------------------- */

.pricing-page {
  padding-block: var(--section-y);
  background: var(--glow) no-repeat top center;
}

.pricing-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   2. Intro / hero
   -------------------------------------------------------------------------- */

.pricing-intro {
  text-align: center;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: var(--sp-9);
}

.pricing-intro h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
  text-wrap: balance;
}

.pricing-intro p {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40rem;
  margin-inline: auto;
}

/* Currency toggle */
.currency-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: var(--sp-6);
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.currency-switch__button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.currency-switch__button:hover { color: var(--text); }

.currency-switch__button.is-active {
  background: var(--brand-gradient);
  color: var(--on-brand);
  box-shadow: var(--shadow-accent);
}

.currency-note {
  display: block;
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   3. Card grids
   -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  gap: var(--sp-5);
}

.pricing-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   4. Pricing card
   -------------------------------------------------------------------------- */

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.35rem 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-brand);
  background: var(--brand-gradient);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-accent);
}

.pricing-card__header { margin-bottom: var(--sp-4); }

.pricing-card__header h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.pricing-card__meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.pricing-card__from {
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}

.pricing-card__price [data-price] {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.pricing-card__suffix {
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}

.pricing-card__description {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

/* Feature list */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1 1 auto;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-features__check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: var(--r-pill);
  color: var(--success);
  background: var(--success-soft);
}

/* Footer */
.pricing-card__footer {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.pricing-card__best {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.pricing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  transition: transform var(--t-fast) var(--ease),
              filter var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.pricing-button:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: var(--accent);
}

.pricing-button--primary {
  background: var(--brand-gradient);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: var(--shadow-accent);
}

.pricing-button--primary:hover {
  color: var(--on-brand);
  filter: brightness(1.05);
}

/* --------------------------------------------------------------------------
   5. Quick rate strip
   -------------------------------------------------------------------------- */

.pricing-rate-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.pricing-rate-strip__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 1 1 20rem;
  font-size: var(--fs-sm);
}

.pricing-rate-strip__item + .pricing-rate-strip__item {
  padding-left: var(--sp-4);
  border-left: 1px solid var(--border);
}

.pricing-rate-strip__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: var(--r-pill);
  flex: none;
}

.pricing-rate-strip__dot--red { background: var(--brand-red); }
.pricing-rate-strip__dot--orange { background: var(--brand-orange); }

.pricing-rate-strip__item strong { color: var(--text); }

.pricing-rate-strip__tag {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.pricing-rate-strip__tag--hot {
  color: var(--on-brand);
  background: var(--brand-gradient);
  border-color: transparent;
}

.pricing-rate-strip__value {
  margin-left: auto;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Section heading (eyebrow + title + lead)
   -------------------------------------------------------------------------- */

.support-section,
.services-section { margin-top: var(--sp-10); }

.pricing-section-heading {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: var(--sp-7);
}

.pricing-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.pricing-section-heading h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
}

.pricing-section-heading p {
  color: var(--text-muted);
  font-size: var(--fs-md);
}

.pricing-card--support .pricing-card__header h2 { font-size: var(--fs-lg); }

/* --------------------------------------------------------------------------
   7. Services grid
   -------------------------------------------------------------------------- */

.services-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.services-heading h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
}

.services-heading p {
  color: var(--text-muted);
  max-width: 42rem;
}

.services-count {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  white-space: nowrap;
}

.services-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: var(--fs-md);
  font-weight: 800;
  border-radius: var(--r-md);
  color: var(--on-brand);
  background: var(--brand-gradient);
}

.service-card__badge {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.service-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  flex: 1 1 auto;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
}

.service-card a span { transition: transform var(--t-fast) var(--ease); }
.service-card a:hover span { transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   8. Estimate / quote form
   -------------------------------------------------------------------------- */

.quote-section {
  margin-top: var(--sp-10);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.quote-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  align-items: center;
}

.quote-intro {
  position: relative;
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.quote-intro h2 {
  font-size: var(--fs-2xl);
  margin: var(--sp-3) 0;
}

.quote-intro > p {
  color: var(--text-muted);
  font-size: var(--fs-md);
  margin: 0 auto;
  max-width: 40rem;
}

.quote-next {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.quote-next__title {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-4);
}

.quote-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
}

.quote-step span {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 800;
  border-radius: var(--r-pill);
  color: var(--on-brand);
  background: var(--brand-gradient);
}

.quote-step p { color: var(--text-muted); font-size: var(--fs-sm); }

.quote-trust {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.quote-trust > span {
  color: var(--brand-orange);
  font-size: 0.7rem;
}

.quote-trust small {
  margin-left: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.quote-trust small strong { color: var(--text); }

/* Form card */
.quote-form-card {
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.quote-form-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-form-grid .field { display: flex; flex-direction: column; }
.quote-form-grid .field--full { grid-column: 1 / -1; }

.quote-form-card .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-2);
}

.quote-form-card .label span { color: var(--brand-red); }

.quote-form-card .input,
.quote-form-card .select,
.quote-form-card .textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.quote-form-card .textarea { min-height: 130px; resize: vertical; }

.quote-form-card .input::placeholder,
.quote-form-card .textarea::placeholder { color: var(--text-subtle); }

.quote-form-card .input:focus,
.quote-form-card .select:focus,
.quote-form-card .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.quote-form-card .is-invalid { border-color: var(--brand-red); }

.field__error {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--danger);
}

/* Consent checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.check input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.check > span { flex: 1; }
.check a { color: var(--accent); text-decoration: underline; }

/* Honeypot — visually hidden, still in the DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer / submit */
.quote-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.quote-form-footer p {
  flex: 1 1 14rem;
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  line-height: 1.5;
}

.pricing-submit {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  color: var(--on-brand);
  background: var(--brand-gradient);
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-accent);
  transition: transform var(--t-fast) var(--ease),
              filter var(--t-fast) var(--ease);
}

.pricing-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pricing-submit:disabled { opacity: 0.65; cursor: progress; transform: none; }
.pricing-submit span { transition: transform var(--t-fast) var(--ease); }
.pricing-submit:hover span { transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   9. Prose blocks (replaces the old inline <br/> spacing)

   Base h2/p/ul carry no margins, so vertical rhythm here is owned by these
   wrappers rather than manual <br/> tags in the markup.
   -------------------------------------------------------------------------- */

.prose-block { max-width: 60rem; }
.prose-block > h2 { margin-bottom: var(--sp-4); }
.prose-block > p { line-height: 1.7; }
.prose-block > p + p { margin-top: var(--sp-3); }

/* Spacing between stacked prose blocks / a prose block and the grid that
   follows it, without relying on <br/>. */
.prose-block--spaced { margin-top: var(--sp-8); }
.section-head--spaced { margin-top: var(--sp-9); }

/* Detailed check-list: a little more breathing room between multi-line items. */
.check-list--detailed li + li { margin-top: var(--sp-3); }
.check-list--detailed li { line-height: 1.6; }

/* Card headings on this page sit directly above a list/paragraph; base h2 has
   no margin, so add a gap. Also space the engagement-model cards' paragraphs. */
.card > h2 { margin-bottom: var(--sp-4); }
.card > h3 { margin-bottom: var(--sp-3); }
.card > p + p { margin-top: var(--sp-3); }
.card > p { line-height: 1.6; }

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .quote-form-grid { grid-template-columns: 1fr; }

  .quote-form-footer { flex-direction: column; align-items: stretch; }
  .quote-form-footer .pricing-submit { margin-left: 0; width: 100%; }

  .services-heading { align-items: flex-start; }

  .pricing-rate-strip__item + .pricing-rate-strip__item {
    padding-left: 0;
    border-left: 0;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
  }

  .pricing-rate-strip__value { margin-left: 0; }
}
