/* Final release: System/Inter font, modern white UI */
:root{ --ink:#141619; --ink-2:#2C2E3A; --navy:#050A44; --blue:#A78BFA; --muted-gray:#B3B4BD; 
  --bg:#fff; --surface:#ffffff; --text:#0f172a; --sub:#475569; --line:#e5e7eb;
  --brand:#2563eb; --brand-2:#0ea5e9; --radius:16px;
  --shadow-sm:0 2px 6px rgba(2,6,23,.06); --shadow:0 18px 50px rgba(2,6,23,.12);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}
a{text-decoration:none;color:inherit}
img,video{max-width:100%;display:block}
.wrap{max-width:1100px;margin:0 auto;padding:18px}

/* Header with stacked logo */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.85);backdrop-filter:saturate(1.1) blur(8px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:40px;width:auto}
.brand .brand-text{
  display:block; line-height:1.05; font-weight:400; font-size:16px;
  letter-spacing:.3px; font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
  color:#000; margin-top:4px;
}
a.brand, a.brand:link, a.brand:visited, a.brand:hover, a.brand:active { color:#000 }

/* Typography */
main{padding:0 0 60px}
h1,h2,h3{margin:0 0 10px}
h1{font-size:clamp(28px,4vw,48px);font-weight:800}
h2{font-size:clamp(20px,2.5vw,28px);font-weight:700}
h3{font-size:18px;font-weight:700}
p{margin:0 0 12px;color:var(--sub);line-height:1.75}
.small{font-size:12px;color:var(--sub)}

/* Cards & panels */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-sm)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);display:block}
.card img{aspect-ratio:16/10;object-fit:cover}
.card .content{padding:14px}
.grid{display:grid;gap:14px}
.cards{grid-template-columns:1fr}
@media(min-width:640px){.cards{grid-template-columns:repeat(2,1fr)}}
.list{display:grid;gap:12px;grid-template-columns:1fr 1fr}
@media(min-width:760px){.list{grid-template-columns:repeat(4,1fr)}}
.tile{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow-sm);display:block}
.tile img{aspect-ratio:4/3;object-fit:cover}
.tile .meta{padding:12px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}

