/* London PWS shared v2 chrome: light header, always-visible quote button, smaller
   mobile drawer type, desktop contact pill and the quote pop-up. Loaded on every page
   AFTER chrome.css / brand.css / client-feedback.css, so these rules win the cascade.
   Mobile-first; the only max-width queries are the existing nav breakpoints and the
   small-phone header squeeze, which have no min-width equivalent without duplicating
   every nav rule. */

/* Never let one wide element drag the whole page sideways (the fixed drawer then
   slid left and clipped its own text on very narrow phones). clip, not hidden, so
   position:sticky on the header keeps working. */
html { overflow-x: clip; }

/* ── Light header ─────────────────────────────────────────────── */
.nav {
  background: #fff;
  border-bottom: 1px solid rgba(9,47,62, .14);
  box-shadow: 0 1px 10px rgba(13, 40, 34, .06);
}
.nav.is-compact { box-shadow: 0 8px 22px rgba(13, 40, 34, .12); }
.nav .nav-links > li > a,
.nav .nav-dropdown-toggle { color: #26332f; }
.nav .nav-links > li > a:hover,
.nav .nav-dropdown-toggle:hover,
.nav .nav-dropdown.is-open .nav-dropdown-toggle,
.nav .nav-dropdown:focus-within .nav-dropdown-toggle,
.nav .nav-dropdown-toggle.is-active { color: var(--green, #092F3E); }
.nav .nav-links a::after { background: var(--gold, #C4964A); }
.nav .nav-links a[aria-current="page"] { color: #0d2822; }
.nav .nav-phone { color: #0d2822 !important; }
.nav-toggle span { background: #0d2822; box-shadow: none; }

/* ── Always-visible quote button ─────────────────────────────── */
.nav-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: auto;
  padding: 0 16px;
  background: var(--lp-gold, #C99A4B);
  color: var(--lp-deep, #092F3E);
  font: 700 13px/1 Inter, system-ui, sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(13, 40, 34, .16);
  transition: background .2s, transform .2s;
}
.nav-quote__pre { margin-right: .28em; }
.nav-quote:hover { background: var(--lp-gold-hover, #DDB063); color: var(--lp-deep, #092F3E); transform: translateY(-2px); }
.nav-quote:focus-visible { outline: 3px solid #0d2822; outline-offset: 2px; }
@media (min-width: 1121px) {
  .nav-quote { margin-left: 18px; min-height: 46px; padding: 0 22px; font-size: 14px; }
}
@media (max-width: 1120px) { .nav-inner { gap: 10px; } }
/* Logo sizes follow brand.css (2267 x 610 lock-up). Below 430px the button drops "Get a" so the logo keeps its room. */
@media (max-width: 767px) {
  .nav-logo img { width: 190px; }
  .nav.is-compact .nav-logo img { width: 166px; }
}
@media (max-width: 429px) {
  .nav-quote__pre { display: none; }
  .nav-quote { padding: 0 14px; }
  .nav-logo img { width: 184px; }
  .nav.is-compact .nav-logo img { width: 160px; }
}
@media (max-width: 379px) {
  .nav-logo img { width: 160px; }
  .nav.is-compact .nav-logo img { width: 148px; }
  .nav-quote { padding: 0 11px; font-size: 12.5px; }
  .nav-toggle { padding: 8px 4px; }
}
@media (max-width: 339px) {
  .nav-inner { width: calc(100% - 24px); gap: 6px; }
  .nav-logo img, .nav.is-compact .nav-logo img { width: 132px; }
  .nav-quote { padding: 0 10px; font-size: 12px; }
}

/* ── Mobile drawer: calmer type, still tappable ──────────────── */
.mnav-body { padding: 18px 22px 40px; }
.mnav-heading { font-size: 11px; margin: 20px 0 6px; }
.mnav-list a { font-size: 18px; line-height: 1.3; padding: 9px 0; }
.mnav-list--sub a { font-size: 15px; padding: 8px 0; }
.mnav-phone { font-size: 22px; margin-top: 22px; }
.mnav-cta { font-size: 15px; min-height: 48px; }

/* ── Desktop quick contact: compact pill instead of a full-width gold band ── */
@media (min-width: 1024px) {
  .sticky-bar {
    left: auto;
    right: 22px;
    bottom: 22px;
    width: auto;
    height: auto;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(13, 40, 34, .22);
  }
  .sticky-bar-inner { width: auto; margin: 0; padding: 6px 8px 6px 20px; gap: 12px; }
  .sticky-bar .sticky-bar-text { display: none; }
  .sticky-bar .sticky-bar-wa { display: inline-flex; }
  .whatsapp-fab { display: none !important; }
}

/* ── About page CTA panel: the generic ".cta-band h2/p" rules in site.css (white text for
   the dark band) also matched the CREAM panel inside it, leaving white-on-cream, i.e.
   a near-invisible heading and paragraph. The panel sets its own colours here. ── */
.cta-panel .cta-copy h2 { color: var(--green, #092F3E); }
.cta-panel .cta-copy p { color: var(--text-light, #6B6860); margin-bottom: 0; }
/* The outline button is pale gold for dark bands; on the cream panel it was unreadable. */
.cta-panel .btn-outline-gold { color: var(--green, #092F3E) !important; border-color: var(--green, #092F3E) !important; background: transparent; }
.cta-panel .btn-outline-gold:hover { background: var(--green, #092F3E); color: #fff !important; }

/* ── Fee table markers: "*, **" can no longer read as "***" ───── */
.fees-table .fee-marks { margin-left: .2em; white-space: nowrap; font-family: Inter, system-ui, sans-serif; font-weight: 600; }
.fees-table .fee-marks sup { font-size: .6em; }
.fees-table .fee-marks__sep { font-size: .85em; vertical-align: .35em; line-height: 0; margin: 0 .2em 0 .02em; }
.fee-note__mark { color: var(--green, #092F3E); }

/* ── Quote pop-up ─────────────────────────────────────────────── */
html.qm-lock { overflow: hidden; }
.qm {
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text, #4A4A44);
}
.qm:not([open]) { display: none; }
.qm[open] { display: flex; overflow-y: auto; padding: 14px; background: rgba(13, 40, 34, .55); }
.qm::backdrop { background: rgba(13, 40, 34, .55); }
.qm__panel {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: auto;
  padding: 26px 20px 22px;
  background: #fff;
  border-top: 4px solid var(--gold, #C4964A);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(13, 40, 34, .3);
}
.qm__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--green, #092F3E);
  border: 1px solid rgba(9,47,62, .22);
  border-radius: 6px;
  background: #fff;
}
.qm__close svg { width: 20px; height: 20px; }
.qm__close:hover { border-color: var(--green, #092F3E); }
.qm__head { padding-right: 48px; }
.qm__kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a6420; }
.qm__title { margin: 0 0 8px; font-size: 26px; line-height: 1.15; color: var(--green, #092F3E); }
.qm__intro { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text, #4A4A44); }

.qm__who { margin: 0 0 16px; padding: 0; border: 0; display: grid; gap: 10px; }
.qm__who legend { margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--green, #092F3E); }
.qm__choice { display: block; cursor: pointer; }
.qm__choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qm__choice span {
  display: block;
  padding: 12px 14px 12px 44px;
  position: relative;
  border: 1.5px solid rgba(9,47,62, .3);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.qm__choice span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(9,47,62, .5);
  border-radius: 50%;
  background: #fff;
}
.qm__choice strong { display: block; font-size: 15px; color: #26332f; }
.qm__choice small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-light, #6B6860); }
.qm__choice input:checked + span { border-color: var(--green, #092F3E); background: #f3f7f5; }
.qm__choice input:checked + span::before { border-color: var(--green, #092F3E); background: var(--green, #092F3E); box-shadow: inset 0 0 0 3px #fff; }
.qm__choice input:focus-visible + span { outline: 3px solid var(--gold, #C4964A); outline-offset: 2px; }

.qm__grid { display: grid; gap: 12px; }
.qm__field { display: block; }
.qm__field > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; color: var(--green, #092F3E); }
.qm__field em { font-weight: 400; font-style: normal; color: var(--text-light, #6B6860); }
.qm__field abbr { text-decoration: none; color: #a4362a; }
.qm__field input,
.qm__field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font: 400 16px/1.4 Inter, system-ui, sans-serif;
  color: #26332f;
  background: #fff;
  border: 1.5px solid rgba(9,47,62, .35);
  border-radius: 6px;
}
.qm__field textarea { resize: vertical; min-height: 84px; }
.qm__field input:focus,
.qm__field textarea:focus { outline: 3px solid rgba(196, 150, 74, .55); outline-offset: 0; border-color: var(--green, #092F3E); }
.qm__field input:user-invalid { border-color: #a4362a; }

.qm__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qm__status { margin: 14px 0 0; padding: 12px 14px; font-size: 14.5px; line-height: 1.55; border-radius: 6px; }
.qm__status[hidden] { display: none; }
.qm__status.is-error { color: #7a2418; background: #fdf0ee; border: 1px solid #e0a79c; }
.qm__status.is-success { color: #1c4a38; background: #eaf5ef; border: 1px solid #9fcdb4; }

.qm__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  font: 700 16px/1 Inter, system-ui, sans-serif;
  color: #1f2a26;
  background: var(--gold, #C4964A);
  border-radius: 6px;
  transition: background .2s;
}
.qm__submit:hover { background: #d8aa5b; }
.qm__submit:disabled { opacity: .7; cursor: wait; }
.qm__privacy { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-light, #6B6860); }
.qm__privacy a, .qm__alt a { color: var(--green, #092F3E); text-decoration: underline; text-underline-offset: 2px; }
.qm__alt { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(9,47,62, .14); font-size: 14px; line-height: 1.6; }
.qm__alt p { margin: 0 0 4px; }
.qm__alt [aria-hidden="true"] { margin: 0 .35em; }

@media (min-width: 560px) {
  .qm__panel { padding: 32px 32px 26px; }
  .qm__who { grid-template-columns: 1fr 1fr; }
  .qm__grid { grid-template-columns: 1fr 1fr; }
  .qm__field--wide { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .nav-quote, .qm__choice span { transition: none; } }

/* Small gold text on cream/white was 2.4:1. Darker gold ink for light backgrounds only. */
.area-kicker, .advice-card-step, .advice-card-go, .advice-sources a, .advice-next a, .advice-author a { color: #7d5a1c; }
