/* salongbaresso.se – utseende. Byggs in i publicera/ av bygg.js. */

/* Rubriktypsnitt: Playfair Display (SIL Open Font License), sparat på egen server. */
@font-face {
  font-family: "Playfair Display";
  src: url("/typsnitt/playfair-display-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --svart: #111214;
  --mork: #1b1c1f;
  --vit: #fff;
  --sand: #f6f3ef;
  --linje: #e4dfd8;
  --text: #1d1d1f;
  --dov: #66666b;
  --accent: #a8865b;
  --accent-ljus: #d9c3a5;
  --radie: 14px;
  --max: 1140px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--vit); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 100px; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hoppa { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--vit); color: var(--svart); padding: 10px 14px; }
.hoppa:focus { left: 10px; top: 10px; }
.in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.smal { max-width: 760px; }
.dov { color: var(--dov); }
.liten { font-size: .9rem; }

/* ---------- Knappar ---------- */
.knapp {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--svart); color: var(--vit); border: 1.5px solid var(--svart);
  font-weight: 600; font-size: .95rem; letter-spacing: .03em; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.knapp:hover { background: #000; }
.knapp-kontur { background: transparent; color: var(--svart); }
.knapp-kontur:hover { background: var(--svart); color: var(--vit); }
.knapp-ljus { background: var(--vit); color: var(--svart); border-color: var(--vit); }
.knapp-ljus:hover { background: #ebebed; border-color: #ebebed; }
.hero .knapp-kontur, .band .knapp-kontur, .morkt .knapp-kontur { color: var(--vit); border-color: rgba(255, 255, 255, .55); }
.hero .knapp-kontur:hover, .band .knapp-kontur:hover, .morkt .knapp-kontur:hover { background: var(--vit); color: var(--svart); border-color: var(--vit); }
.knappar { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Kampanjremsa ---------- */
.kampanj-remsa { display: block; padding: 9px var(--gutter); background: #b8862f; color: #fff; font-size: .88rem; font-weight: 650; line-height: 1.35; text-align: center; text-decoration: none; }
.kampanj-remsa:hover { background: #a57629; text-decoration: underline; }

.kampanj-sektion { padding-top: 8px; }
.erbj-rutnat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) {
  .erbj-rutnat { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.erbj-kort { display: block; overflow: hidden; border-radius: var(--radie); aspect-ratio: 8 / 5; background: #eee; }
.erbj-kort img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.erbj-kort:hover img { transform: scale(1.03); }
.erbj-rutnat-stor, .erbj-rutnat-hog { margin-top: 12px; }
.erbj-rutnat-stor { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .erbj-rutnat-stor { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
}
@media (min-width: 900px) {
  .erbj-rutnat-hog { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
}
.erbj-mellan { aspect-ratio: 8 / 5; }
.erbj-bred { aspect-ratio: 2.26 / 1; }
.erbj-hog { aspect-ratio: 4 / 5; }
a.remsa-bild { display: block; }

/* ---------- Toppen ---------- */
.topp { position: sticky; top: 0; z-index: 50; background: var(--svart); color: var(--vit); }
.topp-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 70px; display: flex; align-items: center; gap: 14px; }
.logga { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.logga img { height: 44px; width: auto; }
@media (min-width: 920px) {
  .topp-in { height: 84px; }
  .logga img { height: 58px; }
}
.logga-text { font-size: 1.3rem; font-weight: 500; letter-spacing: .32em; }
.meny { display: none; }
.meny a { padding: 8px 2px; color: #e6e6ea; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.meny a:hover, .meny a[aria-current] { color: var(--vit); box-shadow: inset 0 -2px 0 var(--accent); }
.topp-boka { min-height: 38px; padding: 0 16px; font-size: .85rem; }
.sprak { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 38px; padding: 0 8px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.sprak:hover { border-color: #fff; }
@media (max-width: 380px) {
  .topp-in { gap: 8px; }
  .sprak { min-width: 36px; padding: 0 6px; }
}

.mobilmeny summary { list-style: none; cursor: pointer; width: 44px; height: 44px; margin-right: -8px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.mobilmeny summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--vit); transition: transform .2s, background-color .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.mobilmeny[open] .burger { background: transparent; }
.mobilmeny[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.mobilmeny[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.mobilmeny nav { position: absolute; left: 0; right: 0; top: 70px; display: flex; flex-direction: column; padding: 4px var(--gutter) 18px; background: var(--svart); border-top: 1px solid #2a2b30; box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
.mobilmeny nav a { padding: 14px 0; border-bottom: 1px solid #26272b; color: var(--vit); font-size: 1.05rem; text-decoration: none; }
.mobilmeny nav a:last-child { border-bottom: 0; }

@media (min-width: 1100px) {
  .meny { display: flex; gap: 24px; margin-right: 10px; }
  .mobilmeny { display: none; }
}

/* ---------- Startbild ---------- */
.hero { position: relative; overflow: hidden; background: var(--svart); color: var(--vit); }
.hero-bild { position: absolute; inset: 0; }
.hero-bild img, .hero-bild .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-bild img { object-position: 50% 50%; }
.hero-bild .ph { background: radial-gradient(ellipse at 70% 30%, #3a3632 0%, #1b1c1f 60%, #111214 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 18, 20, .25) 0%, rgba(17, 18, 20, .55) 50%, rgba(17, 18, 20, .92) 100%); }
.hero-text { position: relative; z-index: 1; max-width: var(--max); min-height: min(80vh, 700px); margin: 0 auto; padding: 120px var(--gutter) 56px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero h1 { max-width: 13em; }
.hero .ingress { max-width: 34em; color: #ececf0; font-size: 1.15rem; }
.hero .ogon, .band .ogon { color: var(--accent-ljus); }
.hero .knappar { margin-top: 8px; }
/* Dator: texten till vänster, bilden till höger */
@media (min-width: 920px) {
  .hero { display: flex; align-items: stretch; }
  .hero::after { display: none; }
  .hero-bild { position: relative; inset: auto; order: 2; flex: 0 0 44%; }
  .hero-bild { min-height: 0; overflow: hidden; }
  .hero-bild img { position: absolute; inset: 0; }
  .hero h1 { font-size: 2.9rem; }
  .hero + .sektion { padding-top: 28px; }
  .hero + .sektion .sektion-rubrik { margin-bottom: 18px; }
  .hero-text { flex: 1 1 auto; min-height: 0; margin: 0; justify-content: center; padding: 32px 56px 32px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* ---------- Sektioner ---------- */
.sektion { padding: 64px 0; }
.sektion-sand { background: var(--sand); }
.morkt { background: var(--mork); color: var(--vit); }
.morkt .ingress { color: #c9c9ce; }
.sektion-rubrik { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.sektion-rubrik h2 { margin: 0; }
.ogon { margin: 0 0 .6em; color: var(--accent); font-size: .78rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.ingress { max-width: 40em; color: var(--dov); font-size: 1.12rem; }
.mer { font-weight: 600; text-decoration: none; }
.mer::after { content: " →"; }
.mer:hover { text-decoration: underline; }
.remsa { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) {
  .remsa { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.remsa h2 { margin-bottom: .3em; }
.remsa .ingress { margin: 0; }
.remsa-bild { margin: 0; overflow: hidden; border-radius: var(--radie); aspect-ratio: 3 / 2; background: #2a2b30; }
.remsa-bild img { width: 100%; height: 100%; object-fit: cover; }
.remsa-text .knapp { margin-top: 20px; }
@media (max-width: 640px) {
  .sektion { padding: 48px 0; }
}

/* Mörkt band överst på undersidor */
.band { padding: 44px 0 48px; background: var(--mork); color: var(--vit); }
.band h1 { margin-bottom: .3em; }
.band .ingress { color: #cfcfd4; }
.band .knappar { margin-top: 20px; }
.brodsmulor { margin-bottom: 22px; color: #a3a3aa; font-size: .85rem; }
.brodsmulor a { color: #dcdce0; }

/* ---------- Kort ---------- */
.rutnat { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) {
  .rutnat-2, .rutnat-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .rutnat-4 { grid-template-columns: repeat(4, 1fr); }
  .kort-bild { aspect-ratio: 16 / 10; }
}
/* Behandlingar: två i bredd redan i mobilen, tre på dator */
.rutnat-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) {
  .rutnat-3 { gap: 20px; }
}
@media (min-width: 1020px) {
  .rutnat-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .rutnat-3 .behandling-kort { padding: 16px 14px; }
  .rutnat-3 .behandling-kort h3 { font-size: 1.02rem; }
  .rutnat-3 .behandling-kort p { font-size: .88rem; line-height: 1.45; }
}
.kort { display: flex; flex-direction: column; overflow: hidden; background: var(--vit); border: 1px solid var(--linje); border-radius: var(--radie); }
.kort-bild { display: block; overflow: hidden; min-height: 0; aspect-ratio: 4 / 3; background: #ddd6cd; }
.kort-bild img, .kort-bild .ph { width: 100%; height: 100%; object-fit: cover; }
.ph { background: linear-gradient(135deg, #cfc6bb 0%, #ebe6e0 100%); }
.kort-text { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; }
.kort h3 { margin: 0; }
.kort h3 a { text-decoration: none; }
.kort h3 a:hover { text-decoration: underline; }
.adress, .kort-om { margin: 0; color: var(--dov); }
.kort .knappar { margin-top: auto; padding-top: 16px; }
.kort .knapp { min-height: 42px; padding: 0 18px; }
.kort .tider { margin-top: 10px; }

.behandling-kort { gap: 6px; padding: 24px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.behandling-kort:hover { border-color: var(--svart); transform: translateY(-2px); }
.behandling-kort p { margin: 0; color: var(--dov); }
.behandling-kort .pil { margin-top: auto; padding-top: 14px; font-weight: 600; }
.behandling-kort .pil::after { content: " →"; }
.pris { color: var(--text) !important; font-weight: 650; white-space: nowrap; }

.en-beh li { align-items: baseline; }
.en-beh .pris { flex-shrink: 0; }

/* ---------- Betyg ---------- */
.betyg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 4px 0 6px; color: var(--dov); font-size: .93rem; }
.betyg-tal { color: var(--text); font-size: 1.2rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.betyg-av { font-size: .95rem; font-weight: 700; }
.betyg-antal { color: var(--dov); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.betyg-antal:hover { color: var(--text); }
.stjarna { color: #d9a43a; }
.band .betyg { margin-bottom: 10px; color: #cfcfd4; }
.band .betyg-tal { color: #fff; font-size: 1.3rem; }
.band .betyg-antal { color: #cfcfd4; }
.band .betyg-antal:hover { color: #fff; }
.morkt .betyg { margin-top: 10px; }
.morkt .betyg-tal { color: #fff; }
.morkt .betyg-antal { color: #cfcfd4; }

/* ---------- Öppet idag ---------- */
.oppet { margin: 8px 0 0; }
.oppet-idag { margin: 0; color: var(--text); font-weight: 700; }
.oppet-idag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; border-radius: 50%; background: #3a9b5c; }
.oppet-idag.stangt::before { background: #b5473a; }
.alla-tider { margin-top: 4px; }
.alla-tider summary { cursor: pointer; color: var(--dov); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.alla-tider[open] summary { margin-bottom: 6px; }
.band .oppet-idag, .band .alla-tider summary { color: #e6e6ea; }
.band .tider th, .band .tider td { color: #cfcfd4; }
.band .tider tr + tr th, .band .tider tr + tr td { border-top-color: #33343a; }
.band .tider tr.idag th, .band .tider tr.idag td { color: #fff; }
.band-adress { margin: 0 0 4px; color: #cfcfd4; }
.hitta { font-weight: 600; white-space: nowrap; }
.ogon-rad { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.ogon .hitta { color: var(--text); font-size: .88rem; letter-spacing: 0; text-transform: none; }
.band .hitta { color: var(--accent-ljus); }
.infokort .oppet { margin-top: 0; }
.infokort .oppet-idag { margin-bottom: 6px; }
.knappar-stapel { display: grid; gap: 10px; margin-top: 18px; }
.knappar-stapel .knapp { width: 100%; }

/* ---------- Öppettider ---------- */
.tider { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tider th { padding: 6px 0; color: var(--dov); font-weight: 500; text-align: left; }
.tider td { padding: 6px 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tider tr + tr th, .tider tr + tr td { border-top: 1px solid var(--linje); }
.tider tr.idag th, .tider tr.idag td { color: var(--text); font-weight: 700; }
.tider tr.idag th::after { content: " · idag"; color: var(--accent); font-weight: 600; }

/* ---------- Undersidor ---------- */
.tva-kol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 920px) {
  .tva-kol { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .tva-kol > aside { position: sticky; top: 104px; }
}
.text h2 { margin-top: 1.6em; font-size: 1.35rem; }
.text > h2:first-child, .text > .stor-bild + p { margin-top: 0; }
.text p { max-width: 40em; }
.stor-bild { margin: 0 0 28px; overflow: hidden; border-radius: var(--radie); aspect-ratio: 3 / 2; background: #ddd6cd; }
.stor-bild img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- Hårinspiration ---------- */
.inspo-in { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) {
  .inspo-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
.inspo-bild { display: block; overflow: hidden; min-height: 0; border-radius: var(--radie); aspect-ratio: 4 / 3; background: #ddd6cd; }
.inspo-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.inspo-bild:hover img { transform: scale(1.03); }
@media (max-width: 639px) {
  .inspo-bild { aspect-ratio: 16 / 10; }
}
.hc-rutnat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (min-width: 760px) {
  .hc-rutnat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.hc-kort { display: flex; flex-direction: column; overflow: hidden; background: var(--vit); border: 1px solid var(--linje); border-radius: var(--radie); color: inherit; text-decoration: none; }
.hc-kort img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd6cd; }
.hc-text { padding: 10px 12px 0; font-size: .9rem; line-height: 1.45; }
.hc-salong { margin-top: auto; padding: 6px 12px 12px; color: var(--accent); font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.hc-kort:hover { border-color: var(--svart); }
@media (max-width: 639px) {
  .hc-text { display: none; }
}
details.faq { border-bottom: 1px solid var(--linje); }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 14px; color: var(--dov); }

/* Lägre bilder i mobilen, så att adress och bokning syns tidigare */
@media (max-width: 639px) {
  .kort-bild { aspect-ratio: 2 / 1; }
  .stor-bild { aspect-ratio: 16 / 9; }
  .hero-text { min-height: min(62vh, 520px); padding-top: 96px; }
}
.filmer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; max-width: 520px; }
.filmer video { display: block; width: 100%; min-width: 0; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radie); background: #ddd6cd; }
.infokort { padding: 24px; background: var(--sand); border-radius: var(--radie); }
.infokort h2 { margin: 1.4em 0 .5em; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.infokort h2:first-child { margin-top: 0; }
.infokort > .knapp { width: 100%; margin-top: 18px; }
.lista { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.lista li { padding: 8px 0; border-bottom: 1px solid var(--linje); break-inside: avoid; }
.lista .pris { float: right; margin-left: 8px; font-size: .92rem; }
@media (max-width: 520px) {
  .lista { columns: 1; }
}
.punkter { padding-left: 1.2em; }
.punkter li { margin-bottom: .4em; }
.ovrigt { margin-top: 48px; }

.salongval { margin: 0; padding: 0; list-style: none; }
.salongval li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--linje); }
.salongval li:first-child { border-top: 0; padding-top: 0; }
.salongval small { display: block; color: var(--dov); font-size: .88rem; }
.salongval .knapp { min-height: 40px; padding: 0 18px; }
.salongval.stor li { padding: 20px 0; }
.salongval.stor strong { font-size: 1.15rem; }

.pristabell { width: 100%; border-collapse: collapse; font-size: .92rem; -webkit-hyphens: manual; hyphens: manual; }
.pristabell th, .pristabell td { padding: 10px 6px; border-bottom: 1px solid var(--linje); text-align: left; }
.pristabell th:first-child { padding-left: 0; }
.pristabell thead th { color: var(--dov); font-size: .78rem; font-weight: 600; vertical-align: bottom; }
.pristabell thead th + th, .pristabell td { text-align: right; }
.pristabell tbody th { font-weight: 500; }
.pristabell td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pristabell td:last-child, .pristabell thead th:last-child { padding-right: 0; }
.tabell-rulla { overflow-x: auto; margin-bottom: 8px; }

/* ---------- Foten ---------- */
.fot { padding: 56px 0 28px; background: var(--svart); color: #c9c9ce; font-size: .95rem; }
.fot-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 32px; }
@media (min-width: 800px) {
  .fot-in { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.fot h2 { margin-bottom: 14px; color: var(--vit); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.fot a { color: #ececef; text-decoration: none; }
.fot a:hover { text-decoration: underline; }
.fot ul { margin: 0; padding: 0; list-style: none; }
.fot li { margin-bottom: 14px; }
.fot-logga { margin-bottom: 14px; }
.fot-logga img { height: 48px; width: auto; }
.fot-botten { max-width: var(--max); margin: 36px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid #2a2b30; color: #8d8d94; font-size: .85rem; }
