/* ==========================================================================
   Klockare Fastighetsmäkleri – designsystem
   ========================================================================== */

:root {
  --paper: #f6f2ec;
  --paper-2: #efe9e0;
  --white: #fffdf9;
  --ink: #1b1d1c;
  --ink-2: #3a3c3a;
  --muted: #74716a;
  --line: rgba(27, 29, 28, 0.12);
  --line-strong: rgba(27, 29, 28, 0.24);
  --sea: #1f2d2e;
  --sea-2: #2b3c3d;
  --brass: #9a7a4c;
  --brass-soft: #c9b18a;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Cormorant Garamond", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 108px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--brass-soft); color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }

/* ---------- Typografi ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }

h1, h2, h3, .display, .stat__num, .listing-head__price strong, .step::before {
  font-variant-numeric: lining-nums;
}
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
.display { font-size: clamp(44px, 7.4vw, 108px); line-height: 0.98; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(34px, 4.6vw, 62px); }
h3, .h3 { font-size: clamp(24px, 2.4vw, 32px); }
em, .italic { font-style: italic; }
h1 em, h2 em, .display em { color: var(--brass); }
.on-dark h2 em, .on-dark .display em { color: var(--brass-soft); }

.lead { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.5; color: var(--ink-2); margin: 0; }
p { margin: 0 0 1.1em; }
.muted { color: var(--muted); }
.prose p { color: var(--ink-2); }
.prose h3 { margin: 1.8em 0 0.5em; }

/* ---------- Knappar & länkar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--brass); border-color: var(--brass); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.link:hover { color: var(--brass); background-size: 40% 1px; }
.link { white-space: nowrap; }
.link svg { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), height 0.45s var(--ease), box-shadow 0.45s var(--ease);
  color: var(--ink);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 1480px; }
.site-header.is-transparent { color: var(--white); }
.site-header.is-solid {
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  height: 88px;
  box-shadow: 0 1px 0 var(--line);
}

.brand { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
/* Theres riktiga logga, som mask så att den får textfärgen (vit över bilden, mörk annars) */
.brand__logo {
  display: block; width: 214px; aspect-ratio: 264.61 / 80.2;
  background: currentColor;
  -webkit-mask: url(/img/logo.svg) no-repeat center / contain; mask: url(/img/logo.svg) no-repeat center / contain;
}
@media (max-width: 600px) { .brand__logo { width: 170px; } }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  position: relative; padding: 6px 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta {
  border: 1px solid currentColor; padding: 11px 20px; border-radius: var(--radius);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav .nav__cta::after { display: none; }
.site-header.is-solid .nav .nav__cta { background: var(--ink); color: var(--white); border-color: var(--ink); }
.site-header.is-solid .nav .nav__cta:hover { background: var(--brass); border-color: var(--brass); }
.site-header.is-transparent .nav .nav__cta:hover { background: var(--white); color: var(--ink); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease), opacity 0.3s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--sea); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--white) !important; background: transparent !important; box-shadow: none !important; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(34px, 9vw, 52px); line-height: 1.2; }
.mobile-menu nav a:hover { color: var(--brass-soft); }
.mobile-menu__foot { margin-top: 48px; font-size: 14px; opacity: 0.75; line-height: 1.9; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  :root { --header-h: 76px; }
  .site-header.is-solid { height: 72px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--sea);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,14,14,0.5) 0%, rgba(10,14,14,0) 22%),
    linear-gradient(90deg, rgba(10,14,14,0.55) 0%, rgba(10,14,14,0.15) 55%, rgba(10,14,14,0) 80%),
    linear-gradient(0deg, rgba(10,14,14,0.8) 0%, rgba(10,14,14,0.3) 40%, rgba(10,14,14,0) 68%);
}
.hero h1 em, .page-hero h1 em { color: #e6d3b1; }
.hero h1, .page-hero h1 { text-shadow: 0 2px 40px rgba(0,0,0,0.25); }
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 9vh, 110px); padding-top: 140px; }
.hero__content .container { max-width: 1480px; }
.hero .eyebrow { color: var(--brass-soft); }
.hero h1 { max-width: 13ch; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero__text { max-width: 470px; font-size: 17px; line-height: 1.7; opacity: 0.92; margin: 0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__progress { display: flex; gap: 8px; margin-top: 48px; }
.hero__progress button { width: 36px; height: 20px; position: relative; }
.hero__progress button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,0.3); }
.hero__progress button::after { content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 0; background: var(--white); }
.hero__progress button.is-active::after { animation: progress 6.5s linear forwards; }
@keyframes progress { to { width: 100%; } }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 110px); z-index: 2;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8;
  display: flex; align-items: center; gap: 14px;
}
.hero__scroll::after { content: ""; width: 1px; height: 56px; background: rgba(255,255,255,0.6); animation: scrollcue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) { .hero__scroll { display: none; } }

