:root {
  --ink: #3B2E26;
  --muted: #6E6255;
  --line: #C9BCA9;
  --line-soft: #E3DACC;
  --bg: #FBF7F2;
  --bg-alt: #F0E9E0;
  --bg-dark: #3B2E26;
  --card: #ffffff;
  --primary: #B85C38;
  --primary-deep: #A64F2E;
  --primary-soft: #F3DFD2;
  --accent: #6F8F6B;
  --accent-deep: #4F6B4B;
  --container: 1040px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

/* ---------- clean layout ---------- */

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

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line-soft);
}

section:nth-of-type(even) {
  background: var(--bg-alt);
}

/* ---------- text stuff ---------- */

h1 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 16px;
}

h2 {
  font-size: 24px;
  margin: 8px 0 16px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

p {
  margin-bottom: 12px;
  max-width: 70ch;
}

p.lead {
  font-size: 19px;
  font-weight: 600;
}

.tagline {
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin: 24px 0 0;
}

/* ---------- nav ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--primary);
  padding: 2px 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--primary);
}

/* ---------- buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.btn:hover {
  background: var(--bg-dark);
  color: #fff;
}

.btn--primary {
  background: var(--bg-dark);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.85;
}

/* ---------- image placeholsder ---------- */

.ph {
  border: 1px dashed var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 40px 16px;
  margin: 16px 0 0;
}

.ph--wide {
  margin-top: 28px;
  padding: 90px 16px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background-color: #ddd3c6;
  background-image: url("images/hero-moving-van.jpg");
  background-image: image-set(
    url("images/hero-moving-van.webp") type("image/webp"),
    url("images/hero-moving-van.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center 55%;
  padding-top: 150px;
  padding-bottom: 80px;
  min-height: 540px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251, 247, 242, 0.85) 0%, rgba(251, 247, 242, 0) 32%),
    linear-gradient(100deg, rgba(251, 247, 242, 0.96) 0%, rgba(251, 247, 242, 0.88) 36%, rgba(251, 247, 242, 0.45) 62%, rgba(251, 247, 242, 0.08) 100%);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 190px;
    min-height: 0;
  }
}

/* ---------- om oss ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 240px);
  gap: 32px 48px;
  align-items: center;
  margin-top: 12px;
}

.about-text > :first-child {
  margin-top: 0;
}

.about-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.about-photo {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 52% 20%;
  border: 1px solid var(--line-soft);
  background: var(--bg-alt);
}

.about-signature {
  font-style: italic;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- grids and cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--flow {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.grid--steps {
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}

.card {
  border: 1px solid var(--line-soft);
  background: var(--card);
  padding: 18px;
}

.card p {
  margin-bottom: 0;
}

.card .ph {
  margin: 0 0 14px;
  padding: 28px 12px;
}

.service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  padding: 10px;
  margin: 0 0 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.card--step {
  position: relative;
  padding-top: 24px;
}

.card--flow {
  border-top: 3px solid var(--accent);
}

/* Pilar mellan stegen: → horisontellt, ↓ när stegen staplas */
.card--step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(calc(50% + 13px), -50%);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

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

  .card--step:not(:last-child)::after {
    content: "↓";
    top: 100%;
    right: 50%;
    transform: translate(50%, calc(-50% + 20px));
  }
}

.step-num {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  background: var(--accent-deep);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 10px;
}

.steps-title {
  margin-top: 40px;
  font-size: 20px;
}

/* ---------- lists ---------- */

.card ul,
.skip-list {
  margin: 8px 0 0 20px;
}

.card ul li,
.skip-list li {
  margin-bottom: 8px;
}

.skip-list {
  margin-bottom: 16px;
}

/* ---------- sections ---------- */

.hero {
  text-align: left;
}

.contact {
  text-align: center;
}

.contact p,
.contact h2 {
  margin-left: auto;
  margin-right: auto;
}

.contact .btn-row {
  justify-content: center;
}

.contact .ph {
  margin-top: 28px;
}

/* ---------- contact form ---------- */

.contact-form {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: left;
}

.contact-mail {
  color: var(--primary-deep);
  font-weight: 600;
}

.contact-form__row {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form__optional {
  font-weight: 400;
  color: var(--muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* honeypot – dold för människor, synlig för enkla botar */
.contact-form__bot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.contact-form__submit {
  cursor: pointer;
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-form__status {
  margin: 12px 0 0;
  font-size: 14px;
  min-height: 1.2em;
}

.contact-form__status.is-ok {
  color: var(--accent-deep);
}

.contact-form__status.is-error {
  color: var(--primary-deep);
}

.contact-form__gdpr {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- mobil boka-CTA + modal ---------- */

.mobile-cta {
  display: none;
}

.mobile-cta__btn {
  display: block;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mobile-cta__btn:hover {
  background: var(--primary-deep);
}

@media (max-width: 640px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg-dark);
    box-shadow: 0 -4px 16px rgba(59, 46, 38, 0.25);
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .mobile-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Plats så att sidfoten inte döljs bakom den fasta listen */
  body {
    padding-bottom: 84px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--card);
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(59, 46, 38, 0.55);
}

.modal__inner {
  width: 100%;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.modal__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line-soft);
}

.modal__head h2 {
  margin: 0;
  font-size: 20px;
}

.modal__content {
  padding: 14px 20px calc(28px + env(safe-area-inset-bottom));
}

.modal__close {
  flex: none;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  color: var(--ink);
}

.modal .contact-form {
  max-width: none;
  margin: 16px 0 0;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-dark);
  color: #ede4d8;
  padding: 28px 0;
}

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

.site-footer .logo {
  color: #f7f1e8;
  border-color: #7a6a58;
}

.site-footer .site-nav a {
  color: #e3d7c6;
}

.site-footer .site-nav a:hover {
  border-bottom-color: #efc9b4;
}

.footer-note {
  font-size: 12px;
  color: #a99c8b;
  margin: 0;
}

.footer-note a {
  font-family: "Segoe Script", "Bradley Hand", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 1.15em;
  color: #e3d7c6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note a:hover {
  color: #efc9b4;
}

/* ---------- different screens ---------- */

@media (max-width: 640px) {
  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 21px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- custom for sections ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px 48px;
  margin-top: 12px;
}

.split-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: start;
}

.split-tab {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.split-tab:hover {
  color: var(--primary-deep);
}

.split-tab.is-active {
  color: var(--ink);
  border-left-color: var(--primary);
  background: var(--bg-alt);
}

.split-panel > :first-child {
  margin-top: 0;
}

.split-panel .btn-row {
  margin-top: 16px;
}

/* Utan JS visas alla texter staplade */
.js .split-panel {
  display: none;
}

.js .split-panel.is-active {
  display: block;
}

/* Loader: visar tiden till nästa rubrik */
.loader {
  display: none;
  margin-top: 28px;
  height: 3px;
  background: var(--line-soft);
  overflow: hidden;
}

.js .loader {
  display: block;
}

.loader-bar {
  height: 100%;
  background: var(--primary);
  transform-origin: left center;
  transform: scaleX(0);
}

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


/* ---------- color accents ---------- */

::selection {
  background: var(--primary-soft);
  color: var(--ink);
}

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