/* ============================================================
   stjarnexpressen.se — main stylesheet
   Design round 2026-10: modern typography, star accents,
   service cards, CTA boxes, pill buttons.
   All classes still referenced on the pages are kept.
   ============================================================ */

:root {
  --gul: #f9b233;
  --gul-mjuk: #fff8ec;
  --gul-kant: #f0dcae;
  --gron: #12664d;
  --gron-mork: #0d4f3a;
  --gron-mjuk: #f3faf7;
  --text: #3d3d3d;
  --text-mjuk: #6a6a6a;
  --rubrik: #2f2f2f;
  --linje: #e8e4dc;
  --bakgrund: #ffffff;
  --stara: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.9l3 6.4 6.9.8-5.1 4.7 1.4 6.8-6.2-3.4-6.2 3.4 1.4-6.8-5.1-4.7 6.9-.8z' fill='%23f9b233'/%3E%3C/svg%3E");
}

html {
  margin: 0;
}

body {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, Verdana, sans-serif;
  background-color: var(--bakgrund);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- links ---------- */

a {
  color: var(--gron);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 102, 77, 0.4);
}

a:hover {
  color: var(--gron-mork);
  border-bottom-color: var(--gron);
}

a.content {
  font-weight: 600;
}

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

#main {
  max-width: 1200px;
  margin: auto;
  padding: 24px 40px 40px;
  gap: 36px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 460px;
}

.mobile {
  display: none;
}

.desktop {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Keep in-content images from overflowing and shifting the layout (CLS) */
#main img {
  max-width: 100%;
  height: auto;
}

.desktop img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(47, 47, 47, 0.12);
}

/* ---------- headings ---------- */

.title,
h1.title {
  font-size: 30px;
  line-height: 1.25;
  margin: 26px auto 6px;
  color: var(--rubrik);
  text-align: center;
  padding: 0 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  max-width: 1200px;
}

.title::after,
h1.title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--gul);
  margin: 14px auto 0;
  border-radius: 2px;
}

.subtitle {
  font-size: 20px;
  margin: 26px auto 8px;
  color: var(--rubrik);
  text-align: left;
  font-weight: 700;
  max-width: 1200px;
  letter-spacing: -0.2px;
}

.subtitle2 {
  font-size: 18px;
  margin: 30px auto 6px;
  color: var(--rubrik);
  text-align: left;
  font-weight: 700;
  max-width: 1200px;
}

/* ---------- content ---------- */

div.content {
  color: var(--text);
  text-align: left;
  width: 100%;
  max-width: 760px;
}

div.content p {
  margin: 0 0 16px;
}

/* Slightly larger lead-in paragraph */
div.content > p:first-child {
  font-size: 17.5px;
}

div.content h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--rubrik);
  margin: 34px 0 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* Star accent before section headings */
div.content h2::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background-image: var(--stara);
  background-size: contain;
  background-repeat: no-repeat;
}

div.content h3 {
  font-size: 16.5px;
  color: var(--gron);
  margin: 22px 0 6px;
  font-weight: 700;
}

/* Star-bulleted lists */
div.content ul,
div.content ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

div.content ul > li,
div.content ol > li {
  position: relative;
  padding: 5px 0 5px 30px;
}

div.content ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 15px;
  height: 15px;
  background-image: var(--stara);
  background-size: contain;
  background-repeat: no-repeat;
}

div.content ol {
  counter-reset: pkt;
}

div.content ol > li::before {
  content: counter(pkt, decimal) ".";
  counter-increment: pkt;
  background: none;
  left: 4px;
  width: auto;
  height: auto;
  top: 5px;
  color: var(--gul);
  font-weight: 700;
}

form.content {
  color: var(--text);
  text-align: left;
  width: 100%;
  max-width: 700px;
}

td.content {
  color: var(--text);
  vertical-align: top;
}

h1.content {
  font-weight: 700;
}

h2.content {
  font-weight: 700;
}

.contentimage {
  border: 0;
  padding: 10px;
}

.imagetext {
  font-size: 12px;
}

/* ---------- CTA boxes ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--gul-mjuk);
  border: 1px solid var(--gul-kant);
  border-left: 5px solid var(--gul);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 22px 0;
}

.cta-body {
  max-width: 560px;
}

.cta-body p {
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-bottom: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-solid {
  background: var(--gron);
  color: #fff;
}

.btn-solid:hover {
  background: var(--gron-mork);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--gron);
  color: var(--gron);
}

.btn-outline:hover {
  background: var(--gron-mjuk);
  color: var(--gron-mork);
}

/* ---------- service cards (flyttningar overview) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--linje);
  border-radius: 14px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--linje);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--gul);
  box-shadow: 0 12px 28px rgba(47, 47, 47, 0.10);
  transform: translateY(-3px);
}

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

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--rubrik);
}

.card-text {
  font-size: 14.5px;
  color: var(--text-mjuk);
  line-height: 1.55;
}

/* ---------- misc components ---------- */

.bigstar {
  text-align: center;
  margin: 0 0 4px;
}

.bigstar img {
  width: 72px;
  height: 72px;
}

.error {
  font-size: 13px;
  color: #ff0000;
}

/* ---------- header ---------- */

#headerimage {
  border: 0;
  display: block;
  margin: 20px auto;
  width: auto;
  max-width: min(720px, calc(100% - 60px));
  height: auto;
}

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

.footer {
  font-size: 13.5px;
  padding: 20px 16px;
  text-align: center;
  background: #faf9f7;
  border-top: 1px solid var(--linje);
  border-bottom: solid 20px var(--gul);
  color: var(--text-mjuk);
}

a.footer {
  font-weight: 600;
}

/* ---------- utility classes (kept for existing markup) ---------- */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.align-center {
  align-items: center;
}

.gap-10 {
  gap: 10px;
}

.gap-20 {
  gap: 20px;
}

.gap-30 {
  gap: 30px;
}

.flex-1 {
  flex: 1;
}

/* ---------- offert form (kept) ---------- */

.offertform {
  max-width: 800px;
}

.offertform p {
  margin: 4px 0;
}

.offertform textarea {
  margin: 4px 0;
}

.offertform select {
  margin: 4px 0;
}

.offertformdesktop {
  flex-direction: row;
}

@media (max-width: 850px) {
  .offertformdesktop {
    flex-direction: column;
    gap: 2px;
    max-width: 400px;
    width: 100%;
  }

  .offertform div {
    margin: 4px 0;
  }

  .offertform select {
    font-size: 16px;
  }

  .offertform textarea {
    height: 60px;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #main {
    flex-direction: column;
    padding: 20px 20px 32px;
  }

  .mobile {
    display: flex;
    justify-content: center;
  }

  .desktop {
    display: none;
  }

  .title,
  h1.title {
    font-size: 26px;
    padding: 0 10px;
  }

  .subtitle {
    font-size: 20px;
    text-align: left;
  }

  .subtitle2 {
    font-size: 18px;
    text-align: left;
    padding: 0 10px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta .btn {
    width: 100%;
  }
}

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