/* Mahogany + refined gold — classic premium legal materials */

.page-imm {
  --wood: #3d221c;
  --wood-mid: #4a2a22;
  --wood-deep: #1c100e;
  --wood-glow: #5c3830;
  --wood-bright: #6e463c;
  --gold: #f4c563;
  --gold-soft: #e8c878;
  --gold-deep: #b8862d;
  --gold-line: rgba(244, 197, 99, 0.45);
  --wood-tex: url("../images/generated/texture-mahogany.jpg");
}

/* Utility surfaces */
.page-imm .mat-wood {
  background-color: var(--wood-deep);
  background-image:
    linear-gradient(180deg, rgba(80, 50, 42, 0.25), transparent 40%, rgba(8, 4, 4, 0.55)),
    var(--wood-tex);
  background-size: auto, cover;
  background-position: center;
  background-blend-mode: multiply, normal;
}

.page-imm .mat-gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--gold-deep), var(--gold-soft), transparent);
}

/* —— Header: wood plinth + gold hairline —— */
.page-imm {
  --imm-header-h: 92px;
}

.page-imm .service-hero > .site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200 !important;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 10px clamp(24px, 3.5vw, 56px) 12px !important;
  gap: 16px !important;
  box-sizing: border-box;
  min-height: var(--imm-header-h);
}

.page-imm .service-hero {
  padding-top: calc(var(--imm-header-h) + 16px) !important;
}

.page-imm .site-header {
  border: 1px solid rgba(244, 197, 99, 0.28) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 244, 210, 0.12) !important;
}

.page-imm .site-header::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(180deg, rgba(244, 197, 99, 0.55), transparent 60%),
    linear-gradient(90deg, var(--wood-deep), var(--wood-mid), var(--wood-glow), var(--wood-mid), var(--wood-deep)),
    var(--wood-tex);
  background-size: auto, auto, 200px auto;
  background-blend-mode: soft-light, soft-light, normal;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.page-imm .brand__mark,
.page-imm img.brand__mark {
  width: auto !important;
  height: 72px !important;
  max-height: 76px !important;
  max-width: min(280px, 42vw) !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
  overflow: visible !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

.page-imm .brand {
  flex-direction: column;
  align-items: center;
  width: fit-content;
  gap: 4px !important;
  overflow: visible !important;
}

.page-imm .brand__name {
  display: none !important;
}

.page-imm .brand__slogan {
  color: var(--gold) !important;
  text-shadow: 0 0 16px rgba(244, 197, 99, 0.2);
  font-size: 0.62rem !important;
  letter-spacing: 0.1em;
  white-space: nowrap !important;
  max-width: none !important;
  width: auto !important;
  text-align: center !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.page-imm .site-header {
  padding-top: 10px !important;
  padding-bottom: 12px !important;
  align-items: center !important;
  overflow: visible !important;
}

.page-imm .btn--header {
  padding: 11px 20px !important;
  font-size: 0.88rem !important;
}

.page-imm .header-phone__num {
  font-size: 0.95rem !important;
}

.page-imm .header-phone__hours {
  font-size: 0.72rem !important;
}

.page-imm .nav-main a {
  font-size: 0.9rem !important;
  padding: 8px 12px !important;
}

/* —— Left rail: mahogany frame, gold inner —— */
.page-imm .imm-rail__inner {
  border: 1px solid rgba(244, 197, 99, 0.35) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 244, 210, 0.08),
    inset 0 0 0 6px rgba(42, 16, 12, 0.55) !important;
  background:
    linear-gradient(165deg, rgba(36, 28, 62, 0.72), rgba(18, 12, 34, 0.88)),
    linear-gradient(90deg, rgba(74, 31, 24, 0.35), transparent 18%) !important;
  overflow: hidden;
}

.page-imm .imm-rail__inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background:
    linear-gradient(180deg, rgba(244, 197, 99, 0.35), transparent 20%, transparent 80%, rgba(244, 197, 99, 0.25)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 75%),
    var(--wood-tex);
  background-size: auto, auto, 140px auto;
  background-position: center, center, left center;
  background-blend-mode: soft-light, multiply, normal;
  box-shadow:
    2px 0 12px rgba(0, 0, 0, 0.45),
    inset -1px 0 0 rgba(244, 197, 99, 0.28);
  z-index: 2;
  pointer-events: none;
}

