/* Avloss.se – statisk webbplats */

:root {
  --blue: #0f8ed6;
  --blue-dark: #0a6ba6;
  --blue-light: #e8f5fd;
  --ink: #10161c;
  --ink-soft: #4b5864;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-weight: 800;
}

h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; }

a { color: var(--blue-dark); }

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 54ch;
}

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

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  white-space: nowrap;
  border: 2px solid var(--blue);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue-dark);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.95rem;
}

.btn-big {
  font-size: 1.15rem;
  padding: 18px 38px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img {
  display: block;
  width: auto;
  height: 60px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

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

.site-nav .btn { color: #fff; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(15, 142, 214, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg-alt), #fff);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 52px;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(10, 56, 88, 0.18);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
}

.hero h1 {
  max-width: 14ch;
}

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

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

.section {
  padding: 72px 0;
  scroll-margin-top: 92px; /* plats för den fastsatta headern */
}

.section h2 { margin-bottom: 32px; }

/* ---------- Kort ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: #c9ddee;
  box-shadow: 0 12px 28px rgba(16, 60, 90, 0.08);
  transform: translateY(-2px);
}

.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue-dark);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

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

.section-contact {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact-text { flex: 1 1 340px; }

.contact-person {
  margin: 24px 0 20px;
}

.contact-name {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.contact-phone {
  display: inline-block;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.contact-phone:hover { color: var(--blue-dark); }

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--blue-dark);
}

.social svg {
  width: 22px;
  height: 22px;
}

.social:hover { text-decoration: underline; }

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

.site-footer {
  padding: 28px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer p { margin: 0; }

.site-footer a { color: var(--ink-soft); }

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

.sep {
  color: var(--line);
  margin: 0 8px;
}

/* ---------- Surfplatta ---------- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 { max-width: none; }
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
  .header-inner {
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo img { height: 42px; }

  /* Sidan är kort – på mobil räcker ringknappen i headern */
  .site-nav a:not(.btn) { display: none; }

  .site-nav .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .hero-inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section { padding: 56px 0; }

  .hero-actions .btn { flex: 1 1 100%; text-align: center; }

  .contact-cta { width: 100%; }

  .contact-cta .btn { display: block; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
