/* Premium graphite-grey light surfaces. The dark theme and layout stay intact. */
html.light[data-theme="light"] {
  --preview-canvas: #fbfbfa;
  --preview-section: #f5f6f7;
  --preview-card: #fffefb;
  --preview-soft: #f8f9fa;
  --preview-line: #d1d3d7;
  --preview-steel: #415a70;
  --preview-steel-hover: #506b82;
  --preview-steel-deep: #31475a;
  --preview-steel-wash: #dfe1e4;
  --home-block-tone-1: #fcfcfb !important;
  --home-block-tone-2: #f7f8f9 !important;
  --home-block-tone-3: #f1f3f5 !important;
  --home-block-divider: rgba(65, 68, 74, 0.1) !important;
  --pricing-reference-bg: #fcfcfb !important;

  --premium-canvas: var(--preview-canvas) !important;
  --premium-section: var(--preview-section) !important;
  --premium-elevated: #d8dadd !important;
  --premium-card: var(--preview-card) !important;
  --premium-card-soft: var(--preview-soft) !important;
  --premium-line: var(--preview-line) !important;
  --premium-line-strong: #b8bcc3 !important;
  --premium-copper: var(--preview-steel) !important;
  --premium-copper-deep: var(--preview-steel-deep) !important;
  --premium-copper-wash: var(--preview-steel-wash) !important;
  --premium-sage: #7f8d99 !important;

  --light-canvas: var(--preview-canvas) !important;
  --light-section: var(--preview-section) !important;
  --light-elevated: #d8dadd !important;
  --light-card: var(--preview-card) !important;
  --light-card-soft: var(--preview-soft) !important;
  --light-line: var(--preview-line) !important;
  --light-accent: var(--preview-steel) !important;
  --light-accent-strong: var(--preview-steel-deep) !important;
  --light-accent-wash: var(--preview-steel-wash) !important;

  --page-bg: var(--preview-canvas) !important;
  --surface: var(--preview-card) !important;
  --surface-low: var(--preview-section) !important;
  --surface-container: #d8dadd !important;
  --surface-high: var(--preview-card) !important;
  --surface-variant: var(--preview-soft) !important;
  --section-alt: var(--preview-section) !important;
  --section-strong: #d8dadd !important;
  --card-bg: var(--preview-card) !important;
  --card-bg-hover: #e1e3e6 !important;
  --card-bg-featured: var(--preview-steel-wash) !important;
  --article-card: var(--preview-card) !important;
  --article-card-hover: #e1e3e6 !important;
  --article-border: var(--preview-line) !important;
  --primary: var(--preview-steel) !important;
  --primary-strong: var(--preview-steel-deep) !important;
  --gold-rgb: 65, 90, 112 !important;
  --primary-rgb: 65, 90, 112 !important;
  --focus-ring-color: var(--preview-steel) !important;
}
html.light[data-theme="light"] body,
html.light[data-theme="light"] body main,
html.light[data-theme="light"] body main > :where(section:not(.hero):not(.cta), .section) {
  background-color: var(--preview-canvas) !important;
}

html.light[data-theme="light"] body .site-header {
  border-bottom-color: #c8cbd1 !important;
  background: rgba(231, 232, 234, 0.97) !important;
  box-shadow: 0 10px 28px rgba(42, 45, 50, 0.1) !important;
}

html.light[data-theme="light"] body .site-header :is(
  .brand,
  .main-nav,
  .nav-link,
  .nav-link-trigger,
  .header-phone,
  .header-phone-list a
) {
  color: #15191d !important;
  text-shadow: none !important;
}

html.light[data-theme="light"] body .site-header .header-phone {
  border-left-color: #b9bdc5 !important;
}

html.light[data-theme="light"] body .site-header .material-symbols-outlined {
  color: #31475a !important;
}

html.light[data-theme="light"] body .site-header :is(.nav-link, .nav-link-trigger, .header-phone-list a):is(:hover, :focus-visible) {
  color: #31475a !important;
}

html.light[data-theme="light"] body .site-header .nav-dropdown-menu {
  border-color: #c8cbd1 !important;
  background: rgba(240, 241, 242, 0.98) !important;
}

html.light[data-theme="light"] body .site-header .nav-dropdown-menu a:is(:hover, :focus-visible) {
  background: #dfe1e4 !important;
}

html.light[data-theme="light"] body main :is(h1, h2, h3, h4),
html.light[data-theme="light"] body main :is(h1, h2, h3, h4) > span {
  color: #15191d !important;
}

html.light[data-theme="light"] body main > .hero {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding-top: clamp(118px, 7vw, 140px) !important;
  padding-bottom: clamp(72px, 5vw, 96px) !important;
}

html.light[data-theme="light"] body main > .hero h1 {
  max-width: 16ch !important;
  font-size: clamp(3rem, min(5vw, 8vh), 5.2rem) !important;
  line-height: 0.98 !important;
}

@media (max-width: 680px) {
  html.light[data-theme="light"] body .site-header .brand {
    gap: 5px !important;
    font-size: 1rem !important;
  }

  html.light[data-theme="light"] body .site-header .brand-logo {
    width: 36px !important;
    height: 40px !important;
  }

  html.light[data-theme="light"] body main > .hero {
    min-height: 730px !important;
    padding: 112px 20px 92px !important;
  }

  html.light[data-theme="light"] body main > .hero .media-overlay {
    background:
      linear-gradient(180deg, rgba(242, 242, 240, 0.76), rgba(242, 242, 240, 0.92) 68%, rgba(242, 242, 240, 0.97)),
      linear-gradient(90deg, rgba(242, 242, 240, 0.82), rgba(242, 242, 240, 0.42)) !important;
  }

  html.light[data-theme="light"] body main > .hero h1 {
    max-width: 12ch !important;
    font-size: clamp(2.35rem, 11vw, 3.25rem) !important;
    line-height: 1.02 !important;
  }
}

/* Homepage article cards use photography as their surface, so they need their
 * own high-contrast editorial palette instead of the generic light-card ink. */
html.light[data-theme="light"] body.home-page #articles .article-card-home,
html.light[data-theme="light"] body.home-page #articles .article-card-home:is(:hover, :focus-visible) {
  border-color: rgba(205, 148, 92, 0.54) !important;
  background-color: #101719 !important;
  color: #f8f4ec !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(18, 30, 36, 0.2) !important;
}

html.light[data-theme="light"] body.home-page #articles .article-card-home::before,
html.light[data-theme="light"] body.home-page #articles .article-card-home:is(:hover, :focus-visible)::before {
  opacity: 0.82 !important;
  filter: saturate(0.9) contrast(1.1) brightness(0.82) !important;
}

html.light[data-theme="light"] body.home-page #articles .article-card-home::after,
html.light[data-theme="light"] body.home-page #articles .article-card-home:is(:hover, :focus-visible)::after {
  background:
    linear-gradient(105deg, rgba(7, 12, 15, 0.94) 0%, rgba(10, 17, 21, 0.82) 54%, rgba(13, 20, 24, 0.54) 100%),
    linear-gradient(180deg, rgba(4, 8, 10, 0.1) 0%, rgba(4, 8, 10, 0.28) 100%) !important;
  opacity: 1 !important;
}

html.light[data-theme="light"] body.home-page #articles .article-card-home :is(strong, h2) {
  color: #fffdf8 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9) !important;
}

html.light[data-theme="light"] body.home-page #articles .article-card-home :is(.article-card-description, p) {
  color: rgba(248, 244, 236, 0.9) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9) !important;
}

html.light[data-theme="light"] body.home-page #articles .article-card-home :is(.article-card-index, .article-card-meta) {
  color: rgba(235, 239, 241, 0.78) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.86) !important;
}

html.light[data-theme="light"] body.home-page #articles .article-card-home :is(
  .article-card-category,
  .article-card-link,
  .article-card-meta .material-symbols-outlined
) {
  color: #e4ae78 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9) !important;
}

html.light[data-theme="light"] body.home-page #articles .article-card-home .article-card-icon {
  border: 1px solid rgba(228, 174, 120, 0.24) !important;
  background: rgba(8, 15, 19, 0.68) !important;
  color: #e4ae78 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

html.light[data-theme="light"] body main > :where(
  .trust-bar, .section-muted, .subscription-benefits,
  .subscription-comparison-section, .subscription-faq-section,
  .doubts-section
) {
  background-color: var(--preview-section) !important;
}

html.light[data-theme="light"] body main #workflow.workflow-block {
  --workflow-decor-warm: rgba(110, 114, 122, 0.13);
  --workflow-decor-ivory: rgba(255, 255, 255, 0.65);
  background-color: #f1f3f5 !important;
}

html.light[data-theme="light"] body main #workflow#workflow.light-block-tone-3:not(#section-rhythm-a) {
  background-color: #f1f3f5 !important;
}

html.light[data-theme="light"] body #why-pro-lex > #reasons#reasons.reasons-block.light-block-tone-2 {
  position: relative !important;
  z-index: 2 !important;
  background-color: #f7f8f9 !important;
  background-image: none !important;
}

html.light[data-theme="light"] body main > #why-pro-lex#why-pro-lex,
html.light[data-theme="light"] body main > #why-pro-lex#why-pro-lex::before,
html.light[data-theme="light"] body main > #why-pro-lex#why-pro-lex::after {
  background-image: none !important;
}

html.light[data-theme="light"] body main > #why-pro-lex#why-pro-lex::before,
html.light[data-theme="light"] body main > #why-pro-lex#why-pro-lex::after {
  display: none !important;
  content: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item:hover,
  html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item:focus-within {
    padding-inline: 0 !important;
    border-bottom-color: #aeb7c0 !important;
    background: #e1e3e6 !important;
    background-image: none !important;
    box-shadow: 0 8px 20px rgba(49, 71, 90, 0.07) !important;
  }
}

html.light[data-theme="light"] body main :is(
  .area-card, .service-package-card, .service-choice-card,
  .service-directory-card, .service-info-card, .doubt-item,
  .article-card, .article-summary-card, .list-card, .case-card,
  .subscription-plan, .subscription-benefit,
  .pricing-decision-card, .pricing-format-card, .pricing-service-item,
  .contacts-panel, .contacts-row, .contact-form,
  .faq-list details, .subscription-faq-list details
) {
  background-color: var(--preview-card) !important;
  border-color: var(--preview-line) !important;
}

html.light[data-theme="light"] body main :is(
  .section-kicker, .eyebrow, .article-eyebrow, .card-kicker,
  .pricing-category-heading-index, .pricing-direction-meta strong,
  .pricing-service-price strong, .pricing-option-value-copy strong,
  .price-list strong, .article-card-category, .article-card-link,
  .text-link, .reason-list-number, .workflow-step-number,
  .service-choice-index, .service-directory-card-top small
) {
  color: var(--preview-steel-deep) !important;
}

html.light[data-theme="light"] body main .hero-title-main > span,
html.light[data-theme="light"] body main .subscription-table thead th,
html.light[data-theme="light"] body main .article-filters button.is-active {
  color: var(--preview-steel-deep) !important;
}

html.light[data-theme="light"] body main .material-symbols-outlined {
  color: var(--preview-steel) !important;
}

html.light[data-theme="light"] body main :is(
  .area-card .material-symbols-outlined,
  .service-package-card > .material-symbols-outlined,
  .service-choice-card > .material-symbols-outlined,
  .subscription-benefit .material-symbols-outlined,
  .pricing-decision-card .material-symbols-outlined
) {
  color: var(--preview-steel) !important;
}