/* Hero (video + bild) */
.hero-video{
  position:relative;
  height:clamp(340px,60vh,560px);
  min-height:320px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-video video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover; display:block;
}
/* Om heron råkar ligga inuti .wrap: gör fullbredd */
.wrap > .hero-video{
  position:relative;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.hero-image{
  position:relative; height:clamp(340px,60vh,560px); min-height:320px; overflow:hidden;
}
.hero-image img{
  position:absolute; inset:0;
  width:100%; height:100% !important;
  object-fit:cover; display:block;
}

.hero-video .inner, .hero-image .inner{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  color:#fff; text-align:center; padding:0 16px;
}

/* Svag tint (5%) på både video & bild */
.hero-video::after, .hero-image::after{
  content:""; position:absolute; inset:0; background:rgba(0,0,0,.05); pointer-events:none;
}

.hero-video h1,.hero-image h1{color:#fff;letter-spacing:.5px}
.hero-video p,.hero-image p{color:#fff;max-width:900px;margin:8px auto 0}

/* Breadcrumbs */
.crumbs{font-size:12px;color:var(--sub);display:flex;gap:6px;margin:8px 0 12px}
.crumbs a{text-decoration:underline}

/* Gallery thumbs */
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media(min-width:640px){.gallery{grid-template-columns:repeat(4,minmax(0,1fr))}}
.gallery a{cursor:zoom-in}
.gallery a img{width:100%;height:110px;object-fit:cover;border:1px solid var(--line);border-radius:12px}
@media(min-width:640px){.gallery a img{height:140px}}

/* Säkra thumbnails i specifikt galleri-block */
#galleri .gallery img{
  width:100%;
  height:110px !important;
  object-fit:cover;
  border:1px solid var(--line);
  border-radius:12px;
}
@media(min-width:640px){
  #galleri .gallery img{height:140px !important;}
}

/* Fullscreen overlay – skrollbar */
.fs-overlay{position:fixed;inset:0;background:rgba(0,0,0,.96);display:none;flex-direction:column;overflow-y:auto;z-index:9999;-webkit-overflow-scrolling:touch}
.fs-overlay.open{display:flex}
.fs-body{padding:8px 8px 40px;display:grid;gap:8px}
.fs-item{position:relative;overflow:hidden;border-radius:10px;background:#000}
#fs-gallery .fs-item img{width:100%;height:auto;border-radius:10px;display:block}
@media(min-width:768px){
  .fs-body{padding:16px 16px 60px;max-width:1200px;margin:0 auto}
}

/* Läs mer-knapp */
.btn-readmore{
  margin-top:8px; display:inline-flex; align-items:center; gap:8px;
  font-weight:700; border:1px solid var(--line); background:#fff;
  padding:10px 14px; border-radius:999px; box-shadow:var(--shadow-sm);
  transition:transform .08s ease, box-shadow .2s ease, background .2s ease;
  font-family:inherit;
}
.btn-readmore::after{content:"▾"; font-size:14px; line-height:1}
.btn-readmore[aria-expanded="true"]::after{content:"▴"}
.btn-readmore:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(2,6,23,.08)}

/* Stäng-knapp (X) för fullscreen */
.fs-close{
  position:fixed; top:12px; right:12px; z-index:100000;
  width:44px; height:44px; border:none; border-radius:999px;
  background:#000; color:#fff; font-size:26px; font-weight:800; cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.fs-close:hover{background:#1a1a1a}
@media (min-width:1024px){
  .fs-close{ top:64px; right:64px; }
}

/* Status-indikatorer: Ledig / Uthyrd / Under konstruktion */
.status{display:flex;align-items:center;gap:6px;margin-top:4px}
.status .dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.status .dot.ledig{background:#16a34a}              /* grön */
.status .dot.uthyrd{background:#eab308}             /* gul */
.status .dot.under-konstruktion{background:#eab308} /* gul */
.status-text{font-size:12px;color:var(--sub)}

footer{border-top:1px solid var(--line);color:var(--sub);padding:16px 0;margin-top:20px}


/* === Custom palette & components === */
/* Accent for 'Känn lugnet' */
.intro__accent, .accent { color:#A78BFA; }

/* Header contact button */
.btn-contact{
  display:inline-flex; align-items:center; gap:10px;
  background:#2C2E3A; color:#fff; border:0;
  padding:10px 18px; border-radius:999px; font-weight:700;
  box-shadow:0 2px 8px rgba(20,22,25,.2); transition:background .18s ease, transform .18s ease;
}
.btn-contact::after{
  content:"•"; display:inline-block; opacity:.9;
}
.btn-contact:hover{ background:#A78BFA; transform:translateY(-1px); }
.btn-contact:active{ transform:translateY(0); }

/* Contact page */
.contact-wrap{ max-width:1100px; margin:0 auto; padding:22px; }
.contact-hero{ padding:30px 0 6px 0; }
.contact-hero h1{ margin:0 0 4px 0; font-size:clamp(28px,5vw,42px) }
.contact-hero p{ color:var(--sub) }
.contact-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:16px; }
@media(max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.card-surface{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px; box-shadow:var(--shadow-sm); }
.contact-form label{ display:flex; flex-direction:column; gap:6px; margin-bottom:10px; font-size:14px; color:var(--sub); }
.contact-form input, .contact-form textarea{ border:1px solid var(--line); border-radius:12px; padding:12px; background:#fff; }
.contact-form button{ background:#A78BFA; color:#fff; border:0; border-radius:12px; padding:12px 16px; font-weight:700; }
.badge{ display:inline-block; border-radius:999px; padding:6px 10px; border:1px solid var(--line); background:#fff; font-size:12px; color:var(--ink-2); }

header .wrap{display:flex;align-items:center;justify-content:space-between}

/* Ensure accent is blue */
.accent{color:#A78BFA}

/* Stack accent on new line in hero */
.hero-video h1 .accent, .hero-image h1 .accent{display:block}
