/* Shared header and footer — 2026 renewal */
:root {
  --ct-navy: #17324d;
  --ct-navy-deep: #0f2539;
  --ct-teal: #167c75;
  --ct-teal-dark: #0f625d;
  --ct-mint: #dff3ee;
  --ct-cream: #f7f5ef;
  --ct-amber: #e5a93d;
  --ct-text: #243342;
  --ct-muted: #617181;
  --ct-line: #dbe3e8;
  --ct-white: #fff;
  --ct-max: 1180px;
  --ct-shadow: 0 18px 50px rgba(18, 50, 76, .10);
}

html { scroll-behavior: smooth; }
body { color: var(--ct-text); background: var(--ct-white); }
body.menu-open { overflow: hidden; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: var(--ct-white);
  background: var(--ct-navy-deep);
  border-radius: 6px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(219, 227, 232, .9);
  box-shadow: 0 4px 18px rgba(15, 37, 57, .04);
  backdrop-filter: blur(10px);
}
.ct-header-top { color: #dce8ee; background: var(--ct-navy-deep); }
.ct-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--ct-max));
  min-height: 32px;
  margin: 0 auto;
  font-size: 12px;
  letter-spacing: .03em;
}
.ct-header-container p { margin: 0; }
.ct-header-container a { color: var(--ct-white); font-weight: 700; text-decoration: none; }
.ct-header-container a span { margin-left: 8px; color: #b8c9d3; font-size: 11px; font-weight: 500; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--ct-max));
  min-height: 76px;
  margin: 0 auto;
  padding: 0;
}
.site-title { flex: 0 0 auto; }
.site-title > a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ct-navy-deep);
  text-decoration: none;
}
.site-title span.site-title__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ct-white);
  background: var(--ct-teal);
  border-radius: 13px 13px 13px 4px;
  font-size: 20px;
  font-weight: 800;
}
.site-title span.site-title__text { display: flex; flex-direction: column; gap: 2px; }
.site-title__text strong { font-size: 19px; line-height: 1.2; letter-spacing: .04em; }
.site-title__text small { color: var(--ct-muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; }

.global-nav { display: flex; align-items: center; gap: 22px; }
.global-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.global-nav li { margin: 0; }
.global-nav ul a {
  position: relative;
  display: block;
  padding: 26px 0;
  color: var(--ct-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.global-nav ul a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  content: '';
  background: var(--ct-teal);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.global-nav ul a:hover::after,
.global-nav ul a:focus-visible::after { transform: scaleX(1); }
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  color: var(--ct-white);
  background: var(--ct-teal);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(22, 124, 117, .18);
}
.header-cta-btn:hover { color: var(--ct-white); background: var(--ct-teal-dark); text-decoration: none; }
.nav-toggle { display: none; }

.site-footer { color: #cfdae1; background: var(--ct-navy-deep); }
.footer-inner { width: min(calc(100% - 40px), var(--ct-max)); margin: 0 auto; padding: 66px 0 24px; }
.ct-footer-brand { padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ct-footer-brand > a { color: var(--ct-white); font-size: 23px; font-weight: 800; text-decoration: none; }
.ct-footer-brand p { max-width: 640px; margin: 8px 0 0; color: #9fb1bc; }
.ct-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.4fr; gap: 42px; padding: 38px 0; }
.ct-footer-grid h2 { margin: 0 0 16px; color: var(--ct-white); font-size: 14px; letter-spacing: .06em; }
.ct-footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.ct-footer-grid nav a { color: #c4d1d8; font-size: 13px; text-decoration: none; }
.ct-footer-grid nav a:hover { color: var(--ct-white); }
.ct-footer-contact p { margin: 4px 0 16px; color: #9fb1bc; font-size: 12px; }
.ct-footer-phone { color: var(--ct-white); font-size: 23px; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.ct-footer-contact-btn {
  display: inline-flex;
  padding: 11px 18px;
  color: var(--ct-white);
  background: var(--ct-teal);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.footer-disclaimer { margin: 0; padding: 22px 24px; color: #9fb1bc; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; font-size: 11px; line-height: 1.8; }
.footer-disclaimer p { margin: 0; }
.footer-copy { display: flex; justify-content: space-between; margin-top: 22px; color: #7f949f; font-size: 11px; }

@media (max-width: 980px) {
  .ct-header-top { display: none; }
  .header-inner { min-height: 68px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--ct-line);
    border-radius: 9px;
  }
  .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ct-navy); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .global-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    max-height: calc(100vh - 68px);
    padding: 18px 20px 26px;
    overflow-y: auto;
    background: var(--ct-white);
    border-top: 1px solid var(--ct-line);
    box-shadow: 0 20px 40px rgba(15,37,57,.14);
  }
  .global-nav.is-open { display: flex; flex-direction: column; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav ul a { padding: 15px 4px; border-bottom: 1px solid var(--ct-line); font-size: 15px; }
  .global-nav ul a::after { display: none; }
  .header-cta-btn { width: 100%; min-height: 48px; }
  .ct-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .header-inner, .footer-inner { width: min(calc(100% - 32px), var(--ct-max)); }
  .site-title__mark { width: 37px; height: 37px; font-size: 18px; }
  .site-title__text strong { font-size: 16px; }
  .site-title__text small { font-size: 9px; }
  .ct-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { padding-top: 48px; }
  .footer-copy { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