html.light[data-theme="light"] body :is(
  .button-primary, .cta-button, .form-submit, .contact-submit,
  .pricing-request-link, .pricing-cta, .subscription-plan-cta,
  .service-package-card .package-link,
  .service-directory-card .package-link
) {
  background: var(--preview-steel) !important;
  border-color: var(--preview-steel) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(49, 71, 90, 0.18) !important;
}

html.light[data-theme="light"] body :is(
  .button-primary, .cta-button, .form-submit, .contact-submit,
  .pricing-request-link, .pricing-cta, .subscription-plan-cta,
  .service-package-card .package-link,
  .service-directory-card .package-link
):is(:hover, :focus-visible) {
  background: var(--preview-steel-deep) !important;
  border-color: var(--preview-steel-deep) !important;
  color: #ffffff !important;
}

html.light[data-theme="light"] body :is(
  .button-primary, .pricing-request-link, .subscription-plan-cta,
  .service-package-card .package-link
) .material-symbols-outlined {
  color: #edf2f6 !important;
}

html.light[data-theme="light"] body :is(
  .service-direction-link.is-active, .service-direction-link:hover,
  .pricing-category-nav a.is-active, .pricing-category-nav a:hover,
  .pricing-toc a.is-active, .pricing-toc a:hover
) {
  border-left-color: var(--preview-steel) !important;
}

html.light[data-theme="light"] body main :is(
  .area-card, .service-package-card, .service-choice-card,
  .service-directory-card, .doubt-item, .article-card,
  .subscription-plan, .pricing-decision-card, .pricing-format-card,
  .pricing-service-item, .contacts-row
):is(:hover, :focus-within) {
  border-color: #94a4b2 !important;
}

html.light[data-theme="light"] body :is(
  .subscription-plan-ribbon, .pricing-options-head,
  .subscription-table-head, table thead
) {
  border-color: var(--preview-line) !important;
}

html.light[data-theme="light"] body .subscription-plan-ribbon {
  background: var(--preview-steel-wash) !important;
  color: var(--preview-steel-deep) !important;
}

html.light[data-theme="light"] body .subscription-plan-featured {
  border-color: #8194a4 !important;
  box-shadow: 0 22px 48px rgba(49, 71, 90, 0.11) !important;
}

html.light[data-theme="light"] body .subscription-plan-featured > header {
  background: var(--preview-soft) !important;
}

html.light[data-theme="light"] body #workflow,
html.light[data-theme="light"] body .workflow-block {
  background-color: #dde0e3 !important;
}

html.light[data-theme="light"] body :is(input, textarea, select):focus {
  border-color: var(--preview-steel) !important;
  box-shadow: 0 0 0 3px rgba(65, 90, 112, 0.14) !important;
}

/* One consistent platinum-grey interaction state for every card family. */
html[data-theme="light"] body :is(
    .area-card,
    .service-package-card,
    .service-choice-card,
    .service-directory-card,
    .service-info-card,
    .doubt-item,
    .list-card,
    .case-card,
    .article-card,
    .article-summary-card,
    .pricing-decision-card,
    .pricing-format-card,
    .pricing-service-item,
    .subscription-plan,
    .subscription-benefit,
    .contacts-panel,
    .contacts-row,
    .contact-form,
    .cta-contact-item,
    .price-list > div,
    .client-logo-row > div,
    .faq-list details,
    .subscription-faq-list details,
    .reason-item
  ):is(:hover, :focus-within) {
    background: #e1e3e6 !important;
    border-color: #b8bcc3 !important;
  }

/* Editorial headings and trust metrics are not cards. Keep their surfaces
 * transparent in every interaction state so hovering text cannot paint a
 * rectangular tile behind it. */
html.light[data-theme="light"] body :is(
  .service-hero,
  .pricing-hero,
  .article-archive-hero,
  .stat-item
),
html.light[data-theme="light"] body :is(
  .service-hero,
  .pricing-hero,
  .article-archive-hero,
  .stat-item
):is(:hover, :focus, :focus-visible, :focus-within) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

html.light[data-theme="light"] body main #workflow .workflow-experience .workflow-step .workflow-step-copy,
html.light[data-theme="light"] body main #workflow .workflow-experience .workflow-step .workflow-step-copy :is(h3, p) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body main #workflow .workflow-experience .workflow-step:is(:hover, :focus-visible, :focus-within),
html.light[data-theme="light"] body main #workflow .workflow-experience .workflow-step:is(:hover, :focus-visible, :focus-within) .workflow-step-surface {
  background: #e1e3e6 !important;
  background-image: none !important;
  border-color: #b8bcc3 !important;
}

