/* ==========================================================================
   SITE CHROME: header + footer (template-parts/site-header.php, site-footer.php)
   Ported from the old WPCode header/footer fields, on the --adk-* tokens.
   ========================================================================== */

:root { --adk-header-h: 68px; }

/* Anchor jumps land below the sticky header. */
html { scroll-padding-top: calc(var(--adk-header-h) + 16px); }

/* ---------- Header ---------- */
.adk-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--adk-border);
  transition: box-shadow .2s ease;
}
.admin-bar .adk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .adk-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .adk-header { top: 0; } } /* WP admin bar stops being fixed here. */
.adk-header.is-scrolled { box-shadow: 0 6px 24px rgba(14, 14, 16, .06); }

.adk-header-inner {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  min-height: var(--adk-header-h);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.adk-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* The logo SVG's viewBox is cropped to the artwork; 13.36px keeps it the size it was on live. */
.adk-brand img { height: 13.36px; width: auto; display: block; }

.adk-nav-list {
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.adk-nav-list li { margin: 0; }
.adk-nav-list a {
  font-family: var(--adk-font-body);
  font-size: 15px; font-weight: 500; color: var(--adk-ink);
  text-decoration: none; letter-spacing: -0.01em;
  transition: color .15s ease;
}
.adk-nav-list a:hover { color: var(--adk-coral); }
.adk-nav-list a[aria-current="page"] { color: var(--adk-coral-deep); }

/* Primary button (menu item with the class adk-menu-cta). */
.adk-nav-list .adk-menu-cta > a {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--adk-coral-deep); color: #fff;
  padding: 10px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}
.adk-nav-list .adk-menu-cta > a:hover,
.adk-nav-list .adk-menu-cta > a:focus-visible { background: var(--adk-ink); color: #fff; transform: translateY(-1px); }

.adk-header a:focus-visible,
.adk-burger:focus-visible,
.adk-footer a:focus-visible {
  outline: 2px solid var(--adk-coral-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Mobile menu button: a plain three-line icon that turns into an X. */
.adk-burger {
  display: none;
  width: 40px; height: 40px; margin: 0 -8px 0 0; padding: 0;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--adk-ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* GeneratePress paints button backgrounds on hover/focus; keep it clear. */
.adk-burger:hover,
.adk-burger:focus,
.adk-burger:active { background: transparent; color: var(--adk-ink); }
.adk-burger-lines { position: relative; display: block; width: 22px; height: 16px; margin: 0 auto; }
.adk-burger-lines span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 1px;
  background: currentColor;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}
.adk-burger-lines span:nth-child(1) { top: 0; }
.adk-burger-lines span:nth-child(2) { top: 7px; }
.adk-burger-lines span:nth-child(3) { top: 14px; }
.adk-burger[aria-expanded="true"] .adk-burger-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.adk-burger[aria-expanded="true"] .adk-burger-lines span:nth-child(2) { opacity: 0; }
.adk-burger[aria-expanded="true"] .adk-burger-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  /* Without JS (no .adk-js on <html>, set in the head by adkory_js_class()) the menu just wraps
     under the logo. With JS the burger layout applies from the first paint, so nothing shifts. */
  html:not(.adk-js) .adk-header .adk-header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  html:not(.adk-js) .adk-header .adk-nav-list { flex-wrap: wrap; gap: 12px 20px; }

  .adk-js .adk-header .adk-burger { display: block; }
  .adk-js .adk-header .adk-nav-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--adk-border);
    box-shadow: 0 12px 24px rgba(14, 14, 16, .06);
    padding: 8px 0 20px;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .adk-js .adk-header .adk-nav-panel.is-open {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .adk-js .adk-header .adk-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .adk-js .adk-header .adk-nav-list a { display: block; padding: 13px 24px; }
  .adk-js .adk-header .adk-nav-list .adk-menu-cta > a { display: flex; margin: 12px 24px 0; }
}

/* ---------- Footer ---------- */
.adk-footer {
  background: var(--adk-ink);
  color: #B8B6AE;
  padding: 64px 24px 32px;
  font-family: var(--adk-font-body);
}
.adk-footer-inner { max-width: 1200px; margin: 0 auto; }
.adk-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.adk-footer-brand img { height: 13.36px; width: auto; display: block; margin: 10px 0 25px; }
.adk-footer-tagline { font-size: 15px; line-height: 1.6; color: #8A8780; max-width: 300px; margin: 0; }

.adk-footer .adk-footer-heading {
  color: #fff; font-family: var(--adk-font-body);
  font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .04em;
  text-transform: uppercase; margin: 0 0 16px;
}
.adk-footer-list { list-style: none; margin: 0; padding: 0; }
.adk-footer-list li { margin: 0 0 11px; }
.adk-footer a {
  color: #B8B6AE; font-size: 15px; text-decoration: none;
  transition: color .15s ease;
}
.adk-footer a:hover { color: var(--adk-coral-mid); }

/* "Cookie settings" is a button (it opens the consent banner); make it read as a footer link.
   GeneratePress styles buttons on hover/focus, so every state is pinned. */
.adk-footer .adk-cookie-btn,
.adk-footer .adk-cookie-btn:hover,
.adk-footer .adk-cookie-btn:focus,
.adk-footer .adk-cookie-btn:active {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: 15px; line-height: inherit; text-align: left;
  color: #B8B6AE; cursor: pointer;
  transition: color .15s ease;
}
.adk-footer .adk-cookie-btn:hover { color: var(--adk-coral-mid); }
.adk-footer .adk-cookie-btn:focus-visible {
  outline: 2px solid var(--adk-coral-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.adk-footer-address { font-style: normal; font-size: 15px; line-height: 1.75; margin: 0; }
.adk-footer-address a { display: inline-block; margin-top: 6px; }

.adk-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding-top: 28px;
  font-size: 14px; color: #8A8780;
}

@media (max-width: 820px) {
  .adk-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .adk-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .adk-footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .adk-header,
  .adk-nav-panel,
  .adk-burger-lines span,
  .adk-nav-list a { transition: none !important; }
}
