:root {
  --ui-navy: #0a325a;
  --ui-navy-deep: #061d36;
  --ui-gold: #f0d282;
  --ui-gold-bright: #f7dc94;
  --ui-line: #d6e0ea;
}

#header-placeholder { min-height: 76px; }

/* Shared CTA system. This file loads after each page's legacy inline styles. */
body .button,
body .submit-btn,
body .call-fallback a,
body .cta-btn--footer-book-call-button {
  --cta-bg: var(--ui-navy);
  --cta-color: var(--ui-gold);
  --cta-border: var(--ui-navy);
  --cta-accent-bg: var(--ui-gold);
  --cta-accent-color: var(--ui-navy);
  --cta-line: var(--ui-gold);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  min-height: 50px;
  padding: 8px 9px 8px 18px;
  overflow: hidden;
  border: 1px solid var(--cta-border);
  border-radius: 6px !important;
  background: var(--cta-bg);
  color: var(--cta-color);
  box-shadow: 0 10px 24px rgba(10, 50, 90, 0.16);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body .button::before,
body .submit-btn::before,
body .call-fallback a::before,
body .cta-btn--footer-book-call-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cta-line);
  transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

body .button::after,
body .submit-btn::after,
body .call-fallback a::after,
body .cta-btn--footer-book-call-button::after {
  content: "\2192";
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 4px;
  background: var(--cta-accent-bg);
  color: var(--cta-accent-color);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

body a.button[target="_blank"]::after,
body .call-fallback a[target="_blank"]::after,
body .cta-btn--footer-book-call-button[target="_blank"]::after {
  content: "\2197";
}

body .button:hover,
body .submit-btn:hover,
body .call-fallback a:hover,
body .cta-btn--footer-book-call-button:hover {
  background: var(--ui-navy-deep);
  color: var(--ui-gold-bright);
  border-color: var(--ui-navy-deep);
  box-shadow: 0 14px 30px rgba(6, 29, 54, 0.22);
  transform: translateY(-2px);
}

body .button:hover::before,
body .submit-btn:hover::before,
body .call-fallback a:hover::before,
body .cta-btn--footer-book-call-button:hover::before {
  width: 100%;
}

body .button:hover::after,
body .submit-btn:hover::after,
body .call-fallback a:hover::after,
body .cta-btn--footer-book-call-button:hover::after {
  transform: translateX(3px);
}

body .button:active,
body .submit-btn:active,
body .call-fallback a:active,
body .cta-btn--footer-book-call-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(6, 29, 54, 0.18);
}

body .button:focus-visible,
body .submit-btn:focus-visible,
body .call-fallback a:focus-visible,
body .cta-btn--footer-book-call-button:focus-visible {
  outline: 3px solid rgba(240, 210, 130, 0.72);
  outline-offset: 3px;
}

body .hero .button:not(.secondary),
body .cta .button,
body .highlight .button,
body .button.cta-btn--highlight,
body .submit-btn {
  --cta-bg: var(--ui-gold);
  --cta-color: var(--ui-navy);
  --cta-border: var(--ui-gold);
  --cta-accent-bg: var(--ui-navy);
  --cta-accent-color: var(--ui-gold);
  --cta-line: var(--ui-navy);
  box-shadow: 0 10px 26px rgba(240, 210, 130, 0.17);
}

body .hero .button:not(.secondary):hover,
body .cta .button:hover,
body .highlight .button:hover,
body .button.cta-btn--highlight:hover,
body .submit-btn:hover {
  background: var(--ui-gold-bright);
  color: var(--ui-navy-deep);
  border-color: var(--ui-gold-bright);
  box-shadow: 0 14px 32px rgba(240, 210, 130, 0.24);
}

body .button.secondary,
body .hero .button.secondary,
body .call-fallback a {
  --cta-bg: transparent;
  --cta-color: currentColor;
  --cta-border: currentColor;
  --cta-accent-bg: rgba(240, 210, 130, 0.14);
  --cta-accent-color: currentColor;
  --cta-line: var(--ui-gold);
  box-shadow: none;
}

body .hero .button.secondary,
body .call-fallback a {
  --cta-color: #ffffff;
  --cta-border: rgba(255, 255, 255, 0.5);
  --cta-accent-color: var(--ui-gold);
}

body .button.secondary:hover,
body .hero .button.secondary:hover,
body .call-fallback a:hover {
  background: rgba(10, 50, 90, 0.07);
  color: var(--ui-navy);
  border-color: var(--ui-navy);
  box-shadow: 0 10px 24px rgba(10, 50, 90, 0.1);
}

body .hero .button.secondary:hover,
body .call-fallback a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--ui-gold);
  box-shadow: none;
}

body .submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

/* Service-page section navigation: a compact rail, not a floating pill. */
body .page-nav {
  position: sticky;
  top: 76px;
  z-index: 18;
  background: var(--ui-navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(240, 210, 130, 0.22);
  box-shadow: 0 4px 18px rgba(6, 29, 54, 0.16);
  transition: background 180ms ease, border-color 180ms ease, top 180ms ease;
}

body .page-nav.floating {
  top: 86px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

body .page-nav .page-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: min(1120px, 92%);
  max-width: 1120px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
  transition: width 220ms ease, max-width 220ms ease, padding 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

body .page-nav .page-nav-inner::-webkit-scrollbar { display: none; }

body .page-nav.floating .page-nav-inner {
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(240, 210, 130, 0.34);
  border-radius: 6px;
  background: rgba(6, 29, 54, 0.94);
  box-shadow: 0 14px 34px rgba(6, 29, 54, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

body .page-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

body .page-nav a:last-child { border-right: 0; }

body .page-nav a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 2px;
  background: var(--ui-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

body .page-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

body .page-nav a.active {
  background: rgba(240, 210, 130, 0.1);
  color: var(--ui-gold);
  font-weight: 750;
}

body .page-nav a.active::after { transform: scaleX(1); }

body .page-nav.floating a {
  min-height: 38px;
  padding: 8px 16px;
  border-bottom: 0;
  border-radius: 3px;
}

body .page-nav.floating a::after {
  right: 11px;
  bottom: 5px;
  left: 11px;
}

@media (max-width: 900px) {
  #header-placeholder { min-height: 68px; }

  body .button,
  body .submit-btn,
  body .call-fallback a {
    max-width: 100%;
  }

  body .page-nav { top: 68px; }
  body .page-nav.floating { top: 78px; }

  body .page-nav .page-nav-inner {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

  body .page-nav.floating .page-nav-inner {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    padding: 5px;
    overflow-x: auto;
  }

  body .page-nav a {
    flex: 0 0 auto;
    padding: 10px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .button,
  body .button::before,
  body .button::after,
  body .submit-btn,
  body .submit-btn::before,
  body .submit-btn::after,
  body .call-fallback a,
  body .call-fallback a::before,
  body .call-fallback a::after,
  body .page-nav,
  body .page-nav .page-nav-inner,
  body .page-nav a,
  body .page-nav a::after {
    transition: none;
  }
}