html.light[data-theme="light"] body:not(#text-contrast-scope) main #popular .service-package-card:is(:hover, :focus-within),
html.light[data-theme="light"] body:not(#text-contrast-scope) main #services .service-package-card:is(:hover, :focus-within),
html.light[data-theme="light"] body:not(#text-contrast-scope) main #popular .area-card:is(:hover, :focus-within),
html.light[data-theme="light"] body:not(#text-contrast-scope) main #services .area-card:is(:hover, :focus-within),
html.light[data-theme="light"] body main #articles .article-card:is(:hover, :focus-within) {
  background: #e1e3e6 !important;
  border-color: #b8bcc3 !important;
}

/* Deep steel-blue treatment for action buttons. */
html[data-theme="light"] body :is(
  .button-primary,
  .cta-button,
  .form-submit,
  .contact-submit,
  .pricing-request-link,
  .pricing-cta,
  .subscription-plan-cta,
  .service-package-card .package-link,
  .service-directory-card .package-link
) {
  background: #31475a !important;
  border-color: #31475a !important;
  color: #ffffff !important;
}

html[data-theme="light"] body :is(
  .button-primary,
  .cta-button,
  .form-submit,
  .contact-submit,
  .pricing-request-link,
  .pricing-cta,
  .subscription-plan-cta,
  .service-package-card .package-link,
  .service-directory-card .package-link
):is(:hover, :focus-visible) {
  background: #273948 !important;
  border-color: #273948 !important;
}

html.light[data-theme="light"] body main :is(#popular, #services) .service-package-card .package-link,
html.light[data-theme="light"] body main .button.button-primary,
html.light[data-theme="light"] body main button.button-primary {
  background: #344a5e !important;
  border-color: #344a5e !important;
  color: #ffffff !important;
}

html.light[data-theme="light"] body main :is(#popular, #services) .service-package-card .package-link:is(:hover, :focus-visible),
html.light[data-theme="light"] body main .button.button-primary:is(:hover, :focus-visible),
html.light[data-theme="light"] body main button.button-primary:is(:hover, :focus-visible) {
  background: #263746 !important;
  border-color: #263746 !important;
}

/* Final light-theme color authority. */
html.light[data-theme="light"] body:not(#heading-color-scope) main :is(h1, h2, h3, h4),
html.light[data-theme="light"] body:not(#heading-color-scope) main :is(h1, h2, h3, h4) * {
  color: #15191d !important;
}

html.light[data-theme="light"] body:not(#heading-color-scope) main .cta :is(h1, h2, h3, h4),
html.light[data-theme="light"] body:not(#heading-color-scope) main .cta :is(h1, h2, h3, h4) * {
  color: #ffffff !important;
}

html.light[data-theme="light"] body .site-header .brand-logo-dark {
  display: none !important;
}

html.light[data-theme="light"] body .site-header .brand-logo-light {
  display: block !important;
  filter: none !important;
}

/* Unified deep steel-blue treatment for every action button. */
html.light[data-theme="light"] body:not(#button-color-scope) :is(
  a.button,
  button.button,
  .package-link,
  .pricing-request-link,
  .pricing-cta,
  .subscription-plan-cta,
  .form-submit,
  .contact-submit
) {
  border-color: #344a5e !important;
  background: #344a5e !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(52, 74, 94, 0.2) !important;
}

html.light[data-theme="light"] body:not(#button-color-scope) :is(
  a.button,
  button.button,
  .package-link,
  .pricing-request-link,
  .pricing-cta,
  .subscription-plan-cta,
  .form-submit,
  .contact-submit
):is(:hover, :focus-visible) {
  border-color: #263746 !important;
  background: #263746 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(38, 55, 70, 0.26) !important;
}

html.light[data-theme="light"] body:not(#button-color-scope) :is(
  a.button,
  button.button,
  .package-link,
  .pricing-request-link,
  .pricing-cta,
  .subscription-plan-cta,
  .form-submit,
  .contact-submit
) .material-symbols-outlined {
  color: #ffffff !important;
}

/* Service-card actions use the same full-width control as the other cards. */
html.light[data-theme="light"] body:not(#button-layout-scope) main #services .service-package-card .package-link,
html.light[data-theme="light"] body:not(#button-layout-scope) main .service-directory-card .package-link,
html.light[data-theme="light"] body:not(#button-layout-scope) main .case-card .package-link {
  display: flex !important;
  width: 100% !important;
  min-height: 46px !important;
  margin-top: auto !important;
  padding: 0 14px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-radius: 4px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  border-color: #344a5e !important;
  background: #344a5e !important;
  color: #ffffff !important;
}

@media (min-width: 981px) {
  html.light[data-theme="light"] body .site-header .main-nav > .nav-link,
  html.light[data-theme="light"] body .site-header .main-nav > .nav-dropdown > .nav-link-trigger {
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.015em !important;
  }
}

html.light[data-theme="light"] body:not(#button-type-scope) :is(
  a.button,
  button.button,
  .package-link,
  .pricing-request-link,
  .pricing-cta,
  .subscription-plan-cta,
  .form-submit,
  .contact-submit
),
html.light[data-theme="light"] body:not(#button-layout-scope) main #services .service-package-card .package-link,
html.light[data-theme="light"] body:not(#button-layout-scope) main .service-directory-card .package-link,
html.light[data-theme="light"] body:not(#button-layout-scope) main .case-card .package-link {
  border-color: #344a5e !important;
  background: #344a5e !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

html.light[data-theme="light"] body:not(#button-type-scope) :is(
  a.button,
  button.button,
  .package-link,
  .pricing-request-link,
  .pricing-cta,
  .subscription-plan-cta,
  .form-submit,
  .contact-submit
):is(:hover, :focus-visible) {
  border-color: #263746 !important;
  background: #263746 !important;
}

/* Homepage cards: clean neutral grey, without decorative texture or color cast. */
html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) {
  --home-glass-surface: #f7f7f5;
  --home-glass-surface-hover: #ffffff;
  --home-glass-line: rgba(166, 96, 60, 0.42);
  --home-glass-line-strong: rgba(166, 96, 60, 0.72);
  --home-glass-ink: #20252a;
  --home-glass-muted: #56606a;
  --home-glass-accent: #415a70;
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main :is(
  .feature-row,
  .service-package-card,
  .reason-outcome,
  .reason-item,
  .workflow-step,
  .price-list > div,
  .article-card-home,
  .faq-list details,
  .doubt-item
) {
  border: 1px solid var(--home-glass-line) !important;
  border-radius: 10px !important;
  background: var(--home-glass-surface) !important;
  background-color: var(--home-glass-surface) !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 40px rgba(25, 54, 64, 0.08),
    0 0 0 1px rgba(166, 96, 60, 0.05) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--home-glass-ink) !important;
  overflow: hidden;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main :is(
  .feature-row,
  .service-package-card,
  .reason-outcome,
  .reason-item,
  .workflow-step,
  .price-list > div,
  .article-card-home,
  .faq-list details,
  .doubt-item
) :is(h3, h3 *, strong, summary, summary *) {
  color: var(--home-glass-ink) !important;
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main :is(
  .feature-row,
  .service-package-card,
  .reason-outcome,
  .reason-item,
  .workflow-step,
  .price-list > div,
  .article-card-home,
  .faq-list details,
  .doubt-item
) :is(p, li, small, .article-card-meta, .article-card-description) {
  color: var(--home-glass-muted) !important;
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main :is(
  .feature-row,
  .service-package-card,
  .reason-outcome,
  .reason-item,
  .workflow-step,
  .article-card-home,
  .faq-list details,
  .doubt-item
) :is(.material-symbols-outlined, .reason-list-number, .workflow-step-number, .doubt-index, .article-card-index, .article-card-category) {
  color: var(--home-glass-accent) !important;
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main :is(
  .feature-row,
  .service-package-card,
  .reason-outcome,
  .reason-item,
  .workflow-step,
  .price-list > div,
  .article-card-home,
  .faq-list details,
  .doubt-item
):is(:hover, :focus-within) {
  border-color: var(--home-glass-line-strong) !important;
  background: var(--home-glass-surface-hover) !important;
  background-color: var(--home-glass-surface-hover) !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 22px 48px rgba(166, 96, 60, 0.15),
    0 0 0 1px rgba(166, 96, 60, 0.12) !important;
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main :is(
  .feature-row,
  .service-package-card,
  .reason-outcome,
  .reason-item,
  .price-list > div,
  .article-card-home,
  .faq-list details,
  .doubt-item
):is(:hover, :focus-within) {
  transform: translateY(-3px);
}

html.light[data-theme="light"] body.home-page:not(#home-card-layout-scope):not(#home-card-grid-scope):not(#home-card-spacing-scope) main :is(
  #services .area-grid,
  #popular .popular-grid,
  .feature-stack,
  .reason-outcomes,
  .reason-grid,
  .doubts-grid,
  .articles-feature-grid,
  .faq-list,
  .price-list
) {
  gap: clamp(14px, 1.6vw, 22px) !important;
  border: 0 !important;
  background: transparent !important;
}

html.light[data-theme="light"] body.home-page:not(#home-card-layout-scope):not(#home-card-grid-scope):not(#home-card-spacing-scope) main :is(
  #services .area-grid,
  #popular .popular-grid
) {
  padding-block: 6px 12px;
}

@media (prefers-reduced-motion: reduce) {
  html.light[data-theme="light"] body.home-page main :is(
    .feature-row,
    .service-package-card,
    .reason-outcome,
    .reason-item,
    .workflow-step,
    .price-list > div,
    .article-card-home,
    .faq-list details,
    .doubt-item
  ) {
    transition: none !important;
  }

  html.light[data-theme="light"] body.home-page main :is(
    .feature-row,
    .service-package-card,
    .reason-outcome,
    .reason-item,
    .workflow-step,
    .price-list > div,
    .article-card-home,
    .faq-list details,
    .doubt-item
  ):is(:hover, :focus-within) {
    transform: none;
  }
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main .workflow-step .workflow-step-surface,
html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main .workflow-step .workflow-step-copy,
html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main .workflow-step .workflow-step-copy :is(h3, p) {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main .faq-list details > summary {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Final homepage section palette: neutral platinum greys with no mint cast. */
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main > .trust-bar,
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main > #popular,
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main > #articles,
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main > .doubts-section {
  background-color: #ffffff !important;
  background-image: url("/document-provenance-light.svg?v=3") !important;
  background-position: right 6% top 72px !important;
  background-repeat: no-repeat !important;
  background-size: min(44vw, 640px) auto !important;
}

html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main > #about,
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main > #why-pro-lex,
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main #reasons,
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main #pricing {
  background-color: #f8f9fa !important;
  background-image: url("/clause-graph-light.svg?v=3") !important;
  background-position: right 6% top 72px !important;
  background-repeat: no-repeat !important;
  background-size: min(44vw, 640px) auto !important;
}

html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main > #services,
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main > #faq,
html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main #workflow {
  background-color: #f1f3f5 !important;
  background-image: url("/audit-trail-light.svg?v=3") !important;
  background-position: right 6% top 72px !important;
  background-repeat: no-repeat !important;
  background-size: min(44vw, 640px) auto !important;
}

/* Homepage refinement: clearer steps, luminous cards and a restrained editorial finish. */
html.light[data-theme="light"] body.home-page .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(249, 249, 248, 0.78), rgba(231, 233, 235, 0.68)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 34px rgba(35, 43, 50, 0.12) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.28) !important;
  backdrop-filter: blur(22px) saturate(1.28) !important;
}

html.light[data-theme="light"] body.home-page .site-header .nav-dropdown-menu {
  border-color: rgba(166, 96, 60, 0.28) !important;
  background: rgba(247, 247, 245, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 48px rgba(35, 43, 50, 0.16) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.24) !important;
  backdrop-filter: blur(20px) saturate(1.24) !important;
}

/* Keep the complete About copy, but let the secondary column read as typography instead of cards. */
html.light[data-theme="light"] body.home-page main #about .split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(38px, 6vw, 88px) !important;
}

html.light[data-theme="light"] body.home-page main #about .section-copy {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 24px;
  min-width: 0;
}

html.light[data-theme="light"] body.home-page main #about .feature-stack {
  display: grid !important;
  align-self: stretch !important;
  align-content: space-between !important;
  min-width: 0;
}

html.light[data-theme="light"] body.home-page main #about .section-copy > :is(h2, p, .section-actions) {
  margin-block: 0 !important;
}

/* Bring step numbers next to their headings and make them a strong navigation cue. */
html.light[data-theme="light"] body.home-page main #workflow .workflow-track {
  --workflow-number-column: clamp(46px, 4vw, 58px) !important;
  --workflow-row-gap: clamp(8px, 1vw, 12px) !important;
}

html.light[data-theme="light"] body.home-page main #workflow .workflow-step {
  align-items: start !important;
}

html.light[data-theme="light"] body.home-page main #workflow .workflow-step-number {
  align-self: start;
  justify-self: start;
  margin: 0 !important;
  font-family: "Newsreader", "Noto Serif", serif !important;
  font-size: clamp(2.15rem, 3.4vw, 3.05rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.92 !important;
}

html.light[data-theme="light"] body.home-page main #workflow .workflow-step-heading {
  display: grid;
  grid-template-columns: clamp(38px, 3.3vw, 48px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 0.8vw, 12px);
}

html.light[data-theme="light"] body.home-page main #workflow .workflow-step-title {
  align-self: center;
}

/* Premium editorial typography for every homepage card title. */
html.light[data-theme="light"] body.home-page main :is(
  .feature-row,
  .service-package-card,
  .reason-outcome,
  .reason-item,
  .workflow-step,
  .price-list > div,
  .article-card-home,
  .faq-list details,
  .doubt-item
) :is(h2, h3, summary) {
  font-family: "Newsreader", "Noto Serif", serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

/* All homepage cards lift into a slightly lighter platinum surface on hover. */
html.light[data-theme="light"] body.home-page main :is(
  .service-package-card,
  .reason-outcome,
  .reason-item,
  .workflow-step,
  .price-list > div,
  .article-card-home,
  .faq-list details,
  .doubt-item,
  .client-logo-row > div,
  .trust-note
):is(:hover, :focus-visible, :focus-within) {
  background-color: #fffefa !important;
  filter: brightness(1.025);
}

@media (max-width: 680px) {
  html.light[data-theme="light"] body.home-page .site-header {
    background: rgba(239, 240, 241, 0.76) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.22) !important;
    backdrop-filter: blur(18px) saturate(1.22) !important;
  }

  html.light[data-theme="light"] body.home-page main #workflow .workflow-track {
    --workflow-number-column: 42px !important;
    --workflow-row-gap: 9px !important;
  }

  html.light[data-theme="light"] body.home-page main #workflow .workflow-step-number {
    font-size: 2.2rem !important;
  }

  html.light[data-theme="light"] body.home-page main #workflow .workflow-step-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }
}

/* Final interaction pass: the same calm, luminous response as the Services cards. */
html.light[data-theme="light"] body main :is(
  .area-card,
  .service-package-card,
  .service-directory-card,
  .service-choice-card,
  .service-info-card,
  .case-card,
  .article-card,
  .article-summary-card,
  .reason-outcome,
  .reason-item,
  .workflow-step-copy,
  .subscription-plan,
  .subscription-benefit,
  .pricing-decision-card,
  .pricing-format-card,
  .pricing-service-item,
  .doubt-item,
  .contacts-panel,
  .contacts-row,
  .faq-list details,
  .subscription-faq-list details,
  .price-list > div,
  .client-logo-row > div,
  .trust-note
) {
  transition:
    border-color 190ms ease,
    background-color 190ms ease,
    box-shadow 190ms ease,
    filter 190ms ease,
    transform 190ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
  html.light[data-theme="light"] body main :is(
    .area-card,
    .service-package-card,
    .service-directory-card,
    .service-choice-card,
    .service-info-card,
    .case-card,
    .article-card,
    .article-summary-card,
    .reason-outcome,
    .reason-item,
    .workflow-step-copy,
    .subscription-plan,
    .subscription-benefit,
    .pricing-decision-card,
    .pricing-format-card,
    .pricing-service-item,
    .doubt-item,
    .contacts-panel,
    .contacts-row,
    .faq-list details,
    .subscription-faq-list details,
    .price-list > div,
    .client-logo-row > div,
    .trust-note
  ):is(:hover, :focus-visible, :focus-within) {
    border-color: rgba(166, 96, 60, 0.56) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.78),
      0 20px 44px rgba(35, 43, 50, 0.14),
      0 0 0 1px rgba(166, 96, 60, 0.08) !important;
    filter: brightness(1.055) !important;
    transform: translateY(-3px) !important;
  }
}

/* About: retain every line of copy, remove only the card chrome. */
html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main #about#about .feature-stack .feature-row.feature-row,
html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main #about#about .feature-stack .feature-row.feature-row:is(:hover, :focus-visible, :focus-within) {
  padding-inline: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Why choose us: equal-height editorial rows with the number attached to its title. */
html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: 1fr !important;
  max-width: 1040px !important;
  margin-inline: auto !important;
  gap: 10px !important;
  border-top: 0 !important;
}

html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item,
html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item:hover,
html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item:focus-within {
  display: grid !important;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr) !important;
  align-items: center !important;
  gap: clamp(18px, 2.5vw, 32px) !important;
  min-height: 104px !important;
  padding: 18px clamp(20px, 2.5vw, 30px) !important;
  border: 1px solid rgba(49, 71, 90, 0.18) !important;
  border-radius: 10px !important;
  background-color: rgba(255, 255, 255, 0.72) !important;
  overflow: hidden !important;
}

html.light[data-theme="light"] body #why-pro-lex .reason-list-heading {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0;
}

html.light[data-theme="light"] body #why-pro-lex .reason-list-heading::before,
html.light[data-theme="light"] body #why-pro-lex .reason-list-heading::after {
  display: none !important;
  content: none !important;
}

html.light[data-theme="light"] body #why-pro-lex .reason-list-number {
  align-self: center !important;
  padding: 0 !important;
  font-family: "Newsreader", "Noto Serif", serif !important;
  font-size: clamp(2.15rem, 3vw, 2.65rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.055em !important;
  line-height: 0.9 !important;
}

