:root {
  --shell-bg-1: #212529;
  --shell-bg-2: #343a40;
  --shell-ink: #f8f9fa;
  --shell-ink-soft: #ced4da;
  --shell-line: rgba(255, 255, 255, 0.12);
  --shell-line-strong: rgba(255, 255, 255, 0.22);
  --shell-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.legacy-shell-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100px;
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding: 10px clamp(16px, 3vw, 36px);
  padding-right: clamp(16px, 4vw, 52px);
}

.logo-box {
  width: 300px;
  height: 90px;
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.menu-desktop {
  margin-left: auto;
}

.navigation nav ul.menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation nav li {
  position: relative;
  display: flex;
  align-items: center;
}

.navigation nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
}

.navigation > nav > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu .active > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.navigation .dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  color: #212529;
  border: 1px solid rgba(108, 117, 125, 0.12);
  border-radius: 12px;
  box-shadow: var(--shell-shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.navigation .dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid rgba(108, 117, 125, 0.12);
  border-top: 1px solid rgba(108, 117, 125, 0.12);
}

.navigation li:hover > .dropdown,
.navigation li:focus-within > .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.navigation .dropdown a {
  display: block;
  padding: 10px 12px;
  color: #495057;
  font-weight: 600;
  border-radius: 8px;
}

.navigation .dropdown a:hover {
  background: #f8f9fa;
  color: #343a40;
}

.navigation .nav-cta {
  margin-left: 4px;
}

.navigation .nav-cta .btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 249, 250, 0.9) 51%,
    rgba(255, 255, 255, 0.95) 100%
  );
  background-size: 200% auto;
  color: var(--shell-bg-1, #212529);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    background-position 0.4s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
}

.navigation .nav-cta .btn-quote:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.navigation .nav-cta .btn-quote:active {
  transform: scale(0.97);
}

#menu_checkbox {
  display: none;
}

.hamburger-btn {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 46px;
  height: 46px;
  display: none;
  z-index: 1100;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(52, 58, 64, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) inset;
  padding: 12px;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.hamburger-btn span + span {
  margin-top: 6px;
}

#menu_checkbox:checked + .hamburger-btn span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#menu_checkbox:checked + .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

#menu_checkbox:checked + .hamburger-btn span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.menu-mobile {
  --drawer-w: min(82vw, 420px);
  --t: 0.42s;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--drawer-w);
  padding: clamp(12px, 3vw, 20px);
  padding-top: calc(72px + 16px);
  color: #fff;
  background: linear-gradient(180deg, rgba(33, 37, 41, 0.96), rgba(52, 58, 64, 0.92));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 12px 0 30px rgba(0, 0, 0, 0.28);
  transform: translateX(-105%);
  transition: transform var(--t) cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1050;
  overflow-y: auto;
}

.menu-mobile::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--drawer-w);
  background: rgba(33, 37, 41, 0.4);
  opacity: 0;
  transition: opacity var(--t) ease;
  pointer-events: none;
  z-index: -1;
}

#menu_checkbox:checked ~ .menu-mobile {
  transform: translateX(0);
  --t: 0.68s;
}

#menu_checkbox:checked ~ .menu-mobile::before {
  opacity: 1;
}

.mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-mobile a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.mobile-group details {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.mobile-group summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  color: #fff;
  list-style: none;
  position: relative;
}

.mobile-group summary::-webkit-details-marker {
  display: none;
}

.mobile-group summary::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 20px;
  opacity: 0.85;
}

.mobile-group details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.mobile-group details ul {
  list-style: none;
  margin: 0;
  padding: 6px 8px 12px 10px;
}

.mobile-group details ul a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: #e9ecef;
}

.mobile-group details ul a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-mobile > .mobile-list > li > a {
  display: block;
  padding: 12px 2px;
  font-size: 18px;
}

.menu-mobile > .mobile-list > li:last-child {
  margin-top: 6px;
}

.menu-mobile .btn-quote.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background-image: linear-gradient(
    45deg,
    #6c757d 0%,
    #343a40 51%,
    #6c757d 100%
  );
  background-size: 200% auto;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background-position 0.4s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
}

.menu-mobile .btn-quote.mobile-cta:hover,
.menu-mobile .btn-quote.mobile-cta:focus-visible {
  background-position: right center;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.menu-mobile .btn-quote.mobile-cta:active {
  transform: scale(0.97);
}

.site-footer.site-footer--legacy {
  background: #212529;
  color: #e9ecef;
}

.site-footer.site-footer--legacy .footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0 36px;
}

.site-footer.site-footer--legacy .footer-brand .brand-logo {
  margin-bottom: 12px;
}

.site-footer.site-footer--legacy .brand-blurb {
  margin: 8px 0 16px;
  color: #ced4da;
  line-height: 1.6;
}

.site-footer.site-footer--legacy .contact-list {
  display: grid;
  gap: 8px;
  padding-inline-start: 0;
  margin: 0;
}

.site-footer.site-footer--legacy .contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8f9fa;
  opacity: 0.92;
  list-style: none;
}

.site-footer.site-footer--legacy .socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.site-footer.site-footer--legacy .social-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.site-footer.site-footer--legacy .social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.site-footer.site-footer--legacy .footer-col {
  position: relative;
}

.site-footer.site-footer--legacy .footer-col h4 {
  margin: 0 0 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding-top: clamp(12px, 2vw, 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer.site-footer--legacy .footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer.site-footer--legacy .footer-col a,
.site-footer.site-footer--legacy .tel-link,
.site-footer.site-footer--legacy .social-link {
  color: #e9ecef;
  text-decoration: none;
  font-weight: 600;
}

.site-footer.site-footer--legacy .footer-col a:hover,
.site-footer.site-footer--legacy .tel-link:hover,
.site-footer.site-footer--legacy .social-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer.site-footer--legacy .hearth-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-footer.site-footer--legacy .hearth-link-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.76;
}

.site-footer.site-footer--legacy .hearth-link img {
  display: block;
  width: auto;
  height: 0.95rem;
}

.site-footer.site-footer--legacy .footer-col:not(:first-of-type)::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.site-footer.site-footer--legacy .footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.08)
  );
}

.site-footer.site-footer--legacy .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 14px;
  color: #ced4da;
  font-size: 14px;
}

.site-footer.site-footer--legacy .madeby {
  opacity: 0.9;
}

.site-footer.site-footer--legacy .madeby a {
  color: inherit;
}

@media (min-width: 881px) {
  .hamburger-btn,
  .menu-mobile {
    display: none !important;
  }

  .menu-desktop {
    display: block;
  }
}

@media (max-width: 880px) {
  .navigation {
    height: 72px;
    padding: 8px clamp(14px, 4vw, 20px);
    max-width: 100%;
  }

  .hamburger-btn {
    display: block;
  }

  .menu-desktop {
    display: none;
  }

  .logo-box {
    width: 180px;
    height: 54px;
  }

  .site-footer.site-footer--legacy .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0 24px;
  }

  .site-footer.site-footer--legacy .footer-col:not(:first-of-type)::before {
    display: none;
  }

  .site-footer.site-footer--legacy .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
