/* Krogkoncept – statisk version av krogkoncept.se */

/* Typsnitt – lokalt hostade (latin-subset, täcker å ä ö) */
@font-face {
  font-family: 'Questrial';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/questrial-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;   /* variabelt typsnitt */
  font-display: swap;
  src: url(../fonts/playfair-display.woff2) format('woff2');
}

:root {
  --pink: #ffa69e;
  --coral: #ff686b;
  --teal: #84dcc6;
  --mint: #7bdcb5;
  --blue: #0170b9;
  --pale-pink: #f78da7;
  --font-body: 'Questrial', sans-serif;
  --font-head: 'Playfair Display', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: hidden; width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
}
h1 { font-size: 40px; line-height: 1.4; }
h2 { font-size: 32px; line-height: 1.3; }
h2 a { color: #e8e8e8; }
h2 a:hover { color: #fff; }

p { margin: 0 0 1.6em; }

::selection { background: var(--pink); color: #000; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; clip: auto; padding: 10px 16px;
  background: #fff; color: #000;
}

/* ---------- Meny (hamburgare på alla skärmstorlekar) ---------- */

.menu-toggle {
  position: fixed;
  top: 0;
  right: 10px;
  z-index: 110;
  width: 68px;
  height: 57px;
  padding: 0 14px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 0 1px #aaa);
}
.menu-toggle svg { width: 40px; height: 40px; fill: currentColor; display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle:focus-visible { outline: 1px dotted #fff; }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  padding: 15px 0 50vh 5px;
  background: #000000ee;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .25s, visibility .25s, transform .25s;
}
.site-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu a {
  display: flex;
  align-items: center;
  padding: 7px 20px;
  font-size: 17.6px;
  line-height: 44px;
  color: #fff;
}
.site-menu a:hover,
.site-menu a[aria-current="page"] { color: var(--teal); }
.site-menu a:focus { outline: none; }
.site-menu a:focus-visible { outline: 1px dotted #fff; outline-offset: -4px; }
.site-menu .menu-home { padding: 5px 0 20px; font-weight: 800; }
.site-menu .menu-home a,
.site-menu .menu-home a[aria-current="page"] { color: #fff; }
.site-menu .menu-home a:hover { color: var(--teal); }
.site-menu .menu-home img { width: 32px; height: 32px; margin-right: 8px; }
.site-menu .menu-mail a { color: var(--pink); }
.site-menu .menu-mail a:hover { color: var(--teal); }
body.menu-open { overflow: hidden; }

/* ---------- Helskärmssektioner ---------- */

main { container-type: inline-size; }
.panel, .band-mint { --base: 100cqw; }
body.concept .panel,
body.concept .band-mint { --base: min(100cqw, 1000px); }

.panel {
  position: relative;
  min-height: max(101vh, 400px);
  /* Padding styrs per sektion med --pt/--pr/--pb/--pl (andelar, t.ex. .25)
     plus -tab/-mob-varianter, multiplicerat med --base. Originalet räknar
     procent mot hela bredden på startsidan men mot en 1000px-container
     på konceptsidorna. */
  padding:
    calc(var(--pt, .25) * var(--base))
    calc(var(--pr, .25) * var(--base))
    calc(var(--pb, .10) * var(--base))
    calc(var(--pl, .10) * var(--base));
  background-color: #222;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.panel::before {        /* färg-/tonlager */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay, transparent);
}
.panel > .inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}
.panel.color { background-image: none; }

/* Startsidan: fast höjd som originalet; innehåll som inte ryms
   flödar ut i paddingen i stället för att göra sektionen högre */
.panel.fixed { height: max(101vh, 400px); min-height: 0; }
.panel.fixed.center { display: flex; align-items: center; }
.panel.fixed.center > .inner { width: 100%; }

/* Startsidans sektioner har innehåll i en kolumn med egen padding.
   Kolumnen är flex, så pressraderna sträcks ut till full bredd i den
   men förblir textbreda utanför (som på originalet). */
.panel .col { display: flex; flex-direction: column; padding: 20px 10px; }
.panel .col .logo { display: flex; justify-content: center; }

/* Logotyper i sektionerna */
.panel .logo { margin: 0; }
.panel .logo.right { display: flex; justify-content: flex-end; }
.panel .logo.right img { margin-left: 24px; }

/* Pressrader på startsidan */
.bgtextblack,
.bgtextblackurl {
  display: inline-block;
  padding: 5px 10px 4px;
  background: #ffffffaa;
  color: #000;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 3px;
  margin: 0 1px 5px 0;
}
.bgtextblackurl {
  padding: 5px 12px 4px;
  background: var(--pink);
  margin: 0 0 1.6em;
}
.bgtextblackurl a:hover { color: #fff; }

.spacer-20 { height: 20px; }

/* Rollbeskrivning (färgad sektion på konceptsidorna) */
.panel.color h1 { color: #fff; }

/* Sidfötter och små färgband */
.band {
  position: relative;
  padding: 10px;
  text-align: center;
  color: var(--pale-pink);
}
.band p { margin: 0 0 1.6em; }
.band a { color: var(--pale-pink); }
.band a:hover { color: #fff; }
.band.blue { background: var(--blue); }

.band-mint {
  background: var(--mint);
  padding: calc(.05 * var(--base)) calc(.25 * var(--base)) calc(.05 * var(--base)) calc(.10 * var(--base));
  color: var(--pale-pink);
}
.band-mint p { font-size: 8px; line-height: 1.4; margin: 0 0 1.6em; }
.band-mint a { color: var(--pale-pink); }

.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  line-height: 1.857;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal); }

/* ---------- Responsivt ---------- */

@media (max-width: 976px) {
  .panel { padding-top: calc(var(--pt-tab, var(--pt, .25)) * var(--base)); }
}

@media (max-width: 767px) {
  .panel {
    padding-top: calc(var(--pt-mob, var(--pt-tab, var(--pt, .25))) * var(--base));
    padding-right: calc(var(--pr-mob, var(--pr, .25)) * var(--base));
    padding-bottom: calc(var(--pb-mob, var(--pb, .10)) * var(--base));
    padding-left: calc(var(--pl-mob, var(--pl, .10)) * var(--base));
  }
}

@media (max-width: 768px) {
  p { font-size: 1.2em; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .band-mint p { font-size: 8px; }
}