.page-imm .imm-rail__inner {
  position: relative;
}

.page-imm .imm-rail__label {
  color: var(--gold) !important;
}

.page-imm .imm-rail__nav a.is-active {
  background: linear-gradient(90deg, rgba(244, 197, 99, 0.14), rgba(74, 31, 24, 0.2)) !important;
  border: 1px solid rgba(244, 197, 99, 0.22);
}

.page-imm .imm-rail__progress {
  background: rgba(42, 16, 12, 0.65) !important;
  border: 1px solid rgba(244, 197, 99, 0.2);
}

/* —— Section heads: wood bar + gold underline —— */
.page-imm .imm-block__head {
  position: relative;
  padding-left: 18px;
  margin-bottom: 28px !important;
}

.page-imm .imm-block__head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 6px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(244, 197, 99, 0.35), transparent 22%, transparent 78%, rgba(244, 197, 99, 0.25)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent),
    var(--wood-tex);
  background-size: auto, auto, 100px auto;
  background-position: center, center, center;
  background-blend-mode: soft-light, multiply, normal;
  box-shadow: 0 0 0 1px rgba(244, 197, 99, 0.28);
}

.page-imm .imm-kicker {
  color: var(--gold) !important;
}

.page-imm .imm-block__title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.page-imm .imm-block__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 7.5rem);
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
  box-shadow: 0 0 12px rgba(244, 197, 99, 0.35);
}

/* —— Hero visual: wood+gold picture frame —— */
.page-imm .hero-shot {
  border: 1px solid rgba(244, 197, 99, 0.4) !important;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.42),
    inset 0 0 0 5px rgba(28, 16, 14, 0.9),
    inset 0 0 0 6px rgba(244, 197, 99, 0.35) !important;
  background:
    linear-gradient(145deg, rgba(60, 36, 30, 0.5), rgba(18, 12, 34, 0.85)) !important;
}

.page-imm .hero-shot__cap {
  background:
    linear-gradient(180deg, rgba(42, 16, 12, 0.75), rgba(20, 10, 8, 0.9)) !important;
  border-top: 1px solid rgba(244, 197, 99, 0.35) !important;
  color: var(--gold-soft) !important;
}

.page-imm .service-stat {
  border: 1px solid rgba(244, 197, 99, 0.22) !important;
  box-shadow: inset 0 -2px 0 rgba(74, 31, 24, 0.55);
}

.page-imm .service-stat__value {
  color: var(--gold) !important;
}

/* —— Case cards: mahogany edge + gold corners —— */
.page-imm .case-card--rich {
  border-color: rgba(244, 197, 99, 0.22) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 5px 0 0 rgba(74, 31, 24, 0.85) !important;
}

.page-imm .case-card--rich::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(244, 197, 99, 0.12);
  pointer-events: none;
}

.page-imm .case-card--rich {
  position: relative;
}

.page-imm .case-card--rich .card-head__text {
  border-left-color: rgba(244, 197, 99, 0.4) !important;
}

/* —— Benefits desk strips: wood already in card; gold edge polish —— */
.page-imm .benefit-card--desk {
  border-color: rgba(244, 197, 99, 0.32) !important;
}

.page-imm .benefit-card--desk-feature {
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(244, 197, 99, 0.28),
    inset 0 0 0 6px rgba(42, 16, 12, 0.25) !important;
}

.page-imm .benefit-card--rich {
  /* legacy */
}

.page-imm .benefit-card--rich::after {
  display: none;
}

.page-imm .benefit-card--feature {
  /* legacy */
}

/* —— Process steps —— */
.page-imm .process-step {
  border: 1px solid rgba(244, 197, 99, 0.2) !important;
  box-shadow: inset 4px 0 0 rgba(74, 31, 24, 0.9);
  background:
    linear-gradient(100deg, rgba(74, 31, 24, 0.18), rgba(255, 255, 255, 0.04) 30%) !important;
}

