/* ==========================================================================
   Site-level fixes and additions (not from Webflow). Loaded after Webflow CSS.
   ========================================================================== */
:root {
  --mm-green: #223733;
  --mm-green-2: #2c4540;
  --mm-gold: #bf9600;
  --mm-gold-soft: #f6ece1;
  --mm-cream: #f7f4f3;
  --mm-ink: #1d2523;
  --mm-muted: #5b6663;
  --mm-line: #d0d5dd;
  --mm-error: #c0392b;
}

/* Honeypot field: hidden from people, visible to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Form status messages */
.w-form-done, .w-form-fail { display: none; }
.w-form-done.is-shown, .w-form-fail.is-shown { display: block; }
input[type="submit"][disabled], button[disabled] { opacity: .6; cursor: progress; }

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; font-family: Inter, sans-serif; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch a { color: #fff; text-decoration: none; opacity: .6; padding: .25rem .2rem; }
.lang-switch a[aria-current="true"] { opacity: 1; color: var(--mm-gold); }
.lang-switch a:hover { opacity: 1; }
.lang-switch span { color: #fff; opacity: .35; }

/* ===================== Case calculator ===================== */
.calc-section { background: var(--mm-green); }
.calc {
  max-width: 48rem; margin: 0 auto; background: #fff; border: 2px solid var(--mm-gold);
  border-radius: .75rem; padding: clamp(1.5rem, 4vw, 3rem); color: var(--mm-ink);
  font-family: Inter, sans-serif; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.calc-head { margin-bottom: 1.75rem; }
.calc-progress { height: 6px; background: #ece9e4; border-radius: 99px; overflow: hidden; }
.calc-progress-fill { height: 100%; width: 20%; background: var(--mm-gold); border-radius: 99px; transition: width .35s ease; }
.calc-steptag { margin-top: .6rem; font-size: .8125rem; font-weight: 600; color: var(--mm-muted); letter-spacing: .03em; text-transform: uppercase; }

.calc-form { margin: 0; }
.calc-step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.calc-step.is-active { display: block; animation: calcIn .3s ease; }
@keyframes calcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .calc-step.is-active { animation: none; } .calc-progress-fill { transition: none; } }

.calc-title { font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; font-weight: 600; color: var(--mm-green); margin: 0 0 .5rem; padding: 0; }
.calc-sub { color: var(--mm-muted); margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.5; }
.calc-field { margin-bottom: 1.25rem; }
.calc-field > label, .calc-label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .5rem; color: var(--mm-ink); }
.calc-field em { font-weight: 400; color: var(--mm-muted); font-style: normal; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr; } }

.calc-input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--mm-ink);
  background: #fff; border: 1px solid var(--mm-line); border-radius: .5rem; padding: .75rem .875rem;
  min-height: 3rem; transition: border-color .15s, box-shadow .15s; margin: 0;
}
select.calc-input { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23223733' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center; }
textarea.calc-input { resize: vertical; min-height: 6rem; }
.calc-input:focus { outline: none; border-color: var(--mm-gold); box-shadow: 0 0 0 3px rgba(191,150,0,.2); }
.calc-input.is-invalid { border-color: var(--mm-error); }

/* Card choices (step 1) */
.calc-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: .625rem; }
@media (max-width: 720px) { .calc-cards { grid-template-columns: repeat(2, 1fr); } }
.calc-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  text-align: center; padding: 1.1rem .75rem; border: 1.5px solid var(--mm-line); border-radius: .625rem; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s; min-height: 6.5rem; }
.calc-card:hover { border-color: var(--mm-gold); transform: translateY(-2px); }
.calc-card input, .calc-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.calc-card-ico { line-height: 0; color: var(--mm-green); }
.calc-card:has(input:checked) .calc-card-ico { color: #7a5a1e; }
.calc-card-txt { font-weight: 600; font-size: .875rem; line-height: 1.25; }
.calc-card:has(input:checked) { border-color: var(--mm-gold); background: var(--mm-gold-soft); box-shadow: inset 0 0 0 1px var(--mm-gold); }
.calc-card:has(input:focus-visible), .calc-pill:has(input:focus-visible) { outline: 3px solid rgba(191,150,0,.45); outline-offset: 2px; }

/* Pill choices */
.calc-pills, .calc-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.calc-pills-col { flex-direction: column; }
.calc-pill { position: relative; cursor: pointer; margin: 0; }
.calc-pill span { display: inline-block; padding: .65rem 1rem; border: 1.5px solid var(--mm-line); border-radius: 99px;
  font-size: .9375rem; font-weight: 500; transition: all .15s; user-select: none; }
.calc-pills-col .calc-pill span { display: block; border-radius: .5rem; }
.calc-pill:hover span { border-color: var(--mm-gold); }
.calc-pill input:checked + span { background: var(--mm-green); border-color: var(--mm-green); color: #fff; }
.calc-checks .calc-pill input:checked + span::before { content: "✓ "; }

.calc-consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: var(--mm-muted); cursor: pointer; margin: .5rem 0 1rem; }
.calc-consent input { appearance: auto; -webkit-appearance: checkbox; width: 1.125rem; height: 1.125rem; margin-top: .15rem; flex: none; accent-color: var(--mm-green); }

.calc-err { color: var(--mm-error); font-size: .875rem; font-weight: 500; min-height: 1.25rem; margin: .25rem 0 0; }
.calc-err:empty { min-height: 0; }

.calc-nav { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.calc-nav .calc-back { margin-right: auto; }
.calc-nav button { font: inherit; cursor: pointer; }
.calc-nav [hidden] { display: none !important; }

/* Result */
.calc-result { outline: none; animation: calcIn .4s ease; }
.calc-result-badge { display: inline-block; background: var(--mm-gold-soft); color: #7a5f00; font-weight: 700; font-size: .8125rem;
  letter-spacing: .05em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 99px; margin-bottom: 1rem; }
.calc-factors { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .625rem; }
.calc-factors li { display: flex; gap: .75rem; padding: .875rem 1rem; background: var(--mm-cream); border-radius: .5rem; line-height: 1.45; font-size: .9375rem; }
.calc-factors li::before { content: "✓"; color: var(--mm-gold); font-weight: 800; flex: none; }
.calc-warn { background: #fff4e5; border-left: 4px solid #e08a00; padding: .875rem 1rem; border-radius: .375rem; font-size: .9375rem; line-height: 1.5; margin-bottom: 1.5rem; }
.calc-result-cta { margin-bottom: 1.25rem; }
.calc-fine { font-size: .75rem; color: var(--mm-muted); line-height: 1.5; margin: 0; }
.calc-error-box { color: var(--mm-error); font-weight: 500; }

/* ===================== Accessibility ===================== */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10000; background: #fff; color: var(--mm-green);
  padding: .75rem 1.25rem; border-radius: .375rem; font-weight: 700; font-family: Inter, sans-serif; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible, [tabindex]:focus-visible, .w-dropdown-toggle:focus-visible, .w-nav-button:focus-visible {
  outline: 3px solid #f2c94c !important; outline-offset: 3px !important; }
.faq6_question { cursor: pointer; }

/* Contrast: white text on bright gold (#bf9600) is 2.8:1, so use dark text (7:1) */
.button, .button-2, .button.is-small.is-icon.green-btn.calc-btn.btn-gold,
.button.is-icon.faq-btn.btn-gold, .button.is-small.is-icon.green-btn.calc-btn.btn-gold.full-width-btn { color: #14211e; }
.button.is-icon:not(.btn-gold):not(.faq-btn), .button.is-small.is-icon.green-btn:not(.btn-gold) { color: #fff; }
.button.btn-gold img, .button-2 img, .button:not(.is-icon) img { filter: brightness(0) saturate(100%) invert(10%) sepia(14%) saturate(900%) hue-rotate(120deg); }
/* Gold text on white (#af864d is 3.3:1) -> darker gold (5.6:1) */
.button-2.is-secondary, .link { color: #7a5a1e; border-color: #7a5a1e; }
/* Gold text on dark green -> lighter gold (5.6:1+) */
.navbar1_link.w--current, .text-weight-semibold, .button.is-secondary.is-small.just-text-btn.btn-no-outline.custom-btn-size { color: #e0b52c; }
.testimonial19_card .text-weight-semibold { color: #e0b52c; }
.text-size-small.text-weight-semibold { color: var(--mm-green); }
/* Mobile quick-action bar labels were 9.6px */
.mobile-navbar-link { font-size: .75rem; }

/* Native consent checkbox (replaces Webflow's custom one, which was not keyboard/screen-reader friendly) */
.form_checkbox { display: flex !important; gap: .625rem; align-items: flex-start; padding-left: 0 !important; cursor: pointer; }
.form_checkbox-native { appearance: auto !important; -webkit-appearance: checkbox !important; width: 1.125rem; height: 1.125rem; margin: .1rem 0 0 !important; flex: none; accent-color: var(--mm-green); position: static !important; opacity: 1 !important; }
.form_checkbox-label { margin-bottom: 0; }

/* Form success / error messages readable */
.form_message-success, .form_message-error { border-radius: .5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Practice-area list: titles misaligned because number widths differ */
.cta38_link-text-small { min-width: 2.25rem; }

.calc-title + .calc-field, .calc-title + .calc-row { margin-top: 1.25rem; }

/* ===================== Consent + legal ===================== */
.form-consent { margin: .25rem 0 1.25rem; display: grid; gap: .75rem; font-family: Inter, sans-serif; }
.form-sms { display: flex; gap: .625rem; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: #3d4744; cursor: pointer; font-weight: 400; margin: 0; }
.form-sms input { appearance: auto !important; -webkit-appearance: checkbox !important; width: 1.125rem; height: 1.125rem; margin: .1rem 0 0; flex: none; accent-color: var(--mm-green); position: static; opacity: 1; }
.form-notice { font-size: .8125rem; line-height: 1.5; color: #3d4744; margin: 0; }
.form-consent a { color: inherit; text-decoration: underline; }

.legal-section { background: #fff; padding: 4rem 0 5rem; }
.legal { max-width: 46rem; margin: 0 auto; font-family: Inter, sans-serif; color: #2f2f2f; font-size: 1rem; line-height: 1.7; }
.legal h1 { font-family: "Playfair Display", serif; color: var(--mm-green); font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.15; margin: 0 0 .5rem; }
.legal h2 { font-size: 1.25rem; color: var(--mm-green); margin: 2.25rem 0 .75rem; line-height: 1.3; }
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: #7a5a1e; text-decoration: underline; }
.legal-meta { color: #5b6663; font-size: .875rem; }

.footer-legal { display: grid; gap: .5rem; font-family: Inter, sans-serif; }
.footer-legal p { margin: 0; font-size: .8125rem; line-height: 1.6; color: #fff; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-legal a { color: #fff; text-decoration: underline; }
.footer-ad { opacity: .8; }
.footer2_legal-list { grid-auto-flow: row !important; grid-template-columns: 1fr !important; }

/* ===================== Practice-area article ===================== */
.main-article-right .w-richtext { font-family: Inter, sans-serif; font-size: 1.0625rem; line-height: 1.75; color: #2f2f2f; max-width: 46rem; }
.main-article-right .w-richtext h2 { font-family: "Playfair Display", serif; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.25; font-weight: 700; color: var(--mm-green); margin: 2.25rem 0 .75rem; }
.main-article-right .w-richtext p { margin: 0 0 1.125rem; }
.main-article-right .w-richtext ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.main-article-right .w-richtext li { margin-bottom: .5rem; padding-left: .25rem; }
.main-article-right .w-richtext li::marker { color: var(--mm-gold); }
.main-article-right .w-richtext a { color: #7a5a1e; text-decoration: underline; }
.main-article-right .image-5 { border-radius: .5rem; margin-bottom: 1.75rem; }

/* hCaptcha slot */
.mm-captcha { margin: .25rem 0 1rem; min-height: 0; }
.mm-captcha[data-widget] { min-height: 78px; }
/* Form card had a fixed max-height from Webflow; let it grow for consent text + captcha */
.contact9_content-left { max-height: none !important; height: auto !important; }