html.light[data-theme="light"] body #why-pro-lex .reason-editorial-list .reason-item h3 {
  grid-column: auto !important;
  max-width: 15ch !important;
  margin: 0 !important;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem) !important;
  line-height: 1.04 !important;
}

html.light[data-theme="light"] body #why-pro-lex .reason-editorial-list .reason-item .reason-list-explanation {
  grid-column: auto !important;
  align-self: center !important;
  max-width: 62ch !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Noto Serif", Georgia, serif !important;
  font-size: clamp(0.94rem, 1.1vw, 1rem) !important;
  font-style: italic !important;
  line-height: 1.48 !important;
}

/* Matte glass controls for page navigation and article carousels. */
html.light[data-theme="light"] body :is(.page-scroll-button, .articles-carousel-button) {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(226, 230, 233, 0.48) !important;
  background-image: none !important;
  color: #31475a !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 26px rgba(35, 43, 50, 0.13) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.18) !important;
  backdrop-filter: blur(16px) saturate(1.18) !important;
}

html.light[data-theme="light"] body :is(.page-scroll-button, .articles-carousel-button):is(:hover, :focus-visible) {
  border-color: rgba(166, 96, 60, 0.44) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  color: #1f3445 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 30px rgba(35, 43, 50, 0.16) !important;
}

@media (max-width: 820px) {
  html.light[data-theme="light"] body.home-page main #about .split-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item,
  html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item:hover,
  html.light[data-theme="light"] body #why-pro-lex .reasons-panel .reason-editorial-list .reason-item:focus-within {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  html.light[data-theme="light"] body #why-pro-lex .reason-editorial-list .reason-item h3 {
    max-width: none !important;
  }
}

@media (max-width: 520px) {
  html.light[data-theme="light"] body #why-pro-lex .reason-list-heading {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html.light[data-theme="light"] body #why-pro-lex .reason-list-number {
    font-size: 2.5rem !important;
  }
}

