/* Egna regler ovanpå Squarespace-CSS:en (/sq/sq.css). */
@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(/fonter/poppins-300.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/fonter/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/fonter/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/fonter/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/fonter/poppins-700.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(/fonter/poppins-800.woff2) format("woff2"); }

:root { --sa-navy: #253551; --sa-orange: #ff9500; }
/* Vårt sidhuvud ligger inte ovanpå första avsnittet, så det behöver ingen luft för det */
#page { --header-height: 0px; }

/* Squarespace tonar in och flyttar in innehåll med skript. Utan skripten: visa allt direkt. */
[data-animation-role], .preFade, .preScale, .preSlide, .preClip, .preFlex, .fadeIn, .scaleIn, .slideIn, .clipIn, .flexIn,
.sqs-block .image-block-wrapper, .fluid-image-animation-wrapper, .sqs-image, .image-block-outer-wrapper img {
  opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.fluid-image-container img, .section-background img { width: 100%; height: 100%; object-fit: cover; }
.section-background img { position: absolute; inset: 0; }
img[loading] { max-width: 100%; }

/* Sidhuvudet */
.sa-top { background: var(--sa-navy); position: sticky; top: 0; z-index: 1000; }
.sa-top-in { max-width: 1500px; margin: 0 auto; padding: 14px 4vw; display: flex; align-items: center; gap: 24px; }
.sa-logo img { display: block; width: 190px; height: auto; }
.sa-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; font-family: Poppins, sans-serif; }
.sa-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; }
.sa-nav a:hover { color: var(--sa-orange); }
.sa-nav .sa-knapp { background: var(--sa-orange); color: #111; border-radius: 6px; padding: 12px 22px; margin-left: 10px; }
.sa-nav .sa-knapp:hover { background: #ffaa33; color: #111; }
.sa-meny-knapp { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.sa-meny-knapp svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .sa-logo img { width: 150px; }
  .sa-meny-knapp { display: inline-flex; align-items: center; justify-content: center; }
  .sa-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sa-navy); flex-direction: column;
    align-items: stretch; padding: 8px 6vw 22px; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  .sa-nav.open { display: flex; }
  .sa-nav a { font-size: 17px; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .sa-nav .sa-knapp { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}

/* 404-sidan */
body.sa-404 { margin: 0; background: #eff0f5; font-family: Poppins, sans-serif; color: #111; }
.sa-404 main { max-width: 640px; margin: 0 auto; padding: 14vh 6vw 20vh; }
.sa-404 h1 { font-size: clamp(32px, 6vw, 52px); color: var(--sa-navy); margin: 0 0 12px; }
.sa-404 p { font-size: 17px; line-height: 1.6; }
.sa-404 main a { color: var(--sa-navy); }
.sa-knapp-lank { display: inline-block; margin: 8px 8px 0 0; padding: 13px 22px; border-radius: 6px; background: var(--sa-navy); color: #fff !important;
  text-decoration: none; font-weight: 600; font-size: 15px; }
.sa-knapp-lank.ljus { background: transparent; color: var(--sa-navy) !important; box-shadow: inset 0 0 0 2px var(--sa-navy); }

/* Formuläret (ersätter Squarespaces) */
.sa-form { font-family: Poppins, sans-serif; width: 100%; }
.sa-par { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .sa-par { grid-template-columns: 1fr; } }
.sa-falt { margin-bottom: 14px; }
.sa-falt label { display: block; font-size: 14px; font-weight: 500; color: inherit; }
.sa-falt label span { font-weight: 400; opacity: .65; font-size: 13px; }
.sa-falt input, .sa-falt textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; font: inherit; font-size: 16px;
  padding: 12px 18px; border: 0; border-radius: 999px; background: #e9e8e3; color: #111; }
.sa-falt textarea { min-height: 120px; border-radius: 18px; resize: vertical; }
.sa-falt input[type=file] { border-radius: 14px; padding: 12px; background: transparent; border: 1.5px dashed rgba(0,0,0,.3); }
.sa-falt input:focus, .sa-falt textarea:focus { outline: 2px solid var(--sa-orange); }
.sa-hp { position: absolute; left: -5000px; }
.sa-skicka { width: 100%; padding: 15px; border: 0; border-radius: 6px; background: var(--sa-navy); color: #fff; font: 600 15px Poppins, sans-serif; cursor: pointer; }
.sa-skicka:hover { background: #33476b; }
.sa-skicka:disabled { opacity: .6; }
.sa-form .svar { margin-top: 12px; padding: 12px 14px; border-radius: 10px; display: none; font-size: 15px; }
.sa-form .svar.ok { display: block; background: #e8f5ec; color: #1d5a32; }
.sa-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-sizing: border-box; border: 0; border-radius: 16px;
  padding: 28px 28px 24px; background: #fff; color: #111; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.sa-dialog::backdrop { background: rgba(10,16,30,.6); }
.sa-dialog h2 { margin: 0 40px 18px 0; font: 700 22px/1.25 Poppins, sans-serif; color: var(--sa-navy); }
.sa-stang { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f0f0ee;
  font-size: 26px; line-height: 1; cursor: pointer; color: #111; }
@media (max-width: 520px) { .sa-dialog { padding: 22px 18px 18px; } }
.sa-form .svar.fel { display: block; background: #fdecea; color: #8a1f12; }

/* Rullande text (Squarespace gör den med skript) */
.Marquee .sa-mq-ram { display: block; flex: 1; overflow: hidden; color: var(--headingLargeColor, inherit); text-decoration: none; padding: 3% 0; }
.Marquee .sa-mq { display: flex; width: max-content; animation: sa-rull var(--sa-mq-tid, 30s) linear infinite; }
.Marquee .sa-mq.hoger { animation-direction: reverse; }
.Marquee .sa-mq .Marquee-item { margin: 0; padding-right: .6em; white-space: nowrap; font-size: 22px; font-weight: 500; line-height: 1.4; }
@media (max-width: 767px) { .Marquee .sa-mq .Marquee-item { font-size: 18px; } }
@keyframes sa-rull { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Karusellen med kort (Squarespace flyttar korten med skript): en rad som går att svepa, pilarna i site.js */
.user-items-list-carousel__slides { opacity: 1 !important; display: flex !important; gap: var(--sa-kar-gap, 20px); overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.user-items-list-carousel__slides::-webkit-scrollbar { display: none; }
.user-items-list-carousel__slide { transform: none !important; flex: 0 0 calc((100% - (var(--sa-kar-kol, 4) - 1) * var(--sa-kar-gap, 20px)) / var(--sa-kar-kol, 4));
  scroll-snap-align: start; }
@media (max-width: 767px) { .user-items-list-carousel__slide { flex-basis: 82%; } }
@media (prefers-reduced-motion: reduce) { .user-items-list-carousel__slides { scroll-behavior: auto; } }
.sa-pil-av { visibility: hidden; }

/* Bildgalleri (rutnät): kolumner, avstånd och format från data-attributen, sätts av site.js */
.gallery-grid .gallery-grid-wrapper { display: grid !important; grid-template-columns: repeat(var(--sa-gk, 3), minmax(0, 1fr)) !important;
  gap: var(--sa-gg, 20px) !important; height: auto !important; }
.gallery-grid .gallery-grid-item { width: auto !important; height: auto !important; position: static !important; transform: none !important; }
.gallery-grid .gallery-grid-item-wrapper { padding-bottom: var(--sa-gf, 100%) !important; height: 0 !important; position: relative; overflow: hidden; }
.gallery-grid .gallery-grid-item-wrapper img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
@media (max-width: 767px) { .gallery-grid .gallery-grid-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; } }
.gallery-masonry .gallery-masonry-wrapper { display: grid !important; grid-template-columns: repeat(var(--sa-gk, 2), minmax(0, 1fr));
  gap: var(--sa-gg, 20px); align-items: start; height: auto !important; }
.gallery-masonry .gallery-masonry-item { position: static !important; width: auto !important; transform: none !important; margin: 0 !important; }
.gallery-masonry .gallery-masonry-item img { height: auto !important; }
@media (max-width: 767px) { .gallery-masonry .gallery-masonry-wrapper { gap: 12px; } }
.sa-ljus { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,14,22,.94); color: #fff; }
.sa-ljus::backdrop { background: transparent; }
.sa-ljus figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; box-sizing: border-box; }
.sa-ljus img { max-width: 100%; max-height: calc(100% - 48px); object-fit: contain; }
.sa-ljus figcaption { margin-top: 14px; font: 400 15px Poppins, sans-serif; text-align: center; }
.sa-ljus button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer; }
.sa-ljus button:hover { background: rgba(255,255,255,.25); }
.sa-ljus .stang { top: 12px; right: 12px; }
.sa-ljus .forra { left: 12px; top: 50%; transform: translateY(-50%); }
.sa-ljus .nasta { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) { .sa-ljus figure { padding: 60px 8px 16px; } .sa-ljus .forra, .sa-ljus .nasta { top: auto; bottom: 12px; transform: none; } }

/* Skalad text: Squarespace sätter storleken med skript, site.js gör samma sak */
.sqsrte-scaled-text-container.sa-skalad .sqsrte-scaled-text { position: static !important; left: auto !important; display: block; }
.sqsrte-scaled-text-container.sa-skalad .sqsrte-scaled-text > *, .sa-mat .sqsrte-scaled-text > * { font-size: 1em; margin: 0; }
.sqs-block-html .sqs-html-content .sqsrte-scaled-text-container.sa-mat .sqsrte-scaled-text,
.sqs-block-html .sqs-html-content .sqsrte-scaled-text-container.sa-mat .sqsrte-scaled-text * { white-space: pre !important; }
@media (prefers-reduced-motion: reduce) { .sqs-block-marquee * { animation: none !important; } }
