/*
 * Optimal Home Premium Depth System 0.2.9
 * Shared tactile surfaces, responsive radii and restrained interaction depth.
 */

:root {
  --oh-radius-xs: 8px;
  --oh-radius-sm: 12px;
  --oh-radius-md: 20px;
  --oh-radius-lg: 30px;
  --oh-radius-signature: 30px 30px 96px 30px;
  --oh-radius-signature-reverse: 30px 30px 30px 96px;
  --oh-shadow-recessed:
    inset 7px 7px 16px rgba(108, 102, 90, 0.1),
    inset -7px -7px 16px rgba(255, 255, 255, 0.72);
  --oh-shadow-raised:
    18px 20px 44px rgba(48, 44, 36, 0.12),
    -12px -12px 30px rgba(255, 255, 255, 0.68),
    inset 1px 1px 0 rgba(255, 255, 255, 0.78);
  --oh-shadow-floating:
    0 38px 82px rgba(15, 24, 28, 0.2),
    0 10px 24px rgba(15, 24, 28, 0.11),
    inset 1px 1px 0 rgba(255, 255, 255, 0.68);
  --oh-shadow-dark-raised:
    28px 32px 72px rgba(0, 0, 0, 0.26),
    -12px -12px 34px rgba(255, 255, 255, 0.025),
    inset 1px 1px 0 rgba(255, 255, 255, 0.1);
  --oh-depth-ease: cubic-bezier(0.2, 0.76, 0.24, 1);
  --oh-radius-card: var(--oh-radius-md);
  --oh-radius-button: var(--oh-radius-sm);
}

/* Navigation: tactile controls and a visible mobile scroll affordance. */
#brx-header .oh-header-nav-link {
  border-radius: 10px !important;
}

#brx-header .oh-header-phone {
  border-radius: 12px !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.2),
    inset 1px 1px 0 rgba(255, 255, 255, 0.46) !important;
}

@media (max-width: 1100px) {
  #brx-header .oh-header-nav {
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 14px;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 22px), transparent);
  }

  #brx-header .oh-header-nav::-webkit-scrollbar {
    display: none;
  }

  #brx-header .oh-header-nav-link {
    scroll-snap-align: start;
  }
}

/* Homepage: preserve the editorial rhythm, deepen only the key decision surfaces. */
body.page-id-20 #brxe-monsbj {
  border: 1px solid rgba(17, 25, 29, 0.08) !important;
  border-radius: var(--oh-radius-md) !important;
  background: linear-gradient(145deg, rgba(235, 237, 232, 0.96), rgba(249, 249, 246, 0.9)) !important;
  box-shadow: var(--oh-shadow-recessed) !important;
}

body.page-id-20 #brxe-uxzpcs {
  overflow: hidden;
  border-radius: var(--oh-radius-signature) !important;
  box-shadow:
    14px 16px 0 rgba(215, 182, 111, 0.86),
    var(--oh-shadow-floating) !important;
}

body.page-id-20 #brxe-uxzpcs:hover {
  box-shadow:
    9px 11px 0 rgba(184, 111, 66, 0.9),
    0 30px 68px rgba(15, 24, 28, 0.22) !important;
}

.oh-decision-compass__shell {
  border-radius: var(--oh-radius-lg);
  box-shadow:
    24px 28px 66px rgba(94, 86, 72, 0.15),
    -14px -14px 38px rgba(255, 255, 255, 0.7),
    inset 1px 1px 0 rgba(255, 255, 255, 0.84);
}

.oh-decision-compass__tab {
  border-radius: 14px;
}

.oh-decision-compass__tab:hover,
.oh-decision-compass__tab:focus-visible,
.oh-decision-compass__tab.is-active {
  box-shadow:
    inset 5px 5px 12px rgba(17, 25, 29, 0.08),
    inset -5px -5px 12px rgba(255, 255, 255, 0.5);
}

.oh-pro-home-bridge__media {
  overflow: hidden;
  border-radius: var(--oh-radius-signature-reverse);
  box-shadow: var(--oh-shadow-dark-raised);
}

/* Homepage guide bridge: varied silhouettes make the library feel authored. */
.oh-home-knowledge__guide {
  position: relative;
  overflow: hidden;
  border-radius: 22px 22px 50px 22px;
  box-shadow: var(--oh-shadow-raised);
}

.oh-home-knowledge__guide:nth-child(3n) {
  border-radius: 22px 22px 22px 50px;
}

.oh-home-knowledge__guide--lead {
  border-radius: var(--oh-radius-signature);
  box-shadow: var(--oh-shadow-dark-raised);
}