/* Page hero (undersidor) */
.page-hero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; color: var(--white); background: var(--sea); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,14,0.5) 0%, rgba(10,14,14,0) 30%), linear-gradient(0deg, rgba(10,14,14,0.72) 0%, rgba(10,14,14,0) 60%); }
.page-hero .container { position: relative; z-index: 2; padding-bottom: clamp(44px, 8vh, 90px); padding-top: 140px; max-width: 1480px; }
.page-hero .eyebrow { color: var(--brass-soft); }
.page-hero p { max-width: 560px; font-size: 17px; opacity: 0.92; margin: 26px 0 0; }

.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 5vw, 64px); }
.page-head p.lead { max-width: 640px; margin-top: 26px; }

/* ---------- Sektioner ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }
.section--dark { background: var(--sea); color: var(--white); }
.section--dark .muted, .section--dark .prose p { color: rgba(255,255,255,0.72); }
.section--dark .eyebrow { color: var(--brass-soft); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.section-head h2 { max-width: 20ch; }
.section-head p { max-width: 420px; margin: 0; color: var(--muted); }

/* ---------- Intro / manifest ---------- */
.intro { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.intro__statement { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.18; margin: 0; }
.intro__statement em { color: var(--brass); }
.intro__body { padding-top: 12px; }
.intro__body p { color: var(--ink-2); }
.intro__body .link { margin-top: 18px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 110px); }
.stat { padding: 34px 28px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(46px, 5vw, 72px); line-height: 1; display: block; }
.stat__num sup { font-size: 0.42em; vertical-align: top; position: relative; top: 0.35em; margin-left: 2px; color: var(--brass); }
.stat__label { display: block; margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 230px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 18px 28px 0; border-bottom: 1px solid var(--line); }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(2n) { padding-left: 18px; border-right: 0; }
  .stat:nth-child(2n+1) { border-right: 1px solid var(--line); }
}

/* ---------- Kort (objekt) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
/* Till salu: få objekt, så de får större bilder än i Sålda */
.grid--wide { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .grid--wide { grid-template-columns: 1fr; } }

.card { display: block; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__badge { position: absolute; top: 16px; left: 16px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 12px; }
.card__body { padding-top: 20px; }
.card__area { font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin: 0 0 6px; }
.card__title { font-size: clamp(25px, 2.1vw, 30px); line-height: 1.15; transition: color 0.3s; }
.card:hover .card__title { color: var(--brass); }
.card__meta { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.card__price { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.card__price span { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card__price em { font-weight: 400; font-style: normal; color: var(--muted); }

/* Featured layout på startsidan */
.featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 2.4vw, 36px); }
.featured .card--large .card__media { aspect-ratio: auto; height: 100%; min-height: 520px; }
.featured > div:first-child { display: flex; }
.featured .card--large { display: flex; flex-direction: column; flex: 1; }
.featured .card--large .card__media { flex: 1; }
.featured__side { display: grid; gap: clamp(28px, 3vw, 44px); }
.featured__side .card__media { aspect-ratio: 16 / 10; }
.featured--single { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured .card--large .card__media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Filter */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.filters button {
  height: 42px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 100px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters .count { opacity: 0.55; margin-left: 6px; }
.card.is-hidden { display: none; }
.card--sold .card__media img { filter: saturate(0.85); }
.card--sold:hover .card__media img { transform: none; }
.card--sold:hover .card__title { color: inherit; }
.empty { grid-column: 1 / -1; font-size: 17px; color: var(--muted); }
.empty a { text-decoration: underline; text-underline-offset: 4px; }
.sold-link { margin-top: 56px; }
.more-wrap { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Split (bild + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media .tag { position: absolute; bottom: -1px; left: -1px; background: var(--paper); padding: 18px 26px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; }
.split__body h2 { margin-bottom: 28px; }
.split__body .btn, .split__body .link { margin-top: 18px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Pelare ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 44px 40px 8px 0; }
.pillar + .pillar { padding-left: 40px; border-left: 1px solid var(--line); }
.pillar__num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 22px; display: block; margin-bottom: 26px; }
.pillar h3 { margin-bottom: 16px; }
.pillar p { color: var(--muted); margin: 0; }
.section--dark .pillars, .section--dark .pillar + .pillar { border-color: rgba(255,255,255,0.14); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 34px 0; border-bottom: 1px solid var(--line); }
  .pillar + .pillar { padding-left: 0; border-left: 0; }
}

/* ---------- Underhand (mörk banner) ---------- */
.discreet { position: relative; overflow: hidden; }
.discreet__bg { position: absolute; inset: 0; }
.discreet__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; filter: grayscale(0.4); }
.discreet__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sea) 0%, rgba(31,45,46,0.6) 50%, rgba(31,45,46,0) 100%); }
.discreet .container { position: relative; }
.discreet__inner { max-width: 640px; }
.discreet__inner p { color: rgba(255,255,255,0.8); font-size: 17px; }
.discreet__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Citat / Therese ---------- */
.portrait { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.portrait__img { position: relative; }
.portrait__img img { width: 100%; height: auto; }
.portrait__img::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass-soft); z-index: -1; }
.quote { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.3; margin: 0 0 32px; }
.quote::before { content: "“"; display: block; font-size: 2.6em; line-height: 0.6; color: var(--brass); margin-bottom: 12px; }
.signature { font-family: var(--script); font-size: 44px; line-height: 1; color: var(--ink); }
.signature-role { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) {
  .portrait { grid-template-columns: 1fr; }
  .portrait__img { margin-right: 22px; }
}

