/*
 * Lawstate Legal & Visa — brand theme
 * Colours taken from the client's brand reference (navy #050818 → blue #046be1).
 * Loaded after the template stylesheets; it only retints the header and footer.
 */

:root {
  --brand-ink: #050818;
  --brand-ink-soft: #041d42;
  --brand-blue-deep: #04305f;
  --brand-blue: #04479a;
  --brand-blue-bright: #046be1;
  --brand-blue-light: #7cc0ff;
  --brand-tint: #cfe3fb;
  --brand-bar: linear-gradient(96deg, #050818 0%, #041d42 34%, #04479a 72%, #046be1 100%);
  --brand-bar-soft: linear-gradient(96deg, #050b1d 0%, #051733 40%, #04305f 78%, #0455b4 100%);

  /* ---- template tokens remapped to the brand palette (whole page) ---- */
  --color-text: #0c1424;
  --color-body: #2b3a4f;
  --color-accent: #046be1;
  --color-orange: #046be1;
  --color-orange-text: #04479a;
  --color-orange-on-dark: #7cc0ff;
  --color-orange-btn: #04479a;
  --color-orange-pressed: #0359bd;
  --color-navy: #041d42;
  --color-navy-deep: #050818;
  --color-navy-pressed: #020f26;
  --color-cream: #eef4fd;
  --color-lime: #046be1;
  --color-lime-hover: #0359bd;
  --color-disabled: #93a3b8;
  --color-sand: #c3d6ee;
  --color-mist: #e9eff8;
  --color-fog: #e9eff8;
  /* rating stars stay gold: they read as ratings, not as brand colour */
  --color-star: #f1a31e;
}

/* Solid CTAs now use brand blue, so their labels switch to white */
.hero__submit,
.hero__link--solid,
.process__cta,
.services__cta,
.reviews__btn--solid,
.locations__cta,
.form__submit,
.cta-band__action-btn--quote,
.prose-cta__action-btn--quote {
  color: #ffffff;
}

.hero__submit:focus-visible,
.services__cta:focus-visible,
.reviews__btn--solid:focus-visible,
.locations__cta:focus-visible,
.form__submit:focus-visible,
.process__cta:focus-visible {
  outline-color: var(--brand-blue-light);
}


/* ---------------------------------------------------------------- header */
.header,
.header.is-scrolled {
  background: var(--brand-bar);
}

.header__strip {
  background: var(--brand-blue-bright);
}

.header__strip-text,
.header__strip-badge {
  color: #ffffff;
}

.header__strip-line {
  background: rgba(255, 255, 255, 0.45);
}

.header__bar-badge-text,
.header__badge-icon {
  color: inherit;
}

.header__link,
.header__phone {
  color: #eaf2ff;
}

.header__lang {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.header__cta {
  color: var(--brand-ink);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(5, 8, 24, 0.08);
}

@media (hover: hover) {
  .header__cta:hover {
    background: #e6f0ff;
    opacity: 1;
  }
}

.header__lang:focus-visible,
.header__cta:focus-visible,
.header__link:focus-visible,
.header__phone:focus-visible,
.header__logo:focus-visible,
.header__toggle:focus-visible {
  outline-color: var(--brand-blue-light);
}

.header__toggle {
  background: rgba(255, 255, 255, 0.16);
}

.header__toggle-bar {
  background: #ffffff;
}

.header__scrim {
  background: rgba(5, 8, 24, 0.62);
}

/* mobile header uses the emblem only, so keep it square */
.header__logo-mobile {
  object-fit: contain;
  object-position: left center;
}

.header__sheet-bar,
body.is-menu-open .header .header__sheet-bar {
  background: #eaf2ff;
}

.header__sheet-quote {
  color: #ffffff;
  background: var(--brand-blue-bright);
}

.header__sheet-call {
  color: #ffffff;
  background: var(--brand-ink);
}

/* ---------------------------------------------------------------- footer */
.footer {
  background: linear-gradient(168deg, #050818 0%, #041c3f 52%, #04376f 100%);
  color: var(--brand-tint);
}

.footer .footer__heading {
  color: #ffffff;
}

.footer .footer__row-text,
.footer .footer__row-text--wide,
.footer .footer__row-text--email {
  color: var(--brand-tint);
}

.footer .footer__link {
  color: var(--brand-tint);
}

@media (hover: hover) {
  .footer .footer__link:hover {
    color: #ffffff;
  }
}

.footer .footer__office--ruled {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.footer .footer__rule {
  background: rgba(124, 192, 255, 0.45);
}

.footer .footer__legal-sep {
  background: rgba(255, 255, 255, 0.22);
}

.footer .footer__bottom {
  color: #9db6d6;
}

.footer .footer__social-link {
  color: var(--brand-tint);
}

@media (hover: hover) {
  .footer .footer__social-link:hover {
    color: #ffffff;
  }
}

.footer .footer__link:focus-visible,
.footer .footer__logo-link:focus-visible,
.footer .footer__social-link:focus-visible {
  outline-color: var(--brand-blue-light);
}

.footer .footer__logo {
  filter: none;
}
