/* =====================================================
   Master Lawyer - Fees & pricing page styles
   Page: fees.html
   Namespace: .fees-*
   Typography uses the role tokens from style.css (--font-display, --font-label,
   --font-body, --font-caption and their -weight / -stretch / -scale), so every
   font option in the customizer applies here too. Sizes are design sizes
   multiplied by the role scale and --screen-type.
   The FAQ uses the site's Bootstrap accordion styles from style.css; only
   its spacing and dividers are adjusted here.
   ===================================================== */

.fees,
.fees-models,
.fees-compare,
.fees-faq,
.fees-cta {
  --fees-gold: var(--gold);
  --fees-gold-text: var(--gold-text, #8a6420);
  --fees-ink: #262626;
  --fees-text: #5f5f5f;
  --fees-muted: #706d67;
  --fees-line: #e6e0d4;
  --fees-soft: #f7f5f1;
  --fees-dark: #191919;
  --fees-ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: var(--font-body);
  color: var(--fees-text);
}

/* ---------- Page heading & promises ---------- */

.fees {
  padding: 64px 0 64px;
  background: #fff;
}

.fees-head {
  max-width: 700px;
  margin-bottom: 44px;
}

.fees-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fees-gold-text);
}

.fees-title {
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: min(calc(56px * var(--font-display-scale) * var(--screen-type)), 11vw);
  line-height: 1.05;
  text-transform: var(--font-display-case);
  color: var(--fees-ink);
}

.fees-lead {
  margin: 0;
  font-size: calc(17px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.6;
}

.fees-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--fees-line);
  list-style: none;
}

.fees-promise {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fees-promise .ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fees-soft);
  font-size: 22px;
  color: var(--fees-gold-text);
}

.fees-promise__title {
  margin: 2px 0 4px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(18px * var(--font-label-scale) * var(--screen-type));
  line-height: 1.25;
  color: var(--fees-ink);
}

.fees-promise__text {
  margin: 0;
  font-family: var(--font-caption);
  font-weight: var(--font-caption-weight);
  font-stretch: var(--font-caption-stretch);
  font-size: calc(15px * var(--font-caption-scale) * var(--screen-type));
  line-height: 1.55;
}

/* ---------- Section headings ---------- */

.fees-section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.fees-section-title {
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: min(calc(42px * var(--font-display-scale) * var(--screen-type)), 9vw);
  line-height: 1.08;
  text-transform: var(--font-display-case);
  color: var(--fees-ink);
}

.fees-section-text {
  margin: 0;
  font-size: calc(16px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.6;
}

.fees-section-text a {
  color: var(--fees-ink);
  text-decoration: underline;
  text-decoration-color: var(--fees-gold);
  text-underline-offset: 4px;
  transition: color 0.3s var(--fees-ease);
}

.fees-section-text a:hover {
  color: var(--fees-gold-text);
}

/* ---------- Pricing models ---------- */

.fees-models {
  padding: 80px 0 90px;
  background: var(--fees-soft);
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fees-card {
  display: flex;
  flex-direction: column;
  padding: 34px 34px 30px;
  border: 1px solid var(--fees-line);
  border-radius: 10px;
  background: #fff;
}

.fees-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fees-line);
}

.fees-card__icon {
  font-size: 28px;
  color: var(--fees-gold);
}

.fees-card__title {
  margin: 0;
  padding: 0;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(22px * var(--font-label-scale) * var(--screen-type));
  line-height: 1.2;
  color: var(--fees-ink);
}

.fees-card__price {
  grid-column: 1 / -1;
  margin: 20px 0 6px;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: min(calc(64px * var(--font-display-scale) * var(--screen-type)), 13vw);
  line-height: 1;
  text-transform: var(--font-display-case);
  color: var(--fees-ink);
}

.fees-card__from {
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(15px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--fees-muted);
}

.fees-card__note {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-caption);
  font-weight: var(--font-caption-weight);
  font-stretch: var(--font-caption-stretch);
  font-size: calc(15px * var(--font-caption-scale) * var(--screen-type));
  color: var(--fees-muted);
}

.fees-card__details {
  margin: 0 0 24px;
}

.fees-card__details dt {
  margin: 0 0 6px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fees-gold-text);
}

.fees-card__details dd {
  margin: 0 0 20px;
  font-size: calc(15px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.6;
}

.fees-card__details dd:last-child {
  margin-bottom: 0;
}

.fees-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fees-card__list li {
  position: relative;
  padding-left: 20px;
}

.fees-card__list li + li {
  margin-top: 6px;
}

.fees-card__list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fees-gold);
}

.fees-card__rates {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fees-card__rates li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--fees-line);
}

.fees-card__rates li:first-child {
  padding-top: 2px;
}

.fees-card__rates li span:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--fees-ink);
}

.fees-card__example {
  margin-top: auto;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--fees-soft);
}

.fees-card__example p {
  margin: 0;
  font-family: var(--font-caption);
  font-weight: var(--font-caption-weight);
  font-stretch: var(--font-caption-stretch);
  font-size: calc(14px * var(--font-caption-scale) * var(--screen-type));
  line-height: 1.6;
}

.fees-card__example .fees-card__example-label {
  margin-bottom: 4px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(12px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fees-ink);
}

/* The contingency card is the model most first-time clients ask about. */
.fees-card--featured {
  border-color: var(--fees-dark);
  background: var(--fees-dark);
  color: #cfcfcf;
}

.fees-card--featured .fees-card__head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.fees-card--featured .fees-card__title,
.fees-card--featured .fees-card__example-label {
  color: #fff;
}

.fees-card--featured .fees-card__price,
.fees-card--featured .fees-card__details dt {
  color: var(--fees-gold);
}

.fees-card--featured .fees-card__note {
  color: #b5b0a6;
}

