/* Aurora Meridian — Edmonton Nordic Luxury */
:root {
  --midnight: #0B1220;
  --frost: #EDF2F7;
  --aurora: #38BDF8;
  --amber: #F59E0B;
  --midnight-soft: #141D2E;
  --midnight-mid: #1A2438;
  --frost-dim: #D8E0EA;
  --frost-muted: #94A3B8;
  --aurora-dim: rgba(56, 189, 248, 0.18);
  --aurora-glow: rgba(56, 189, 248, 0.35);
  --amber-dim: rgba(245, 158, 11, 0.15);
  --font-head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Libre Franklin', system-ui, -apple-system, sans-serif;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --shadow-soft: 0 4px 24px rgba(11, 18, 32, 0.08);
  --shadow-card: 0 8px 32px rgba(11, 18, 32, 0.12);
  --shadow-lift: 0 16px 48px rgba(11, 18, 32, 0.16);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --dark-bg: var(--midnight);
  --dark-text: var(--frost);
  --light-bg: var(--frost);
  --light-text: var(--midnight);
  --accent-bg: var(--aurora);
  --accent-text: var(--midnight);
  --soft: #F4F7FB;
  --grid: #E8EEF5;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--midnight);
  background: var(--frost);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site-edm {
  background: var(--frost);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: inherit;
  transition: color var(--transition);
}

a:hover { color: var(--aurora); }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ── Surfaces ── */
.surface-dark,
.surface-light,
.surface-accent,
.surface-soft,
.surface-mist,
.surface-grid {
  padding: 0;
}

.surface-dark {
  background: var(--midnight);
  color: var(--frost);
}

.surface-light {
  background: var(--frost);
  color: var(--midnight);
}

.surface-accent {
  background: linear-gradient(135deg, var(--midnight-soft) 0%, var(--midnight) 100%);
  color: var(--frost);
}

.surface-soft {
  background: var(--soft);
  color: var(--midnight);
}

.surface-mist {
  background: var(--frost-dim);
  color: var(--midnight);
}

.surface-grid {
  background: var(--grid);
  color: var(--midnight);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--frost);
  white-space: nowrap;
}

.logo span {
  color: var(--aurora);
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-list a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--frost-muted);
  transition: color var(--transition);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--aurora);
}

.header-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--frost);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  background: currentColor;
  height: 2px;
  width: 100%;
  position: relative;
  border-radius: 1px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-accent {
  background: var(--amber);
  color: var(--midnight);
  border-color: var(--amber);
}

.btn-accent:hover {
  background: #E08E00;
  border-color: #E08E00;
  color: var(--midnight);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(237, 242, 247, 0.4);
  color: var(--frost);
}

.btn-outline:hover {
  border-color: var(--aurora);
  color: var(--aurora);
}

.btn-ghost {
  background: transparent;
  border-color: var(--aurora);
  color: var(--aurora);
}

.btn-ghost:hover {
  background: var(--aurora-dim);
}

/* ── Aurora Hero (Panoramic) ── */
.hero-aurora {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--midnight);
  color: var(--frost);
}

.hero-aurora__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(56, 189, 248, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 90% 60%, rgba(56, 189, 248, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, var(--midnight-soft) 0%, var(--midnight) 100%);
  pointer-events: none;
}

.hero-aurora__mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--midnight) 0%, transparent 40%);
}

.hero-aurora__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

.hero-aurora__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 1.5rem;
}

.hero-aurora__label::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--aurora);
}

.hero-aurora h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

.hero-aurora__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--frost-muted);
  max-width: 52ch;
  margin: 0 0 3rem;
}

/* ── Checkpoint Trail Rail ── */
.trail-rail {
  position: relative;
  padding: 2rem 0 0;
  margin-top: 1rem;
}

.trail-rail__line {
  position: absolute;
  top: 3.1rem;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg,
    var(--aurora) 0%,
    rgba(56, 189, 248, 0.4) 50%,
    rgba(245, 158, 11, 0.3) 100%
  );
  z-index: 0;
}

.trail-rail__stones {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trail-stone {
  flex: 1;
  text-align: center;
  max-width: 180px;
}

.trail-stone__node {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--midnight);
  border: 2px solid var(--aurora);
  margin: 0 auto 0.75rem;
  box-shadow: 0 0 12px var(--aurora-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.trail-stone--active .trail-stone__node,
.trail-stone:hover .trail-stone__node {
  background: var(--aurora);
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--aurora-glow);
}

.trail-stone--amber .trail-stone__node {
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.trail-stone__num {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 0.25rem;
}

.trail-stone__title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--frost);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 1rem;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.section-head .prose {
  margin-inline: auto;
  color: var(--frost-muted);
}

.surface-light .section-head .prose,
.surface-soft .section-head .prose {
  color: var(--frost-muted);
  opacity: 1;
}

.surface-light .section-head .prose { color: #64748B; }
.surface-soft .section-head .prose { color: #64748B; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.prose {
  max-width: 72ch;
}

.container.prose,
.container .prose {
  max-width: none;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
}

/* ── Grids ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 img,
.grid-3 img {
  box-shadow: var(--shadow-card);
}

/* ── Checkpoint Cards (Stepping Stones) ── */
.checkpoint-trail {
  position: relative;
  padding-top: 2rem;
}

.checkpoint-trail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--aurora) 15%,
    var(--aurora) 85%,
    transparent 100%
  );
  opacity: 0.5;
}

.checkpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.checkpoint-grid--six {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.checkpoint-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.checkpoint-card::before {
  content: '';
  position: absolute;
  top: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--midnight-soft);
  border: 2px solid var(--aurora);
  box-shadow: 0 0 10px var(--aurora-glow);
  z-index: 2;
}

.surface-light .card,
.surface-light .checkpoint-card,
.surface-soft .card,
.surface-soft .checkpoint-card {
  background: #fff;
  border-color: var(--frost-dim);
  box-shadow: var(--shadow-soft);
}

.surface-light .checkpoint-card::before,
.surface-soft .checkpoint-card::before {
  background: var(--frost);
}

.card:hover,
.checkpoint-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-lift);
}

.module-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora);
  margin-bottom: 0.75rem;
}

.surface-light .module-tag,
.surface-soft .module-tag {
  color: var(--aurora);
}

.card h3,
.checkpoint-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.card p,
.checkpoint-card p {
  margin: 0 0 0.5rem;
  font-size: 0.925rem;
  line-height: 1.65;
}

.card p strong,
.checkpoint-card p strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--amber);
}

.surface-light .card p strong,
.surface-soft .card p strong {
  color: var(--midnight);
}

/* ── Feature band ── */
.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-band img {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
}

/* ── Checkpoint log section ── */
.checkpoint-log {
  padding: 3rem 0;
  border-top: 1px solid var(--frost-dim);
}

.surface-dark .checkpoint-log {
  border-top-color: rgba(56, 189, 248, 0.12);
}

.checkpoint-log .prose p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.75;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Legacy hero variants (other pages) ── */
.hero-b {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.hero-b::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(11, 18, 32, 0.85));
}

.hero-b .container {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  margin-bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora);
}

.hero-c {
  min-height: 85vh;
  display: grid;
  grid-template-columns: auto 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.hero-c-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--aurora);
}

.hero-d {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hero-d-top {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.hero-d-bottom {
  flex: 1;
  position: relative;
}

.hero-d-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
  border-radius: 0;
}

.trust-card {
  position: absolute;
  top: -2rem;
  right: 5%;
  background: var(--frost);
  color: var(--midnight);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  max-width: 280px;
}

/* ── Forms & FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--frost-dim);
  padding: 1.25rem 0;
}

.surface-dark .faq-item {
  border-bottom-color: rgba(56, 189, 248, 0.12);
}

.contact-form label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--frost-dim);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--midnight);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--aurora);
  box-shadow: 0 0 0 3px var(--aurora-dim);
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--aurora);
  color: var(--frost);
}

.cookie-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.cookie-inner a {
  color: var(--aurora);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cookie-custom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
}

.cookie-custom label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.hidden { display: none !important; }

/* ── Footer ── */
.site-footer {
  padding: 4rem 0 2rem;
  margin-top: 0;
  background: var(--midnight);
  color: var(--frost-muted);
  border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--frost);
  margin: 0 0 0.75rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
}

.site-footer a {
  color: var(--aurora);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.75;
}

.footer-disclaimer p {
  margin: 0 0 0.75rem;
}

/* ── Legal & error ── */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--frost-dim);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.surface-dark .legal-table th,
.surface-dark .legal-table td {
  border-color: rgba(56, 189, 248, 0.15);
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

/* ── CTA strip ── */
.cta-strip {
  text-align: center;
  padding: 3rem 0;
}

.cta-strip .btn-accent {
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .checkpoint-grid,
  .checkpoint-grid--six,
  .feature-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-aurora {
    min-height: auto;
  }

  .hero-aurora__inner {
    padding: 4rem 0 2.5rem;
  }

  .hero-aurora h1 {
    max-width: none;
  }

  .trail-rail__line {
    display: none;
  }

  .trail-rail__stones {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(56, 189, 248, 0.3);
  }

  .trail-stone {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    max-width: none;
  }

  .trail-stone__node {
    margin: 0;
    flex-shrink: 0;
  }

  .checkpoint-trail::before {
    display: none;
  }

  .checkpoint-card::before {
    top: 1.25rem;
    left: -0.5rem;
    transform: none;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem;
    background: var(--midnight);
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
    gap: 1rem;
  }

  .nav-list.is-open { display: flex; }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-cta { display: none; }

  .hero-c {
    grid-template-columns: 1fr;
    min-height: 70vh;
  }

  .hero-c-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .hero-b { min-height: 75vh; }
  .hero-d { min-height: 75vh; }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 640px) {
  .checkpoint-grid,
  .checkpoint-grid--six {
    grid-template-columns: 1fr;
  }
}
