/* Theme Name: ZeroY Starter */
:root {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-background);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Anchor targets land clear of the two-tier sticky header. */
:target {
  scroll-margin-top: 132px;
}

/* Visually hidden, still readable by assistive tech and by the drawer
   behaviour, which takes the dialog name from this heading's text. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===================================================================
   Site Global Chrome
   Header: slim utility bar above a white main bar, both sticky.
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

.site-header__utility {
  display: flex;
  align-items: center;
  height: 38px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
}
.site-header__utility-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-header__utility-note {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header__utility-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  min-width: 0;
}
.site-header__utility-link {
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s var(--ease);
}
.site-header__utility-link:hover,
.site-header__utility-link:focus-visible {
  color: #ffffff;
}

.site-header__bar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header[data-scrolled="true"] .site-header__bar {
  box-shadow: var(--shadow-card);
}
.site-header__inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-right: auto;
}
.site-brand__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  white-space: nowrap;
}
.site-brand__tagline {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.site-nav > a,
.site-nav__menu,
.site-nav__text {
  display: flex;
  align-items: center;
}
.site-nav__text {
  cursor: default;
}
.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--navy);
  transition: color 0.18s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--blue-deep);
}
.site-nav a:hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--navy);
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.18s var(--ease);
}
.site-header__cta:hover,
.site-header__cta:focus-visible {
  color: #ffffff;
  background: var(--blue-deep);
}

.site-header__menu-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}
.site-header__menu-btn:hover {
  border-color: var(--navy);
}

/* Mobile navigation lives in the built-in drawer behaviour (0.4.0):
   root [data-behavior="drawer"] > button[data-dialog-open] + dialog
   with a close button. Hidden entirely from 981px up. */
.site-header__drawer {
  display: none;
}
.site-header__dialog {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 90vw);
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px 22px 30px;
  border: 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lift);
}
.site-header__dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.site-header__dialog::backdrop {
  background: rgba(13, 27, 36, 0.55);
}
.site-header__dialog-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}
.site-header__drawer-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--navy-line);
}
.site-header__drawer-nav a {
  padding: 13px 2px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  border-bottom: 1px solid var(--navy-line);
}
.site-header__drawer-nav a:hover {
  color: var(--blue);
}
.site-header__drawer-cta {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--navy);
  background: #ffffff;
  border-radius: 3px;
}
.site-header__drawer-cta:hover {
  background: var(--blue-wash);
}
.site-header__drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}
.site-header__drawer-link {
  color: rgba(255, 255, 255, 0.72);
}
.site-header__drawer-link:hover {
  color: #ffffff;
}
.site-header__drawer-close {
  order: -1;
  align-self: flex-end;
  padding: 9px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid var(--navy-line);
  border-radius: 3px;
  cursor: pointer;
}
.site-header__drawer-close:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
}

/* ===================================================================
   Site Footer
   =================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.62);
  padding: 84px 0 0;
  font-size: 14px;
}
.site-footer__inner {
  width: var(--container);
  margin: 0 auto;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__brand {
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-footer__desc {
  margin: 12px 0 0;
  max-width: 340px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
}
.site-footer__contact-link {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s var(--ease);
}
.site-footer__contact-link:hover {
  color: #ffffff;
}
.site-footer__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 13px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: #ffffff;
  border-radius: 3px;
  transition: background 0.18s var(--ease);
}
.site-footer__cta:hover {
  color: var(--navy);
  background: var(--blue-wash);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  font-size: 13px;
}
.site-footer__links a {
  color: rgba(255, 255, 255, 0.62);
}
.site-footer__links a:hover {
  color: #ffffff;
}
.site-footer__heading {
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}
.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.62);
}
.site-footer__list a {
  color: inherit;
}
.site-footer__list a:hover {
  color: #ffffff;
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0 32px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* Narrow screens --------------------------------------------------- */
@media (max-width: 1240px) {
  .site-nav {
    gap: 18px;
    font-size: 13.5px;
  }
  .site-header__inner {
    gap: 18px;
  }
}
@media (max-width: 1040px) {
  .site-brand__tagline {
    display: none;
  }
  .site-nav {
    gap: 14px;
  }
  .site-header__cta {
    padding: 13px 18px;
  }
}
@media (max-width: 980px) {
  .site-nav {
    display: none;
  }
  .site-header__drawer {
    display: flex;
    align-items: center;
  }
  .site-header__inner {
    min-height: 66px;
    gap: 14px;
  }
  .site-header__cta {
    padding: 12px 18px;
    font-size: 13.5px;
  }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 800px) {
  .site-header__utility-inner,
  .site-header__inner,
  .site-footer__inner {
    width: calc(100% - 36px);
  }
  .site-header__utility {
    font-size: 12px;
  }
  .site-header__utility-note {
    display: none;
  }
  .site-header__utility-links {
    gap: 14px;
  }
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 10px 0;
  }
}
@media (max-width: 560px) {
  .site-header__cta {
    padding: 11px 14px;
    font-size: 13px;
  }
  .site-header__menu-btn {
    padding: 11px 13px;
  }
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}