/* Dark frosted header with bright navigation and a light dropdown surface. */
html.light[data-theme="light"] body .site-header.site-header {
  background: linear-gradient(180deg, rgba(62, 62, 66, 0.74), rgba(32, 32, 36, 0.68)) !important;
  border-bottom-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 34px rgba(20, 20, 24, 0.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(0.35) !important;
  backdrop-filter: blur(28px) saturate(0.35) !important;
}

html.light[data-theme="light"] body .site-header.site-header :is(
  .brand, .main-nav, .nav-link, .nav-link-trigger, .header-phone, .header-phone-list a
) {
  color: #f5f3ee !important;
  text-shadow: none !important;
}

html.light[data-theme="light"] body .site-header.site-header :is(.nav-link, .nav-link-trigger, .header-phone-list a):is(:hover, :focus-visible) {
  color: #dfb58e !important;
}

html.light[data-theme="light"] body .site-header.site-header .header-phone {
  border-left-color: rgba(255, 255, 255, 0.22) !important;
}

html.light[data-theme="light"] body .site-header.site-header .material-symbols-outlined {
  color: #e3c3a4 !important;
}

html.light[data-theme="light"] body .site-header.site-header .brand-logo-dark,
html:not([data-theme="light"]) body .site-header.site-header .brand-logo-dark {
  display: block !important;
  filter: none !important;
}

html.light[data-theme="light"] body .site-header.site-header .brand-logo-light,
html:not([data-theme="light"]) body .site-header.site-header .brand-logo-light {
  display: none !important;
}

html.light[data-theme="light"] body:not(#header-cta-palette):not(#header-cta-surface) .site-header.site-header :is(.header-cta, .mobile-nav-cta),
html:not([data-theme="light"]) body:not(#header-cta-palette):not(#header-cta-surface) .site-header.site-header :is(.header-cta, .mobile-nav-cta) {
  background: linear-gradient(135deg, #959595, #626262) !important;
  border: 1px solid rgba(230, 230, 230, 0.5) !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

html.light[data-theme="light"] body:not(#header-cta-palette):not(#header-cta-surface) .site-header.site-header :is(.header-cta, .mobile-nav-cta):is(:hover, :focus-visible),
html:not([data-theme="light"]) body:not(#header-cta-palette):not(#header-cta-surface) .site-header.site-header :is(.header-cta, .mobile-nav-cta):is(:hover, :focus-visible) {
  background: linear-gradient(135deg, #a8a8a8, #747474) !important;
  color: #ffffff !important;
}

html.light[data-theme="light"] body .site-header.site-header .nav-dropdown-menu {
  background: rgba(250, 249, 246, 0.97) !important;
  border-color: rgba(166, 96, 60, 0.28) !important;
  color: #202a32 !important;
}

html.light[data-theme="light"] body .site-header.site-header .nav-dropdown-menu a {
  color: #202a32 !important;
  text-shadow: none !important;
}

html.light[data-theme="light"] body .site-header.site-header .nav-dropdown-menu a:is(:hover, :focus-visible) {
  background: #e9e3db !important;
  color: #6f452e !important;
}

@media (max-width: 980px) {
  html.light[data-theme="light"] body .site-header.site-header .main-nav {
    background: rgba(36, 36, 40, 0.84) !important;
    -webkit-backdrop-filter: blur(28px) saturate(0.35) !important;
    backdrop-filter: blur(28px) saturate(0.35) !important;
  }
}

/* Services archive: the grid itself must not draw an outer frame or divider
 * lines. Cards are separated by real spacing and react only on interaction. */
html body main .service-directory-grid {
  gap: 18px !important;
  overflow: visible !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body main .service-directory-grid > .service-directory-card {
  border: 0 !important;
  outline: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

@media (max-width: 640px) {
  html body main .service-directory-grid {
    gap: 16px !important;
  }
}

@media (max-width: 820px) {
  html.light[data-theme="light"] body.home-page main #about .section-copy {
    justify-content: flex-start !important;
  }
}

/* Eight popular services: four columns on desktop, two on tablet, one on mobile. */
html body.home-page main #popular .popular-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

html body.home-page main #popular .service-package-card {
  min-width: 0;
  padding: clamp(18px, 1.8vw, 26px) !important;
}

html body.home-page main #popular .service-package-card .package-heading h3 {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem) !important;
}

@media (max-width: 1100px) {
  html body.home-page main #popular .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  html body.home-page main #popular .popular-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Match the primary navigation surface to the deep steel-blue action buttons. */
html.light[data-theme="light"] body .site-header.site-header {
  background: #263746 !important;
  border-bottom-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 34px rgba(38, 55, 70, 0.24) !important;
}

@media (max-width: 980px) {
  html.light[data-theme="light"] body .site-header.site-header .main-nav {
    background: #263746 !important;
  }
}

/* Card geometry: keep content surfaces clearly rectangular. */
html body main :is(
  .service-package-card,
  .area-card,
  .service-directory-card,
  .service-choice-card,
  .service-info-card,
  .article-card,
  .article-summary-card,
  .reason-item,
  .reason-outcome,
  .doubt-item,
  .list-card,
  .case-card,
  .workflow-step,
  .workflow-step-surface,
  .pricing-decision-card,
  .pricing-format-card,
  .pricing-service-item,
  .subscription-plan,
  .subscription-benefit,
  .contacts-panel,
  .contacts-row,
  .contact-form,
  .faq-list details,
  .subscription-faq-list details
) {
  border-radius: 0 !important;
}

/* Final homepage surface lift: keep the rhythm, remove grey artwork washes. */
html.light[data-theme="light"] body.home-page main > :is(.trust-bar, #popular, #articles, .doubts-section) {
  background-color: #ffffff !important;
  background-image: none !important;
}

html.light[data-theme="light"] body.home-page main > :is(#about, #why-pro-lex),
html.light[data-theme="light"] body.home-page main :is(#reasons, #pricing) {
  background-color: #fdfdfc !important;
  background-image: none !important;
}

html.light[data-theme="light"] body.home-page main > :is(#services, #faq),
html.light[data-theme="light"] body.home-page main #workflow {
  background-color: #fafbfc !important;
  background-image: none !important;
}

html.light[data-theme="light"] body.home-page:not(#home-section-scope):not(#home-section-color-scope):not(#home-section-surface-scope) main#top #why-pro-lex#why-pro-lex #articles#articles {
  background-color: #ffffff !important;
  background-image: url("/document-provenance-light.svg?v=3") !important;
  background-position: right 6% top 72px !important;
  background-repeat: no-repeat !important;
  background-size: min(44vw, 640px) auto !important;
}

/* Header controls: keep them visually distinct from the deep-blue navigation. */
html.light[data-theme="light"] body .site-header.site-header .theme-toggle {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: #f1eee8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 20px rgba(10, 20, 28, 0.24) !important;
}

html.light[data-theme="light"] body .site-header.site-header .theme-toggle:is(:hover, :focus-visible) {
  border-color: #d8a27d !important;
  background: #fffaf3 !important;
}

html.light[data-theme="light"] body .site-header.site-header .theme-toggle-knob {
  background: #a6603c !important;
}

html.light[data-theme="light"] body .site-header.site-header .theme-toggle-sun {
  color: #ffffff !important;
}

html.light[data-theme="light"] body .site-header.site-header .theme-toggle-moon {
  color: #263746 !important;
}

/* The map glyph is sufficient; remove the extra circular blue base around it. */
html.light[data-theme="light"] body .site-map-toggle,
html.light[data-theme="light"] body .site-map-toggle:is(:hover, :focus-visible),
html.light[data-theme="light"] body .site-map-widget.is-open .site-map-toggle {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Consultation is the strongest action in the header. */
html.light[data-theme="light"] body:not(#header-cta-palette):not(#header-cta-surface) .site-header.site-header :is(.header-cta, .mobile-nav-cta),
html:not([data-theme="light"]) body:not(#header-cta-palette):not(#header-cta-surface) .site-header.site-header :is(.header-cta, .mobile-nav-cta) {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.12) 34%, transparent 52%),
    linear-gradient(135deg, #e4e6e8 0%, #b9bdc2 52%, #92989f 100%) !important;
  color: #182631 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(44, 53, 61, 0.2),
    0 8px 22px rgba(8, 16, 23, 0.3) !important;
}
html.light[data-theme="light"] body:not(#header-cta-palette):not(#header-cta-surface) .site-header.site-header :is(.header-cta, .mobile-nav-cta):is(:hover, :focus-visible),
html:not([data-theme="light"]) body:not(#header-cta-palette):not(#header-cta-surface) .site-header.site-header :is(.header-cta, .mobile-nav-cta):is(:hover, :focus-visible) {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.18) 36%, transparent 54%),
    linear-gradient(135deg, #f1f2f3 0%, #c9cdd1 54%, #a1a7ad 100%) !important;
  color: #101d27 !important;
}

/* Mobile menu control: platinum contrast against the deep-blue header. */
html.light[data-theme="light"] body .site-header.site-header .mobile-menu-toggle {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), transparent 44%),
    linear-gradient(135deg, #e3e5e7, #aeb3b9) !important;
  color: #182631 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 20px rgba(8, 16, 23, 0.28) !important;
}

html.light[data-theme="light"] body .site-header.site-header .mobile-menu-toggle:is(:hover, :focus-visible) {
  border-color: rgba(255, 255, 255, 0.92) !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), transparent 46%),
    linear-gradient(135deg, #f1f2f3, #c2c6ca) !important;
}

html.light[data-theme="light"] body .site-header.site-header .mobile-menu-toggle .material-symbols-outlined {
  color: #182631 !important;
}

/* Closing sequence: two full-width sections and the footer use distinct surfaces. */
html.light[data-theme="light"] body.home-page main > .doubts-section {
  background-color: #d9dde0 !important;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 46%),
    linear-gradient(180deg, #e2e5e7 0%, #d4d8dc 100%) !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts {
  background-color: #263746 !important;
  background-image:
    linear-gradient(90deg, rgba(38, 55, 70, 0.82) 0%, rgba(38, 55, 70, 0.58) 48%, rgba(23, 39, 51, 0.7) 100%),
    url("/assets/cta-contact-application-background.webp") !important;
  background-position: center 56% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .media-overlay {
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.08), transparent 22rem),
    linear-gradient(90deg, rgba(16, 29, 39, 0.14), rgba(10, 20, 28, 0.32)) !important;
}

/* Keep the closing contact section in the menu palette while its actionable
 * content remains light, calm and immediately readable. */
html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .cta-contact-item {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: linear-gradient(145deg, #ffffff 0%, #eef0f1 100%) !important;
  color: #182631 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 28px rgba(8, 18, 26, 0.2) !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts a.cta-contact-item:is(:hover, :focus-visible) {
  border-color: #d8a27d !important;
  background: #ffffff !important;
  color: #263746 !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .cta-contact-item .material-symbols-outlined {
  color: #a6603c !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form:not(.contact-form-compact),
html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form:not(.contact-form-compact):is(:hover, :focus-within) {
  --contact-form-ink: #182631;
  --contact-form-muted: #4f626f;
  --contact-form-soft: #61727d;
  --contact-form-border: rgba(38, 55, 70, 0.22);
  --contact-form-field: #f3f4f4;
  border-color: rgba(255, 255, 255, 0.78) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 240, 241, 0.98)) !important;
  color: #182631 !important;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 24px 58px rgba(8, 18, 26, 0.28) !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form .form-field input,
html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form .form-field textarea {
  border-color: rgba(38, 55, 70, 0.2) !important;
  background: #f7f8f8 !important;
  color: #182631 !important;
  caret-color: #182631 !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form .form-field input:is(:focus, :focus-visible),
html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form .form-field textarea:is(:focus, :focus-visible) {
  border-color: #a6603c !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(166, 96, 60, 0.14) !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form .form-field :is(input, textarea)::placeholder {
  color: #6c7982 !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .cta-contact-item :is(strong, .contact-phone-stack, .contact-phone-stack a) {
  color: #182631 !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form :is(
  .form-field > span,
  .form-hint,
  .form-status,
  .form-trust-list,
  .form-trust-list li
) {
  color: #4f626f !important;
}

html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .contact-form .form-field > span {
  color: #263746 !important;
}

/* The compact dialog form belongs directly on the dialog panel. Card hover and
 * focus rules must not paint a second grey rectangle behind its controls. */
html.light[data-theme="light"] body .contact-dialog .contact-form.contact-form-compact,
html.light[data-theme="light"] body .contact-dialog .contact-form.contact-form-compact:is(:hover, :focus, :focus-within) {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Responsive art direction: preserve the contact cue instead of centering on
 * the empty desk when the section becomes narrow or unusually wide. */
@media (min-width: 1600px) {
  html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts {
    background-position: center 60% !important;
  }
}

@media (max-width: 1100px) {
  html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts {
    background-position: 38% center !important;
  }
}

@media (max-width: 680px) {
  html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts {
    background-position: 16% center !important;
  }

  html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts .media-overlay {
    background:
      linear-gradient(180deg, rgba(22, 38, 50, 0.42), rgba(22, 38, 50, 0.72)),
      linear-gradient(90deg, rgba(16, 29, 39, 0.2), rgba(10, 20, 28, 0.38)) !important;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  html.light[data-theme="light"] body.home-page main > .cta.media-section#contacts {
    background-position: center 62% !important;
  }
}

html.light[data-theme="light"] body .site-footer {
  border-top-color: rgba(205, 213, 219, 0.18) !important;
  background: #0b1821 !important;
  background-image: none !important;
}

/* Footer identity mirrors the header mark and wordmark. */
html.light[data-theme="light"] body .site-footer .brand {
  color: #f5f3ee !important;
  text-shadow: none !important;
}

html.light[data-theme="light"] body .site-footer .brand-logo-dark {
  display: block !important;
  filter: none !important;
}

html.light[data-theme="light"] body .site-footer .brand-logo-light {
  display: none !important;
}

/* Cookie settings repeats the platinum Consultation treatment. */
html.light[data-theme="light"] body .site-footer .footer-cookie-settings {
  min-height: 42px !important;
  padding: 11px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 5px !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.12) 34%, transparent 52%),
    linear-gradient(135deg, #e4e6e8 0%, #b9bdc2 52%, #92989f 100%) !important;
  color: #182631 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(44, 53, 61, 0.2),
    0 8px 22px rgba(8, 16, 23, 0.3) !important;
}

html.light[data-theme="light"] body .site-footer .footer-cookie-settings:is(:hover, :focus-visible) {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.18) 36%, transparent 54%),
    linear-gradient(135deg, #f1f2f3 0%, #c9cdd1 54%, #a1a7ad 100%) !important;
  color: #101d27 !important;
}

/* Final article-card contrast lock. This intentionally sits after every
 * shared light-card rule so photography never receives dark body text. */
html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home,
html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home:is(:hover, :focus-visible) {
  border-color: rgba(205, 148, 92, 0.54) !important;
  background: #101719 !important;
  background-color: #101719 !important;
  color: #f8f4ec !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 42px rgba(18, 30, 36, 0.2) !important;
}

html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home::before,
html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home:is(:hover, :focus-visible)::before {
  opacity: 0.82 !important;
  filter: saturate(0.9) contrast(1.1) brightness(0.82) !important;
}

html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home::after,
html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home:is(:hover, :focus-visible)::after {
  background: linear-gradient(105deg, rgba(7, 12, 15, 0.94) 0%, rgba(10, 17, 21, 0.82) 54%, rgba(13, 20, 24, 0.54) 100%), linear-gradient(180deg, rgba(4, 8, 10, 0.1), rgba(4, 8, 10, 0.28)) !important;
  opacity: 1 !important;
}

html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home :is(strong, h2) {
  color: #fffdf8 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9) !important;
}

html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home :is(.article-card-description, p) {
  color: rgba(248, 244, 236, 0.9) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9) !important;
}

html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home :is(.article-card-index, .article-card-meta) {
  color: rgba(235, 239, 241, 0.78) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.86) !important;
}

html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home :is(.article-card-category, .article-card-link, .article-card-meta .material-symbols-outlined) {
  color: #e4ae78 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9) !important;
}

html.light[data-theme="light"] body.home-page main #articles .article-card.article-card-home .article-card-icon {
  border: 1px solid rgba(228, 174, 120, 0.24) !important;
  background: rgba(8, 15, 19, 0.68) !important;
  color: #e4ae78 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

/* FAQ typography follows the site's editorial/body pairing and scales cleanly
 * from compact phones to wide desktop layouts. */
body #faq.faq-section,
body #faq .faq-list {
  font-family: "Manrope", sans-serif;
}

body #faq .section-copy > h2 {
  font-family: "Noto Serif", serif !important;
  font-size: clamp(2.25rem, 3.5vw, 3.9rem) !important;
  line-height: 1.06 !important;
}

body #faq .section-copy > p {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(0.94rem, 0.35vw + 0.86rem, 1.08rem) !important;
  line-height: 1.65 !important;
}

body #faq .faq-list details > summary,
body #faq .faq-list details > summary * {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(0.94rem, 0.28vw + 0.88rem, 1.06rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.45 !important;
}

body #faq .faq-list details > p {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(0.9rem, 0.24vw + 0.85rem, 1rem) !important;
  line-height: 1.7 !important;
}

/* Social links are a fixed, background-free utility rail. Only the vertical
 * divider separates them from the page; focus is indicated without movement. */
html body .social-rail,
html body .social-rail:hover,
html body .social-rail:focus-within {
  --social-rail-width: 58px !important;
  width: 58px !important;
  transition: none !important;
}

html body .social-rail-line {
  top: -72px !important;
  bottom: -72px !important;
  background: rgba(235, 239, 242, 0.24) !important;
}

html.light[data-theme="light"] body .social-rail-line {
  background: rgba(38, 55, 70, 0.28) !important;
}

/* Premium card-title typography.
 * Keep supporting copy in the precise sans while giving every card a shared,
 * editorial headline voice. The optical-size axis makes Newsreader feel
 * composed rather than decorative at compact card sizes. */
html body :is(
  .service-package-card,
  .service-directory-card,
  .service-choice-card,
  .area-card,
  .article-card,
  .reason-item,
  .doubt-item,
  .workflow-step,
  .pricing-decision-card,
  .pricing-format-card,
  .pricing-service-item,
  .subscription-plan,
  .subscription-benefit,
  .list-card,
  .case-card,
  .service-info-card,
  .article-summary-card
) :is(h2, h3, h4, .workflow-step-title),
html body .service-choice-card > strong {
  font-family: "Newsreader", "Noto Serif", Georgia, serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

html body .social-rail-links,
html body .social-rail:hover .social-rail-links,
html body .social-rail:focus-within .social-rail-links {
  padding: 16px 5px 16px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  transition: none !important;
}

html body .social-rail-label {
  display: none !important;
}

html body .social-rail-link,
html body .social-rail-link:hover,
html body .social-rail-link:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body .social-rail-icon,
html body .social-rail-link:hover .social-rail-icon,
html body .social-rail-link:focus-visible .social-rail-icon {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body .social-rail-icon img,
html body .social-rail-link:hover .social-rail-icon img,
html body .social-rail-link:focus-visible .social-rail-icon img {
  transform: none !important;
}

@media (max-width: 680px) {
  body #faq .faq-list details > summary {
    padding-block: 15px !important;
  }

  html body .social-rail,
  html body .social-rail:hover,
  html body .social-rail:focus-within {
    --social-rail-width: 52px !important;
    width: 52px !important;
  }
}

/* Absolute final contrast guard for the photographic article carousel. */
html.light[data-theme="light"] body.home-page main#top #why-pro-lex#why-pro-lex #articles#articles .article-card.article-card-home > strong {
  color: #fffdf8 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92) !important;
}

html.light[data-theme="light"] body.home-page main#top #why-pro-lex#why-pro-lex #articles#articles .article-card.article-card-home > .article-card-description {
  color: rgba(248, 244, 236, 0.92) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92) !important;
}

html.light[data-theme="light"] body.home-page main#top #why-pro-lex#why-pro-lex #articles#articles .article-card.article-card-home > :is(.article-card-index, .article-card-meta) {
  color: #e4ae78 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9) !important;
}

html.light[data-theme="light"] body.home-page main#top #why-pro-lex#why-pro-lex #articles#articles .article-card.article-card-home > .article-card-category,
html.light[data-theme="light"] body.home-page main#top #why-pro-lex#why-pro-lex #articles#articles .article-card.article-card-home > .article-card-meta .material-symbols-outlined,
html.light[data-theme="light"] body.home-page main#top #why-pro-lex#why-pro-lex #articles#articles .article-card.article-card-home > .article-card-icon {
  color: #e4ae78 !important;
}

