/* Layout — nav, footer, page hero */

/* -------- Top Nav -------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: height var(--t), background var(--t), backdrop-filter var(--t);
  color: var(--on-dark);
  padding-block: 10px;
}
.site-nav.is-compact { height: var(--nav-h-compact); }
.site-nav.is-compact {
  height: var(--nav-h-compact);
  background: rgba(10,24,50,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.nav-inner {
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}
/* Pull the diamond closer to the left edge of the viewport — same in both states so the diamond doesn't horizontally jolt during the compact transition */
.nav-inner > .nav-brand { margin-left: -.75rem; }

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  isolation: isolate;
  transition: transform var(--t-fast);
}
/* Two-image stack: horizontal logo at top, standalone diamond on scroll.
   Layout mirrors brand_assets/logo-horizontal.png at the top state, fades to
   the clean transparent diamond image at compact size. */
.nav-brand-clip {
  display: block;
  position: relative;
  height: 108px;
  width: 420px;
  /* No overflow:hidden — would clip the hover glow to a rectangle.
     Wordmark is hidden via opacity at compact, so no visual leak. */
  transition: width var(--t), height var(--t);
}
.nav-brand-clip img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  transition: opacity var(--t), filter var(--t-fast);
}
/* Horizontal lockup stays visible at all scroll states — just scales down
   on compact. The standalone diamond mark is retained but kept hidden. */
.nav-brand-clip .logo-full { opacity: 1; }
.nav-brand-clip .logo-mark { opacity: 0; }
.site-nav.is-compact .nav-brand-clip {
  width: 280px;
  height: 72px;
}
.site-nav.is-compact .nav-brand-clip .logo-full { opacity: 1; }
.site-nav.is-compact .nav-brand-clip .logo-mark { opacity: 0; }

/* Hover — gold halo on the logo */
.nav-brand:hover .nav-brand-clip img {
  filter:
    drop-shadow(0 4px 14px rgba(0,0,0,.4))
    drop-shadow(0 0 12px rgba(255,216,54,.55))
    brightness(1.04);
}
.nav-brand:hover { transform: translateY(-1px); }
.nav-brand:active { transform: translateY(0); transition: transform 80ms; }
@media (prefers-reduced-motion: reduce) {
  .nav-brand, .nav-brand:hover { transform: none; }
}
@media (max-width: 1024px) {
  .nav-brand-clip { width: 50px; height: 50px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: .55rem .85rem;
  font-size: .94rem;
  font-weight: 500;
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.is-current { color: #fff; }
.nav-links a.is-current::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-hi);
  margin-left: .5rem;
  box-shadow: 0 0 0 3px rgba(240,196,32,.25), 0 0 12px rgba(255,216,54,.7);
}

/* Dropdown — interactive Menu button */
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.15rem;
  font-size: .98rem;
  font-weight: 500;
  color: var(--on-dark);
  border-radius: var(--radius-pill);
  transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  font-family: inherit;
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.nav-dropdown > button .menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
  transition: transform var(--t);
}
.nav-dropdown > button .menu-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast), background var(--t-fast);
  transform-origin: center;
}
.nav-dropdown > button .menu-bars span:nth-child(1) { width: 100%; }
.nav-dropdown > button .menu-bars span:nth-child(2) { width: 70%; }
.nav-dropdown > button .menu-bars span:nth-child(3) { width: 100%; }
.nav-dropdown > button:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,216,54,.45);
  box-shadow: 0 0 0 4px rgba(255,216,54,.08);
}
.nav-dropdown > button:hover .menu-bars span:nth-child(2) { width: 100%; background: var(--gold-hi); }
.nav-dropdown.is-open > button {
  color: #fff;
  background: rgba(255,216,54,.12);
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 4px rgba(255,216,54,.18);
}
.nav-dropdown.is-open > button .menu-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); background: var(--gold-hi); }
.nav-dropdown.is-open > button .menu-bars span:nth-child(2) { opacity: 0; }
.nav-dropdown.is-open > button .menu-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); background: var(--gold-hi); }
.nav-dropdown > button svg.chev {
  width: 12px; height: 12px;
  opacity: .7;
  transition: transform var(--t), opacity var(--t-fast);
}
.nav-dropdown.is-open > button svg.chev { transform: rotate(180deg); opacity: 1; color: var(--gold-hi); }

/* Stacked menu panel — sections one above the other, right-aligned */
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: auto;
  min-width: 280px;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-hi);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.panel-section { display: flex; flex-direction: column; gap: .1rem; }
.panel-section-label {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding: 0 .8rem .55rem;
  margin-bottom: .35rem;
  border-bottom: 1px solid var(--line);
}

