/*
Theme Name: Värmlandskök
Theme URI: https://www.varmlandskok.se/
Author: Värmlandskök AB
Description: Bildstyrt, lugnt tema för Värmlandskök. Inga externa teckensnitt eller tjänster. Kök-galleri, bokningsformulär och lokal SEO ingår.
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: vmk
*/

/* ---------- Grund ---------- */
:root {
  --paper: #f4f4f2;
  --grey: #eaeaea;
  --white: #ffffff;
  --ink: #161616;
  --muted: #6a6a67;
  --line: #d4d4d1;
  --dark: #1c1c1b;
  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 56px);
  --sans: "Helvetica Neue", "Avenir Next", "Segoe UI", Roboto, Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: rgba(22, 22, 22, 0.35); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.55em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.narrow > * { max-width: 640px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 1.55; max-width: 60ch; }
.small { font-size: 0.88rem; color: var(--muted); }
address { font-style: normal; margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Knappar och textlänkar ---------- */
.btn {
  display: inline-block;
  font: 400 0.95rem/1 var(--sans);
  letter-spacing: 0.01em;
  padding: 16px 28px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #000; }
.btn.small { padding: 10px 18px; font-size: 0.9rem; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }
.btn.ghost.light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.8); }
.btn.ghost.light:hover { background: #fff; color: var(--ink); }
.more { display: inline-block; margin-top: 8px; }

/* ---------- Sidhuvud ---------- */
.site-head { position: sticky; top: 0; z-index: 90; background: var(--paper); border-bottom: 1px solid var(--line); transition: background 0.25s, color 0.25s; }
.banner { background: var(--ink); color: #fff; font: 400 0.9rem/1.3 var(--sans); text-align: center; padding: 9px 20px; }
.banner a { color: #fff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 38px; width: auto; }
.brand-text { font: 400 1.35rem var(--sans); letter-spacing: -0.01em; color: inherit; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-size: 0.97rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current], .nav-list .current-menu-item > a { border-bottom-color: currentColor; }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; color: inherit; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 1px; background: currentColor; content: ""; position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

/* Startsidan: sidhuvudet ligger över bilden och blir ljust när man scrollar */
.home .site-head { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; color: #fff; }
.home .site-head .brand img { filter: brightness(0) invert(1); transition: filter 0.25s; }
.home .site-head .btn.small { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.8); }
.home .site-head.solid { background: var(--paper); border-bottom-color: var(--line); color: var(--ink); }
.home .site-head.solid .brand img { filter: none; }
.home .site-head.solid .btn.small { color: #fff; background: var(--ink); border-color: var(--ink); }
.home .site-head .banner { color: #fff; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 26px; flex-direction: column; align-items: stretch; gap: 16px; }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 15px 0; border: 0; }
  .home .site-head .site-nav .btn.small { color: #fff; background: var(--ink); border-color: var(--ink); text-align: center; }
  .site-nav .btn { text-align: center; }
}

/* ---------- Startsidans hero: bilden är budskapet ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  background: #2b2b2a var(--hero, none) center / cover no-repeat;
  color: #fff;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.hero-video.playing { opacity: 1; }
.hero::before { z-index: 1; content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 52%, rgba(0,0,0,0.5) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(36px, 8vh, 88px); }
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.4rem, 7vw, 5.6rem); letter-spacing: -0.03em; max-width: 14ch; margin-bottom: 0.3em; }
.hero p { color: rgba(255, 255, 255, 0.92); font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 300; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 0 !important; }

/* ---------- Kategoriingångar ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0 0; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-decoration: none; background: #3a3a39; }
.tile img, .tile .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform 0.6s ease; background: #3a3a39; }
.tile:hover img { transform: scale(1.03); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 45%); }
.tile-text { position: absolute; left: clamp(20px, 3vw, 40px); right: 20px; bottom: clamp(20px, 3vw, 36px); z-index: 2; }
.tile-text strong { display: block; font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.tile-text span { display: block; font-size: 0.95rem; margin-top: 6px; opacity: 0.9; }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 3; } }

/* ---------- Block ---------- */
.statement { padding: clamp(64px, 11vw, 150px) 0; }
.statement p { font-size: clamp(1.7rem, 3.8vw, 3.2rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.025em; max-width: 24ch; margin: 0 0 0.9em; }
.statement .more { font-size: 1rem; }
.block { padding: clamp(48px, 7vw, 96px) 0; }
.block > h2, .block-head h2 { margin-bottom: 0.5em; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 0 clamp(56px, 8vw, 110px); }
.facts > div { padding: 0 32px; border-left: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts h2 { font-size: 1.15rem; font-weight: 400; letter-spacing: -0.005em; }
.facts p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts > div { padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .facts > div:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
}

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 20px; border-top: 1px solid var(--line); }
.size { padding: 24px 32px 12px; border-left: 1px solid var(--line); }
.size:first-child { padding-left: 0; border-left: 0; }
.size h3 { font-size: 1.7rem; font-weight: 300; margin-bottom: 0.3em; }
.size p { margin: 0 0 0.6em; color: var(--muted); }
.size .price { color: var(--ink); font-weight: 400; }
@media (max-width: 760px) { .sizes { grid-template-columns: 1fr; } .size { padding: 22px 0 8px; border: 0; border-top: 1px solid var(--line); } .size:first-child { border-top: 0; } }

/* ---------- Kök-galleri ---------- */
.kok-grid { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 20px; }
.kok-grid.big { grid-template-columns: repeat(2, 1fr); gap: 56px 16px; }
.kok-card[hidden] { display: none; }
.kok-card a { display: block; text-decoration: none; color: inherit; }
.kok-img, .ph.kok-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #dcdcd9; transition: opacity 0.3s; }
.kok-card a:hover .kok-img { opacity: 0.92; }
.kok-title { display: block; font-size: 1.05rem; font-weight: 400; line-height: 1.3; margin-top: 14px; }
.kok-grid.big .kok-title { font-size: 1.3rem; font-weight: 300; }
.kok-desc { display: block; font-size: 0.93rem; line-height: 1.55; color: var(--muted); margin-top: 4px; max-width: 52ch; }
@media (max-width: 900px) { .kok-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kok-grid, .kok-grid.big { grid-template-columns: 1fr; } }

.ph { display: block; background: #dcdcd9; aspect-ratio: 3 / 2; width: 100%; }

.page-head { padding: clamp(40px, 6vw, 80px) 0 20px; }
.crumbs { font-size: 0.93rem; color: var(--muted); margin-bottom: 10px; }
.filter-wrap { padding-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 26px; border-bottom: 1px solid var(--line); }
.chip { font: 400 1rem var(--sans); background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 12px 0; margin-bottom: -1px; cursor: pointer; text-decoration: none; display: inline-block; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.chip.static { border: 1px solid var(--line); padding: 8px 14px; margin: 0; }
.filter-status { min-height: 1.5em; font-size: 0.93rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Enskilt kök ---------- */
.kok-single { padding: 44px 0 56px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.gallery { list-style: none; margin: 32px 0 0; padding: 0; columns: 2 380px; column-gap: 12px; }
.gallery li { break-inside: avoid; margin: 0 0 12px; }
.gallery a { display: block; }
.gallery img, .gallery .ph { display: block; width: 100%; height: auto; cursor: zoom-in; }
.single-hero img { width: 100%; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(10, 10, 10, 0.92); }
.lightbox img { display: block; max-width: 96vw; max-height: 88vh; margin: 0 auto; }
.lightbox button { position: fixed; font: 400 0.95rem var(--sans); background: #fff; color: var(--ink); border: 0; padding: 12px 18px; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* ---------- Kulörer ---------- */
.colour { background: var(--grey); padding: clamp(48px, 7vw, 96px) 0; }
.swatches { list-style: none; padding: 0; margin: 32px 0 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }
.swatches li { display: flex; flex-direction: column; }
.chip-sw { display: block; height: 130px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.sw-name { font-size: 0.95rem; padding: 10px 0 0; }
.sw-code { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(2, 1fr); gap: 0 12px; } .swatches li { margin-bottom: 16px; } .chip-sw { height: 84px; } }

/* ---------- Steg, omdömen ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 22px 28px 0; border-left: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.steps li::before { content: counter(s); display: block; font-size: 1.5rem; font-weight: 300; color: var(--muted); margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); } .steps li:first-child { border-top: 0; } }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 28px; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 10px; font-size: 1.2rem; font-weight: 300; line-height: 1.45; }
.quotes blockquote p { margin: 0; }
.quotes figcaption { font-size: 0.93rem; color: var(--muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Showroom, band, bokning ---------- */
.showroom { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--grey); }
.showroom-img { position: relative; min-height: 420px; background: #bdbdb9; }
.showroom-img img, .showroom-img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.showroom-text { padding: clamp(32px, 6vw, 88px); align-self: center; }
.showroom-text h2 { margin-bottom: 0.6em; }
@media (max-width: 860px) { .showroom { grid-template-columns: 1fr; } .showroom-img { min-height: 260px; } }

.band { background: var(--grey); color: var(--ink); padding: clamp(44px, 6vw, 80px) 0; }
.band h2 { color: var(--ink); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-row p { margin: 0; max-width: 56ch; color: var(--muted); }
.book-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .book-grid { grid-template-columns: 1fr; } }

.hours { margin: 0 0 1em; font-size: 0.97rem; }
.hours div { display: flex; justify-content: space-between; gap: 18px; max-width: 340px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours dt, .hours dd { margin: 0; }

/* ---------- Formulär ---------- */
.form label { display: block; font-size: 0.9rem; margin-bottom: 6px; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: 400 1rem var(--sans); padding: 13px 12px; border: 1px solid #b9b9b5; border-radius: 0; background: #fff; color: var(--ink);
}
.form textarea { resize: vertical; }
.form p { margin: 0 0 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .check label { font-size: 0.93rem; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.form .check input { margin-top: 5px; }
.form .hint { margin-left: 12px; font-size: 0.93rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 16px; border-left: 3px solid; margin: 0 0 18px; background: #fff; color: var(--ink); }
.notice.ok { border-color: #3c7a4f; }
.notice.err { border-color: #a63d2f; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Löptext ---------- */
.prose { max-width: 700px; }
.page-body { padding-bottom: 72px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.5em; }
.prose img, .prose figure { max-width: 100%; height: auto; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

.uteko-grid, .media-grid { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 14px; max-width: none; }
.uteko-grid figure, .media-grid figure { margin: 0; }
.uteko-grid img, .media-grid img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.uteko-grid figcaption { font-size: 0.93rem; line-height: 1.55; color: var(--muted); margin-top: 10px; max-width: 54ch; }
.page-body .prose:has(.uteko-grid), .page-body .prose:has(.media-grid) { max-width: none; }
.prose:has(.uteko-grid) > p, .prose:has(.uteko-grid) > h2, .prose:has(.uteko-grid) > h3, .prose:has(.uteko-grid) > ul.wp-block-list,
.prose:has(.media-grid) > p, .prose:has(.media-grid) > h2, .prose:has(.media-grid) > h3 { max-width: 700px; }
.uteko-hero { margin: 28px 0; }
.uteko-hero img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.uteko-hero .ph { aspect-ratio: 16 / 7; }
@media (max-width: 640px) { .uteko-grid, .media-grid { grid-template-columns: 1fr; } }

.map { background: #fff; border: 1px solid var(--line); padding: 20px; max-width: 720px; }
.map iframe { width: 100%; height: 360px; border: 0; display: block; margin-bottom: 12px; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; }
@media (max-width: 760px) { .contact-cols { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Sidfot ---------- */
.site-foot { background: var(--grey); color: var(--ink); padding: clamp(48px, 6vw, 80px) 0 24px; font-size: 0.97rem; line-height: 1.65; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.foot-h { font-size: 1.05rem; font-weight: 400; letter-spacing: 0; margin-bottom: 0.8em; }
.foot-list { list-style: none; margin: 0 0 14px; padding: 0; }
.foot-list li { margin-bottom: 5px; }
.social a { margin-right: 18px; }
.foot-base { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.foot-base p { margin: 0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Fast knappfält på mobil ---------- */
.action-bar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 60px; }
  .action-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--paper); border-top: 1px solid var(--line); }
  .action-bar a { text-align: center; padding: 18px 8px; font-size: 1rem; text-decoration: none; color: var(--ink); }
  .action-bar a.primary { background: var(--ink); color: #fff; }
}
