/*
Theme Name: Executor's Kit
Theme URI: https://executor-kit.com
Description: Child theme of Extendable carrying the Executor's Kit design system. Calm editorial authority for complex administrative work.
Author: Executor's Kit
Template: extendable
Version: 1.1.2
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: executor-kit
WC requires at least: 8.0
WC tested up to: 11.0
*/

:root {
  --ek-shell-header: 74px;
}

/* The template-part wrapper is the element that can remain sticky across the page. */
.wp-block-template-part:has(> .ek-header) {
  position: sticky;
  z-index: 900;
  top: 0;
}

.ek-header {
  width: 100%;
  height: var(--ek-shell-header);
  margin: 0;
  padding: 0;
  background: color-mix(in srgb, var(--wp--preset--color--paper-ground) 96%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.ek-header.is-compact {
  height: 62px;
  border-color: var(--wp--preset--color--paper-rule);
  box-shadow: 0 10px 32px rgba(23, 32, 42, .07);
}

.ek-header-inner {
  width: min(calc(100% - 3rem), 1240px);
  height: 100%;
  margin: 0 auto;
  gap: 2rem;
}

.ek-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .72rem;
  color: var(--wp--preset--color--authority-ink);
  text-decoration: none;
}

.ek-brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.ek-brand-copy {
  display: grid;
  gap: .18rem;
  min-width: 0;
}

.ek-brand-name {
  font-family: var(--wp--preset--font-family--display-serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.ek-brand-descriptor {
  color: var(--wp--preset--color--working-ink);
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ek-nav {
  gap: 1.5rem;
}

/* WooCommerce injects this globally, but this store intentionally has no account flow. */
.ek-nav > .wp-block-woocommerce-customer-account {
  display: none;
}

.ek-nav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--working-ink);
  text-decoration: none;
}

.ek-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--authority-ink);
}

.ek-nav .wp-block-navigation__responsive-container-open,
.ek-nav .wp-block-navigation__responsive-container-close {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wp--preset--color--authority-ink);
}

.ek-nav .wp-block-navigation__responsive-container.is-menu-open {
  padding: 1.25rem;
  background: var(--wp--preset--color--paper-ground);
  color: var(--wp--preset--color--authority-ink);
}

.ek-header :focus-visible,
.ek-footer :focus-visible {
  outline: 3px solid var(--wp--preset--color--institutional-blue);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .ek-brand-descriptor {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --ek-shell-header: 62px;
  }

  .ek-header-inner {
    width: calc(100% - 2.4rem);
    gap: 1rem;
  }

  .ek-brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .ek-brand-name {
    font-size: 1rem;
  }

  .ek-nav {
    gap: .75rem;
  }

  .ek-nav .ek-cta {
    display: none;
  }
}

@media (max-width: 360px) {
  .ek-brand-name {
    font-size: .92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ek-header {
    transition-duration: .01ms !important;
  }
}

.ek-footer {
  margin: 0;
  padding: clamp(4.5rem, 8vw, 7rem) 0 2rem;
  color: var(--wp--preset--color--paper-surface);
}

.ek-footer-main {
  gap: clamp(3rem, 7vw, 6rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.ek-footer-brand {
  flex-basis: 46%;
}

.ek-footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--wp--preset--color--paper-surface);
  font-family: var(--wp--preset--font-family--display-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: none;
}

.ek-footer-lockup img {
  width: 44px;
  height: 44px;
}

.ek-footer-brand h2 {
  max-width: 13ch;
  margin: 1.8rem 0 .9rem;
  color: var(--wp--preset--color--paper-surface);
}

.ek-footer-brand > p {
  max-width: 42ch;
  color: var(--wp--preset--color--paper-rule);
}

.ek-footer-brand .wp-block-button__link:hover {
  background: var(--wp--preset--color--paper-ground) !important;
  color: var(--wp--preset--color--authority-ink) !important;
}

.ek-footer-links {
  flex-basis: 54%;
}

.ek-footer-links > .wp-block-columns {
  gap: clamp(1.5rem, 4vw, 3rem);
}

.ek-footer-links h3 {
  margin: 0 0 1rem;
  color: var(--wp--preset--color--paper-surface);
  font-family: var(--wp--preset--font-family--working-sans);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ek-footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ek-footer-links li {
  margin-bottom: .7rem;
}

.ek-footer a {
  color: var(--wp--preset--color--paper-surface);
  text-underline-offset: 4px;
}

.ek-footer-bottom {
  align-items: flex-end;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 253, 252, .18);
}

.ek-footer-disclaimer {
  max-width: 92ch;
  margin: 0;
  color: var(--wp--preset--color--paper-rule);
  line-height: 1.55;
}

.ek-footer-copyright {
  margin: 0;
  color: var(--wp--preset--color--paper-rule);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ek-footer {
    padding: 4rem 1.2rem 1.5rem;
  }

  .ek-footer-main {
    display: block;
  }

  .ek-footer-brand {
    margin-bottom: 3rem;
  }

  .ek-footer-links > .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ek-footer-links > .wp-block-columns > .wp-block-column:last-child {
    grid-column: 1 / -1;
  }

  .ek-footer-bottom {
    display: block;
  }

  .ek-footer-copyright {
    margin-top: 1rem;
    white-space: normal;
  }
}