/* Nested collapsible Services group inside the Menu panel */
.panel-services { display: flex; flex-direction: column; }
.panel-services-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.panel-services-toggle:hover {
  color: var(--gold-2);
  background: var(--gold-soft);
  border-color: rgba(240,196,32,.35);
}
.panel-services-toggle svg {
  width: 12px; height: 12px;
  transition: transform var(--t);
}
.panel-services.is-open .panel-services-toggle {
  color: var(--gold-2);
  background: var(--gold-soft);
  border-color: rgba(240,196,32,.45);
}
.panel-services.is-open .panel-services-toggle svg { transform: rotate(180deg); }
.panel-services-list {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
}
.panel-services-list-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding-top: .5rem;
}
.panel-services.is-open .panel-services-list { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) {
  .panel-services-toggle svg, .panel-services-list { transition: none; }
}
.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .96rem;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), padding var(--t-fast);
  text-decoration: none;
  position: relative;
}
.nav-dropdown-panel a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}
.nav-dropdown-panel a:hover {
  background: var(--bg-2);
  color: var(--brand-2);
  padding-left: 1rem;
}
.nav-dropdown-panel a:hover::before { background: var(--gold-hi); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: .92rem;
  font-weight: 500;
  /* Collapsed entirely at the top — takes no horizontal space, so Menu sits at the far right */
  max-width: 0;
  padding: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  transition: max-width 380ms cubic-bezier(.22,.61,.36,1),
              padding 380ms cubic-bezier(.22,.61,.36,1),
              margin 380ms cubic-bezier(.22,.61,.36,1),
              opacity 280ms ease,
              background var(--t-fast);
}
.site-nav.is-scrolled .nav-cta {
  max-width: 240px;
  padding: .65rem 1.1rem;
  margin-left: .75rem;
  opacity: 1;
  pointer-events: auto;
}
.nav-cta:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .nav-cta { transition: opacity 80ms, max-width 80ms, padding 80ms, margin 80ms; }
  .site-nav.is-scrolled .nav-cta { transform: none; }
}
.nav-cta svg { width: 14px; height: 14px; }

/* Mobile */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  color: #fff;
  margin-left: auto;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
}
.nav-burger:hover { background: rgba(255,255,255,.08); }
.nav-burger svg { width: 22px; height: 22px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-overlay-top img { height: 56px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.nav-overlay-close {
  width: 44px; height: 44px;
  color: #fff;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-overlay-close svg { width: 22px; height: 22px; }
.nav-overlay-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  padding-block: 1rem;
}
.nav-overlay-list > li > a,
.nav-overlay-list > li > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  letter-spacing: -.02em;
  cursor: pointer;
  list-style: none;
}
.nav-overlay-list summary::-webkit-details-marker { display: none; }
.nav-overlay-list summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  opacity: .7;
  transition: transform var(--t-fast);
}
.nav-overlay-list details[open] summary::after { transform: rotate(45deg); }
.nav-overlay-list details .sublist {
  list-style: none;
  padding: .5rem 0 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-overlay-list details .sublist a {
  display: block;
  padding: .55rem 0;
  color: var(--on-dark-2);
  font-size: 1rem;
  font-weight: 400;
}
.nav-overlay-cta {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-align: center;
}
.nav-overlay-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .9rem;
  color: var(--on-dark-2);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

/* Page body offset (under fixed nav) */
.page-body { padding-top: var(--nav-h); }

/* -------- Page Hero (interior pages, not home) -------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding-block: calc(var(--space-6) + 1rem) var(--space-6);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  opacity: .65;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 1.25rem;
}
.page-hero .breadcrumb a { color: var(--on-dark-2); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb svg { width: 10px; height: 10px; opacity: .6; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p.lede {
  margin-top: 1.25rem;
  font-size: var(--fs-lg);
  color: var(--on-dark);
  max-width: 640px;
  line-height: 1.5;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: var(--space-6) var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand-mark {
  display: block;
  width: 100%;
  max-width: 340px;
  padding: 0;
  transition: transform var(--t-fast), filter var(--t-fast);
}
.footer-brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: filter var(--t-fast);
}
.footer-brand-mark:hover img {
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55)) drop-shadow(0 0 12px rgba(255,216,54,.4));
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: .95rem;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-hi);
  letter-spacing: .005em;
  margin: 0;
  max-width: 340px;
}
.footer-brand p { color: var(--on-dark-2); max-width: 340px; font-size: .92rem; margin: 0; }
.footer-col h5 {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.footer-col a {
  color: var(--on-dark);
  font-size: .93rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--brand-hi); }
.footer-contact-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .93rem;
  color: var(--on-dark);
}
.footer-contact-item svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--gold); }
.footer-socials {
  display: flex;
  gap: .4rem;
  margin-top: 1rem;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.footer-socials a:hover { background: var(--brand); border-color: var(--brand); }
.footer-socials svg { width: 16px; height: 16px; }

.footer-legal {
  margin-top: var(--space-4);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--on-dark-2);
  text-transform: uppercase;
}
.footer-legal .credentials {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal .credentials span { display: inline-flex; align-items: center; gap: .4rem; }
.footer-legal .credentials span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 8px rgba(255,216,54,.7);
}
