@import url('/assets/base.css');

/* Keep the complete broker-package logo visible and proportional. */
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 325px;
  width: 325px;
  height: 92px;
  min-width: 0;
  overflow: visible;
}

.site-header { height: 112px; }

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

/* Keep the header CTA compact and proportional instead of inheriting full nav-link padding. */
.nav-links .btn,
.nav-links a.btn {
  width: auto;
  min-width: 118px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 3px;
  line-height: 1.15;
  white-space: nowrap;
}

/* Replace the former decorative rings with the Starmont emblem watermark. */
.hero::after {
  content: '';
  position: absolute;
  right: clamp(-24px, 2vw, 34px);
  top: 50%;
  bottom: auto;
  transform: translateY(-45%) rotate(-8deg);
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url('/assets/starmont-emblem-approved.png') center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: .18;
  pointer-events: none;
}

.metric-panel::before { content: none !important; }

.footer-brand {
  display: block;
  width: 290px;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 1100px) {
  .nav-wrap { gap: 18px; }
  .site-header { height: 96px; }
  .brand { flex-basis: 270px; width: 270px; height: 76px; }
  .nav-links { gap: 14px; font-size: .74rem; }
  .nav-links a { padding-top: 35px; padding-bottom: 31px; }
}

@media (max-width: 950px) {
  .site-header { height: 96px; }
  .brand { flex-basis: 275px; width: 275px; height: 78px; }
  .nav-wrap { position: relative; }
  .nav-links { top: 96px; max-height: calc(100vh - 96px); overflow-y: auto; }
  .nav-links .btn, .nav-links a.btn { width: fit-content; min-width: 132px; padding: 12px 18px; }
}

@media (max-width: 620px) {
  .site-header { height: 88px; }
  .brand { flex-basis: 235px; width: 235px; height: 70px; }
  .nav-links { top: 88px; max-height: calc(100vh - 88px); }
  .footer-brand { width: min(270px, 100%); }
  .hero::after { display: none; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 20px, 1180px); }
  .site-header { height: 82px; }
  .brand { flex-basis: 205px; width: 205px; height: 64px; }
  .nav-links { top: 82px; max-height: calc(100vh - 82px); }
  .mobile-toggle { padding: 6px; }
}
.sg-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  font-family: Inter, Arial, sans-serif;
}

.sg-chat-launch {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 21px;
  border: 1px solid rgba(201, 169, 104, .72);
  border-radius: 3px;
  background: #0b2341;
  color: #fff;
  box-shadow: 0 12px 32px rgba(11, 35, 65, .25);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  cursor: pointer;
}

.sg-chat-launch span { color: #d6b978; font-size: 1rem; }
.sg-chat-launch:hover, .sg-chat-launch:focus-visible { background: #122f53; }

.sg-chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(11, 35, 65, .16);
  border-radius: 6px;
  background: #fff;
  color: #152235;
  box-shadow: 0 24px 64px rgba(11, 35, 65, .28);
}

.sg-chat-panel header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px;
  background: #0b2341;
  color: #fff;
}