/* ---------- Utmärkelser ---------- */
.awards { border-top: 1px solid var(--line); }
.award { display: grid; grid-template-columns: 140px 1fr auto; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.award__date { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; }
.award__title { font-family: var(--serif); font-size: clamp(21px, 2vw, 27px); line-height: 1.3; margin: 0; }
.award__title strong { font-weight: 500; }
.award__src { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.award details summary { list-style: none; }
@media (max-width: 720px) {
  .award { grid-template-columns: 1fr; gap: 6px; }
}
.awards-more { margin-top: 32px; }

/* ---------- Process / tidslinje ---------- */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 120px 1fr 1.3fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--brass); font-style: italic; }
.step h3 { padding-top: 6px; }
.step p { color: var(--ink-2); margin: 0 0 0.9em; }
.step p:last-child { margin: 0; }
.section--dark .steps, .section--dark .step { border-color: rgba(255,255,255,0.14); }
.section--dark .step p { color: rgba(255,255,255,0.75); }
.section--dark .step::before { color: var(--brass-soft); }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .step::before { font-size: 40px; }
}

/* ---------- Bildband ---------- */
.ribbon { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; height: clamp(260px, 38vw, 560px); }
.ribbon img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .ribbon { grid-template-columns: 1fr 1fr; height: auto; } .ribbon img { aspect-ratio: 1; } .ribbon img:first-child { grid-column: span 2; aspect-ratio: 16/10; } }

/* ---------- Formulär ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0 12px; font-size: 17px; outline: none; transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2374716a' stroke-width='1.4'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { border-color: rgba(255,255,255,0.3); }
.section--dark .field input:focus, .section--dark .field select:focus, .section--dark .field textarea:focus { border-color: var(--white); }
.section--dark .field label { color: rgba(255,255,255,0.6); }
.section--dark .field select option { color: var(--ink); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); max-width: 360px; margin: 0; }
.section--dark .form__note { color: rgba(255,255,255,0.55); }
.form-success { display: none; padding: 40px 0; }
.form-success h3 { margin-bottom: 12px; }
form.is-sent { display: none; }
form.is-sent + .form-success { display: block; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; font-size: 14px; color: #b3412e; }
.section--dark .form__error { color: #f0a58f; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 8vw, 140px); }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 26px; }
.contact-list li span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a, .contact-list p { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin: 0; }
.contact-list a:hover { color: var(--brass); }
.section--dark .contact-list li span { color: rgba(255,255,255,0.55); }
.section--dark .contact-list a:hover { color: var(--brass-soft); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 24ch; margin: 0 auto; }
.cta-band p { max-width: 620px; margin: 26px auto 0; color: var(--muted); }
.cta-band p + p { margin-top: 16px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Objektsida ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(78vh, 760px); margin-top: var(--header-h); padding: 8px; }
.gallery button { position: relative; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:first-child { grid-row: span 2; }
.gallery__all { position: absolute; right: 18px; bottom: 18px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 18px; display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 70vh; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(3), .gallery button:nth-child(4) { display: none; }
}

.listing-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.listing-head h1 { font-size: clamp(42px, 5.6vw, 80px); }
.listing-head__price { text-align: right; }
.listing-head__price strong { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); display: block; line-height: 1.1; }
.listing-head__price span { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.keyfacts { display: flex; gap: 0; flex-wrap: wrap; margin-top: 26px; }
.keyfacts li { list-style: none; padding: 0 22px; border-left: 1px solid var(--line-strong); font-size: 15px; }
.keyfacts li:first-child { padding-left: 0; border-left: 0; }
.keyfacts { padding: 0; }
@media (max-width: 760px) {
  .listing-head { grid-template-columns: 1fr; }
  .listing-head__price { text-align: left; }
}

.listing-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(48px, 7vw, 120px); padding: clamp(56px, 7vw, 100px) 0; }
.listing-body .lead { margin-bottom: 30px; }
.aside-card { position: sticky; top: 100px; background: var(--white); padding: 36px; border: 1px solid var(--line); }
.aside-card__agent { display: flex; gap: 18px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.aside-card__agent img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.aside-card__agent strong { font-family: var(--serif); font-size: 24px; font-weight: 500; display: block; line-height: 1.2; }
.aside-card__agent span { font-size: 13px; color: var(--muted); }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 12px; }
.aside-card dl { margin: 0 0 8px; display: grid; gap: 4px; font-size: 15px; }
.aside-card dt { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.aside-card dd { margin: 0; }
@media (max-width: 900px) { .listing-body { grid-template-columns: 1fr; } .aside-card { position: static; } }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: color 0.3s var(--ease); }
.docs a:hover { color: var(--brass); }
.docs span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; } }

/* Lightbox */
.photolist { position: fixed; inset: 0; z-index: 90; background: var(--paper); overflow-y: auto; display: none; }
.photolist.is-open { display: block; }
.photolist__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; align-items: center; padding: 14px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.photolist__close { width: 44px; height: 44px; display: grid; place-items: center; }
.photolist__close svg { width: 24px; height: 24px; }
.photolist__items { padding: 0 0 64px; display: grid; gap: 6px; }
.photolist__items button { display: block; width: 100%; cursor: zoom-in; }
.photolist__items img { width: 100%; height: auto; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,15,15,0.96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox__btn { position: absolute; color: var(--white); width: 56px; height: 56px; display: grid; place-items: center; opacity: 0.8; transition: opacity 0.2s; }
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 12px; top: 12px; }
.lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 0.2em; }

