/* ============================================================
   CN Snickerier AB – style.css
   ============================================================ */

:root {
  --blue-600: #0b6ef5;
  --blue-700: #0a55d6;
  --blue-800: #0a3d9c;
  --blue-900: #082b6b;
  --blue-100: #e8f1ff;
  --blue-50:  #f4f8ff;
  --white: #ffffff;
  --ink: #122033;
  --ink-soft: #4a5a70;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(10, 61, 156, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 61, 156, 0.14);
  --container: 1140px;
  --header-h: 76px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.6em; }
h3 { font-size: 1.18rem; margin-bottom: 0.4em; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tinted { background: var(--blue-50); }

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 640px;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  font-size: 1.06rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 110, 245, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 110, 245, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.btn-small { padding: 0.6em 1.3em; font-size: 0.88rem; margin-top: 0.8rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo { height: 46px; width: auto; }

.main-nav { display: flex; gap: 0.4rem; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: var(--blue-100); color: var(--blue-700); }
.main-nav a.active { background: var(--blue-600); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25em;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  border-radius: 999px;
  padding: 0.45em 0.9em;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.lang-switch:hover { border-color: var(--blue-600); }
.lang-opt { color: #9fb0c7; transition: color 0.18s ease; }
.lang-opt.active { color: var(--blue-600); }
.lang-divider { color: #c6d3e6; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 43, 107, 0.92) 0%, rgba(10, 85, 214, 0.82) 55%, rgba(11, 110, 245, 0.55) 100%),
    url('../assets/front1.jpg') center / cover no-repeat;
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(8, 27, 64, 0.45), transparent);
}

.hero-inner { padding: 4rem 0 2rem; }

.hero-kicker {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #bfd8ff;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(8, 27, 64, 0.4);
}
.hero-sub {
  max-width: 580px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #e3eeff;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-label { color: #bfd8ff; font-size: 0.9rem; font-weight: 500; }

/* ===== Split (intro) ===== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-text p { color: var(--ink-soft); margin-bottom: 1em; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ===== Door type panels ===== */
.door-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.door-panel {
  background: var(--white);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 2.1rem 2.2rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.door-panel:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.door-panel-accent {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  border-color: transparent;
  color: var(--white);
}

.door-panel-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.door-panel-head h3 { margin-bottom: 0.1em; }
.door-panel-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-600);
}
.door-panel-accent .door-panel-tag { color: #bfd8ff; }

.door-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
}
.door-panel-accent .door-icon { background: rgba(255, 255, 255, 0.16); }
.door-icon svg { width: 28px; height: 28px; }

.feature-list { list-style: none; display: grid; gap: 0.75rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.door-panel-accent .feature-list li { color: #d8e7ff; }
.feature-list .check {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--blue-600);
  background: var(--blue-100);
  border-radius: 50%;
  padding: 3px;
}
.door-panel-accent .feature-list .check {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }

.sub-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-top: 3.5rem;
  margin-bottom: 0.5em;
}

/* ===== Product cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.5rem 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.care-box {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-md);
}
.care-box p { color: #d8e7ff; font-size: 0.97rem; }
.care-icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}
.care-icon svg { width: 28px; height: 28px; }

/* ===== History / timeline ===== */
.history-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 1.5rem;
}
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2.5px;
  background: linear-gradient(to bottom, var(--blue-600), var(--blue-100));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3.5px solid var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.tl-year {
  display: inline-block;
  font-weight: 800;
  color: var(--blue-700);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.tl-item p { color: var(--ink-soft); font-size: 0.97rem; max-width: 520px; }

.history-media { position: sticky; top: calc(var(--header-h) + 2rem); }
.history-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ===== Contact ===== */
.section-dark {
  background:
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 60%, var(--blue-700) 100%);
  color: var(--white);
}
.section-dark .section-kicker { background: rgba(255, 255, 255, 0.14); color: #bfd8ff; }
.section-dark .section-lead { color: #d8e7ff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
}
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
a.contact-card:hover { background: rgba(255, 255, 255, 0.16); transform: translateX(4px); }
.contact-card strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #bfd8ff; }
.contact-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.contact-icon svg { width: 22px; height: 22px; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-md);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  padding: 2.8rem 0;
}
.footer-inner { text-align: center; color: var(--ink-soft); }
.footer-logo { height: 40px; margin: 0 auto 1rem; }
.footer-copy { font-size: 0.85rem; margin-top: 0.4rem; color: #8294ab; }

/* ===== Back to top ===== */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--blue-600);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s ease;
  z-index: 90;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--blue-700); }
.to-top svg { width: 22px; height: 22px; }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .split, .history-layout, .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .door-duo { grid-template-columns: 1fr; }
  .history-media { position: static; order: -1; }
  .history-media img { aspect-ratio: 16 / 9; }
}

@media (max-width: 680px) {
  .card-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: -1;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 0.9em 1em; }

  .care-box { flex-direction: column; padding: 1.6rem; }
  .hero { min-height: 100svh; }
}
