/* Sky Facility — ui.css: knapper, topplinje, bunntekst, merker, bevegelse. */

.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.5rem; min-height: 3rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: 999px; font-family: inherit; font-size: 0.92rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: var(--gold-line); --btn-fg: #241a06; --btn-bd: var(--gold-line); }
.btn--gold:hover { --btn-bg: var(--gold-bright); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--outline-inv { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--line-inv); }
.btn--outline-inv:hover { --btn-bd: var(--paper); --btn-bg: rgba(246, 244, 239, 0.08); }
.btn--sm { padding: 0.65rem 1.1rem; min-height: 2.5rem; font-size: 0.86rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-more { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 0.15rem; transition: border-color 0.2s, gap 0.25s var(--ease); }
.link-more:hover { border-color: var(--ink); gap: 0.7rem; }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(246, 244, 239, 0.88); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(246, 244, 239, 0.96); box-shadow: 0 14px 34px -30px rgba(13, 19, 18, 0.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 2.1rem; height: 2.1rem; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--gold-bright); border-radius: 3px; font-size: 0.95rem; font-weight: 700; }
.brand-text { display: grid; line-height: 1.12; }
.brand-text strong { font-size: 1.02rem; font-weight: 600; }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
.nav-list a { display: block; padding: 0.55rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.nav-list a:hover { background: rgba(13, 19, 18, 0.06); }
.nav-list a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold-line); border-radius: 0; }
.header-actions { display: none; align-items: center; gap: 0.6rem; }
@media (min-width: 1000px) {
  .nav, .header-actions { display: flex; }
  .nav { display: block; }
  .nav-toggle { display: none; }
}
.nav-toggle { display: inline-grid; place-items: center; gap: 5px; width: 2.6rem; height: 2.6rem; padding: 0; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.nav-toggle span { display: block; width: 1.05rem; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { display: grid; gap: 0.2rem; border-top: 1px solid var(--line); padding: 0.6rem var(--gutter) 1.3rem; background: var(--paper); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: flex; justify-content: space-between; padding: 0.8rem 0.1rem; font-size: 1rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 0.9rem; }

.badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.01em; }
.badge--gold { border-color: var(--gold-line); background: var(--gold-soft); color: #5c420a; }
.badge--green { border-color: rgba(27, 107, 74, 0.35); background: var(--green-soft); color: #14523a; }
.badge--inv { border-color: var(--line-inv); color: rgba(246, 244, 239, 0.85); }
.badge svg { width: 0.95rem; height: 0.95rem; flex: none; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; }
.pill { padding: 0.3rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; color: var(--muted); background: rgba(255, 255, 255, 0.6); }
.section--ink .pill { border-color: var(--line-inv); color: rgba(246, 244, 239, 0.8); background: rgba(246, 244, 239, 0.05); }

.check-list { list-style: none; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.85rem; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.32rem; width: 1.05rem; height: 1.05rem;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: 0.33rem; top: 0.55rem; width: 0.34rem; height: 0.16rem;
  border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg); transform-origin: left center;
}
.section--ink .check-list li { color: rgba(246, 244, 239, 0.85); }
.section--ink .check-list li::before { background: rgba(226, 196, 126, 0.16); border-color: var(--gold-bright); }
.section--ink .check-list li::after { border-color: var(--gold-bright); }

.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-grid h4 { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.9rem; font-weight: 600; }
.footer-grid ul { list-style: none; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.footer-grid a { color: rgba(246, 244, 239, 0.78); text-decoration: none; }
.footer-grid a:hover { color: var(--paper); text-decoration: underline; }
.footer-grid p { color: rgba(246, 244, 239, 0.7); font-size: 0.92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-inv); font-size: 0.82rem; color: rgba(246, 244, 239, 0.6); }
.footer-bottom a { color: rgba(246, 244, 239, 0.75); text-decoration: none; }
.footer-status { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-status .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #4ec58a; box-shadow: 0 0 0 4px rgba(78, 197, 138, 0.16); }

.sticky-cta { position: fixed; inset: auto 0 0; z-index: 70; display: flex; gap: 0.5rem; padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(246, 244, 239, 0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.35s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 1000px) { .sticky-cta { display: none; } }

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
