/* ═══════════════════════════════════════════════
   SHARED STYLES — Celeste Omsorg
   Used by all pages
   ═══════════════════════════════════════════════ */

:root {
  --midnight: #3B5A8A;
  --celestial: #5480B8;
  --sky: #89BAE0;
  --mist: #D4E4F4;
  --sage: #7BA882;
  --sage-light: #B8D4BC;
  --blush: #E8C5B0;
  --cream: #F7F3EE;
  --warm-white: #FDFAF6;
  --ink: #2A3550;
  --gold: #D4A84A;
  --dawn: #F2CEA0;
  --dawn-rose: #E8B8A8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── SKIP LINK ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--midnight);
  color: var(--warm-white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* ─── TOPBAR ─────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  transition: background .5s, padding .3s, box-shadow .3s;
}
.topbar.scrolled {
  background: rgba(59,90,138,.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,.1);
  padding: 18px 48px;
}
.topbar-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300;
  color: var(--midnight);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .5s;
}
.topbar-logo em { font-style: italic; color: var(--celestial); transition: color .5s; }
.topbar.scrolled .topbar-logo { color: var(--warm-white); }
.topbar.scrolled .topbar-logo em { color: var(--mist); }

.menu-btn {
  cursor: pointer; display: flex; flex-direction: column; gap: 5px;
  padding: 12px; border: none;
  background: rgba(59,90,138,.08); border: 1px solid rgba(59,90,138,.15);
  border-radius: 8px; transition: background .3s, border-color .3s;
  z-index: 101;
}
.menu-btn:hover { background: rgba(59,90,138,.15); }
.topbar.scrolled .menu-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.topbar.scrolled .menu-btn:hover { background: rgba(255,255,255,.14); }
.menu-line {
  width: 22px; height: 1.5px; background: var(--midnight);
  border-radius: 2px; transition: all .4s;
}
.topbar.scrolled .menu-line { background: var(--warm-white); }
.menu-line:nth-child(2) { width: 16px; }
/* X state */
.menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px,5px); }
.menu-btn.active .menu-line:nth-child(2) { opacity: 0; width: 0; }
.menu-btn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px,-5px); }

/* ─── FULLSCREEN OVERLAY ─────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: #1A2038;
  z-index: 90;
  display: flex; align-items: center;
  padding: 80px 60px 60px;
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
  overflow-y: auto;
}
.overlay.open { opacity: 1; pointer-events: all; }

.overlay-nav { display: flex; flex-direction: column; gap: 2px; }
.overlay-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 300;
  color: rgba(200,217,240,.25);
  letter-spacing: -.02em; line-height: 1.15;
  cursor: pointer; text-decoration: none;
  transition: color .3s, transform .3s;
  display: flex; align-items: center; gap: 20px;
}
.overlay-link em { font-style: italic; }
.overlay-link:hover { color: var(--warm-white); transform: translateX(8px); }
.overlay-link:hover .link-num { color: var(--sky); }
.link-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: .12em;
  color: rgba(200,217,240,.15);
  padding-top: 10px; transition: color .3s;
}

.overlay-side {
  position: absolute; right: 60px; bottom: 60px;
  display: flex; flex-direction: column; gap: 16px; text-align: right;
}
.overlay-social {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(200,217,240,.25); cursor: pointer; transition: color .2s;
  text-decoration: none;
}
.overlay-social:hover { color: var(--mist); }

.overlay-tagline {
  position: absolute; left: 60px; bottom: 60px;
  font-size: 13px; font-weight: 300; color: rgba(200,217,240,.2);
  max-width: 300px; line-height: 1.7;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none; cursor: pointer; border: none;
  transition: all .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--midnight); color: var(--warm-white); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn-secondary {
  background: transparent; color: var(--midnight);
  border: 1.5px solid rgba(59,90,138,.3);
}
.btn-secondary:hover { border-color: rgba(59,90,138,.6); }

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
  background: #2E4A72;
  padding: 48px 64px 32px;
  color: rgba(200,217,240,.3);
  font-size: 12px;
  margin-top: 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 300;
  color: rgba(200,217,240,.5);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: rgba(200,217,240,.3); text-decoration: none;
  font-size: 11px; letter-spacing: .05em;
}
.footer-links a:hover { color: rgba(200,217,240,.6); }

/* ─── BACK TO TOP ────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(59,90,138,.15);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  color: var(--midnight);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .topbar { padding: 20px 24px; }
  .topbar.scrolled { padding: 14px 24px; }
  .overlay { padding: 80px 32px 60px; }
  .overlay-tagline { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .site-footer { padding: 48px 32px 32px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ─── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
