/* InterManager brand tokens – extracted from intermanager.org */
:root {
  --blue-primary: #004b92;
  --blue-medium: #4975b2;
  --blue-dark: #001326;
  --cyan: #00b9f7;
  --text: #333333;
  --text-muted: #777777;
  --white: #ffffff;
  --gray-light: #f7f7f7;
  --gray-border: #e5e5e5;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-heading: "Roboto Condensed", system-ui, sans-serif;
  --font-display: "Roboto Slab", Georgia, serif;
  --container-max: 1300px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container-max), 100% - 2.5rem); margin: 0 auto; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100000;
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 600;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 19, 38, 0.25);
}

.util-bar {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.util-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 1rem;
  flex-wrap: wrap;
}
.util-social { display: flex; gap: 0.85rem; list-style: none; }
.util-social a { color: var(--text-muted); transition: color 0.2s; }
.util-social a:hover { color: var(--blue-primary); }
.util-account { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.util-account li { display: flex; align-items: center; }
.util-account li + li::before {
  content: '';
  display: block;
  width: 1px;
  height: 0.95em;
  margin: 0 0.85rem;
  background: var(--gray-border);
}
.util-account a { font-weight: 600; color: var(--text-muted); }
.util-account a:hover { color: var(--blue-primary); }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 1.5rem;
}
.brand img { height: 58px; width: auto; }
.brand .custom-logo-link { display: block; line-height: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan:hover { background: #0099cc; }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-blue { background: var(--blue-primary); color: var(--white); }
.btn-blue:hover { background: #003a70; }
.main-nav { display: flex; align-items: center; gap: 0; list-style: none; flex-wrap: wrap; }
.main-nav > li > a {
  display: block;
  padding: 1.35rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav > li > a:hover,
.main-nav > li > a:focus-visible {
  border-bottom-color: var(--gray-border);
}
.main-nav > li > a.active,
.main-nav > li.current-menu-item > a,
.main-nav > li.current-menu-ancestor > a {
  color: var(--blue-primary);
  border-bottom-color: var(--cyan);
}

/* Dropdown submenus (desktop) */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  max-width: 22rem;
  max-height: 70vh;
  overflow-y: auto;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--cyan);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 19, 38, 0.12);
  z-index: 120;
  padding: 0.35rem 0;
}
.main-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top-width: 1px;
  border-top-color: var(--gray-border);
  border-radius: 6px;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text);
  border-bottom: none;
  white-space: normal;
}
.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus-visible {
  background: var(--gray-light);
  color: var(--blue-primary);
}
.main-nav .sub-menu .current-menu-item > a {
  color: var(--blue-primary);
  font-weight: 600;
}

.header-search { flex-shrink: 0; }
.header-search .search-form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--gray-light);
}
.header-search .search-form:focus-within {
  border-color: var(--blue-medium);
  background: var(--white);
}
.header-search .search-field {
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  width: 11rem;
  min-width: 0;
}
.header-search .search-field::placeholder { color: var(--text-muted); }
.header-search .search-field:focus { outline: none; }
.header-search .search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-left: 1px solid var(--gray-border);
  background: var(--blue-primary);
  color: var(--white);
  padding: 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.header-search .search-submit:hover { background: #003a70; }
.menu-toggle {
  display: none;
  border: 1px solid var(--gray-border);
  background: var(--white);
  border-radius: 6px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.2rem;
}

.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.site-footer h4 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}
.site-footer ul { list-style: none; display: grid; gap: 0.4rem; font-size: 0.9rem; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header { position: relative; }
  .header-main { flex-wrap: wrap; position: relative; align-items: center; }
  .main-nav {
    display: none;
    flex-wrap: nowrap;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding: 0.5rem 0;
    max-height: calc(100vh - 88px);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 110;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open > li {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }
  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu {
    display: none;
  }
  .main-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }
  .main-nav > li > a {
    padding: 0.85rem 1.25rem;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: none;
  }
  .main-nav .menu-item-has-children > a {
    justify-content: space-between;
    gap: 0.75rem;
    padding-right: 1rem;
  }
  .main-nav .menu-item-has-children > a::after {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.15rem;
    border-right: 2px solid var(--blue-primary);
    border-bottom: 2px solid var(--blue-primary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .main-nav .menu-item-has-children.is-open > a::after {
    transform: rotate(-135deg);
  }
  .main-nav .sub-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    overflow: visible;
    border: none;
    border-top: none;
    box-shadow: none;
    padding: 0 0 0.5rem;
    margin: 0;
    background: var(--gray-light);
    list-style: none;
  }
  .main-nav .sub-menu .sub-menu {
    position: static;
    left: auto;
    top: auto;
    border: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.04);
    padding-left: 0;
  }
  .main-nav .sub-menu a {
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: normal;
  }
  .main-nav .sub-menu .sub-menu a { padding-left: 1.75rem; }
  .main-nav.open > li > a { padding-left: 1.25rem; padding-right: 1.25rem; }
  .header-search {
    order: 4;
    flex: 1 1 100%;
    padding-bottom: 0.75rem;
  }
  .header-search .search-form { width: 100%; }
  .header-search .search-field { flex: 1; width: auto; }
  .menu-toggle { display: block; margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { width: min(var(--container-max), 100% - 2.5rem); }
  .site-footer .footer-grid > div:first-child { text-align: center; }
  .site-footer .footer-grid > div:first-child img { margin-inline: auto; }
  .util-bar { font-size: 0.72rem; }
  .util-bar .container { flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.75rem; }
}
