:root {
  --savians-navy: #0f1b4d;
  --savians-yellow: #ffcc45;
  --savians-success: #146c43;
  --savians-error: #b42318;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--savians-yellow);
  outline-offset: 3px;
}

.nav-assessment-link {
  white-space: nowrap;
}

.nav-right {
  align-items: center;
}

.nav-right .common-btn a {
  text-align: center;
  white-space: nowrap;
}

/* Keep the official yellow logo distinct from the yellow navigation surface. */
#property-header img[src$="savians-tax-advisors-logo.png"] {
  background: linear-gradient(145deg, #fff1b5 0%, #ffcc45 72%);
  border: 1px solid rgba(15, 27, 77, 0.7);
  border-radius: 5px;
  box-shadow: 0 3px 0 rgba(15, 27, 77, 0.9), 0 6px 12px rgba(7, 13, 31, 0.22);
  box-sizing: border-box;
  padding: 1px;
}

.footer-brand-logo {
  display: block;
  height: auto;
  max-width: 184px;
  width: 100%;
}

.consultation-action-row {
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 5.5rem;
  z-index: 8;
}

.consultation-action-row .container {
  display: flex;
  justify-content: flex-end;
}

.consultation-action-row .common-btn,
.consultation-action-row .common-btn a {
  pointer-events: auto;
}

.consultation-action-row .common-btn a {
  background: #ffcc57;
  border: 1px solid #ffcc57;
  box-shadow: 0 0.5rem 1.25rem rgba(7, 13, 31, 0.18);
  color: var(--savians-navy);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.consultation-action-row .common-btn a:hover,
.consultation-action-row .common-btn a:focus-visible {
  background: #ffe18a;
  border-color: #ffe18a;
  color: #071032;
}

.login-btn a {
  align-items: center;
  display: flex !important;
  gap: 0.5rem;
}

.theme-toggle {
  align-items: center;
  background: var(--savians-navy);
  border: 1px solid var(--savians-navy);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 44px;
  justify-content: center;
  min-width: 44px;
  padding: 0 0.75rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.theme-toggle:hover {
  background: #26366f;
  border-color: #26366f;
}

.theme-icon {
  display: inline-flex;
  height: 16px;
  width: 16px;
}

.theme-icon svg {
  display: block;
  height: 16px;
  width: 16px;
}

.theme-toggle-label {
  display: none;
  font-weight: 600;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.yellow-btn[type="submit"] {
  border: 0;
  cursor: pointer;
}

.yellow-btn[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#thank_you {
  display: block;
  min-height: 1.5rem;
  font-weight: 600;
}

#thank_you.form-success {
  color: var(--savians-success);
}

#thank_you.form-error {
  color: var(--savians-error);
}

#map-section iframe {
  min-height: 450px;
}

@media (min-width: 992px) and (max-width: 1499.98px) {
  .mbl-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  img.logo {
    display: none;
  }
}

@media (max-width: 1499.98px) {
  .nav-right {
    align-items: stretch;
    flex-direction: column;
    margin-top: 0.75rem;
    padding: 0 1rem 1rem;
    width: 100%;
  }

  .nav-right .common-btn,
  .nav-right .common-btn a,
  .nav-right .theme-toggle {
    width: 100%;
  }

  .nav-right .common-btn a,
  .nav-right .theme-toggle {
    justify-content: center;
  }

  .theme-toggle-label {
    display: inline;
  }
}

@media (min-width: 1500px) {
  .savians-main-navbar .navbar-toggler {
    display: none;
  }

  .savians-main-navbar .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: flex-end;
  }

  .savians-main-navbar .navbar-nav {
    flex-direction: row;
  }
}

@media (min-width: 1500px) and (max-width: 1599.98px) {
  #property-header .navbar-nav li {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  #property-header .nav-right {
    gap: 0.3rem !important;
  }

  #property-header .common-btn a {
    font-size: 0.875rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  #property-header .nav-link {
    font-size: 0.925rem;
  }
}

@media (max-width: 767.98px) {
  .consultation-action-row {
    top: 4.75rem;
  }

  .consultation-action-row .common-btn a {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }

  #map-section {
    flex-direction: column;
  }

  #map-section iframe {
    width: 100%;
  }
}

html.dark {
  background: #070d1f;
  color-scheme: dark;
}

html.dark body {
  background: #070d1f;
  color: #e8edf8;
}

