/* StellaSella – Klassisk elegans
   Färger, typsnitt och avstånd samlade som variabler */
:root {
  --bg: #FBF8F2;
  --bg-alt: #F3EDE2;
  --placeholder: #EDE4D3;
  --ink: #2B2620;
  --muted: #5A5045;
  --gold: #7A5C33;
  --gold-line: #8A6A3E;
  --gold-light: #E8D9B8;
  --line: #E4D9C4;
  --input-line: #A8936E;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: #4F3A1F; }

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

/* Typografi */
.eyebrow {
  margin: 0 0 20px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.03; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
h3 { font-weight: 500; font-size: 1.75rem; }
h1 em, h2 em { color: var(--gold); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 32rem; }
.muted { color: var(--muted); }
.numeral { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.2rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Knappar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #4A4136; color: var(--bg); }
.btn-outline { border: 1px solid var(--gold-line); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold-line); color: var(--bg); }
.btn-link { padding: 14px 4px; color: var(--ink); border-bottom: 1px solid #C9B48E; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Sidhuvud */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 22px; padding-bottom: 22px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: 0.04em; }
.logo:hover { color: var(--ink); }
.main-nav { display: flex; gap: 28px; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 4px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  align-items: center; justify-content: center; cursor: pointer;
}

/* Bildytor – byt mot <img> när foton finns */
.ph {
  background: var(--placeholder);
  display: flex; align-items: flex-end; padding: 24px;
  position: relative; overflow: hidden;
}
.ph > span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #6E604E; position: relative; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.framed::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--bg); pointer-events: none; }
.ph.centered { align-items: center; justify-content: center; }

/* Sektioner */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-rule { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding: 88px 0 96px; }
.hero > div:first-child { flex: 1 1 440px; min-width: 0; }
.hero .lead { margin: 32px 0 40px; }
.hero .ph { flex: 1 1 480px; min-width: 0; height: 600px; }

.page-intro { padding: 96px 0 72px; }
.page-intro h1 { max-width: 48rem; margin: 0 auto; }
.page-intro .lead { margin-top: 28px; }

.quote { max-width: 800px; margin: 0 auto; text-align: center; }
.quote p { margin: 24px 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.35; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head a { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card .ph { height: 340px; }
.card p { margin: 0; }

.cta-band .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; padding-top: 88px; padding-bottom: 88px; }
.cta-band h2 { flex: 1 1 420px; font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.cta-band p { margin: 16px 0 0; }

/* Inackordering */
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.included > div { background: var(--bg); padding: 40px 32px; display: flex; flex-direction: column; gap: 12px; }
.included p { margin: 0; color: var(--muted); }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 32px; }
.package { background: var(--bg); border: 1px solid var(--line); padding: 48px 40px; display: flex; flex-direction: column; gap: 16px; }
.package p { margin: 0; color: var(--muted); }
.package .price { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.package a { margin-top: 16px; align-self: flex-start; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.package.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.package.featured p { color: #E4DCCD; }
.package.featured .price, .package.featured a, .package.featured .tag { color: var(--gold-light); }
.package .tag { margin: 0; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; }

/* Grevinnan */
.split { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split .ph { height: 680px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 56px; text-align: center; }
.values > div { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.values p { margin: 0; color: var(--muted); max-width: 20rem; }

/* Kontakt */
.contact { display: flex; flex-wrap: wrap; gap: 80px; padding: 96px 0 112px; }
.contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.contact-info .block { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 28px; }
.contact-info .ph { height: 240px; }
.form { flex: 1 1 480px; min-width: 0; background: var(--bg-alt); padding: 56px 48px; display: flex; flex-direction: column; gap: 24px; }
.form h2 { font-size: 2.2rem; margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 1rem; font-weight: 300;
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--input-line);
  background: transparent; color: var(--ink); border-radius: 0;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form .btn { align-self: flex-start; margin-top: 8px; }

/* Sidfot */
.site-footer .container { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 64px; padding-bottom: 48px; font-size: 0.9rem; color: var(--muted); }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .brand { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }

/* Mobil */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
  }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-header.open .main-nav { display: flex; }
  .logo span { font-size: 1.5rem; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 48px; gap: 40px; }
  .hero .ph { height: 420px; }
  .hero .btn-row { flex-direction: column; }
  .hero .btn-row .btn { width: 100%; }
  .card .ph { height: 240px; }
  .split { gap: 40px; }
  .split .ph { height: 460px; }
  .contact { padding: 56px 0 72px; gap: 48px; }
  .form { padding: 40px 24px; }
  .cta-band .container { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .cta-band .btn { width: 100%; }
  .site-footer .container { flex-direction: column; gap: 28px; }
}

/* =========================================================================
   Tillägg för .NET-sajten (allt ovan är designen som den levererades)
   ========================================================================= */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; }

/* Bildytor med riktiga bilder och filmer */
.ph.has-media { padding: 0; }
.ph video, .ph .ss-zoom { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph video { object-fit: cover; }
.ss-zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ss-zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ss-zoom:hover img { transform: scale(1.02); }
.card-lank { color: inherit; text-decoration: none; }
.card-lank:hover { color: var(--gold); }

/* Viktig information – varningsrutan högst upp på startsidan */
.viktig { --viktig: #9C2B2B; padding: 32px 0 0; }
.viktig-ruta {
  max-width: 760px; margin: 0 auto; background: #FBEDEA; border: 1px solid #E9C4BD; border-left: 4px solid var(--viktig);
  box-shadow: 0 10px 28px rgba(110, 30, 30, .08); color: var(--ink);
}
.viktig-ruta summary, .viktig-rad { display: flex; align-items: center; gap: 16px; padding: 16px 20px; list-style: none; cursor: pointer; }
.viktig-rad { cursor: default; }
.viktig-ruta summary::-webkit-details-marker { display: none; }
.viktig-ikon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--viktig); color: #FFF7F5; }
.viktig-ikon svg { margin-top: -2px; }
.viktig-innehall { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.viktig-etikett { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--viktig); }
.viktig-rubrik { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.3; }
.viktig-mer {
  flex: none; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--viktig);
  border: 1px solid #DDA9A0; padding: 7px 12px; white-space: nowrap; background: #FFF9F7;
}
.viktig-mer::after { content: " ▾"; letter-spacing: 0; }
.viktig-ruta[open] .viktig-mer::after { content: " ▴"; }
.viktig-ruta summary:hover .viktig-mer { background: var(--viktig); color: #FFF7F5; border-color: var(--viktig); }
.viktig-text { padding: 0 20px 20px 78px; color: #4A3A36; font-size: 0.98rem; }
.viktig-text p { margin: 0 0 10px; }
.viktig-text p:last-child { margin-bottom: 0; }
.viktig-text a { color: var(--viktig); }
.viktig + .container .hero { padding-top: 56px; }

/* Senaste nytt */
.nyheter { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; }
.nyhet-kort { background: var(--bg); border: 1px solid var(--line); }
.section-alt .nyhet-kort { border-color: transparent; }
.nyhet-lank { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 0 0 32px; color: inherit; text-decoration: none; }
.nyhet-lank > :not(.nyhet-bild) { margin-left: 32px; margin-right: 32px; }
.nyhet-lank > .nyhet-meta:first-child { margin-top: 32px; }
.nyhet-bild { height: 220px; }
.nyhet-bild img, .nyhet-bild video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nyhet-spela { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(43, 38, 32, .72); }
.nyhet-spela::after { content: ""; position: absolute; left: 22px; top: 18px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--bg); }
.nyhet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.nyhet-ikon { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--gold-line); color: var(--gold); padding: 2px 7px; }
.nyhet-kort h3 { font-size: 1.6rem; line-height: 1.2; }
.nyhet-kort p { margin: 0; }
.nyhet-las { margin-top: auto; padding-top: 8px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.nyhet-lank:hover h3 { color: var(--gold); }

/* En nyhet */
.artikel-kropp { max-width: 860px; padding-bottom: 104px; }
.artikel-media { margin: 0 0 48px; }
.artikel-media.ph { height: clamp(280px, 45vw, 520px); }
.artikel-media video { width: 100%; max-height: 70vh; display: block; background: #000; }
.artikel-text { font-size: 1.08rem; }
.artikel-text p { margin: 0 0 1.2em; }
.artikel-pdf { display: inline-flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px 24px; border: 1px solid var(--line); background: var(--bg-alt); text-decoration: none; color: var(--ink); }
.artikel-pdf:hover { border-color: var(--gold-line); color: var(--gold); }

/* Anläggningen */
.anl-lista { display: flex; flex-direction: column; gap: 104px; }
.anl-lista .split .ph { height: 520px; }
.split.omvand { flex-direction: row-reverse; }

/* Kontakt */
.form-fel { margin: 0; padding: 12px 16px; border-left: 2px solid #9C3D2E; background: #F6E9E4; color: #6B2A20; }
.form.tack { justify-content: center; }
.form.tack .btn { margin-top: 16px; }

/* Sidfoten */
.site-footer .container.fot-copy { padding-top: 0; padding-bottom: 40px; margin-top: -8px; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }

/* Förstoring av bilder */
.ss-ljus { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.ss-ljus::backdrop { background: rgba(28, 24, 20, .88); }
.ss-ljus img { max-width: 94vw; max-height: 92vh; object-fit: contain; display: block; }
.ss-ljus-stang { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 0; background: none; color: var(--bg); font-size: 2rem; line-height: 1; cursor: pointer; }

/* Det finns nytt på sidan (i ett spel) */
.ss-nytt {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px; padding: 14px 14px 14px 24px;
  background: var(--bg); border: 1px solid var(--gold-line); box-shadow: 0 12px 34px rgba(43, 38, 32, .18);
}
.ss-nytt[hidden] { display: none; }
.ss-nytt .btn { min-height: 40px; padding: 10px 22px; }

@media (max-width: 900px) {
  .viktig { padding-top: 20px; }
  .viktig-ruta summary, .viktig-rad { flex-wrap: wrap; gap: 12px 14px; padding: 14px 16px; }
  .viktig-ikon { width: 36px; height: 36px; }
  .viktig-innehall { flex-basis: calc(100% - 52px); }
  .viktig-mer { margin-left: 50px; }
  .viktig-rubrik { font-size: 1.15rem; }
  .viktig-text { padding: 0 16px 16px; }
  .nyheter { gap: 28px; }
  .nyhet-lank > :not(.nyhet-bild) { margin-left: 24px; margin-right: 24px; }
  .anl-lista { gap: 64px; }
  .anl-lista .split .ph { height: 340px; }
  .split.omvand { flex-direction: row; }
  .ss-nytt { left: 16px; right: 16px; transform: none; justify-content: space-between; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .main-nav { gap: 18px; font-size: 0.74rem; }
  .header-cta { padding: 12px 18px; }
}

/* Förhandsgranskning från X Ray (raden överst) */
.ss-forhand { position: sticky; top: 0; z-index: 70; background: repeating-linear-gradient(135deg, #7A5C33 0 18px, #735630 18px 36px); color: #FBF8F2; font-size: 0.85rem; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.ss-forhand .container { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 10px; padding-bottom: 10px; }
.ss-forhand-rubrik { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ss-forhand-rubrik strong { font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: #E8D9B8; }
.ss-forhand-steg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.ss-forhand-steg label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ss-forhand-steg input[type=text] { width: 7em; padding: 3px 6px; border: 1px solid #8A6A3E; background: #FBF8F2; color: #2B2620; font: inherit; }
.ss-forhand-steg button, .ss-forhand-avsluta { padding: 4px 12px; border: 1px solid #E8D9B8; background: transparent; color: #F3EDE2; font: inherit; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.ss-forhand-steg button:hover, .ss-forhand-avsluta:hover { background: #E8D9B8; color: #2B2620; }
.ss-forhand-avsluta { margin-left: auto; }
.ss-forhand-not { margin: 8px 0 0; padding: 10px 14px; border-left: 2px solid var(--gold-line); background: var(--bg-alt); font-size: 0.85rem; color: var(--muted); }
