/* ── Foundation ── */

:root {
  --ink: #1a1a1a;
  --ink-soft: #444;
  --ink-muted: #6b6b6b;
  --bg: #fafafa;
  --bg-alt: #f0f0ef;
  --bg-dark: #1a1a1a;
  --border: #e0e0de;
  --accent: #2b44ff;
  --white: #fff;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1100px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, dl { list-style: none; }

::selection { background: rgba(43, 68, 255, 0.14); }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -60px; left: 1rem; z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--accent); color: var(--white);
  font-weight: 600; font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }


/* ═══════════════════════════════════
   Header
   ═══════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex; gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--ink-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-menu-meta { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.nav-cta:hover {
  background: #333;
  transform: translateY(-1px);
}

.nav-phone {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s, opacity 0.2s;
}
.nav-phone:hover { opacity: 0.7; }

.nav-menu-phone,
.nav-menu-cta {
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-menu-phone {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.15s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }


/* ═══════════════════════════════════
   Buttons & Links
   ═══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  color: var(--white); background: var(--ink);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #333; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--inv {
  background: var(--white); color: var(--ink);
}
.btn--inv:hover { background: #e8e8e8; transform: translateY(-1px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s, gap 0.2s;
}
.link-arrow::after {
  content: "→"; transition: transform 0.2s var(--ease);
}
.link-arrow:hover { color: var(--ink); gap: 0.65rem; }


/* ═══════════════════════════════════
   Labels
   ═══════════════════════════════════ */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.label--light { color: rgba(255,255,255,0.5); }


/* ═══════════════════════════════════
   Hero
   ═══════════════════════════════════ */
.hero {
  padding: clamp(6rem, 16vh, 10rem) 0 clamp(4rem, 10vh, 7rem);
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.hero-lede {
  margin-top: 2rem;
  max-width: 760px;
  display: grid;
  gap: 1rem;
}

.hero-kicker {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-summary {
  max-width: 34ch;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.hero-meta {
  margin-top: 1.5rem;
  max-width: 760px;
  display: grid;
  gap: 0.9rem;
}

.hero-target {
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.trust {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}

.hero-media {
  width: 100%;
}

.hero-portrait {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin-left: auto;
  object-fit: cover;
  aspect-ratio: 1516 / 2205;
  border: 1px solid var(--border);
  filter: grayscale(1);
}


/* ═══════════════════════════════════
   Sections
   ═══════════════════════════════════ */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--border);
}

.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--bg-dark);
  color: var(--white);
  border-bottom-color: transparent;
}
.section--dark p { color: rgba(255,255,255,0.65); }
.section--dark h2 { color: var(--white); }

.section-intro {
  max-width: 540px;
  margin-bottom: 3rem;
}

.section-intro h2 {
  color: var(--ink);
}


/* ═══════════════════════════════════
   Offer cards
   ═══════════════════════════════════ */
.grid-three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  padding: 2rem;
  background: var(--white);
  transition: background 0.25s;
}

.card:hover {
  background: var(--bg);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  color: var(--ink);
  border: 1px solid rgba(26,26,26,0.12);
  background: rgba(26,26,26,0.03);
}

.card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  transition: transform 0.25s var(--ease);
}

.card:hover h3 {
  transform: translateX(4px);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}


/* ═══════════════════════════════════
   Split layout (Arbetssätt / Kontakt)
   ═══════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.split-main h2 {
  margin-bottom: 1rem;
}

.split-main > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section--dark .split-main > p {
  color: rgba(255,255,255,0.65);
}

.split-aside .btn {
  margin-top: 1.5rem;
}


/* ── Checklist ── */
.checklist {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}

.checklist-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s var(--ease);
}

.checklist-item:hover {
  padding-left: 0.5rem;
}

.checklist-item dt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  color: var(--ink);
  border: 1px solid rgba(26,26,26,0.12);
  background: rgba(26,26,26,0.03);
}

.checklist-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.checklist-item dd {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}


/* ═══════════════════════════════════
   Contact form
   ═══════════════════════════════════ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  transition: border-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35);
}

.form-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.contact-form .btn {
  align-self: flex-start;
}

.contact-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  display: none;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  min-height: 4.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.form-status.is-visible {
  display: grid;
}

.form-status__title,
.form-status__detail {
  margin: 0;
}

.form-status__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.form-status__detail {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}

.form-status--pending {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.form-status--ok {
  border-color: rgba(110,231,183,0.32);
  background: rgba(110,231,183,0.1);
}

.form-status--ok .form-status__title {
  color: #b8f3d9;
}

.form-status--err {
  border-color: rgba(252,165,165,0.28);
  background: rgba(252,165,165,0.08);
}

.form-status--err .form-status__title {
  color: #ffc3c3;
}


/* ═══════════════════════════════════
   Footer
   ═══════════════════════════════════ */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--bg-dark);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: flex; flex-direction: column; gap: 2rem;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-desc {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  max-width: 380px;
}

.footer-meta {
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
}
.footer-meta:first-of-type { margin-top: 0.5rem; }
.footer-meta a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-meta a:hover { color: var(--white); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }


/* ═══════════════════════════════════
   Animations
   ═══════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays for grid children */
.fade-in-d1 { transition-delay: 0.08s; }
.fade-in-d2 { transition-delay: 0.16s; }


/* ═══════════════════════════════════
   Responsive
   ═══════════════════════════════════ */

@media (max-width: 767px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
  .nav-cta { display: none; }
  .nav-right { gap: 0.5rem; }
  .hero { padding-top: 3.75rem; }
  .hero-media { order: -1; }
  .hero-portrait {
    max-width: 14rem;
    margin-left: 0;
  }

  .nav-menu.is-open {
    display: flex;
    position: fixed;
    top: 3.5rem;
    right: 0;
    left: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(250,250,250,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  }
  .nav-menu.is-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-menu.is-open .nav-links a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.is-open .nav-links a::after {
    display: none;
  }
  .nav-menu.is-open .nav-menu-meta {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.25rem;
  }
}

@media (min-width: 640px) {
  .grid-three { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
    gap: 4rem;
    align-items: center;
  }
}


/* ═══════════════════════════════════
   Accessibility
   ═══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}
