/* Leadrion mall: Grund. Alla färger och typsnitt kommer från kundens tema (CSS-variabler). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-kerning: normal; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
h3 { font-size: 17px; font-weight: 500; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 99; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }

:root { --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); --max: 1160px; --ease-out: cubic-bezier(.16,1,.3,1); --ease: cubic-bezier(.4,0,.6,1); --line: color-mix(in oklch, var(--ink) 12%, transparent); }

/* Knappar */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 500; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; transition: transform .45s var(--ease-out), filter .3s var(--ease), box-shadow .45s var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: .15s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 24px -14px var(--accent); }
.btn-glass { color: var(--ink); background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.35)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px var(--line); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); filter: brightness(1.05); } }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* Topp */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.top.solid { background: color-mix(in oklch, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 1px 0 var(--line); }
.top-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.02em; min-height: 44px; display: inline-flex; align-items: center; }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 15px; color: var(--muted); transition: color .3s var(--ease); }
.links a:hover { color: var(--ink); }
.top:not(.solid) .brand, .top:not(.solid) .links a { color: #fff; }
.top:not(.solid) .links a { color: rgba(255,255,255,.82); }

/* Hero: helbild, text nere till vänster */
.hero { position: relative; height: 92svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,13,.62) 0%, rgba(20,16,13,.25) 50%, rgba(20,16,13,0) 75%), linear-gradient(0deg, rgba(20,16,13,.5) 0%, rgba(20,16,13,0) 45%); }
.hero-copy { position: relative; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); }
.kicker { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero h1 { margin-top: 16px; font-size: clamp(46px, 7vw, 96px); max-width: 12em; }
.hero-sub { margin-top: 20px; max-width: 34ch; font-size: 19px; opacity: .88; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-glass { color: #fff; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 1px rgba(255,255,255,.18); font-variant-numeric: tabular-nums; }

/* Sektioner */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--gutter) 0; }
.section h2 { font-size: clamp(36px, 4.4vw, 56px); }

/* Priser: listan som en meny */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 110px; }
.split-head .muted { margin-top: 16px; max-width: 30ch; }
.prices { border-top: 1px solid var(--line); }
.price-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.price-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.price-top h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; line-height: 1.1; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row p { margin-top: 6px; color: var(--muted); }
.dur { font-variant-numeric: tabular-nums; }

/* Om */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-img { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { margin-top: 18px; color: var(--muted); max-width: 46ch; }

/* Öppettider och hitta hit */
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { position: relative; padding: 32px; border-radius: 24px; background: linear-gradient(160deg, color-mix(in oklch, var(--surface) 92%, #fff), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 0 1px var(--line), 0 24px 48px -36px rgba(0,0,0,.35); }
.card-h { font-size: 32px !important; margin-bottom: 20px; }
.hours div { display: flex; justify-content: space-between; padding: 12px 14px; margin: 0 -14px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.hours div + div { border-top: 1px solid var(--line); }
.hours div.today { background: color-mix(in oklch, var(--accent) 10%, transparent); border-top-color: transparent; }
.hours div.today dt::after { content: " · idag"; color: var(--accent); }
.hours div.today + div { border-top-color: transparent; }
.hours dd { color: var(--muted); }
.card address { font-size: 19px; line-height: 1.5; }
.card .muted { margin-top: 12px; }
.card .text-link { margin-top: 8px; }

/* Kontakt */
.contact-card { max-width: 760px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 14px; }
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.form { width: 100%; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.form .wide { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease); }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.form-status { min-height: 1.5em; font-size: 14px; color: var(--muted); text-align: center; }
.demo-note { margin: 0; font-size: 12.5px; color: color-mix(in oklch, var(--muted) 70%, var(--text)); text-align: center; }

/* Sidfot */
.foot { max-width: var(--max); margin: clamp(80px, 12vw, 140px) auto 0; padding: 32px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.foot-brand { font-family: var(--font-display); font-size: 28px; color: var(--ink); }
.foot a:hover { color: var(--ink); }
.made { margin-top: 10px; font-size: 13px; }

/* Rörelse: lugnt intro och mjuka avslöjanden */
@keyframes in-up { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: settle 2.4s var(--ease-out) both; }
  .hero-copy > * { animation: in-up 1.3s var(--ease-out) both; }
  .hero-copy > :nth-child(1) { animation-delay: .2s; }
  .hero-copy > :nth-child(2) { animation-delay: .35s; }
  .hero-copy > :nth-child(3) { animation-delay: .55s; }
  .hero-copy > :nth-child(4) { animation-delay: .7s; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .links { display: none; }
  .top .btn { margin-left: auto; }
  .split, .about, .info { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .hero { height: 88svh; }
  .hero-img { object-position: 62% 40%; }
  .form { grid-template-columns: 1fr; }
  .card { padding: 24px; }
}

/* Långa prisetiketter (t.ex. "Fast pris efter platsbesök") får bryta rad på smala skärmar */
@media (max-width: 600px) {
  .price-top { flex-direction: column; gap: 2px; }
  .price { white-space: normal; color: var(--muted); }
}

/* Tryckytor: kontaktlänkar i sidfoten minst 44 px höga */
.foot p a { display: inline-flex; align-items: center; min-height: 44px; }

/* Extra fält i formuläret (bokning.falt), t.ex. registreringsnummer */
.form .opt { font-weight: 400; color: var(--muted); }
.form [data-extra-falt] { text-transform: uppercase; letter-spacing: .06em; }
.form .falt-tips { font-size: 13px; font-weight: 400; color: var(--muted); }