.oh-home-knowledge__guide:hover,
.oh-home-knowledge__guide:focus-within {
  box-shadow: var(--oh-shadow-floating);
  transform: translateY(-6px);
}

.oh-home-knowledge__faq {
  border-radius: var(--oh-radius-signature-reverse);
  box-shadow: var(--oh-shadow-dark-raised);
}

.oh-home-knowledge__faq-list article {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: var(--oh-radius-sm);
  transition: background-color 200ms ease, transform 200ms var(--oh-depth-ease);
}

.oh-home-knowledge__faq-list article:hover {
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(4px);
}

/* Service pages: three levels - raised outcome, soft process, floating trust. */
.oh-service-button {
  border-radius: var(--oh-radius-sm);
}

.oh-service-hero__media {
  border-radius: var(--oh-radius-signature);
  box-shadow: var(--oh-shadow-dark-raised);
}

.oh-service-hero__media::before,
.oh-service-hero__media img {
  border-radius: 16px 16px 70px 16px;
}

.oh-service-outcome__grid {
  gap: 16px;
  border: 0;
}

.oh-service-outcome__grid article,
.oh-service-outcome__grid article + article {
  min-height: 310px;
  padding: 36px 32px 40px;
  border: 1px solid rgba(17, 25, 29, 0.08);
  border-radius: var(--oh-radius-md);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--oh-shadow-raised);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms var(--oh-depth-ease);
}

.oh-service-outcome__grid article:nth-child(2) {
  border-radius: 20px 20px 54px 20px;
}

.oh-service-outcome__grid article:nth-child(3) {
  border-radius: 20px 20px 20px 54px;
}

.oh-service-process__steps {
  display: grid;
  gap: 14px;
  border-top: 0;
}

.oh-service-process__steps li {
  padding: 28px 30px;
  border: 1px solid rgba(17, 25, 29, 0.075);
  border-radius: var(--oh-radius-md);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    12px 14px 30px rgba(86, 80, 68, 0.08),
    -8px -8px 22px rgba(255, 255, 255, 0.66),
    inset 1px 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--oh-depth-ease);
}

.oh-service-process__steps li:nth-child(even) {
  border-radius: 20px 20px 42px 20px;
}

.oh-service-checks__statement {
  border-radius: var(--oh-radius-signature);
  box-shadow: var(--oh-shadow-dark-raised);
}

.oh-service-checks__list li {
  margin-inline: -16px;
  padding-inline: 16px;
  border-radius: 14px;
  transition: background-color 220ms ease, transform 220ms var(--oh-depth-ease);
}

.oh-service-contact__form {
  border-radius: var(--oh-radius-signature-reverse);
  box-shadow: var(--oh-shadow-floating);
}

/* Forms: inset fields and a raised action, with the native focus ring retained. */
.page-id-20 .oh-contact-form-shell,
.home .oh-contact-form-shell {
  border-radius: var(--oh-radius-signature-reverse);
  box-shadow: var(--oh-shadow-floating);
}

.oh-contact-form input:not([type="checkbox"]),
.oh-contact-form select,
.oh-contact-form textarea {
  border-radius: var(--oh-radius-sm);
  background: #fbfcfa;
  box-shadow:
    inset 4px 4px 10px rgba(43, 53, 48, 0.07),
    inset -4px -4px 10px rgba(255, 255, 255, 0.9);
}

.oh-contact-form input:not([type="checkbox"]):focus,
.oh-contact-form select:focus,
.oh-contact-form textarea:focus {
  box-shadow:
    0 0 0 3px rgba(184, 146, 70, 0.18),
    inset 3px 3px 8px rgba(43, 53, 48, 0.06);
}

.oh-contact-form .ff-btn-submit {
  border-radius: var(--oh-radius-sm);
  box-shadow:
    0 14px 28px rgba(78, 56, 22, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.42);
}

/* Guide hub and articles. */
.oh-guide-experience .oh-guide-button {
  border-radius: var(--oh-radius-sm);
}

.oh-guide-card {
  border-radius: 22px 22px 54px 22px;
  box-shadow: var(--oh-shadow-raised);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms var(--oh-depth-ease);
}

.oh-guide-card:nth-child(3n) {
  border-radius: 22px 22px 22px 54px;
}

.oh-guide-card--lead {
  border-radius: var(--oh-radius-signature);
}

.oh-guide-card:hover,
.oh-guide-card:focus-within {
  box-shadow: var(--oh-shadow-floating);
  transform: translateY(-7px);
}

