/* ═══════════════════════════════════════════════════════
   NIDAROS BUSINESS SOLUTIONS — HOMEPAGE STYLESHEET
   ═══════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --navy:        #1C2B4A;
  --navy-deep:   #0D1A2E;
  --navy-mid:    #243354;
  --blue:        #4A7EB5;
  --blue-light:  #6B9FD4;
  --blue-pale:   #C8DDEF;
  --off-white:   #F7F4F0;
  --white:       #FFFFFF;
  --text-dark:   #1C2B4A;
  --text-mid:    #4A5568;
  --text-muted:  #8A9BB0;

  --font-head:   'Space Grotesk', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;

  --nav-h:       72px;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════════════════════
   INTRO OVERLAY
   ═══════════════════════════════════════════════════════ */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-in-out);
}

#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* — Video phase — */
#intro-video-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-in-out);
}

#intro-video-wrap.hidden { opacity: 0; pointer-events: none; }

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100vw;
  max-height: 100vh;
}



/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════ */
#main-content {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

#main-content.visible { opacity: 1; }


/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(74, 126, 181, 0.15);
  transition: box-shadow 0.3s;
}

#site-nav.scrolled {
  box-shadow: 0 4px 32px rgba(13, 26, 46, 0.4);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.nav-brand-text {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}


/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  background: var(--navy-deep);
  overflow: hidden;
}

/* Radial glow behind logo — mirrors the intro animation atmosphere */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(74,126,181,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(13,26,46,0.8) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 100px;
  max-width: 700px;
}

.hero-logo {
  width: clamp(350px, 50vw, 560px);
  height: auto;
  margin-bottom: 48px;
  /* Blend out the image's own off-white background; add a blue glow */
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 48px rgba(74,126,181,0.55))
    drop-shadow(0 0 16px rgba(74,126,181,0.4));
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-tagline-above {
  font-family: 'Rajdhani', var(--font-head);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
  z-index: 1;
}

.hero-scroll:hover { color: var(--blue-light); }

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(rgba(74,126,181,0.6), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}


/* ═══════════════════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════════════════ */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 100px 32px;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}


/* ═══════════════════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════════════════ */
#products {
  background: var(--white);
}

/* Chrono Log card */
.product-card {
  background: var(--navy);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(13,26,46,0.08),
    0 8px 32px rgba(13,26,46,0.16),
    0 32px 80px rgba(13,26,46,0.12);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,126,181,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,126,181,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.product-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

/* Left: info */
.product-info {
  padding: 56px 52px 56px 56px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(74,126,181,0.12);
}

.product-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid rgba(74,126,181,0.4);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
  align-self: flex-start;
}

.product-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.product-name {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-tagline {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--blue-light);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(74,126,181,0.15);
}

.product-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 32px;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.product-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}

.product-cta {
  display: inline-block;
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 3px;
  margin-top: auto;
  transition: background 0.2s, transform 0.15s;
}

.product-cta:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

/* Right: visual */
.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: rgba(13, 26, 46, 0.3);
}

.clock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#product-clock {
  width: clamp(160px, 20vw, 220px);
  height: clamp(160px, 20vw, 220px);
  filter: drop-shadow(0 0 40px rgba(74,126,181,0.25));
}

.clock-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(74,126,181,0.4);
}

/* More products */
.more-products {
  margin-top: 48px;
  text-align: center;
}

.more-products-text {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 20px;
  border: 1px solid rgba(74,126,181,0.2);
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════ */
#about {
  background: var(--off-white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 18px;
}

.about-logo {
  opacity: 0.12;
}

.about-logo img {
  width: clamp(240px, 28vw, 400px);
}


/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
#contact {
  background: var(--navy);
  text-align: center;
}

#contact .section-eyebrow { color: var(--blue-light); }

#contact .section-heading {
  color: var(--white);
  margin-bottom: 16px;
}

#contact .section-sub {
  color: rgba(255,255,255,0.5);
  margin: 0 auto 40px;
}

.contact-cta {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-light);
  border-bottom: 1px solid rgba(107,159,212,0.4);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-cta:hover {
  color: var(--white);
  border-color: var(--white);
}

.contact-domain {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
#site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(74,126,181,0.1);
  padding: 32px 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.3;
}

.footer-right { text-align: right; }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

.footer-domain {
  font-size: 0.72rem;
  color: rgba(74,126,181,0.4);
  margin-top: 4px;
  letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .product-card-inner {
    grid-template-columns: 1fr;
  }

  .product-info {
    padding: 40px 32px;
    border-right: none;
    border-bottom: 1px solid rgba(74,126,181,0.12);
  }

  .product-visual {
    padding: 40px 32px;
    min-height: 260px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-logo { display: none; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }

  .nav-mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(74,126,181,0.15);
    padding: 24px 32px;
    gap: 20px;
  }

  .product-info { padding: 32px 24px; }

  .section-inner { padding: 72px 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
}