html.dark body,
html.dark body section,
html.dark body div,
html.dark body article,
html.dark body input,
html.dark body textarea,
html.dark body button,
html.dark body a {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

html.dark body h1,
html.dark body h2,
html.dark body h3,
html.dark body h4,
html.dark body h5,
html.dark body h6,
html.dark body p,
html.dark body li,
html.dark body label {
  color: #e8edf8;
}

html.dark body p {
  color: #c6d0e3;
}

html.dark span.sub-title,
html.dark .counter-inner p,
html.dark .compilance-filling-services-subtitle {
  color: var(--savians-yellow);
}

html.dark section.home-bnr {
  background-image: linear-gradient(rgba(7, 13, 31, 0.78), rgba(7, 13, 31, 0.78)), url(../images/h-bnr-bg.webp);
}

html.dark .left-bnr-cont h1 img,
html.dark .s-bnr-btm-box > img {
  filter: brightness(0) saturate(100%) invert(84%) sepia(98%) saturate(695%) hue-rotate(329deg) brightness(103%) contrast(101%);
}

html.dark .gray-bg,
html.dark .about-us,
html.dark .about-us-page-sec,
html.dark .bnr-btm-sec,
html.dark .testimonial-sec,
html.dark .our-usps,
html.dark #tax-planning-optimization,
html.dark #compilance-filling-services,
html.dark #plans-section,
html.dark #plans-faq-section,
html.dark #get-in-touch,
html.dark #footer-section {
  background: #0b142b;
}

html.dark #top-banner {
  background-image: linear-gradient(rgba(7, 13, 31, 0.68), rgba(7, 13, 31, 0.68)), url(../images/cmn_bnr_backImg.webp);
}

html.dark .s-why-us-box,
html.dark .card-content,
html.dark .plans-box,
html.dark .get-in-touch-card,
html.dark .accordion-item,
html.dark .accordion-button,
html.dark .bnr-right-cont,
html.dark .form-container {
  background: #111d38;
  border-color: #2f3c5d;
}

html.dark .tax-planning-box {
  background: #0f1932;
  border-color: #2f3c5d;
}

html.dark .tax-planning-box:not(:hover) > img,
html.dark .tax-planning-box:not(:hover) > a img,
html.dark .get-in-touch-card > img {
  filter: brightness(0) saturate(100%) invert(84%) sepia(98%) saturate(695%) hue-rotate(329deg) brightness(103%) contrast(101%);
}

/* The service hover artwork is intentionally pale, so it needs navy copy. */
html.dark .tax-planning-box:hover .sub-title,
html.dark .tax-planning-box:hover p,
html.dark .tax-planning-box:hover a span {
  color: var(--savians-navy);
}

html.dark .tax-planning-box:hover > img,
html.dark .tax-planning-box:hover > a img {
  filter: none;
}

html.dark .plans-box .plan-box-inner span {
  color: #e8edf8;
}

html.dark .form-floating .form-control,
html.dark .form-control,
html.dark textarea {
  background: #0b142b;
  border-color: #3b496d;
  color: #f8fafc;
}

html.dark .form-floating .form-control:focus,
html.dark .form-control:focus,
html.dark textarea:focus {
  background: #0b142b;
  border-color: var(--savians-yellow);
  box-shadow: 0 0 0 0.2rem rgba(255, 204, 69, 0.2);
  color: #fff;
}

html.dark .form-floating label,
html.dark .form-control::placeholder,
html.dark textarea::placeholder {
  color: #9eabc4;
}

html.dark #footer-section a,
html.dark .footer-mid-sec a {
  color: #d6deed;
}

html.dark .btm-footer,
html.dark .mission-vision-wrap .row,
html.dark .table-wrap,
html.dark .s-bnr-btm-box {
  border-color: #34415f;
}

html.dark .yellow-btn,
html.dark .cmn-btn,
html.dark .form-inner button {
  color: var(--savians-navy);
}

html.dark #property-header .nav-link,
html.dark #property-header .navbar-light .navbar-nav .nav-link,
html.dark #property-header .navbar-light .navbar-nav .nav-link.active-menu {
  color: var(--savians-navy);
}

html.dark #property-header .navbar-light .navbar-nav .nav-link.active-menu {
  border-color: var(--savians-navy);
}

html.dark #property-header .common-btn a,
html.dark #property-header .theme-toggle {
  color: #fff;
}

html.dark .navbar-toggler {
  border-color: rgba(15, 27, 77, 0.55);
}

html.dark .accordion-button::after {
  filter: invert(1) grayscale(1) brightness(2);
}

@media (prefers-reduced-motion: reduce) {
  html.dark body,
  html.dark body section,
  html.dark body div,
  html.dark body article,
  html.dark body input,
  html.dark body textarea,
  html.dark body button,
  html.dark body a {
    transition: none;
  }
}
