/* Olant – publik stil. Tallgrönt och granit från Bohuslän, skördegul bara för prislappar och "Öppet nu". */
:root {
  --paper: #f2f4ee;      /* ljus salviavit */
  --paper-2: #e6ebe2;    /* band */
  --ink: #1f2a24;        /* tallsvart */
  --pine: #2a763a;       /* loggans gröna (önskemål #1, RGB 42/118/58) */
  --pine-dark: #1f5a2c;
  --granite: #5f6863;
  --line: #cdd5cc;
  --harvest: #e3b23c;    /* prislapp */
  --harvest-ink: #3a2c07;
  --closed: #8a3b2e;
  --radius: 6px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { color: var(--pine-dark); }
:focus-visible { outline: 3px solid var(--harvest); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: 0.005em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

.beta-strip { background: var(--ink); color: #fff; text-align: center; font-size: 0.9rem; padding: 6px 16px; }
.beta-strip a { color: var(--harvest); }
/* Röd Beta-markering bredvid namnet på varje sida (2026-11-08) */
.beta-badge { display: inline-block; background: #c0392b; color: #fff; font: 700 0.8rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; vertical-align: middle; margin-left: 6px; position: relative; top: -2px; }
.notice { background: var(--harvest); color: var(--harvest-ink); text-align: center; font-weight: 600; padding: 10px 16px; }

/* Huvud */
.site-head { background: #fff; border-top: 6px solid var(--pine); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
/* Sloganen står under namnet i översta raden (2026-11-08, ersätter det gröna fältet) */
.brand-text { display: grid; gap: 4px; }
.brand-tag { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.15; color: var(--pine); }
.status { font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-decoration: none; padding: 6px 12px; border-radius: var(--radius); }
.status.is-open { background: var(--harvest); color: var(--harvest-ink); }
.status.is-closed { color: var(--closed); border: 1px solid currentColor; }
.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; padding-bottom: 10px; }
.nav a { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--granite); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--pine); }
/* Sök (#34): rutan i menyraden och på söksidan */
.search { display: flex; gap: 6px; align-items: center; }
.search input { font: inherit; font-size: 1rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-width: 0; width: 100%; }
.search input:focus { outline: 2px solid var(--pine); outline-offset: 1px; border-color: var(--pine); }
.search .btn { padding: 7px 14px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.nav-search { margin-left: auto; flex: 0 1 260px; }
@media (max-width: 719px) { .nav-search { flex: 1 1 100%; margin-left: 0; padding-top: 4px; } }
.search-page .search { max-width: 520px; margin: 8px 0 16px; }
.search-page .search input { font-size: 1.1rem; padding: 10px 12px; }
.search-count { font-weight: 600; }
.hits { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.hits > li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.hits > li > a { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--pine); }
.hits p { margin: 4px 0 0; color: var(--granite); }
.hit-prices { margin: 6px 0 0; padding-left: 18px; }

/* Öppet/stängt-skylten i Besök oss */
.board { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; padding: 6px 12px; border-radius: var(--radius); margin: 0 0 12px; }
.board.is-open { background: var(--harvest); color: var(--harvest-ink); }
.board.is-closed { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Ringknappar */
.calls { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1em; }
.call { display: grid; padding: 10px 16px; border-radius: var(--radius); background: var(--pine); color: #fff; text-decoration: none; min-width: 200px; }
.call:hover { color: #fff; background: var(--pine-dark); }
.call-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.call-num { font-weight: 600; }
.call-note { font-size: 0.85rem; opacity: 0.8; }

/* Två kolumner på startsidan */
.two-col { display: grid; gap: 32px; padding: 40px 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) 320px; } .col-side { position: sticky; top: 16px; align-self: start; } }
.section-title { color: var(--pine); }
/* Besök oss är sidans gröna ruta: öppet/stängt, öppettider, ringknapp och adress */
.visit { background: var(--pine); color: #fff; border-radius: var(--radius); padding: 22px; }
.visit a { color: #fff; }
.visit .hours div { border-bottom-color: rgba(255, 255, 255, 0.22); }
.visit .hours-note, .visit .hours .closed dd { color: #cfe0d2; }
.visit .call { background: #fff; color: var(--ink); }
.visit .call:hover { background: var(--paper-2); color: var(--ink); }
.visit h2 { font-size: 1.6rem; margin-bottom: 0.4em; }
.visit .calls { margin: 14px 0; }
.visit .call { width: 100%; }
.visit .addr { margin-bottom: 0.4em; }
.addr { font-style: normal; }

/* Öppettider */
.hours { margin: 0 0 0.5em; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.hours .closed dd { color: var(--granite); font-weight: 500; }
.hours-note { font-size: 0.95rem; color: var(--granite); }

/* Nyheter */
.news { display: grid; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.news:first-of-type { border-top: 0; padding-top: 4px; }
.news-title { color: var(--ink); }
.news-until { font-size: 0.95rem; color: var(--granite); font-weight: 600; }
.news-lead .news-title { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
/* Bilderna visas hela och under varandra, så att varje bild blir så stor som möjligt (önskemål #6, #7) */
.news-images { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.news-images img { border-radius: var(--radius); width: 100%; background: var(--paper-2); }
/* Bildstorlek per erbjudande (2026-11-08). Stor = halva bredden som förut; Hel = under texten över hela bredden. */
.news.img-liten .news-images { max-width: 260px; }
.news.img-mellan .news-images { max-width: 420px; }
.news.img-hel .news-images { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 720px) {
  .news.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .news.img-mellan { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .news.img-liten { grid-template-columns: minmax(0, 1fr) 220px; }
  .news.img-hel { grid-template-columns: minmax(0, 1fr); }
}

/* Prislappen – sidans enda djärva grepp */
.tag {
  position: relative; background: var(--harvest); color: var(--harvest-ink);
  padding: 30px 22px 18px; margin: 18px 0 6px; max-width: 540px; line-height: 1.55; /* tätare rader (2026-11-08) */
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
  transform: rotate(-0.6deg);
}
.tag-hole { position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35); }
.tag table { width: 100%; border-collapse: collapse; }
.tag th, .tag td { padding: 6px 0; border-bottom: 1px dashed rgba(58, 44, 7, 0.35); vertical-align: baseline; }
.tag tr:last-child th, .tag tr:last-child td { border-bottom: 0; }
.tag th { text-align: left; font-weight: 500; padding-right: 12px; }
.tag td { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.tag-note { margin: 10px 0 0; font-size: 0.95rem; }

/* Sortiment */
.band { background: var(--paper-2); padding: 40px 0; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cat a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--pine); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.cat a:hover { border-left-color: var(--harvest); }
.cat-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
/* Ikon på varje sortimentsknapp (#29) */
.cat-head { display: flex; align-items: center; gap: 12px; }
.cat-badge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #e8f0e8; color: var(--pine); }
.cat a:hover .cat-badge { background: var(--pine); color: #fff; }
.cat-icon { display: block; }
.cat-desc { color: var(--granite); font-size: 0.98rem; }
.cat-sups { font-size: 0.9rem; color: var(--pine); font-weight: 600; }
.demo-note { background: #fff7df; border: 1px dashed var(--harvest); padding: 8px 12px; border-radius: var(--radius); font-size: 0.95rem; }
/* Beskrivningen överst i en kategori som ingress i fetstil (#28) */
.cat-lead p { font-weight: 600; font-size: 1.2rem; line-height: 1.5; }
/* Flera mindre bilder i en kategori (#26), storlek Små / Mellan / Stora */
.cat-gallery { display: grid; gap: 10px; margin: 0 0 1.4em; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cat-gallery.size-liten { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.cat-gallery.size-stor { grid-template-columns: minmax(0, 1fr); }
.cat-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.cat-gallery.size-stor img { aspect-ratio: auto; object-fit: contain; }

/* Om oss (#22, #30): inledning och bilder på var sin sida om texten */
.about-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem); line-height: 1.2; color: var(--pine); margin: 0 0 0.5em; }
.about-kicker { font-weight: 700; }
.about-text { max-width: 68ch; }
.about-pics { display: grid; gap: 12px; align-content: start; }
.about-pics img { width: 100%; border-radius: var(--radius); background: var(--paper-2); }
.about.has-img { display: grid; gap: 28px; }
@media (max-width: 899px) { .about-pics { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); } }
@media (min-width: 900px) {
  .about.has-img { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .about.two-sides { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); }
  .about.two-sides .about-pics.left { grid-column: 1; grid-row: 1; }
  .about.two-sides .about-text { grid-column: 2; grid-row: 1; }
  .about.two-sides .about-pics.right { grid-column: 3; grid-row: 1; }
}

/* Bonuscard (#35) */
.bonus { margin: 14px 0 0; }
.bonus, .bonus a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 0.95rem; }
.bonus img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: var(--radius); padding: 4px; flex: none; }
.bonus a:hover span { text-decoration: underline; }
.examples { padding-left: 1.2em; }
.examples li { margin: 4px 0; }
.crumb { margin-bottom: 4px; }
.ask { margin-top: 32px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* Leverantörer */
.suppliers-strip { padding: 40px 0 56px; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.logos a { display: grid; place-items: center; height: 112px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.logos img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }
.sup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.sup-list li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.sup-list h2 { font-size: 1.6rem; margin-bottom: 0.25em; }
.sup-logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 112px; display: grid; place-items: center; padding: 10px; }
.sup-logo img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }
.sup-cats { color: var(--granite); }
@media (max-width: 520px) { .sup-list li { grid-template-columns: 1fr; } }

/* Sidor */
.page { padding: 36px 0 56px; }
.lead { font-size: 1.2rem; color: var(--granite); }
.btn { display: inline-block; background: var(--pine); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--pine-dark); color: #fff; }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 6px; background: var(--paper-2); }
@media (max-width: 519px) { .map { aspect-ratio: 1; } } /* högre karta i mobilen (#20/#24) */
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-ask { height: 100%; display: grid; align-content: center; justify-items: start; gap: 4px; padding: 20px 24px;
  background: linear-gradient(135deg, var(--paper-2), #fff); }
.map-ask p { margin: 0 0 6px; max-width: 42ch; }
.map-ask-title { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.map-remember { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--granite); margin-top: 8px; }
.btn-quiet { background: #fff; color: var(--pine); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--paper-2); color: var(--pine-dark); }

/* Bilder som kan klickas upp (bildvisaren, public/lightbox.js) */
.photos a { display: block; cursor: zoom-in; }
.lightbox { padding: 0; border: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(15, 20, 17, 0.94); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(15, 20, 17, 0.94); }
.lb-stage { position: absolute; inset: 0 0 56px; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.lb-stage.zoomed img { cursor: grab; }
.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.lb-cap { flex: 1; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox button { font: 600 1.6rem/1 var(--body); color: #fff; background: rgba(255, 255, 255, 0.14); border: 0; border-radius: var(--radius); min-width: 48px; height: 44px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.26); }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -50px; height: 72px; z-index: 1; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* Fot */
.site-foot { background: var(--pine-dark); color: #dfe9df; padding: 36px 0; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: #fff; }
.site-foot .hours div { border-bottom-color: rgba(255, 255, 255, 0.15); }
.site-foot .hours-note, .site-foot .hours .closed dd { color: #b5cbb9; }
.social { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.social a:hover span { text-decoration: underline; }
.social svg { flex: none; }

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