/* Centre the article carousel and keep every slide inside the article section. */
body.home-page #articles .articles-home-inner,
body.home-page #articles .articles-carousel,
body.home-page #articles .articles-carousel-viewport,
body.home-page #articles .articles-feature-grid {
  min-width: 0;
}

body.home-page #articles .articles-home-inner {
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

body.home-page #articles .articles-carousel {
  --articles-carousel-count: 4;
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

body.home-page #articles .articles-carousel-viewport {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

body.home-page #articles .articles-feature-grid {
  width: 100%;
  max-width: none;
}

body.home-page #articles .articles-feature-grid > .article-card-home {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.home-page #articles .articles-carousel-dots {
  justify-content: center;
}

@media (min-width: 761px) and (max-width: 1100px) {
  body.home-page #articles .articles-carousel {
    --articles-carousel-count: 2;
  }
}

@media (max-width: 760px) {
  body.home-page #articles .articles-carousel {
    --articles-carousel-count: 1;
    width: 100%;
  }
}
/* Card CTA arrows stay legible on the dark action buttons. */
html body main :is(.service-package-card, .service-directory-card, .case-card) .package-link .material-symbols-outlined,
html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main .service-package-card .package-link .material-symbols-outlined {
  color: #ffffff !important;
}

/* Mobile navigation: distinct top-level rows and an explicit services disclosure. */
.mobile-submenu-toggle {
  display: none;
}

@media (max-width: 980px) {
  body .site-header .main-nav {
    gap: 8px !important;
    padding: 12px !important;
  }

  body .site-header .main-nav > .nav-link,
  body .site-header .main-nav > .nav-dropdown > .nav-link-trigger {
    min-height: 52px !important;
    padding: 0 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: #f7f3ec !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  body .site-header .main-nav > .nav-link:is(:hover, :focus-visible),
  body .site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible) {
    border-color: rgba(213, 143, 94, 0.72) !important;
    background: rgba(255, 255, 255, 0.11) !important;
    color: #ffffff !important;
  }

  body .site-header .nav-dropdown {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body .site-header .nav-dropdown > .nav-link-trigger {
    grid-column: 1 / -1;
  }

  body .site-header .desktop-submenu-icon {
    display: inline-block !important;
    margin-left: auto;
    transition: transform 180ms ease;
  }

  body .site-header .nav-link-trigger[aria-expanded="true"] .desktop-submenu-icon {
    transform: rotate(180deg);
  }

  body .site-header .mobile-submenu-toggle {
    display: grid;
    width: 52px;
    min-height: 52px;
    grid-column: 2;
    place-items: center;
    border: 1px solid rgba(213, 143, 94, 0.7);
    border-radius: 6px;
    background: rgba(213, 143, 94, 0.14);
    color: #f1b489;
    cursor: pointer;
  }

  body .site-header .mobile-submenu-toggle:is(:hover, :focus-visible),
  body .site-header .mobile-submenu-toggle[aria-expanded="true"] {
    border-color: #e19a69;
    outline: none;
    background: rgba(213, 143, 94, 0.28);
    color: #ffffff;
  }

  body .site-header .mobile-submenu-toggle .material-symbols-outlined {
    transition: transform 180ms ease;
  }

  body .site-header .mobile-submenu-toggle[aria-expanded="true"] .material-symbols-outlined {
    transform: rotate(180deg);
  }

  body .site-header .nav-dropdown-menu {
    display: none !important;
    grid-column: 1 / -1;
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.17) !important;
    border-radius: 6px !important;
    background: rgba(245, 243, 239, 0.98) !important;
    box-shadow: 0 16px 34px rgba(5, 12, 17, 0.2) !important;
  }

  body .site-header .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid !important;
  }

  body .site-header .nav-dropdown-menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 12px !important;
    border: 1px solid rgba(38, 61, 78, 0.28) !important;
    border-radius: 5px !important;
    background: #fbfaf7 !important;
    color: #26343e !important;
  }

  body .site-header .nav-dropdown-menu a:is(:hover, :focus-visible) {
    border-color: rgba(166, 96, 60, 0.68) !important;
    background: #f0e5db !important;
    color: #603c29 !important;
  }
}

/* Trust metrics are typography, not tiles. Never paint a square behind them. */
html body .trust-bar :is(.stat-item, .stat-item strong, .stat-item > span),
html body .trust-bar :is(.stat-item, .stat-item strong, .stat-item > span)::before,
html body .trust-bar :is(.stat-item, .stat-item strong, .stat-item > span)::after {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* FAQ disclosure uses a CSS chevron, so no icon-font fallback text can appear. */
body #faq .faq-list .faq-chevron {
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: #31475a;
  font-size: 0 !important;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

body #faq .faq-list details[open] .faq-chevron {
  transform: rotate(225deg);
}

/* Final card geometry lock: cards stay rectangular in every interaction state. */
html body:not(#square-card-scope):not(#square-card-shape):not(#square-card-radius):not(#square-card-lock) :is(
  .article-card-home,
  .article-card,
  .service-card,
  .popular-card,
  .pricing-card,
  .package-card,
  .direction-card,
  .contact-card
),
html body:not(#square-card-scope):not(#square-card-shape):not(#square-card-radius):not(#square-card-lock) :is(
  .article-card-home,
  .article-card,
  .service-card,
  .popular-card,
  .pricing-card,
  .package-card,
  .direction-card,
  .contact-card
):is(:hover, :focus-within) {
  border-radius: 0 !important;
}

html.light[data-theme="light"] body.home-page:not(#home-card-scope):not(#home-card-color-scope):not(#home-card-surface-scope) main :is(
  .article-card-home,
  .article-card,
  .service-card,
  .popular-card,
  .pricing-card,
  .package-card,
  .direction-card,
  .contact-card
):not(#rectangular-card-override) {
  border-radius: 0 !important;
}

/* Service cards use the same surface and interaction as the outcome cards in
 * "Why choose Pro Lex Strategy". Keep this last so card families cannot drift. */
html.light[data-theme="light"] body.home-page main#top :is(#services#services, #popular#popular) :is(.service-package-card, .area-card) {
  border: 1px solid var(--home-glass-line) !important;
  border-radius: 0 !important;
  background: var(--home-glass-surface) !important;
  background-color: var(--home-glass-surface) !important;
  background-image: none !important;
  color: var(--home-glass-ink) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 40px rgba(25, 54, 64, 0.08),
    0 0 0 1px rgba(166, 96, 60, 0.05) !important;
}

html.light[data-theme="light"] body.home-page main#top :is(#services#services, #popular#popular) :is(.service-package-card, .area-card) :is(h2, h3, strong) {
  color: var(--home-glass-ink) !important;
}

html.light[data-theme="light"] body.home-page main#top :is(#services#services, #popular#popular) :is(.service-package-card, .area-card) :is(p, li, small, .service-package-description) {
  color: var(--home-glass-muted) !important;
}

html.light[data-theme="light"] body.home-page main#top :is(#services#services, #popular#popular) :is(.service-package-card, .area-card) :is(.material-symbols-outlined, .package-card-icon) {
  color: var(--home-glass-accent) !important;
}

@media (hover: hover) and (pointer: fine) {
  html.light[data-theme="light"] body.home-page main#top :is(#services#services, #popular#popular) :is(.service-package-card, .area-card):is(:hover, :focus-within) {
    border-color: var(--home-glass-line-strong) !important;
    background: var(--home-glass-surface-hover) !important;
    background-color: var(--home-glass-surface-hover) !important;
    background-image: none !important;
    box-shadow:
      inset 0 1px 0 #ffffff,
      0 22px 48px rgba(166, 96, 60, 0.15),
      0 0 0 1px rgba(166, 96, 60, 0.12) !important;
  }
}

/* The legal-tech hero stays photographic in the light theme. Replace the old
 * pale wash with a restrained dark contrast veil and light editorial copy. */
html.light[data-theme="light"] body.home-page main#top > .hero.media-section .media-overlay {
  background:
    linear-gradient(90deg, rgba(5, 11, 16, 0.62) 0%, rgba(5, 11, 16, 0.4) 42%, rgba(5, 11, 16, 0.1) 72%, transparent 100%),
    linear-gradient(180deg, rgba(5, 11, 16, 0.06), rgba(5, 11, 16, 0.24)) !important;
}

html.light[data-theme="light"] body.home-page main#top > .hero.media-section :is(
  .hero-title,
  .hero-brand,
  .hero-title-main,
  .hero-title-dash,
  .hero-inner > p
) {
  color: #fffaf2 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48) !important;
}

html.light[data-theme="light"] body.home-page main#top > .hero.media-section .hero-title-main > span {
  color: #f0b77e !important;
}

html.light[data-theme="light"] body.home-page main#top > .hero.media-section .text-link,
html.light[data-theme="light"] body.home-page main#top > .hero.media-section .text-link .material-symbols-outlined {
  color: #ffd09d !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52) !important;
}

/* The homepage navigation starts over the photograph and gains a frosted
 * surface only after the visitor begins scrolling. */
html.light[data-theme="light"] body.home-page .site-header.site-header {
  border-bottom-color: transparent !important;
  background: rgba(32, 48, 61, 0.38) !important;
  box-shadow: 0 8px 24px rgba(16, 29, 39, 0.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.18) !important;
  backdrop-filter: blur(16px) saturate(1.18) !important;
}

html.light[data-theme="light"] body.home-page .site-header.site-header.is-scrolled,
html.light[data-theme="light"] body.home-page .site-header.site-header.is-menu-open {
  border-bottom-color: transparent !important;
  background:
    linear-gradient(105deg, rgba(52, 74, 94, 0.68), rgba(37, 54, 68, 0.58) 62%, rgba(78, 62, 52, 0.48)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 34px rgba(24, 40, 52, 0.18) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.26) !important;
  backdrop-filter: blur(22px) saturate(1.26) !important;
}

html body.home-page:not(#header-white-text):not(#header-nav-white) .site-header.site-header .main-nav > .nav-link,
html body.home-page:not(#header-white-text):not(#header-nav-white) .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
  font-weight: 400 !important;
}

/* Match the hero's primary action to the platinum consultation button in the
 * navigation so it remains distinct from the warm photographic background. */
html.light[data-theme="light"] body.home-page main#top > .hero.media-section .button-primary,
html:not([data-theme="light"]) body.home-page main#top > .hero.media-section .button-primary {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.12) 34%, transparent 52%),
    linear-gradient(135deg, #e4e6e8 0%, #b9bdc2 52%, #92989f 100%) !important;
  color: #182631 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(44, 53, 61, 0.2),
    0 8px 22px rgba(8, 16, 23, 0.3) !important;
}

/* Cascade lock for the requested header states. Keep this final. */
html:not([data-theme="light"]) body .site-header.site-header {
  border-bottom-color: rgba(185, 130, 79, 0.14) !important;
  background: rgba(9, 8, 7, 0.78) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

html.light[data-theme="light"] body .site-header.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.24) !important;
  background: linear-gradient(180deg, rgba(62, 62, 66, 0.74), rgba(32, 32, 36, 0.68)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 34px rgba(20, 20, 24, 0.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(0.35) !important;
  backdrop-filter: blur(28px) saturate(0.35) !important;
}

html.light[data-theme="light"] body.home-page .site-header.site-header:not(.is-scrolled) {
  border-bottom-color: transparent !important;
  background: rgba(32, 48, 61, 0.38) !important;
  box-shadow: 0 8px 24px rgba(16, 29, 39, 0.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.18) !important;
  backdrop-filter: blur(16px) saturate(1.18) !important;
}

html body.home-page .site-header.site-header.is-scrolled,
html.light[data-theme="light"] body.home-page .site-header.site-header:is(.is-scrolled, .is-menu-open) {
  border-bottom-color: rgba(185, 130, 79, 0.22) !important;
  background: #132b36 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(4, 12, 17, 0.28) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.06) !important;
  backdrop-filter: blur(20px) saturate(1.06) !important;
}

html body .site-header.site-header :is(.main-nav, .nav-link, .nav-link-trigger, .header-phone, .header-phone-list a),
html body .site-header.site-header .main-nav > .nav-link,
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
  color: rgba(243, 238, 230, 0.88) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-shadow: none !important;
}

html.light[data-theme="light"] body.home-page .site-header.site-header :is(.main-nav, .nav-link, .nav-link-trigger, .header-phone, .header-phone-list a),
html.light[data-theme="light"] body.home-page .site-header.site-header .main-nav > .nav-link,
html.light[data-theme="light"] body.home-page .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
  color: #f3eee6 !important;
  text-shadow: 0 1px 12px rgba(5, 13, 18, 0.22) !important;
}