/* ---------- Footer ---------- */
.site-footer { background: #141b1c; color: rgba(255,255,255,0.72); padding: clamp(72px, 9vw, 120px) 0 36px; font-size: 15px; }
.site-footer .brand { color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-top h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); margin: 8px 0 20px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top a:hover { color: var(--white); }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 22px; color: rgba(255,255,255,0.85); margin: 28px 0 0; max-width: 300px; line-height: 1.4; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--white); }
.socials { display: flex; gap: 16px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Animationer ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.hero .reveal { transition-duration: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* Karta */
.map { height: clamp(320px, 45vw, 520px); background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(0.95) brightness(1.02); }

/* Låt rutnätsceller krympa under bildernas naturliga bredd */
.featured > *, .grid > *, .split > *, .intro > *, .portrait > *, .contact-grid > *, .listing-body > *, .featured__side > *, .featured .card--large { min-width: 0; }

/* Mobil: starkare toning bakom hero-texten */
@media (max-width: 760px) {
  .hero::after, .page-hero::after {
    background:
      linear-gradient(180deg, rgba(10,14,14,0.55) 0%, rgba(10,14,14,0) 20%),
      linear-gradient(0deg, rgba(10,14,14,0.88) 0%, rgba(10,14,14,0.6) 45%, rgba(10,14,14,0.15) 75%);
  }
  .hero__row { margin-top: 26px; gap: 28px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .hero__actions { width: 100%; }
  .hero__progress { margin-top: 32px; }
}

/* Mobil: fast intresseknapp på objektsidan */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246,242,236,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(100%); transition: transform 0.4s var(--ease);
  }
  .sticky-cta.is-shown { transform: none; }
  .sticky-cta .btn { flex: 1; justify-content: center; height: 48px; padding: 0 12px; }
}

/* Läsbar eyebrow ovanpå foto */
.hero .eyebrow, .page-hero .eyebrow { color: rgba(255,255,255,0.92); text-shadow: 0 1px 12px rgba(0,0,0,0.45); }

/* Objekt i hero */
.hero__caption { display: inline-block; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.85); text-shadow: 0 1px 12px rgba(0,0,0,0.45); border-bottom: 1px solid rgba(255,255,255,0.4); }
.hero__caption:hover { color: var(--white); border-color: var(--white); }

/* Rubrik per stycke i objektbeskrivningen */
.prose .para-head { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; color: var(--ink); margin: 1.6em 0 0.35em; }
.prose .para-head--first { font-size: clamp(28px, 2.6vw, 34px); margin: 0 0 0.6em; }
.prose .lead + p, .prose .para-head--first + p { margin-top: 1.2em; }
.facts dd.pending { color: var(--muted); font-style: italic; }