.page-imm .process-step__marker {
  background:
    linear-gradient(145deg, var(--gold-soft), var(--gold-deep)) !important;
  box-shadow:
    0 8px 18px rgba(244, 197, 99, 0.35),
    0 0 0 3px rgba(42, 16, 12, 0.65) !important;
  color: #1a1008 !important;
}

.page-imm .process-step__title {
  color: #f7f4ee !important;
}

/* —— OSAGO / reasons —— */
.page-imm .reason-item {
  border: 1px solid rgba(244, 197, 99, 0.18) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 4px 0 0 rgba(74, 31, 24, 0.85);
}

.page-imm .reason-item__num {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold);
}

.page-imm .media-frame {
  border: 1px solid rgba(244, 197, 99, 0.32) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.38),
    inset 0 0 0 5px rgba(42, 16, 12, 0.7),
    inset 0 0 0 6px rgba(244, 197, 99, 0.28) !important;
}

/* —— Checklist banner & items —— */
.page-imm .checklist-board__media {
  border-color: rgba(244, 197, 99, 0.4) !important;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.42),
    inset 0 0 0 5px rgba(42, 16, 12, 0.55),
    inset 0 0 0 6px rgba(244, 197, 99, 0.3) !important;
}

.page-imm .checklist--board .checklist-item {
  border: 1px solid rgba(244, 197, 99, 0.16) !important;
  background:
    linear-gradient(120deg, rgba(74, 31, 24, 0.22), rgba(255, 255, 255, 0.04) 35%) !important;
}

.page-imm .checklist-item__check {
  background: linear-gradient(145deg, var(--gold-soft), var(--gold-deep)) !important;
  color: #1a1008 !important;
  font-weight: 800;
  box-shadow:
    0 6px 14px rgba(244, 197, 99, 0.3),
    0 0 0 3px rgba(42, 16, 12, 0.7) !important;
}

/* —— FAQ —— */
.page-imm .faq-list--premium {
  border: 1px solid rgba(244, 197, 99, 0.28) !important;
  box-shadow:
    inset 0 0 0 5px rgba(42, 16, 12, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
}

.page-imm .faq-list--premium .faq-item__question {
  border-bottom: 1px solid rgba(244, 197, 99, 0.12) !important;
}

.page-imm .faq-list--premium .faq-item__question:hover,
.page-imm .faq-list--premium .faq-item[open] .faq-item__question {
  background: linear-gradient(90deg, rgba(74, 31, 24, 0.35), rgba(244, 197, 99, 0.06)) !important;
}

.page-imm .faq-item__arrow {
  color: var(--gold) !important;
}

/* —— Reviews —— */
.page-imm .review-card {
  border: 1px solid rgba(244, 197, 99, 0.18) !important;
  box-shadow: inset 0 3px 0 rgba(74, 31, 24, 0.75);
}

.page-imm .reviews-rating--compact {
  border: 1px solid rgba(244, 197, 99, 0.4) !important;
  background: linear-gradient(145deg, rgba(74, 31, 24, 0.55), rgba(18, 12, 34, 0.75)) !important;
}

.page-imm .reviews-rating__score,
.page-imm .reviews-rating__stars {
  color: var(--gold) !important;
}

/* —— Pullquote —— */
.page-imm .imm-pullquote {
  border: 1px solid rgba(244, 197, 99, 0.35) !important;
  box-shadow:
    inset 6px 0 0 rgba(74, 31, 24, 0.95),
    inset 7px 0 0 rgba(244, 197, 99, 0.4),
    0 20px 44px rgba(0, 0, 0, 0.32) !important;
}

.page-imm .imm-pullquote__cite {
  color: var(--gold) !important;
}

/* —— Consultation form: dark indigo glass, thin wood+gold frame (not wood carpet) —— */
.page-imm .consultation-form-wrapper {
  border: 1px solid rgba(244, 197, 99, 0.32) !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.4),
    inset 0 0 0 5px rgba(28, 16, 14, 0.55),
    inset 0 0 0 6px rgba(244, 197, 99, 0.22) !important;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      rgba(18, 14, 40, 0.72) 100%
    ) !important;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.page-imm .consultation-form {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 8, 22, 0.4) !important;
}