.oh-guide-card__meta span,
.oh-guide-single__meta span {
  border-radius: 999px;
}

.oh-guide-faq__grid {
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.oh-guide-faq__item {
  border: 1px solid rgba(16, 24, 28, 0.08);
  border-radius: var(--oh-radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--oh-shadow-raised);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--oh-depth-ease);
}

.oh-guide-faq__item:nth-child(4n + 2),
.oh-guide-faq__item:nth-child(4n + 3) {
  border-radius: 20px 20px 48px 20px;
}

.oh-guide-faq__item:hover {
  border-color: rgba(184, 111, 66, 0.28);
  box-shadow: var(--oh-shadow-floating);
  transform: translateY(-4px);
}

.oh-guide-single-hero__art {
  overflow: hidden;
  border-radius: var(--oh-radius-signature);
  box-shadow:
    22px 24px 0 rgba(255, 255, 255, 0.035),
    var(--oh-shadow-dark-raised);
}

.oh-guide-single__prose blockquote {
  overflow: hidden;
  border-left: 0;
  border-radius: var(--oh-radius-signature-reverse);
  background:
    radial-gradient(circle at 94% 12%, rgba(215, 182, 111, 0.14), transparent 34%),
    var(--oh-guide-ink-2);
  box-shadow: var(--oh-shadow-floating);
}

.oh-guide-single__prose blockquote::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  content: "";
  background: var(--oh-guide-gold);
}

.oh-guide-agent {
  border-radius: 24px 24px 62px 24px;
  box-shadow: var(--oh-shadow-raised);
}

.oh-guide-related article {
  border-radius: var(--oh-radius-md);
  box-shadow:
    12px 14px 30px rgba(86, 80, 68, 0.08),
    -8px -8px 22px rgba(255, 255, 255, 0.55);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--oh-depth-ease);
}

@media (hover: hover) and (pointer: fine) {
  .oh-service-outcome__grid article:hover,
  .oh-service-process__steps li:hover,
  .oh-guide-related article:hover {
    border-color: rgba(184, 111, 66, 0.3);
    box-shadow: var(--oh-shadow-floating);
    transform: translateY(-5px);
  }

  .oh-service-checks__list li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
  }
}

@media (max-width: 767px) {
  :root {
    --oh-radius-md: 16px;
    --oh-radius-lg: 22px;
    --oh-radius-signature: 22px 22px 54px 22px;
    --oh-radius-signature-reverse: 22px 22px 22px 54px;
    --oh-shadow-floating:
      0 24px 54px rgba(15, 24, 28, 0.17),
      0 8px 18px rgba(15, 24, 28, 0.08),
      inset 1px 1px 0 rgba(255, 255, 255, 0.58);
  }

  .oh-service-switcher__links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
  }

  .oh-service-switcher__links a {
    min-width: 0;
    padding-inline: 5px;
  }

  body.page-id-20 #brxe-uxzpcs,
  .oh-service-hero__media,
  .oh-service-checks__statement,
  .oh-service-contact__form,
  .oh-guide-single-hero__art,
  .oh-home-knowledge__guide--lead {
    border-radius: var(--oh-radius-signature) !important;
  }

  .oh-home-knowledge__faq,
  .page-id-20 .oh-contact-form-shell,
  .home .oh-contact-form-shell,
  .oh-guide-single__prose blockquote {
    border-radius: var(--oh-radius-signature-reverse);
  }

  .oh-service-hero__media::before,
  .oh-service-hero__media img {
    border-radius: 12px 12px 38px 12px;
  }

  .oh-service-outcome__grid {
    gap: 12px;
    border: 0;
  }

  .oh-service-outcome__grid article,
  .oh-service-outcome__grid article + article {
    min-height: 0;
    padding: 28px 24px 32px;
    border: 1px solid rgba(17, 25, 29, 0.07);
    border-radius: var(--oh-radius-md);
  }

  .oh-service-process__steps li {
    padding: 24px 20px;
  }

  .oh-guide-faq__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .oh-guide-faq__item,
  .oh-guide-faq__item:nth-child(4n + 2),
  .oh-guide-faq__item:nth-child(4n + 3) {
    min-height: 0;
    border-radius: var(--oh-radius-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oh-home-knowledge__guide,
  .oh-home-knowledge__faq-list article,
  .oh-service-outcome__grid article,
  .oh-service-process__steps li,
  .oh-service-checks__list li,
  .oh-guide-card,
  .oh-guide-faq__item,
  .oh-guide-related article {
    transition: none !important;
    transform: none !important;
  }
}
