/* layout.css — header/nav, shared primitives (buttons, eyebrow), section spacing, footer */
/* ---- Header ---- */
header.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Show the header immediately when arriving at the home page from a
   cross-page anchor link, instead of waiting for the hero animation delay. */
html.anchor-nav header.nav,
html.anchor-nav .hero * {
  animation-delay: 0s !important;
}

.nav-shell {
  padding: 0 28px;
  max-width: calc(var(--max) + 56px);
  margin: auto;
}

.nav-bar {
  height: 52px;
  display: flex;
  align-items: center;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #141414;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  margin-right: auto;
}

.logo-lockup {
  display: block;
  width: auto;
  height: 34px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  flex: none;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a i,
.nav-links button.btn i {
  width: 1em;
  font-size: 0.85em;
  text-align: center;
}

.nav-links a:not(.btn) i {
  color: #a6acb4;
}

.nav-links a:hover i,
.nav-links a:focus-visible i,
.nav-links a:active i,
.nav-links a.is-current i,
.nav-links a.btn.is-current i,
.nav-links button.btn:hover i,
.nav-links button.btn:focus-visible i,
.nav-links button.btn:active i {
  color: var(--gold);
}

.nav-links .nav-sep {
  flex: none;
  width: 1px;
  height: 20px;
  margin: 0 8px;
  background: rgba(0, 0, 0, 0.16);
}

.nav-links a:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.05);
}

.nav-links a.is-current {
  color: #a87b1f;
  background: rgba(0, 0, 0, 0.05);
}

.nav-links a.btn,
.nav-links button.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 7px 13px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.nav-links a.btn:hover,
.nav-links button.btn:hover {
  background: #1c1c1c;
  color: #fff;
}

.nav-links a.btn.is-current {
  color: #fff;
}

.nav-links a.btn.nav-secondary,
.nav-links button.btn.nav-secondary {
  background: #fff;
  color: #000;
  border: 0;
  padding: 8px 14px;
  font-weight: 700;
}

.nav-links a.btn.nav-secondary:hover,
.nav-links button.btn.nav-secondary:hover,
.nav-links a.btn.nav-secondary:focus-visible,
.nav-links button.btn.nav-secondary:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #141414;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 9px;
  padding: 8px;
  cursor: pointer;
}

.nav-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 22px;
  color: #141414;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-location .flag {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ---- Shared primitives ---- */
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 14px;
}

.gold {
  display: inline-block;
  background-image: linear-gradient(105deg, #7a5b24 0%, #c6a15a 16%, #fff4c8 34%, #e8c56a 46%, #b8860b 58%, #ffe7a3 74%, #8d6b2f 100%);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: #e6c36a;
  -webkit-text-fill-color: transparent;
  animation: goldSheen 5.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #d4af3759);
}

@keyframes goldSheen {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 6px #d4af3747);
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 16px #ffdc82b3);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--gold);
  color: #14120b;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* ---- Download modal ---- */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-modal[hidden] {
  display: none;
}

.download-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.download-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  color: #16181c;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
}

.download-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #3a3f46;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.download-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #000;
}

.download-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7221;
  font-weight: 700;
  margin: 0 0 6px;
}

.download-panel h3 {
  font-size: 1.35rem;
  color: #111;
  margin: 0 0 20px;
}

.download-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.download-option:hover {
  border-color: rgba(0, 0, 0, 0.22);
}

.download-option:has(input:checked) {
  border-color: #b8860b;
  background: rgba(232, 197, 106, 0.08);
}

.download-option input {
  margin-top: 3px;
  flex: none;
  accent-color: #b8860b;
}

.download-option strong {
  display: block;
  color: #141414;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.download-option small {
  color: #6b7280;
  font-size: 0.78rem;
}

.btn-download {
  width: 100%;
  margin-top: 6px;
  background: #000;
  color: #fff;
  font-weight: 700;
  border-color: transparent;
}

.btn-download:hover {
  background: #1c1c1c;
}

section {
  padding: 92px 0;
}

/* ---- Sticky section sidebar (services + blog) ---- */
.side-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

.side-rail {
  position: sticky;
  top: 92px;
  align-self: start;
}

.side-rail-title {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.side-rail-group + .side-rail-group {
  margin-top: 28px;
}

.side-rail-nav {
  display: grid;
  gap: 1px;
  border-left: 1px solid var(--line);
}

.side-rail-nav a {
  margin-left: -1px;
  padding: 8px 0 8px 15px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.side-rail-nav a:hover,
.side-rail-nav a:focus-visible {
  color: var(--ink);
}

.side-rail-nav a.is-current {
  border-left-color: var(--gold);
  color: var(--gold);
}

.side-rail-hire {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #14120b;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s var(--ease);
}

.side-rail-hire:hover,
.side-rail-hire:focus-visible {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.side-rail-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}

.side-rail-cta:hover,
.side-rail-cta:focus-visible {
  color: var(--gold-soft);
}

.side-rail-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.side-rail-demo:hover,
.side-rail-demo:focus-visible {
  color: var(--gold);
}

.side-main {
  min-width: 0;
}

.side-chat-link {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease;
}

.side-chat-link:hover,
.side-chat-link:focus-visible {
  color: var(--gold-soft);
}

@media (max-width: 980px) {
  .side-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-rail {
    position: static;
    min-width: 0;
  }

  .side-rail-nav {
    display: flex;
    max-width: 100%;
    gap: 7px;
    overflow-x: auto;
    padding: 12px 0 2px;
    border-top: 1px solid var(--line);
    border-left: 0;
    scrollbar-width: thin;
  }

  .side-rail-nav a {
    flex: none;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    white-space: nowrap;
  }

  .side-rail-nav a.is-current {
    border-color: rgba(232, 197, 106, 0.55);
    background: rgba(232, 197, 106, 0.07);
  }

  .side-rail-cta {
    margin-top: 16px;
  }
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0 46px;
  border-top: 1px solid var(--line);
  background: #000;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand .footer-tag {
  margin-top: 6px;
  color: rgba(151, 160, 176, 0.8);
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.18s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--gold);
}

.footer-social i {
  font-size: 0.9em;
}

.footer-nav {
  display: flex;
  justify-self: end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text);
  font-size: 0.84rem;
  transition: color 0.18s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold);
}


@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .footer-nav {
    justify-self: start;
  }
}