.sg-chat-panel header strong,
.sg-chat-panel header small { display: block; }
.sg-chat-panel header strong { font-size: .76rem; letter-spacing: .15em; line-height: 1.25; }
.sg-chat-panel header small { margin-top: 7px; color: #ddc98f; font-size: .8rem; line-height: 1.3; }
.sg-chat-panel header button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.sg-chat-log { max-height: 220px; overflow-y: auto; padding: 20px; background: #f3f5f7; }
.sg-chat-log p {
  max-width: 88%;
  margin: 0 0 11px;
  padding: 12px 14px;
  border-radius: 3px 12px 12px 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(11, 35, 65, .07);
  font-size: .86rem;
  line-height: 1.55;
}
.sg-chat-log p:last-child { margin-bottom: 0; }
.sg-chat-log .user { margin-left: auto; border-radius: 12px 3px 12px 12px; background: #0b2341; color: #fff; }
.sg-chat-log a { display: block; margin-top: 8px; color: #80611d; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.sg-chat-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 18px; }
.sg-chat-options button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c9d0d8;
  border-radius: 3px;
  background: #fff;
  color: #0b2341;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
.sg-chat-options button:hover, .sg-chat-options button:focus-visible { border-color: #b58e3e; background: #fbf8f1; }

.sg-chat-panel form { display: grid !important; grid-template-columns: minmax(0, 1fr) 52px !important; width: auto !important; margin: 0 18px; border: 1px solid #ccd2d9; border-radius: 3px; overflow: hidden; }
.sg-chat-panel input { min-width: 0; width: 100% !important; height: 48px; padding: 0 13px; border: 0; outline: 0; color: #152235; font-size: .84rem; }
.sg-chat-panel input:focus { box-shadow: inset 0 0 0 2px #c9a968; }
.sg-chat-panel form button { width: 52px !important; min-width: 52px !important; height: 48px; padding: 0 !important; border: 0; background: #c9a968; color: #0b2341; font-size: 1.15rem; font-weight: 800; line-height: 1; cursor: pointer; }
.sg-chat-note { margin: 0; padding: 12px 18px 15px; background: #fff; color: #6d747d; font-size: .63rem; line-height: 1.45; }

@media (max-width: 600px) {
  .sg-chat { right: 14px; bottom: 14px; }
  .sg-chat-launch { min-height: 48px; padding: 0 16px; }
  .sg-chat-panel { position: fixed; right: 14px; bottom: 72px; width: calc(100vw - 28px); max-height: calc(100dvh - 92px); }
  .sg-chat-log { max-height: min(220px, 27dvh); }
}

@media (max-width: 390px) {
  .sg-chat-options { grid-template-columns: 1fr; }
  .sg-chat-panel header { min-height: 76px; padding: 15px 16px; }
  .sg-chat-log { padding: 15px; }
  .sg-chat-panel form { margin-inline: 14px; }
  .sg-chat-note { padding-inline: 14px; }
}

/* Site-wide accessibility controls and WCAG 2.2 AA support features. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 12px 16px; background: #fff; color: #0b2341; border: 3px solid #c9a968; font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #d6a838 !important; outline-offset: 3px !important; }
.a11y-tools { position: fixed; left: 20px; bottom: 20px; z-index: 120; font-family: Inter, Arial, sans-serif; }
.a11y-launch { width: 58px; height: 58px; min-height: 58px; padding: 0; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #0b3c61; color: #fff; box-shadow: 0 10px 28px rgba(11,35,65,.32); cursor: pointer; }
.a11y-launch img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.a11y-launch:hover { transform: scale(1.04); }
.a11y-panel { position: absolute; left: 0; bottom: 60px; width: min(330px,calc(100vw - 28px)); border: 1px solid #9aa6b4; border-radius: 6px; background: #fff; color: #152235; box-shadow: 0 22px 58px rgba(11,35,65,.28); overflow: hidden; }
.a11y-panel header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; background: #0b2341; color: #fff; }
.a11y-panel header strong { font-size: .9rem; }
.a11y-close { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: transparent; color: #fff; font-size: 1.25rem; cursor: pointer; }
.a11y-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 15px; }
.a11y-controls button { min-height: 46px; border: 1px solid #8d99a6; border-radius: 3px; background: #fff; color: #0b2341; font-size: .76rem; font-weight: 750; cursor: pointer; }
.a11y-controls button[aria-pressed="true"] { background: #0b2341; color: #fff; border-color: #0b2341; }
.a11y-panel p { margin: 0; padding: 0 15px 15px; font-size: .75rem; line-height: 1.5; }
.a11y-panel a { color: #594000; text-decoration: underline; font-weight: 800; }
html.a11y-text { font-size: 125%; }
html.a11y-font body, html.a11y-font button, html.a11y-font input, html.a11y-font select, html.a11y-font textarea { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .015em; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; }
html.a11y-contrast { filter: contrast(1.25); }
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
@media (max-width:600px) { .a11y-tools { left: 14px; bottom: 14px; } .a11y-launch { width: 54px; height: 54px; min-height: 54px; } .a11y-panel { position: fixed; left: 14px; bottom: 76px; } }