html body .site-header.site-header .main-nav > .nav-link::after,
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger::after {
  content: none !important;
}

html body .site-header.site-header .main-nav > .nav-link:is(:hover, :focus-visible),
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible),
html body .site-header.site-header .main-nav > .nav-dropdown:is(:hover, :focus-within) > .nav-link-trigger {
  color: #dfb58e !important;
}

html body .site-header.site-header .brand-logo-dark {
  display: block !important;
  filter: none !important;
}

html body .site-header.site-header .brand-logo-light {
  display: none !important;
}

@media (max-width: 1180px) {
  html body .site-header.site-header .main-nav {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(17, 31, 42, 0.97) !important;
  }

  html body.home-page .site-header.site-header.is-scrolled .main-nav {
    background: rgba(19, 43, 54, 0.985) !important;
  }
}

/* Final header behaviour: preserve the original over-Hero treatment and
 * switch to the exact footer surface only after the Hero has passed. */
html body .site-header.site-header {
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease !important;
}

html:not([data-theme="light"]) body .site-header.site-header {
  border-bottom-color: rgba(185, 130, 79, 0.14) !important;
  background: rgba(9, 8, 7, 0.78) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

html.light[data-theme="light"] body .site-header.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.24) !important;
  background: linear-gradient(180deg, rgba(62, 62, 66, 0.74), rgba(32, 32, 36, 0.68)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 34px rgba(20, 20, 24, 0.18) !important;
  -webkit-backdrop-filter: blur(28px) saturate(0.35) !important;
  backdrop-filter: blur(28px) saturate(0.35) !important;
}

html.light[data-theme="light"] body.home-page .site-header.site-header:not(.is-scrolled) {
  border-bottom-color: transparent !important;
  background: rgba(32, 48, 61, 0.38) !important;
  box-shadow: 0 8px 24px rgba(16, 29, 39, 0.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.18) !important;
  backdrop-filter: blur(16px) saturate(1.18) !important;
}

html body.home-page .site-header.site-header.is-scrolled {
  border-bottom-color: rgba(185, 130, 79, 0.22) !important;
  background: #0b1821 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(4, 12, 17, 0.28) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.06) !important;
  backdrop-filter: blur(20px) saturate(1.06) !important;
}

html body .site-header.site-header :is(
  .main-nav,
  .nav-link,
  .nav-link-trigger,
  .header-phone,
  .header-phone-list a
) {
  color: rgba(243, 238, 230, 0.88) !important;
  text-shadow: none !important;
}

html body .site-header.site-header .main-nav > .nav-link,
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
  color: rgba(243, 238, 230, 0.88) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-shadow: none !important;
}

html body .site-header.site-header .main-nav > .nav-link::after,
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger::after {
  content: none !important;
}

html body .site-header.site-header .main-nav > .nav-link:is(:hover, :focus-visible),
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible),
html body .site-header.site-header .main-nav > .nav-dropdown:is(:hover, :focus-within) > .nav-link-trigger {
  color: #dfb58e !important;
  text-shadow: none !important;
}

html body .site-header.site-header .brand-logo-dark {
  display: block !important;
  filter: none !important;
}

html body .site-header.site-header .brand-logo-light {
  display: none !important;
}

html body .site-header.site-header .header-phone {
  border-left-color: rgba(243, 238, 230, 0.14) !important;
}

html body .site-header.site-header .header-phone .material-symbols-outlined {
  color: rgba(208, 160, 107, 0.92) !important;
}

@media (max-width: 1180px) {
  html body .site-header.site-header .main-nav {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(17, 31, 42, 0.97) !important;
  }

  html body.home-page .site-header.site-header.is-scrolled .main-nav {
    background: rgba(11, 24, 33, 0.985) !important;
  }
}

/* Theme-specific navigation contract.
 * Dark returns to the original charcoal glass treatment. Light receives a
 * distinct mineral-paper surface instead of a flat grey tint. */
html:not([data-theme="light"]) body .site-header.site-header,
html:not([data-theme="light"]) body.home-page .site-header.site-header,
html:not([data-theme="light"]) body.home-page .site-header.site-header:is(.is-scrolled, .is-menu-open) {
  border-bottom-color: rgba(185, 130, 79, 0.14) !important;
  background: rgba(9, 8, 7, 0.78) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

html:not([data-theme="light"]) body .site-header.site-header .brand {
  color: var(--primary-strong) !important;
}

html:not([data-theme="light"]) body .site-header.site-header :is(
  .main-nav,
  .nav-link,
  .nav-link-trigger
) {
  color: rgba(243, 238, 230, 0.88) !important;
}

html:not([data-theme="light"]) body .site-header.site-header .main-nav > .nav-link,
html:not([data-theme="light"]) body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
  color: rgba(243, 238, 230, 0.88) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-shadow: none !important;
}

html:not([data-theme="light"]) body .site-header.site-header .main-nav > .nav-link::after,
html:not([data-theme="light"]) body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger::after {
  content: none !important;
}

html:not([data-theme="light"]) body .site-header.site-header .main-nav > .nav-link:is(:hover, :focus-visible),
html:not([data-theme="light"]) body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible),
html:not([data-theme="light"]) body .site-header.site-header .main-nav > .nav-dropdown:is(:hover, :focus-within) > .nav-link-trigger {
  color: var(--primary) !important;
  text-shadow: none !important;
}

html:not([data-theme="light"]) body .site-header.site-header .header-phone {
  border-left-color: rgba(243, 238, 230, 0.14) !important;
  color: rgba(243, 238, 230, 0.78) !important;
}

html:not([data-theme="light"]) body .site-header.site-header .header-phone .material-symbols-outlined {
  color: rgba(208, 160, 107, 0.92) !important;
}

html.light[data-theme="light"] body .site-header.site-header,
html.light[data-theme="light"] body.home-page .site-header.site-header {
  border-bottom-color: rgba(151, 83, 42, 0.32) !important;
  background:
    linear-gradient(
      108deg,
      rgba(255, 250, 241, 0.97) 0%,
      rgba(226, 237, 237, 0.96) 54%,
      rgba(244, 225, 202, 0.96) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 32px rgba(26, 53, 63, 0.14) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
  backdrop-filter: blur(22px) saturate(1.08) !important;
}

html.light[data-theme="light"] body.home-page .site-header.site-header:is(.is-scrolled, .is-menu-open) {
  border-bottom-color: rgba(151, 83, 42, 0.4) !important;
  background:
    linear-gradient(
      108deg,
      rgba(255, 250, 241, 0.99) 0%,
      rgba(226, 237, 237, 0.985) 54%,
      rgba(244, 225, 202, 0.985) 100%
    ) !important;
}

html.light[data-theme="light"] body .site-header.site-header :is(
  .brand,
  .main-nav,
  .nav-link,
  .nav-link-trigger,
  .header-phone,
  .header-phone-list a
) {
  color: #173746 !important;
  text-shadow: none !important;
}

html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-link,
html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
  color: #214b59 !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-link::after,
html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger::after {
  background: #b86936 !important;
  box-shadow: 0 0 10px rgba(184, 105, 54, 0.24) !important;
  content: "" !important;
  opacity: 0.26;
  transform: scaleX(0.62);
}

html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-link:is(:hover, :focus-visible),
html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible),
html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-dropdown:is(:hover, :focus-within) > .nav-link-trigger {
  color: #974c25 !important;
}

html.light[data-theme="light"] body .site-header.site-header .header-phone {
  border-left-color: rgba(151, 83, 42, 0.28) !important;
}

html.light[data-theme="light"] body .site-header.site-header :is(
  .header-phone .material-symbols-outlined,
  .desktop-submenu-icon
) {
  color: #a65a2d !important;
}

html.light[data-theme="light"] body .site-header.site-header .brand-logo-dark {
  display: none !important;
}

html.light[data-theme="light"] body .site-header.site-header .brand-logo-light {
  display: block !important;
  filter: drop-shadow(0 7px 14px rgba(80, 49, 28, 0.16)) !important;
}

html.light[data-theme="light"] body .site-header.site-header .nav-dropdown-menu {
  border-color: rgba(151, 83, 42, 0.28) !important;
  background: rgba(255, 250, 242, 0.985) !important;
  box-shadow: 0 22px 44px rgba(28, 54, 64, 0.18) !important;
}

html.light[data-theme="light"] body .site-header.site-header .nav-dropdown-menu a {
  border-color: rgba(33, 75, 89, 0.15) !important;
  background: rgba(225, 237, 237, 0.5) !important;
  color: #1d414e !important;
}

html.light[data-theme="light"] body .site-header.site-header .nav-dropdown-menu a:is(:hover, :focus-visible) {
  border-color: rgba(151, 83, 42, 0.38) !important;
  background: rgba(239, 213, 184, 0.56) !important;
  color: #87401f !important;
}

@media (max-width: 1180px) {
  html:not([data-theme="light"]) body .site-header.site-header .main-nav {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(17, 31, 42, 0.97) !important;
  }

  html.light[data-theme="light"] body .site-header.site-header .main-nav {
    border-color: rgba(151, 83, 42, 0.28) !important;
    background:
      linear-gradient(145deg, rgba(255, 250, 241, 0.99), rgba(224, 236, 236, 0.99)) !important;
    box-shadow: 0 24px 54px rgba(26, 53, 63, 0.2) !important;
  }

  html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-link,
  html.light[data-theme="light"] body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
    border-color: rgba(33, 75, 89, 0.18) !important;
    background: rgba(33, 75, 89, 0.055) !important;
    color: #173746 !important;
  }
}

/* Header palette: a deep petrol surface ties the navigation to the cool
 * architectural tones in the hero. Copper is reserved for interaction so
 * the navigation stays calm, legible and recognisably premium. */
html body .site-header.site-header {
  border-bottom-color: rgba(224, 163, 107, 0.24) !important;
  background:
    linear-gradient(112deg, rgba(20, 54, 70, 0.98), rgba(10, 34, 48, 0.97)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 34px rgba(8, 20, 29, 0.24) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.12) !important;
  backdrop-filter: blur(22px) saturate(1.12) !important;
}

html body.home-page .site-header.site-header {
  border-bottom-color: rgba(238, 174, 111, 0.34) !important;
  background:
    linear-gradient(112deg, rgba(20, 54, 70, 0.94), rgba(10, 34, 48, 0.91)) !important;
}

