/* Steningegården – gemensam stilmall */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2");
}
:root {
  --navy: #3a4f60;
  --navy-dark: #2c3d4b;
  --sage: #758783;
  --mauve: #8f7a89;
  --sand: #f4f1ec;
  --mist: #edeff2;
  --ink: #23292e;
  --muted: #5d666d;
  --line: #dcdfe3;
  --white: #fff;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; font: 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.005em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Sidhuvud */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo img { width: 150px; }
.nav { display: flex; gap: .25rem 1.4rem; flex-wrap: wrap; justify-content: flex-end; font-size: .95rem; }
.nav a { text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--navy); }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-dark); min-height: min(78vh, 720px); display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,40,.25), rgba(20,30,40,.55)); }
.hero-text { position: relative; z-index: 1; padding: 4rem 20px; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 4.8rem); margin: 0; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero p { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); margin: .3em 0 1.6em; }
.page-head { background: var(--navy); color: var(--white); padding: 3.5rem 0 3rem; }
.page-head h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin: 0 0 .3em; }
.page-head p { max-width: 46rem; margin: 0; opacity: .92; }

/* Knappar */
.btn { display: inline-block; padding: .7rem 1.5rem; border-radius: 999px; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid var(--navy); }
.btn:hover { background: var(--navy-dark); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--mist); }
.btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero .btns { justify-content: center; }

/* Sektioner */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-navy { background: var(--navy); color: var(--white); }
.section-sand { background: var(--sand); }
.section-mauve { background: var(--mauve); color: var(--white); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .8; margin-bottom: .6rem; }
.lead { font-size: 1.15rem; max-width: 46rem; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split-reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); }
.facts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { background: var(--mist); color: var(--navy); padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; }
.columns { display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .columns { grid-template-columns: 1fr 1fr; } }
.columns h3 { margin-top: .4rem; }

/* Kort */
.cards { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 2rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.07); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.2rem 1.3rem; }
.card h3 { margin: 0 0 .2rem; }
.card .tag { font-size: .85rem; color: var(--sage); font-weight: 600; margin: 0 0 .5rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.note { font-size: .9rem; color: var(--muted); margin-top: 1.6rem; }

/* Logi-sidan */
.unit { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.unit:nth-of-type(even) { background: var(--sand); }
.unit-grid { display: grid; gap: 2rem; }
@media (min-width: 880px) { .unit-grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; } }
.price { background: var(--mist); border-left: 3px solid var(--navy); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0; font-size: .97rem; }
.unit:nth-of-type(even) .price { background: var(--white); }
.price p { margin: 0; }
.price p + p { margin-top: .3rem; }
.meta { font-size: .93rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.gallery a:first-child img { aspect-ratio: 16 / 10; }
.gallery .plan img { object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.alts { counter-reset: alt; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.alts li { background: var(--white); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.alts strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.toc a { color: var(--white); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .3rem .9rem; text-decoration: none; font-size: .9rem; }
.toc a:hover { background: rgba(255,255,255,.12); }

/* Textsida */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .4rem; }
.prose h2:first-child { margin-top: 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10,15,20,.88); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; border-radius: 4px; }
.lightbox button { position: fixed; top: 12px; right: 16px; font-size: 2rem; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; padding: .3rem .6rem; }
.lightbox .prev, .lightbox .next { top: 50%; transform: translateY(-50%); font-size: 2.6rem; }
.lightbox .prev { left: 8px; right: auto; }
.lightbox .next { right: 8px; }

/* Sidfot */
.site-footer { background: var(--sage); color: var(--white); padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; opacity: .85; }
.footer-grid p { margin: 0; }
.footer-logo img { width: 170px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.3); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: .6rem; padding-bottom: .4rem; gap: .2rem; }
  .logo img { width: 120px; }
  .nav { justify-content: flex-start; gap: .1rem 1rem; font-size: .9rem; }
  html { scroll-padding-top: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); }

/* Drönarfilm i toppen (bara större skärmar) */
.hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero .hero-video.on { opacity: 1; }
.hero-pause { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(20,30,40,.35); color: #fff; font-size: .8rem; cursor: pointer; }
.hero-pause:hover { background: rgba(20,30,40,.6); }
.hero-pause:focus-visible, .btn:focus-visible, .nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--navy); }
