/* LEVREN — a single, quiet finish for real interface controls. Load last. */
body.lr-enhanced {
  --ui-blue: #1a4dff;
  --ui-ink: #102039;
  --ui-line: #d9e3ef;
  --ui-button-bg: #1a4dff;
  --ui-button-hover: #1742db;
  --ui-button-color: #fff;
  --ui-button-border: #1847e8;
  --ui-button-shadow: inset 0 1px 0 #ffffff26, 0 1px 2px #0a1a3a12, 0 4px 8px -5px #0a1a3a3d;
  --ui-button-height: 48px;
  --ui-button-padding: 13px 22px;
  --ui-button-size: 14px;
}

/* The explicit home CTA selectors also replace the older pill and shine rules. */
body.lr-enhanced :is(.btn, .pf-button, #nav-contact, .pf-header-contact > a:last-child, #what-we-do .lr-services-close .lv-service-cta, .cta-close #cta-enquiry) {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--ui-button-gap, 12px);
  min-height: var(--ui-button-height);
  max-width: 100%;
  padding: var(--ui-button-padding);
  border: 1px solid var(--ui-button-border);
  border-radius: 8px;
  background: var(--ui-button-bg);
  color: var(--ui-button-color);
  box-shadow: var(--ui-button-shadow);
  font-family: inherit;
  font-size: var(--ui-button-size);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transform: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.lr-enhanced :is(.btn, .pf-button, #nav-contact, .pf-header-contact > a:last-child, #what-we-do .lr-services-close .lv-service-cta, .cta-close #cta-enquiry)::after {
  content: none;
  display: none;
}
body.lr-enhanced .pf-button--secondary {
  --ui-button-bg: #fff;
  --ui-button-hover: #f5f8fc;
  --ui-button-color: #173454;
  --ui-button-border: #d3deeb;
  --ui-button-shadow: 0 1px 2px #0a1a3a05;
}
body.lr-enhanced :is(.btn, .pf-button, .pf-header-contact > a:last-child, #what-we-do .lv-service-cta, .cta-close #cta-enquiry) > span[aria-hidden="true"] {
  display: var(--ui-arrow-display, inline-flex);
  align-items: center;
  flex: 0 0 auto;
  transition: transform .18s ease;
}
body.lr-enhanced .ui-arrow { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; vertical-align: middle; }
body.lr-enhanced .ui-arrow > svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
body.lr-enhanced :is(.btn-ghost, .lp-copy-draft) {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #425978;
  font: 500 14px/1.5 var(--font-body, 'Space Grotesk', Arial, sans-serif);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
body.lr-enhanced :is(.pf-textlink, .lr-service-link) {
  color: #1a4dff;
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Keyboard feedback remains visible on white and blue, without changing layout. */
body.lr-enhanced :is(a, button, summary, input, textarea, select):focus-visible {
  outline: 2px solid #1a4dff !important;
  outline-offset: 4px !important;
}
body.lr-enhanced :is(.btn, .pf-button, #nav-contact, .lv-service-cta, .pf-header-contact > a:last-child):disabled {
  opacity: .5;
  cursor: not-allowed;
}
body.lr-enhanced :is(.btn, .pf-button)[hidden] { display: none !important; }

/* The same calm field finish; service chips and the first-step choices stay intact. */
body.lr-enhanced #lead :is(#name, #email, #phone, #budget, .home-idea, .home-draft-preview textarea),
body.lr-enhanced.lp-page .lp-contact-panel :is(input:not([type="hidden"]), textarea) {
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: #fafbfd;
  color: #183351;
  box-shadow: inset 0 1px 2px #0a1a3a03;
  font-size: 16px;
  transition: border-color .18s ease, background-color .18s ease;
}
body.lr-enhanced #lead :is(#name, #email, #phone, #budget, .home-idea, .home-draft-preview textarea):focus,
body.lr-enhanced.lp-page .lp-contact-panel :is(input:not([type="hidden"]), textarea):focus {
  border-color: #4f78e5;
  background: #fff;
  box-shadow: none;
}
body.lr-enhanced #lead :is(#name, #email, #phone, #budget, .home-idea)::placeholder,
body.lr-enhanced.lp-page .lp-contact-panel :is(input, textarea)::placeholder { color: #697b91; opacity: 1; }
body.lr-enhanced #lead :is(#name, #email, #phone, #budget, .home-idea)[aria-invalid="true"],
body.lr-enhanced.lp-page .lp-contact-panel :is(input, textarea)[aria-invalid="true"] { border-color: #b33b3b; }
body.lr-enhanced #lead .cc-btn { border: 1px solid var(--ui-line); border-radius: 8px; background: #fafbfd; }

/* Only interface icon wrappers: logo art, charts and mockup illustrations are untouched. */
body.lr-enhanced.lp-page :is(.cx-goal-options a > .ed-goal-icon, .ed-form-icon, .ed-investment-heading) > .ed-icon,
body.lr-enhanced :is(.ip-icon, .ip-discipline-icon, .pf-pending-icon) > svg,
body.lr-enhanced .pf-mobile > summary > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.lr-enhanced :is(.ed-form-icon, .ip-icon, .ip-discipline-icon, .pf-pending-icon) {
  border-color: #e1e8f2;
  border-radius: 10px;
  background: #f4f7fc;
  color: #1a4dff;
  box-shadow: none;
}

body.lr-enhanced > header,
body.lr-enhanced .pf-header {
  background: #ffffffed;
  border-bottom: 1px solid #e1e7ef;
  box-shadow: 0 1px 2px #0a1a3a03;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.lr-enhanced :is(.nav-main, .pf-nav) > a { display: inline-flex; align-items: center; min-height: 44px; color: #43546c; }
body.lr-enhanced :is(.nav-main, .pf-nav) > a[aria-current] { color: #1a4dff; }
body.lr-enhanced .menu-btn,
body.lr-enhanced .pf-mobile > summary { min-width: 44px; min-height: 44px; border-radius: 8px; }

@media (hover: hover) and (pointer: fine) {
  body.lr-enhanced :is(.btn, .pf-button, #nav-contact, .pf-header-contact > a:last-child, #what-we-do .lr-services-close .lv-service-cta, .cta-close #cta-enquiry):hover {
    background: var(--ui-button-hover);
    color: var(--ui-button-color);
    box-shadow: var(--ui-button-shadow);
    transform: none;
  }
  body.lr-enhanced :is(.btn, .pf-button, .pf-header-contact > a:last-child, #what-we-do .lv-service-cta, .cta-close #cta-enquiry):hover > span[aria-hidden="true"] { transform: translateX(3px); }
  body.lr-enhanced :is(.btn-ghost, .lp-copy-draft):hover { color: #183351; background: #f2f5fa; }
  body.lr-enhanced :is(.pf-textlink, .lr-service-link):hover { color: #153fcc; text-decoration-line: underline; }
  body.lr-enhanced :is(.nav-main, .pf-nav) > a:hover { color: #1a4dff; }
}
@media (max-width: 650px) {
  body.lr-enhanced { --ui-button-padding: 13px 18px; }
  /* Reserve the real menu target width; the logo keeps its existing dimensions. */
  body.lr-enhanced.lp-page .pf-header:not(.fc-campaign-header) {
    grid-template-columns: 44px minmax(0, 1fr) max-content;
    column-gap: 10px;
    padding-inline: 14px;
  }
  body.lr-enhanced.lp-page .pf-header:not(.fc-campaign-header) .pf-logo { justify-self: start; }
  body.lr-enhanced.lp-page .pf-header:not(.fc-campaign-header) .pf-mobile > summary { width: 44px; }
  body.lr-enhanced :is(#nav-contact, .pf-header-contact > a:last-child, .fc-campaign-header .pf-button) {
    --ui-button-height: 44px;
    --ui-button-padding: 10px 12px;
    --ui-button-size: 12px;
    --ui-button-gap: 7px;
    white-space: nowrap;
  }
  body.lr-enhanced .pf-header-contact > a:last-child { --ui-arrow-display: none; }
  body.lr-enhanced .lp-sticky-cta .pf-button { --ui-button-padding: 12px 18px; }
  body.lr-enhanced :is(.pf-actions, .home-draft-actions, .lr-services-close) { row-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.lr-enhanced :is(.btn, .pf-button, #nav-contact, .pf-header-contact > a:last-child, #what-we-do .lv-service-cta, .cta-close #cta-enquiry, .btn-ghost, .lp-copy-draft) { transition: none; }
  body.lr-enhanced :is(.btn, .pf-button, .pf-header-contact > a:last-child, #what-we-do .lv-service-cta, .cta-close #cta-enquiry) > span[aria-hidden="true"],
  body.lr-enhanced :is(.btn, .pf-button, .pf-header-contact > a:last-child, #what-we-do .lv-service-cta, .cta-close #cta-enquiry):is(:hover, :focus-visible) > span[aria-hidden="true"] { transition: none; transform: none; }
}