html body.home-page .site-header.site-header:is(.is-scrolled, .is-menu-open) {
  border-bottom-color: rgba(224, 163, 107, 0.28) !important;
  background:
    linear-gradient(112deg, rgba(20, 54, 70, 0.99), rgba(10, 34, 48, 0.985)) !important;
}

html body .site-header.site-header :is(
  .brand,
  .main-nav,
  .nav-link,
  .nav-link-trigger,
  .header-phone,
  .header-phone-list a
) {
  color: #f7f3eb !important;
}

html body .site-header.site-header .main-nav > .nav-link,
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
  position: relative;
  color: #f1c49a !important;
  font-weight: 700 !important;
  letter-spacing: 0.035em !important;
  text-shadow: 0 1px 12px rgba(7, 17, 24, 0.26) !important;
  transition: color 180ms ease, text-shadow 180ms ease !important;
}

html body .site-header.site-header .main-nav > .nav-link::after,
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  background: #f0ad6d;
  box-shadow: 0 0 12px rgba(240, 173, 109, 0.38);
  content: "";
  opacity: 0.28;
  transform: scaleX(0.68);
  transition: opacity 180ms ease, transform 180ms ease;
}

html body .site-header.site-header .main-nav > .nav-link:is(:hover, :focus-visible),
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible),
html body .site-header.site-header .main-nav > .nav-dropdown:is(:hover, :focus-within) > .nav-link-trigger {
  color: #ffb66f !important;
  text-shadow: 0 0 16px rgba(224, 163, 107, 0.2) !important;
}

html body .site-header.site-header .main-nav > .nav-link:is(:hover, :focus-visible)::after,
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible)::after,
html body .site-header.site-header .main-nav > .nav-dropdown:is(:hover, :focus-within) > .nav-link-trigger::after {
  opacity: 1;
  transform: scaleX(1);
}

html body .site-header.site-header .header-phone {
  border-left-color: rgba(224, 163, 107, 0.3) !important;
}

html body .site-header.site-header :is(
  .header-phone .material-symbols-outlined,
  .desktop-submenu-icon
) {
  color: #e0a36b !important;
}

@media (max-width: 1180px) {
  html body .site-header.site-header .main-nav {
    border-color: rgba(224, 163, 107, 0.24) !important;
    background:
      linear-gradient(145deg, rgba(20, 54, 70, 0.99), rgba(10, 34, 48, 0.985)) !important;
  }

  html body .site-header.site-header .main-nav > .nav-link::after,
  html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger::after {
    content: none;
  }
}

html.light[data-theme="light"] body.home-page main#top > .hero.media-section .button-primary:is(:hover, :focus-visible),
html:not([data-theme="light"]) body.home-page main#top > .hero.media-section .button-primary:is(:hover, :focus-visible) {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.18) 36%, transparent 54%),
    linear-gradient(135deg, #f1f2f3 0%, #c9cdd1 54%, #a1a7ad 100%) !important;
  color: #101d27 !important;
}

/* Final geometry contract: content cards remain square-cornered across the
 * homepage and all internal pages, regardless of later theme overrides. */
html body:not(#square-card-global-scope):not(#square-card-global-shape):not(#square-card-global-radius):not(#square-card-global-lock) :is(
  .service-package-card,
  .area-card,
  .service-directory-card,
  .service-choice-card,
  .service-info-card,
  .article-card,
  .article-summary-card,
  .reason-item,
  .reason-outcome,
  .doubt-item,
  .list-card,
  .case-card,
  .workflow-step,
  .workflow-step-surface,
  .pricing-decision-card,
  .pricing-format-card,
  .pricing-service-item,
  .pricing-options,
  .subscription-plan,
  .subscription-benefit,
  .contacts-panel,
  .contacts-row,
  .contact-form,
  .price-list > div,
  .client-logo-row > div,
  .trust-note,
  .wide-link,
  .faq-list > details,
  .subscription-faq-list > details
),
html body:not(#square-card-global-scope):not(#square-card-global-shape):not(#square-card-global-radius):not(#square-card-global-lock) :is(
  .service-package-card,
  .area-card,
  .service-directory-card,
  .service-choice-card,
  .service-info-card,
  .article-card,
  .article-summary-card,
  .reason-item,
  .reason-outcome,
  .doubt-item,
  .list-card,
  .case-card,
  .workflow-step,
  .workflow-step-surface,
  .pricing-decision-card,
  .pricing-format-card,
  .pricing-service-item,
  .pricing-options,
  .subscription-plan,
  .subscription-benefit,
  .contacts-panel,
  .contacts-row,
  .contact-form,
  .price-list > div,
  .client-logo-row > div,
  .trust-note,
  .wide-link,
  .faq-list > details,
  .subscription-faq-list > details
):is(:hover, :focus, :focus-visible, :focus-within) {
  border-radius: 0 !important;
}

/* Homepage card proportions: these two service collections are deliberately
 * landscape, not near-square or portrait. */
@media (min-width: 821px) {
  html body.home-page main#top #services .area-grid,
  html body.home-page main#top #popular .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  html body.home-page main#top #services .service-package-card {
    min-height: 300px !important;
    height: auto !important;
  }

  html body.home-page main#top #popular .service-package-card {
    min-height: 360px !important;
    height: auto !important;
  }

  html body.home-page main#top #services .service-package-card.area-card-wide {
    grid-column: 1 / -1 !important;
    display: flex !important;
    width: calc((100% - 24px) / 2) !important;
    min-height: 300px !important;
    flex-direction: column !important;
    justify-self: center !important;
  }
}

@media (max-width: 820px) {
  html body.home-page main#top #services .area-grid,
  html body.home-page main#top #popular .popular-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body.home-page main#top #services .service-package-card,
  html body.home-page main#top #popular .service-package-card,
  html body.home-page main#top #services .service-package-card.area-card-wide {
    width: 100% !important;
    min-height: 0 !important;
    grid-column: auto !important;
  }
}

/* Keep the Hero actions visible even if the entrance-animation class is
 * applied before its animation can finish. The primary action mirrors the
 * platinum-grey consultation control in the navigation. */
html body.home-page main#top > .hero.media-section .action-row {
  position: relative;
  z-index: 3;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

html.light[data-theme="light"] body.home-page main#top > .hero.media-section .button-primary,
html:not([data-theme="light"]) body.home-page main#top > .hero.media-section .button-primary {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.12) 34%, transparent 52%),
    linear-gradient(135deg, #e4e6e8 0%, #b9bdc2 52%, #92989f 100%) !important;
  color: #182631 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(44, 53, 61, 0.2),
    0 8px 22px rgba(8, 16, 23, 0.3) !important;
}

/* Final navigation contract: crisp petrol surfaces and an all-white identity. */
html:not([data-theme="light"]) body .site-header.site-header,
html.light[data-theme="light"] body .site-header.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  background: #0b1821 !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.light[data-theme="light"] body.home-page .site-header.site-header:not(.is-scrolled),
html:not([data-theme="light"]) body.home-page .site-header.site-header:not(.is-scrolled) {
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(11, 24, 33, 0.62) !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.08) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}

html body.home-page .site-header.site-header.is-scrolled,
html.light[data-theme="light"] body.home-page .site-header.site-header:is(.is-scrolled, .is-menu-open) {
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
  background: #0b1821 !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body .site-header.site-header :is(
  .brand,
  .main-nav,
  .nav-link,
  .nav-link-trigger,
  .header-phone,
  .header-phone-list a,
  .header-phone .material-symbols-outlined,
  .desktop-submenu-icon
),
html.light[data-theme="light"] body.home-page .site-header.site-header .main-nav > .nav-link,
html.light[data-theme="light"] body.home-page .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger {
  border-bottom: 0 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

html body .site-header.site-header .brand > span,
html.light[data-theme="light"] body.home-page .site-header.site-header .brand > span,
html:not([data-theme="light"]) body.home-page .site-header.site-header .brand > span {
  color: #ffffff !important;
  text-shadow: none !important;
}

html body.home-page:not(#header-white-text):not(#header-nav-white) .site-header.site-header .header-phone,
html body.home-page:not(#header-white-text):not(#header-nav-white) .site-header.site-header .header-phone-list a {
  color: #ffffff !important;
  text-shadow: none !important;
}

html body .site-header.site-header .main-nav > .nav-link::after,
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger::after,
html.light[data-theme="light"] body.home-page .site-header.site-header .main-nav > .nav-link::after,
html.light[data-theme="light"] body.home-page .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
  opacity: 0 !important;
}

html body .site-header.site-header .main-nav > .nav-link:is(:hover, :focus-visible),
html body .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible),
html body .site-header.site-header .main-nav > .nav-dropdown:is(:hover, :focus-within) > .nav-link-trigger,
html body.home-page:not(#header-white-text):not(#header-nav-white) .site-header.site-header .main-nav > .nav-link:is(:hover, :focus-visible),
html body.home-page:not(#header-white-text):not(#header-nav-white) .site-header.site-header .main-nav > .nav-dropdown > .nav-link-trigger:is(:hover, :focus-visible) {
  color: #ffffff !important;
}

html body .site-header.site-header .brand-logo-dark,
html.light[data-theme="light"] body.home-page .site-header.site-header .brand-logo-dark {
  display: block !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

html body .site-header.site-header .brand-logo-light,
html.light[data-theme="light"] body.home-page .site-header.site-header .brand-logo-light {
  display: none !important;
}

@media (max-width: 1180px) {
  html body .site-header.site-header .main-nav {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: #0b1821 !important;
  }

  html body.home-page .site-header.site-header.is-scrolled .main-nav {
    background: #0b1821 !important;
  }
}

/* Cooperation stages: keep the editorial hierarchy compact and measured. */
html.light[data-theme="light"] body.home-page main #workflow .workflow-step-title {
  font-size: clamp(0.98rem, 1.12vw, 1.16rem) !important;
}

html.light[data-theme="light"] body.home-page main #workflow .workflow-step-number {
  font-size: clamp(0.95rem, 1.45vw, 1.325rem) !important;
}

@media (max-width: 680px) {
  html.light[data-theme="light"] body.home-page main #workflow .workflow-step-title {
    font-size: 0.98rem !important;
  }

  html.light[data-theme="light"] body.home-page main #workflow .workflow-step-number {
    font-size: 0.95rem !important;
  }
}

/* Unify content CTAs with the footer surface; header controls keep their own design. */
html body:not(#site-button-palette):not(#site-button-surface):not(#site-button-tone):not(#site-button-ink) :is(
  .button:not(.header-cta):not(.mobile-nav-cta),
  .package-link,
  .mobile-sticky-contact
) {
  border-color: #0b1821 !important;
  background: #0b1821 !important;
  background-color: #0b1821 !important;
  background-image: none !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

html body:not(#site-button-palette):not(#site-button-surface):not(#site-button-tone):not(#site-button-ink) :is(
  .button:not(.header-cta):not(.mobile-nav-cta),
  .package-link,
  .mobile-sticky-contact
):is(:hover, :focus-visible) {
  border-color: #153144 !important;
  background: #153144 !important;
  background-color: #153144 !important;
  background-image: none !important;
  color: #ffffff !important;
}

html body:not(#site-button-palette):not(#site-button-surface):not(#site-button-tone):not(#site-button-ink) :is(
  .button:not(.header-cta):not(.mobile-nav-cta),
  .package-link,
  .mobile-sticky-contact
) .material-symbols-outlined {
  color: #ffffff !important;
}