.fees-card--featured .fees-card__example {
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- Comparison table ---------- */

.fees-compare {
  padding: 80px 0 90px;
  background: #fff;
}

.fees-table-hint {
  display: none;
}

.fees-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--fees-line);
  border-radius: 10px;
}

.fees-table-wrap:focus-visible {
  outline: 2px solid var(--focus-ring-color, #b5852b);
  outline-offset: 3px;
}

.fees-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: calc(15px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.5;
}

.fees-table th,
.fees-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--fees-line);
  text-align: left;
  vertical-align: middle;
}

.fees-table tbody tr:last-child th,
.fees-table tbody tr:last-child td {
  border-bottom: 0;
}

.fees-table thead th {
  background: var(--fees-dark);
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}

.fees-table tbody th {
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(17px * var(--font-label-scale) * var(--screen-type));
  white-space: nowrap;
  color: var(--fees-ink);
}

.fees-table tbody th .ico {
  margin-right: 12px;
  font-size: 20px;
  vertical-align: -3px;
  color: var(--fees-gold);
}

/* The practice area stays in view while the other columns scroll. */
.fees-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.fees-table tbody th:first-child {
  background: #fff;
}

.fees-table tbody tr {
  transition: background-color 0.3s var(--fees-ease);
}

.fees-table tbody tr:hover,
.fees-table tbody tr:hover th:first-child {
  background: var(--fees-soft);
}

.fees-badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--fees-gold);
  border-radius: 999px;
  background: var(--fees-gold);
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #000;
}

.fees-badge--outline {
  background: transparent;
  color: var(--fees-gold-text);
}

.fees-badge--muted {
  border-color: var(--fees-line);
  background: transparent;
  color: var(--fees-ink);
}

/* ---------- FAQ ---------- */

.fees-faq {
  padding: 80px 0 70px;
  background: var(--fees-soft);
}

.fees-section-head--side {
  position: sticky;
  top: 110px;
}

.fees-faq .accordion-item {
  border-bottom: 1px solid var(--fees-line);
}

.fees-faq .accordion-item:first-child {
  border-top: 1px solid var(--fees-line);
}

.fees-faq .accordion .accordion-header {
  margin: 0;
}

.fees-faq .accordion .accordion-button {
  padding: 22px 40px 22px 0;
}

/* The open question uses the darker gold, which stays readable on the light
   background at this size. */
.fees-faq .accordion .accordion-button:not(.collapsed),
.fees-faq .accordion .accordion-button:not(.collapsed)::after {
  color: var(--fees-gold-text);
}

.fees-faq .accordion .accordion-body {
  padding: 0 40px 26px 0;
  color: var(--fees-text);
}

/* ---------- Closing call to action ---------- */

.fees-cta {
  padding: 80px 0;
  background: var(--fees-dark);
  color: #cfcfcf;
}

.fees-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
}

.fees-cta__copy {
  flex: 1 1 520px;
  max-width: 640px;
}

.fees-cta__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(13px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fees-gold);
}

.fees-cta__title {
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-stretch: var(--font-display-stretch);
  font-size: min(calc(46px * var(--font-display-scale) * var(--screen-type)), 9vw);
  line-height: 1.08;
  text-transform: var(--font-display-case);
  color: #fff;
}

.fees-cta__text {
  margin: 0;
  font-size: calc(16px * var(--font-body-scale) * var(--screen-type));
  line-height: 1.65;
}

.fees-cta__text a {
  color: var(--fees-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s var(--fees-ease);
}

.fees-cta__text a:hover {
  color: #fff;
}

.fees-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fees-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--fees-gold);
  border-radius: 8px;
  background: var(--fees-gold);
  font-family: var(--font-label);
  font-weight: var(--font-label-weight);
  font-stretch: var(--font-label-stretch);
  font-size: calc(15px * var(--font-label-scale) * var(--screen-type));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s var(--fees-ease), color 0.3s var(--fees-ease), border-color 0.3s var(--fees-ease);
}

.fees-button .ico {
  font-size: 15px;
  letter-spacing: 0;
}

.fees-button:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.fees-button--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

.fees-button--ghost .ico {
  color: var(--fees-gold);
}

.fees-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / 45%);
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .fees-promises {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .fees-grid {
    grid-template-columns: 1fr;
  }

  .fees-section-head--side {
    position: static;
  }
}

@media (max-width: 767px) {
  .fees-table-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -16px 0 12px;
    font-family: var(--font-caption);
    font-weight: var(--font-caption-weight);
    font-stretch: var(--font-caption-stretch);
    font-size: calc(13px * var(--font-caption-scale) * var(--screen-type));
    color: var(--fees-muted);
  }

  .fees-table-hint .ico {
    color: var(--fees-gold-text);
  }

  .fees-table th,
  .fees-table td {
    padding: 14px 16px;
  }

  /* A soft edge shows where the pinned column ends. */
  .fees-table th:first-child {
    box-shadow: inset -1px 0 0 var(--fees-line);
  }

  .fees-table thead th:first-child {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.12);
  }

  .fees-table tbody th {
    white-space: normal;
    min-width: 150px;
  }

  .fees-table tbody th .ico {
    display: none;
  }

  .fees-cta__actions,
  .fees-button {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .fees {
    padding: 40px 0 48px;
  }

  .fees-models,
  .fees-compare,
  .fees-faq,
  .fees-cta {
    padding: 60px 0;
  }

  .fees-card {
    padding: 26px 20px 22px;
  }

  .fees-faq .accordion .accordion-button {
    padding-right: 32px;
  }

  .fees-faq .accordion .accordion-body {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fees-section-text a,
  .fees-table tbody tr,
  .fees-cta__text a,
  .fees-button {
    transition: none;
  }
}
