/* ==========================================================================
   GSA — Site chrome: topbar, header, navigation, footer, breadcrumb
   Light chrome on white; the footer carries the deep accent surface.
   ========================================================================== */

/* Preloader ---------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--cloud-white);
  transition: opacity 500ms var(--ease), visibility 500ms var(--ease);
}

.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader__mark {
  width: clamp(120px, 22vw, 190px);
  animation: pulse-soft 1.8s var(--ease) infinite;
}

.preloader__bar {
  width: min(240px, 50vw);
  height: 3px;
  margin-top: var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--surface-4);
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--rule);
  animation: slide-loop 1.3s var(--ease) infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.65; transform: translateY(-4px); }
}

@keyframes slide-loop {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(300%); }
}

/* Topbar ------------------------------------------------------------------- */
.topbar {
  background: var(--soft-mint);
  color: var(--ink-body);
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 44px;
  flex-wrap: wrap;
}

.topbar__list { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.topbar__list a { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar__list a:hover { color: var(--brand-ink); }
.topbar__list svg { width: 15px; height: 15px; flex: none; color: var(--sea-600); }

.topbar__social { display: flex; align-items: center; gap: 0.6rem; }

.topbar__social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--divider);
  border-radius: var(--radius-pill);
  color: var(--sea-700);
  transition: all var(--dur) var(--ease);
}

.topbar__social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--pure-white);
  transform: translateY(-2px);
}

.topbar__social svg { width: 14px; height: 14px; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--pure-white);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -26px rgba(24, 59, 51, 0.4);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--rule);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  transition: transform 90ms linear;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
}

/* Logo assets are trimmed to their artwork, so these heights are the real
   optical size of the lockup. */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: clamp(38px, 3.3vw, 50px); width: auto; }

/* Primary navigation ------------------------------------------------------- */
.nav { display: flex; align-items: center; gap: clamp(0.5rem, 1.2vw, 1.5rem); }

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  padding: 0.85rem 0.35rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-body);
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.55rem;
  height: 2px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease);
}

.nav__item:hover > .nav__link,
.nav__link[aria-current="page"] { color: var(--ink); }

.nav__item:hover > .nav__link::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__caret {
  width: 9px;
  height: 9px;
  transition: transform var(--dur) var(--ease);
  opacity: 0.7;
}

.nav__item:hover .nav__caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: -0.75rem;
  min-width: 272px;
  padding: 0.6rem;
  background: var(--pure-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--dur) var(--ease);
}

.nav__item:hover > .submenu,
.nav__item:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  color: var(--ink-body);
  border-left: 2px solid transparent;
  transition: all var(--dur) var(--ease);
}

.submenu a:hover {
  background: var(--soft-mint);
  border-left-color: var(--sea-500);
  color: var(--ink);
  padding-left: 0.95rem;
}

.header__actions { display: flex; align-items: center; gap: var(--space-sm); }

/* Mobile toggle ------------------------------------------------------------ */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-xs);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface-1);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer ------------------------------------------------------------ */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 88vw);
  z-index: 95;
  background: var(--pure-white);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 420ms var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Hidden until opened: keeps the drawer out of the tab order and stops the
   off-screen panel from extending the document's scroll width. */
.mobile-nav { visibility: hidden; }
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}

.mobile-nav__head img { height: 32px; width: auto; }

.mobile-nav__close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--divider);
  border-radius: var(--radius-xs);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.mobile-nav__body { padding: var(--space-sm) var(--space-md) var(--space-xl); }

.mobile-nav__item + .mobile-nav__item { border-top: 1px solid var(--border); }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.95rem 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.mobile-nav__link .nav__caret { width: 12px; height: 12px; }
.mobile-nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.mobile-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease);
}

.mobile-sub > div { overflow: hidden; }
.mobile-nav__item.is-open .mobile-sub { grid-template-rows: 1fr; }

.mobile-sub a {
  display: block;
  padding: 0.5rem 0 0.5rem 0.9rem;
  font-size: 0.94rem;
  color: var(--ink-body);
  border-left: 2px solid var(--divider);
}

.mobile-sub a:hover { color: var(--brand-ink); border-left-color: var(--sea-500); }
.mobile-sub div > :last-child { margin-bottom: var(--space-sm); }

.mobile-nav__cta { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(24, 59, 51, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur) var(--ease);
}

.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* Page hero (inner pages) --------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 2.4rem + 5vw, 7rem);
  background: var(--gradient-hero);
  color: var(--ink-body);
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(56% 90% at 84% 20%, rgba(140, 236, 243, 0.36), transparent 62%),
    radial-gradient(60% 80% at 2% 100%, rgba(131, 214, 153, 0.28), transparent 60%);
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
  background-image:
    linear-gradient(to right, rgba(24, 59, 51, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 59, 51, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
}

.page-hero h1,
.page-hero h2 { color: var(--ink); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 62ch; color: var(--ink-body); }
.page-hero .eyebrow { color: var(--brand-ink); }
.page-hero .lead { color: var(--ink-body); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--brand-ink); font-weight: 600; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--deep);
  color: var(--on-deep-body);
  position: relative;
  isolation: isolate;
  padding-top: var(--section-y-tight);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 80% at 10% 0%, rgba(60, 191, 168, 0.2), transparent 60%),
    radial-gradient(48% 70% at 92% 8%, rgba(92, 203, 111, 0.14), transparent 62%);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-lg);
  padding-bottom: var(--space-xl);
}

.footer__brand > img {
  height: 46px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer__brand p { max-width: 42ch; font-size: 0.96rem; }

.footer__lockup {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--deep-line);
}

.footer__lockup span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--on-deep-muted);
  margin-bottom: 0.65rem;
}

.footer__lockup img {
  height: 40px;
  width: auto;
  opacity: 0.92;
  transition: opacity var(--dur) var(--ease);
}

.footer__lockup:hover img { opacity: 1; }

.footer__col h5 {
  font-size: 0.82rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--on-deep);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer__col h5::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 42px; height: 3px;
  border-radius: var(--radius-pill);
  background: var(--rule);
}

.footer__col li + li { margin-top: 0.6rem; }
.footer__col a { font-size: 0.95rem; color: var(--on-deep-body); display: inline-block; }
.footer__col a:hover { color: var(--sea-400); transform: translateX(4px); }

.footer__contact li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 6px; color: var(--sea-400); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-block: var(--space-md);
  border-top: 1px solid var(--deep-line);
  font-size: 0.86rem;
  color: var(--on-deep-muted);
}

.footer__policies { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.footer__policies a:hover { color: var(--sea-400); }

/* Back to top -------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--pure-white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--dur) var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--deep); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

@media (max-width: 1199px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
