/* ============================================================
   Contingit AB — grafisk profil
   Navy   #133765  (rubriker, ordmärke)
   Blå    #1a70b0  (primär, länkar)
   Teal   #1ea6ba  (sekundär accent)
   Magenta #eb1174 (signaturaccent — sparsamt)
   Blek   #d6e6e7  (ljusa ytor)
   Blågrå #b2c0d6 / #88aac8 (stöd)
   ============================================================ */

:root {
  --navy: #133765;
  --blue: #1a70b0;
  --teal: #1ea6ba;
  --magenta: #eb1174;
  --pale: #d6e6e7;
  --pale-soft: #eef5f5;
  --bluegray: #b2c0d6;
  --ink: #23324a;
  --ink-soft: #4a5a72;
  --white: #ffffff;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  font-size: 17px;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--pale);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand img { height: 38px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
}

.site-nav a:hover { color: var(--blue); }

.site-nav a.active { border-bottom-color: var(--teal); }

/* ---------- Hero (startsida) ---------- */

.hero {
  position: relative;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/oresundsbron.jpg");
  background-size: cover;
  background-position: center 65%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(19, 55, 101, 0.92) 0%,
    rgba(19, 55, 101, 0.78) 45%,
    rgba(19, 55, 101, 0.45) 100%);
}

.hero .container {
  position: relative;
  padding-top: 108px;
  padding-bottom: 118px;
  max-width: var(--max);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.5px;
  max-width: 15ch;
}

.hero h1 .dot { color: var(--magenta); }

.hero .lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 34em;
  color: #dbe7f3;
}

.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Knappar ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #189aad; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #1a4a86; }

/* ---------- Sektioner ---------- */

.section { padding: 84px 0; }

.section.tinted { background: var(--pale-soft); }

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
}

.section h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.3px;
  max-width: 24ch;
}

.section .intro {
  margin-top: 18px;
  max-width: 44em;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ---------- Kort (fokusområden) ---------- */

.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--pale);
  border-top: 4px solid var(--teal);
  border-radius: 6px;
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(19, 55, 101, 0.06);
}

.card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
}

.card h3 { color: var(--navy); font-size: 1.22rem; margin-bottom: 10px; }

.card p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }

.card .more {
  margin-top: 18px;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.card .more:hover { color: var(--magenta); }

/* ---------- Punktlista med markör ---------- */

.checklist { margin-top: 26px; list-style: none; max-width: 46em; }

.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 13px;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--teal);
}

.checklist li strong { color: var(--ink); }

/* ---------- AI-sektionen (mörk) ---------- */

.section.dark {
  background: linear-gradient(115deg, var(--navy) 0%, #0f2c52 60%, #123b5e 100%);
  color: #dbe7f3;
}

.section.dark h2 { color: var(--white); }

.section.dark .kicker { color: var(--teal); }

.section.dark .intro { color: #b9cbdf; }

.ai-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.ai-point {
  border-left: 3px solid var(--teal);
  padding-left: 20px;
}

.ai-point h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }

.ai-point p { font-size: 15px; color: #b9cbdf; }

/* ---------- Branschband ---------- */

.industries {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.industry {
  background: var(--white);
  border: 1px solid var(--pale);
  border-radius: 6px;
  padding: 26px 26px 22px;
}

.industry h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }

.industry p { font-size: 15px; color: var(--ink-soft); }

/* ---------- CTA-band ---------- */

.cta-band { background: var(--pale-soft); }

.cta-band .container {
  padding-top: 70px;
  padding-bottom: 70px;
  text-align: center;
}

.cta-band h2 { margin: 0 auto; }

.cta-band p { margin: 16px auto 0; max-width: 38em; color: var(--ink-soft); }

.cta-band .btn { margin-top: 30px; }

/* ---------- Undersidor: sidhuvud ---------- */

.page-head {
  background: linear-gradient(115deg, var(--navy), #17518b);
  color: var(--white);
}

.page-head .container { padding-top: 64px; padding-bottom: 64px; }

.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.page-head p { margin-top: 14px; max-width: 40em; color: #dbe7f3; font-size: 1.08rem; }

/* ---------- Tjänstesidan ---------- */

.service { padding: 72px 0; }

.service + .service { border-top: 1px solid var(--pale); }

.service .service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.service h2 { color: var(--navy); font-size: 1.7rem; letter-spacing: -0.3px; }

.service .lead { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

.service aside {
  background: var(--pale-soft);
  border-radius: 6px;
  padding: 26px 28px;
}

.service aside h3 {
  color: var(--navy);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.service aside ul { list-style: none; }

.service aside li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 15px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(19, 55, 101, 0.07);
}

.service aside li:last-child { border-bottom: none; }

.service aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--bluegray);
}

/* ---------- Om-sidan ---------- */

.prose { max-width: 46em; }

.prose h2 { color: var(--navy); font-size: 1.55rem; margin-top: 52px; letter-spacing: -0.3px; }

.prose h2:first-child { margin-top: 0; }

.prose p { margin-top: 16px; color: var(--ink-soft); }

.prose blockquote {
  margin: 26px 0 0;
  padding: 22px 28px;
  background: var(--pale-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 6px 6px 0;
  color: var(--navy);
  font-size: 1.12rem;
  font-style: italic;
}

.values { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }

.value {
  border: 1px solid var(--pale);
  border-radius: 6px;
  padding: 24px 24px 20px;
}

.value h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 8px; }

.value p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 44px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--pale);
  border-radius: 6px;
  padding: 30px 28px;
  text-align: center;
}

.contact-card .icon { width: 44px; height: 44px; margin: 0 auto 16px; }

.contact-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }

.contact-card a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-card a:hover { color: var(--magenta); }

.contact-card p { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #b9cbdf;
  margin-top: 0;
}

.site-footer .container {
  padding-top: 46px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
}

.site-footer .tagline { color: var(--white); font-weight: 600; }

.site-footer .tagline .dot { color: var(--magenta); }

.site-footer a { color: #dbe7f3; text-decoration: none; }

.site-footer a:hover { color: var(--white); text-decoration: underline; }

.site-footer .meta { font-size: 14px; }

/* ---------- Responsivt ---------- */

@media (max-width: 760px) {
  .hero .container { padding-top: 72px; padding-bottom: 84px; }
  .section { padding: 60px 0; }
  .service .service-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-header .container { flex-direction: column; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
  .site-nav { gap: 4px 20px; }
}
