/* Shared across every page: cookie banner + small utilities. */

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 16px 20px;
  background: #1C2B3A; color: #fff;
  border-radius: 12px; border-left: 3px solid #C4973A;
  
  font-family: 'DM Sans', sans-serif;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .88); margin: 0; flex: 1; }
.cookie-text a { color: #E8C47A; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font: 500 13px/1 'DM Sans', sans-serif; letter-spacing: .02em;
  padding: 11px 18px; border-radius: 6px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.cookie-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.cookie-btn-ghost:hover { border-color: #fff; }
.cookie-btn-solid { background: #C4973A; color: #1C2B3A; border: 1px solid #C4973A; }
.cookie-btn-solid:hover { background: #E8C47A; border-color: #E8C47A; }
.cookie-btn:focus-visible, .cookie-text a:focus-visible { outline: 2px solid #E8C47A; outline-offset: 2px; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions { justify-content: stretch; }
  .cookie-btn { flex: 1; padding: 13px 16px; }
}

/* Footer button styled like a link (used for "Cookie settings"). */
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: none;
}

/* ── Shared site navigation (homepage + every inner page) ── */
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--text-mid, #4A5F72); text-decoration: none; letter-spacing: .02em; transition: color .2s; }
.nav-links a:hover { color: var(--navy, #1C2B3A); }
.has-menu { position: relative; }
.has-menu > a { display: inline-flex; align-items: center; gap: 4px; }
.caret { font-size: 10px; opacity: .7; }
.submenu {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 250px; z-index: 110;
  list-style: none; margin: 12px 0 0; padding: 8px;
  background: var(--warm-white, #FDFAF6); border: 1px solid var(--border, #E2D9CC); border-radius: 12px;
}
.submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-menu.open > .submenu { display: block; }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-mid, #4A5F72); text-decoration: none; }
.submenu a:hover, .submenu a:focus-visible { background: var(--gold-pale, #F5EDD8); color: var(--navy, #1C2B3A); }
.submenu-all { border-top: 1px solid var(--border, #E2D9CC); margin-top: 6px; padding-top: 6px; }
.submenu-all a { font-weight: 500; color: var(--navy, #1C2B3A); }
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--border, #E2D9CC); border-radius: 6px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy, #1C2B3A); border-radius: 2px; }
@media (max-width: 1100px) { .nav-links { gap: 18px; } }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--warm-white, #FDFAF6); border-bottom: 1px solid var(--border, #E2D9CC);
    padding: 8px 24px 16px; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > li > a { display: block; padding: 12px 0; font-size: 15px; }
  .caret { display: none; }
  .submenu { display: block; position: static; min-width: 0; margin: 0 0 6px 12px; padding: 0; border: 0; background: none; }
  .submenu::before { display: none; }
  .submenu a { padding: 8px 0; }
  .submenu-all { margin-top: 0; padding-top: 0; border-top: 0; }
}