.page-imm .form-input,
.page-imm .form-textarea {
  border-color: rgba(244, 197, 99, 0.22) !important;
  background: rgba(10, 8, 20, 0.55) !important;
  color: #f7f4ee !important;
}

.page-imm .form-input::placeholder,
.page-imm .form-textarea::placeholder {
  color: rgba(247, 244, 238, 0.45) !important;
}

.page-imm .form-input:focus,
.page-imm .form-textarea:focus {
  border-color: rgba(244, 197, 99, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(244, 197, 99, 0.12);
  background: rgba(12, 10, 24, 0.7) !important;
}

.page-imm .consult-phone {
  color: var(--gold) !important;
}

/* —— Buttons: richer gold —— */
.page-imm .btn--gold {
  box-shadow:
    0 10px 24px rgba(184, 134, 45, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(255, 230, 170, 0.35);
}

/* —— Portrait / team —— */
.page-imm .portrait-card {
  border: 1px solid rgba(244, 197, 99, 0.28) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 0 0 5px rgba(42, 16, 12, 0.55),
    inset 0 0 0 6px rgba(244, 197, 99, 0.25) !important;
}

.page-imm .portrait-card__meta {
  background: linear-gradient(180deg, rgba(42, 16, 12, 0.45), rgba(12, 8, 20, 0.7)) !important;
  border-top: 1px solid rgba(244, 197, 99, 0.25) !important;
}

.page-imm .portrait-card__role {
  color: var(--gold) !important;
}

/* —— Mobile sticky bar —— */
.page-imm .mobile-cta-bar {
  border: 1px solid rgba(244, 197, 99, 0.4) !important;
  background: linear-gradient(180deg, rgba(42, 16, 12, 0.92), rgba(18, 12, 34, 0.96)) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* —— Footer: clean dark indigo, gold hairline only —— */
.page-imm .site-footer {
  border-top: 1px solid rgba(244, 197, 99, 0.35);
  border-image: none;
  background: linear-gradient(180deg, #120e22 0%, #0a0712 100%) !important;
}

.page-imm .footer-title {
  color: var(--gold) !important;
}

/* —— Matte glass section panels (keep light type; skip hero/footer) —— */
.page-imm .imm-block--glass {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(26px, 3.2vw, 42px);
  border-radius: 28px;
  color: #f7f4ee;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.035) 32%,
      rgba(18, 14, 40, 0.38) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-left-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(244, 197, 99, 0.07);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.page-imm .imm-block--glass .imm-block__head {
  margin-bottom: 22px !important;
}

.page-imm .imm-block--glass .imm-block__body {
  min-width: 0;
  max-width: 100%;
}

.page-imm .imm-block--glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 12% 0%, rgba(92, 72, 168, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 45% at 95% 100%, rgba(244, 197, 99, 0.07), transparent 52%);
}

.page-imm .imm-block--glass > * {
  position: relative;
  z-index: 1;
}

.page-imm .imm-block--glass .imm-block__title,
.page-imm .imm-block--glass .imm-block__lead,
.page-imm .imm-block--glass .imm-kicker {
  color: inherit;
}

.page-imm .imm-block--glass .imm-block__lead {
  color: rgba(247, 244, 238, 0.78);
}

.page-imm .imm-block--glass .imm-kicker {
  color: #f4c563 !important;
}

@media (max-width: 1100px) {
  .page-imm .site-header::after {
    display: none;
  }

  .page-imm .case-card--rich .card-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .page-imm .case-card--rich .gold-photo {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 700px) {
  .page-imm .imm-block--glass {
    padding: 20px 16px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .page-imm .imm-block--glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(160deg, rgba(40, 32, 68, 0.92), rgba(18, 12, 34, 0.96));
  }
}
