/* =======================
   RESET & BASE
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050a19;
  color: #eaf1ff;
  overflow-x: hidden;
}

/* =======================
   BACKGROUND
======================= */
.page-bg {
  position: fixed;
  inset: 0;
  background: url("/assets/images/pagebg.png") center top / cover no-repeat;
  z-index: -4;
}

#snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1100;
}

/* =======================
   HEADER
======================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(5,10,25,.95),
    rgba(5,10,25,.6)
  );
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text a {
  color: #eaf1ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: .9;
}

/* =======================
   NAV
======================= */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

.main-nav li {
  margin-left: 26px;
}

.main-nav a {
  color: #eaf1ff;
  text-decoration: none;
  font-size: 14px;
  opacity: .8;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a.cta {
  background: #e37b32;
  padding: 7px 15px;
  border-radius: 6px;
  color: #fff;
  opacity: 1;
}

/* =======================
   HAMBURGER
======================= */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

/* =======================
   HERO
======================= */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 120px;
  text-align: center;
}

.hero-logo {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  max-width: 90vw;
  opacity: .95;
}

.glass-card {
  background: rgba(20, 30, 55, 0.75);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
}

.hero-glass {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 46px 40px;
}

.hero-glass h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 14px;
  opacity: .8;
  margin-bottom: 26px;
}

.btn-primary {
  background: #e37b32;
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* =======================
   SANTA (ATTACHED TO HERO)
======================= */
.santa-wrap {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

.story-santa {
  width: 380px;
  max-width: 90vw;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,.6));
}

/* =======================
   SERVICES
======================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 120px 20px 80px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.service-card {
  background: rgba(10,20,40,.65);
  border-radius: 16px;
  padding: 34px;
  text-align: center;
  backdrop-filter: blur(8px);
}

/* =======================
   STORY (ALPINE HOUSE)
======================= */
.story {
  padding: 120px 20px;
  display: flex;
  justify-content: center;
}

.story-card {
  width: 100%;
  max-width: 760px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.story-content h2 {
  margin-bottom: 18px;
}

.story-content p {
  opacity: .9;
  margin-bottom: 26px;
}

.story-image {
  border-radius: 16px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =======================
   TECH
======================= */
.tech {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 100px 20px 80px;
}

.tech img {
  width: 72px;
  opacity: .9;
}

/* =======================
   FOOTER
======================= */
.site-footer {
  background: rgba(5,10,25,.95);
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  padding: 32px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* =======================
   BACKGROUND LANDSCAPE
======================= */
@media (orientation: landscape) and (min-width: 1200px) {
  .page-bg {
    background-image: url("/assets/images/pagebglandscape.png");
    background-position: center top;
  }
}

/* =======================
   HERO SNOWMAN (STICKY)
======================= */
.hero-logo {
  width: 570px; /* ~10% bigger */
  max-width: 90vw;
/*  position: sticky;
  top: 80px; */
  cursor: pointer;
  transition: transform .3s ease, top .3s ease;
  will-change: transform;
}

.hero-logo.is-stuck {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
}

/* =======================
   STORY VIDEO
======================= */
.story-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =======================
   FOOTER LINKS FIX
======================= */
.site-footer a {
  color: #eaf1ff;
  text-decoration: none;
  opacity: .8;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =======================
   MOBILE
======================= */
@media (max-width: 900px) {

  .hamburger { display: block; }

  .main-nav {
    position: absolute;
    top: 58px;
    right: 20px;
    background: rgba(10,20,40,.95);
    padding: 18px;
    border-radius: 12px;
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero { padding-bottom: 180px; }

  .santa-wrap { bottom: -110px; }

  .story-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .story-image {
    order: -1;
  }
  
  .hero-logo.is-stuck {
    position: static;
    transform: none;
  }
}

