/* ===================================================
   LAYOUT — header, navigation, mobile sheet, footer
   =================================================== */

/* ---- Sticky header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252,251,247,0.82);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line-2);
  background: rgba(252,251,247,0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(82px, 9vw, 96px);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: clamp(64px, 6.5vw, 88px); width: auto; }

/* ---- Desktop nav ---- */
.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-link {
  font-family: var(--h-sora);
  font-weight: 500;
  font-size: 15px;
  color: var(--deep);
  padding: 10px 14px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--sky); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

.nav-cta {
  font-family: var(--h-sora);
  font-weight: 600;
  font-size: 14.5px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  border: 0;
}
.nav-cta:hover { background: #0E2F5C; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-cta .arrow { transition: transform .25s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  width: 44px; height: 44px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---- Mobile slide-down sheet ---- */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  transform: translateY(-110%);
  transition: transform .75s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
}
.mobile-sheet.open {
  transform: translateY(0);
  transition: transform .62s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Links start hidden and stagger in once the sheet is open */
.mobile-links a {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-sheet.open .mobile-links a            { opacity: 1; transform: translateY(0); }
.mobile-sheet.open .mobile-links a:nth-child(1) { transition-delay: .32s; }
.mobile-sheet.open .mobile-links a:nth-child(2) { transition-delay: .40s; }
.mobile-sheet.open .mobile-links a:nth-child(3) { transition-delay: .48s; }
.mobile-sheet.open .mobile-links a:nth-child(4) { transition-delay: .56s; }
.mobile-sheet.open .mobile-links a:nth-child(5) { transition-delay: .64s; }
.mobile-sheet.open .mobile-links a:nth-child(6) { transition-delay: .72s; }

.mobile-foot {
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-sheet.open .mobile-foot { opacity: 1; transition-delay: .80s; }

.mobile-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
}

.mobile-links { display: flex; flex-direction: column; padding: 12px; gap: 2px; }
.mobile-links a {
  font-family: var(--h-sora);
  font-weight: 500;
  font-size: 22px;
  padding: 16px 14px;
  border-radius: 14px;
  color: var(--deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.mobile-links a.active { color: var(--ink); background: var(--sky); }

.mobile-foot { margin-top: auto; padding: 22px; border-top: 1px solid var(--line-2); }

/* ---- Footer ---- */
.footer { background: var(--deep); color: #B9C2CE; padding: 72px 0 28px; }

.footer h4 {
  font-family: var(--h-sora);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer a {
  color: #B9C2CE;
  display: block;
  padding: 6px 0;
  font-size: 15px;
  transition: color .2s var(--ease);
  cursor: pointer;
}
.footer a:hover { color: var(--sun); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2C3847;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.footer-brand img {
  height: 56px;
  background: var(--paper);
  border-radius: 12px;
  padding: 8px 10px;
}
.footer-brand p { color: #8E99A8; margin-top: 16px; font-size: 14px; max-width: 320px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: #8E99A8;
  font-size: 13px;
}
@media (max-width: 640px) { .footer-bottom { flex-direction: column; gap: 8px; } }
