/* =========================================================
   Joppes Mat – stilmall
   Färger, typsnitt och mått kommer från den grafiska profilen.
   ========================================================= */

/* ---------- 0. Typsnitt (ligger lokalt i /fonts, inget hämtas från Google) ---------- */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

/* ---------- 1. Profilens tokens ---------- */
:root {
  /* Färger (tema Natt) */
  --bakgrund: #13110F;
  --yta: #1C1916;
  --text: #F4EDE1;
  --text-brod: #D9D0C2;
  --text-dampad: #B5AA99;
  --chili: #FF5B1F;
  --chili-text: #FF5B1F;
  --pa-chili: #13110F;
  --linje: rgba(244, 237, 225, 0.14);
  --faltkant: #8F8577;
  --fokus: #F4EDE1;
  --fel: #FFB59A;

  /* Typsnitt */
  --font-display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: Manrope, "Helvetica Neue", system-ui, sans-serif;

  /* Avstånd */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-15: 120px;

  /* Hörnradier */
  --radius-falt: 10px;
  --radius-bild-sm: 18px;
  --radius-kort: 24px;
  --radius-bild: 28px;
  --radius-pill: 999px;

  --max: 1360px;
  --gutter: clamp(16px, 3vw, 24px);
  color-scheme: dark;
}

/* Ljus sektion (tema Dag) */
.tema-dag {
  --bakgrund: #F4EDE1;
  --text: #13110F;
  --text-brod: #3A332C;
  --text-dampad: #5A5045;
  --chili-text: #A83A0D;
  --fokus: #13110F;
  color-scheme: light;
}

/* ---------- 2. Grund ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bakgrund);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--chili-text); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 4px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 14px 22px; border-radius: var(--radius-pill);
  background: var(--text); color: var(--bakgrund); font-weight: 700;
}
.skip:focus { top: 16px; color: var(--bakgrund); }

main { overflow-x: clip; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- 3. Typografi ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
/* Rubriker med å, ä, ö har radavstånd minst 1 så att prickarna syns. */
.rubrik-1 { font-size: clamp(52px, 6vw, 92px); line-height: 1; }
.rubrik-2 { font-size: 38px; line-height: 1; }
/* Smala mobiler: långa ord som "kompromisser" ska få plats utan att brytas */
@media (max-width: 380px) {
  .rubrik-1 { font-size: 44px; }
}
.overrubrik {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--chili-text);
}
.ingress { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-brod); text-wrap: pretty; }
.brod { color: var(--text-dampad); }
.etikett {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-dampad);
}
.rubrikblock { display: flex; flex-direction: column; gap: var(--space-2); }

/* ---------- 4. Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border-radius: var(--radius-pill);
  font: 700 17px/1 var(--font-sans); border: 0; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primar, .btn--primar:hover { background: var(--chili); color: var(--pa-chili); }
.btn--sekundar { background: transparent; color: var(--text); border: 1.5px solid var(--faltkant); }
.btn--sekundar:hover { background: var(--text); color: var(--bakgrund); }
.btn--liten { min-height: 46px; padding: 0 24px; font-size: 15px; }
.textlank {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 700; color: var(--chili-text);
}
.textlank svg, .btn svg { flex: none; }

/* ---------- 5. Logotyp ---------- */
.logo { position: relative; display: inline-block; padding: 8px 14px 9px; color: var(--text); }
.logo::before, .logo::after { content: ""; position: absolute; }
.logo::before { left: 0; top: 0; width: 42%; height: 60%; border-top: 3px solid var(--chili); border-left: 3px solid var(--chili); }
.logo::after { right: 0; bottom: 0; width: 30%; height: 50%; border-bottom: 3px solid var(--chili); border-right: 3px solid var(--chili); }
.logo__ord { display: block; font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; }
.logo__tag { display: block; margin-top: 5px; font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: 0.34em; text-transform: uppercase; }
.logo:hover { color: var(--text); }
.logo--stor { padding: 14px 22px 15px; }
.logo--stor::before, .logo--stor::after { border-width: 4px; }
.logo--stor::before { width: 44%; height: 58%; }
.logo--stor::after { width: 32%; height: 48%; }
.logo--stor .logo__ord { font-size: clamp(40px, 4.4vw, 60px); line-height: .85; }
.logo--stor .logo__tag { margin-top: 10px; font-size: 12px; }

/* ---------- 6. Sidhuvud och meny ---------- */
.sidhuvud {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 17, 15, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linje);
}
.nav { display: flex; align-items: center; gap: var(--space-3); min-height: 84px; }
.nav__lankar { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.nav__lankar a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav__knapp { display: none; }

@media (max-width: 960px) {
  .nav { justify-content: space-between; min-height: 76px; }
  .nav__knapp {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: var(--radius-pill);
    background: transparent; color: var(--text); border: 1.5px solid var(--faltkant); cursor: pointer;
  }
  .nav__knapp .ikon-stang { display: none; }
  .nav__knapp[aria-expanded="true"] .ikon-oppna { display: none; }
  .nav__knapp[aria-expanded="true"] .ikon-stang { display: block; }
  .nav__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bakgrund); border-bottom: 1px solid var(--linje);
    padding: var(--space-2) var(--gutter) var(--space-4);
  }
  .nav__panel[hidden] { display: none; }
  .nav__lankar { flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 var(--space-3); }
  .nav__lankar a { display: flex; min-height: 56px; font-size: 18px; border-bottom: 1px solid var(--linje); }
  .nav__panel .btn { width: 100%; }
}
@media (min-width: 961px) {
  .nav__panel { display: contents; }
  .nav__panel[hidden] { display: contents; }
}

/* ---------- 7. Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
  gap: var(--space-6); align-items: center;
  padding-block: var(--space-6) 72px;
}
.hero__text { display: flex; flex-direction: column; gap: var(--space-4); }
.hero__ogonbryn { display: flex; align-items: center; gap: 12px; }
.hero__ogonbryn::before { content: ""; width: 36px; height: 2px; background: var(--chili); }
.hero h1 { font-size: clamp(72px, 10vw, 168px); line-height: .84; display: flex; flex-direction: column; }
.hero h1 .chili { color: var(--chili-text); }
.knapprad { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bild { position: relative; min-height: clamp(440px, 50vw, 640px); }
.hero__stor {
  position: absolute; top: 0; right: 0; width: 64%; height: 100%;
  object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-bild);
}
.hero__liten {
  position: absolute; left: 0; bottom: 8%; width: 50%; height: 56%;
  object-fit: cover; object-position: 50% 40%;
  border-radius: var(--radius-kort); border: 6px solid var(--bakgrund);
}
.stampel {
  position: absolute; left: 14%; top: 10%;
  width: clamp(120px, 12vw, 168px); aspect-ratio: 1;
  border-radius: 50%; background: var(--chili); color: var(--pa-chili);
  display: grid; place-items: center;
}
.stampel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stampel__text { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 2.3vw, 34px); line-height: 1; text-transform: uppercase; text-align: center; }
/* Mellanstora skärmar (t.ex. liggande iPad): smalare bildspalt, så den lilla bilden får inte täcka Joppe */
@media (min-width: 1136px) and (max-width: 1800px) {
  .hero__stor { width: 74%; }
  .hero__liten { width: 40%; height: 44%; bottom: 3%; }
  .stampel { left: 3%; top: 3%; width: clamp(110px, 10vw, 150px); }
}
/* Mindre skärmar (text och bilder under varandra): lugnare bildkollage */
@media (max-width: 1135px) {
  .hero__bild { min-height: 0; height: clamp(420px, 70vw, 640px); }
  .hero__stor { width: 80%; }
  .hero__liten { width: 38%; height: 48%; bottom: 0; }
  .stampel { left: 2%; top: 3%; width: clamp(96px, 17vw, 150px); }
  .stampel__text { font-size: clamp(19px, 3.2vw, 30px); }
}
.stampel__ring { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 1.6px; text-transform: uppercase; fill: var(--pa-chili); }

/* ---------- 8. Ingrediensband ---------- */
.band {
  background: var(--chili); color: var(--pa-chili);
  padding: 20px var(--gutter); transform: rotate(-1.2deg); margin: 8px -20px 0;
}
.band ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(20px, 1.9vw, 27px); line-height: 1.35; letter-spacing: 0.05em;
}
/* Snedstrecket sitter efter ordet, så det hamnar sist på raden när texten bryts */
.band li { white-space: nowrap; }
.band li:not(:last-child)::after { content: "/"; margin-left: 18px; }

/* ---------- 9. Priser ---------- */
.priser { padding-block: 112px 40px; }
.priser__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); border-top: 1px solid var(--linje); }
.pris { display: flex; flex-direction: column; gap: 10px; padding: 36px 32px 8px 0; }
.pris + .pris { padding-left: 32px; border-left: 1px solid var(--linje); }
.pris__siffra { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; color: var(--chili-text); }
.pris__namn { font-size: 17px; font-weight: 700; }
.pris p { font-size: 15px; line-height: 1.55; color: var(--text-dampad); }
@media (max-width: 640px) {
  .pris, .pris + .pris { padding: 28px 0 8px; border-left: 0; }
  .pris + .pris { border-top: 1px solid var(--linje); }
}

/* ---------- 10. Signaturmackan ---------- */
.signatur {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
  gap: var(--space-8); align-items: center; padding-block: var(--space-12);
}
.signatur__bild { position: relative; }
.signatur__bild img { width: 100%; height: clamp(420px, 45vw, 640px); object-fit: cover; object-position: 50% 65%; border-radius: var(--radius-bild); }
.signatur__etikett {
  position: absolute; left: 24px; bottom: 24px; padding: 14px 20px; border-radius: 14px;
  background: rgba(19, 17, 15, 0.86); color: var(--text);
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.signatur__text { display: flex; flex-direction: column; gap: 28px; }
.ingredienser {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  column-gap: var(--space-4); border-top: 1px solid var(--linje); margin-top: 8px;
}
.ingredienser li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--linje); font-size: 18px; font-weight: 600; }
.ingredienser span { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--chili-text); }

/* ---------- 11. Paket ---------- */
.paket { background: var(--yta); padding-block: 112px; }
.paket__topp { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3); margin-bottom: 56px; }
.paket__topp .ingress { max-width: 420px; }
.kortrad { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: var(--space-3); }
.kort {
  display: flex; flex-direction: column; gap: 22px; padding: var(--space-4);
  border-radius: var(--radius-kort); background: var(--bakgrund); border: 1px solid var(--linje);
  transition: transform .25s ease, border-color .25s ease;
}
.kort:hover { transform: translateY(-4px); border-color: rgba(255, 91, 31, 0.6); }
.kort__topp { display: flex; justify-content: space-between; align-items: flex-start; }
.kort__topp img, .kort__illustration { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; }
.tagg {
  padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid rgba(244, 237, 225, 0.3);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.tagg--fylld { background: var(--chili); color: var(--pa-chili); border-color: var(--chili); }
.kort p { flex-grow: 1; color: var(--text-dampad); }

/* ---------- 12. Event ---------- */
.event { position: relative; min-height: 720px; display: flex; align-items: flex-end; }
.event > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.event .wrap { position: relative; width: 100%; padding-block: var(--space-12); }
.event__ruta {
  max-width: 720px; display: flex; flex-direction: column; gap: 28px;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-bild); background: rgba(19, 17, 15, 0.88);
}
.event h2 { font-size: clamp(40px, 5vw, 76px); line-height: 1; }
/* Större skärmar: bilden håller sig inom sidans bredd så att den inte blir suddig */
@media (min-width: 900px) {
  .event {
    width: calc(100% - 2 * var(--gutter));
    max-width: calc(var(--max) - 2 * var(--gutter));
    margin: var(--space-12) auto 0;
    border-radius: var(--radius-bild);
    overflow: hidden;
  }
}
.event h2 span { color: var(--chili-text); }

/* ---------- 13. Steg ---------- */
.steg { padding-block: var(--space-15) 104px; }
.steg__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; margin-top: 56px; }
.steg__lista li { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 2px dashed rgba(244, 237, 225, 0.3); }
.steg__nr { font-family: var(--font-display); font-weight: 900; font-size: 96px; line-height: .85; color: var(--chili-text); }
.steg h3 { font-size: 22px; font-weight: 700; }
.steg p { color: var(--text-dampad); }

/* ---------- 14. Galleri ---------- */
.galleri { padding-block: var(--space-3) var(--space-15); }
.galleri__rutnat {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  grid-auto-rows: 280px; grid-auto-flow: dense; gap: var(--space-2); margin-top: var(--space-6);
}
.galleri__rutnat img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-bild-sm); }
@media (min-width: 900px) {
  .g-hog { grid-row: span 2; }
  .g-bred { grid-column: span 2; }
}

/* ---------- 15. Om Joppe ---------- */
.om { background: var(--bakgrund); color: var(--text); padding-block: 112px; }
.om__rutnat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: var(--space-8); align-items: center; }
.om img { width: 100%; height: clamp(440px, 45vw, 640px); object-fit: cover; object-position: 45% 30%; border-radius: var(--radius-bild); }
.om__text { display: flex; flex-direction: column; gap: var(--space-3); }
.om h2 { font-size: clamp(64px, 9vw, 140px); line-height: 1; }
.om p { max-width: 560px; font-size: 19px; line-height: 1.65; color: var(--text-brod); text-wrap: pretty; }
.om__citat { font-family: var(--font-serif); font-style: italic; font-size: 34px; line-height: 1.2; }

/* ---------- 16. Kontakt ---------- */
.kontakt {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: var(--space-8); padding-block: var(--space-15);
}
.kontakt__info { display: flex; flex-direction: column; gap: var(--space-3); }
.kontakt h2 { font-size: clamp(56px, 8vw, 128px); line-height: 1; }
.kontakt h2 span { color: var(--chili-text); }
.kontakt__epost { font-size: 17px; font-weight: 600; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.kontakt__epost + .kontakt__epost { margin-top: calc(var(--space-3) * -1 + 4px); }
.ikon-insta { flex: none; color: var(--chili-text); }
.kontakt__info img { margin-top: var(--space-2); width: 100%; max-width: 520px; height: 380px; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-kort); }

.formular {
  display: flex; flex-direction: column; gap: 20px; align-self: start;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-bild);
  background: var(--yta); border: 1px solid var(--linje);
}
.formular h3 { font-size: 22px; font-weight: 700; }
.formular__info { font-size: 14px; color: var(--text-brod); }
.falt-rad { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.falt { display: flex; flex-direction: column; gap: 8px; }
.falt label { font-size: 14px; font-weight: 600; color: var(--text-brod); }
.falt input, .falt textarea {
  width: 100%; background: var(--bakgrund); color: var(--text);
  border: 1.5px solid var(--faltkant); border-radius: var(--radius-falt);
  padding: 16px 18px; font: 500 16px/1.4 var(--font-sans);
}
.falt textarea { resize: vertical; min-height: 160px; }
.falt input:focus-visible, .falt textarea:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-color: var(--fokus); }
.falt [aria-invalid="true"] { border-color: var(--fel); border-width: 2px; }
.falt__fel { font-size: 14px; font-weight: 600; color: var(--fel); display: flex; gap: 6px; align-items: center; }
.falt__fel:empty { display: none; }
.falt__fel::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--fel); color: var(--bakgrund); font-size: 12px; font-weight: 800; }
.honung { position: absolute; left: -9999px; }
.formular__status { font-size: 16px; font-weight: 600; padding: 14px 18px; border-radius: var(--radius-falt); }
.formular__status:empty { display: none; }
.formular__status.ok { background: rgba(155, 214, 140, 0.14); color: #CDEBC4; border: 1px solid #9BD68C; }
.formular__status.fel { background: rgba(255, 181, 154, 0.12); color: var(--fel); border: 1px solid var(--fel); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- 17. Sidfot ---------- */
.sidfot { border-top: 1px solid var(--linje); }
.sidfot .wrap { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; padding-block: var(--space-8) 40px; }
.sidfot nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; }
.sidfot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
.sidfot__ikoner { display: flex; justify-content: center; gap: 16px; }
.sidfot__ikoner a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--faltkant); color: var(--text);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.sidfot__ikoner a:hover { background: var(--chili); border-color: var(--chili); color: var(--pa-chili); }
.sidfot__ikoner a:focus-visible { border-radius: 50%; }
.sidfot__bolag { width: 100%; display: flex; flex-direction: column; gap: 10px; padding-top: var(--space-3); border-top: 1px solid var(--linje); }
.sidfot__bolag p:last-child { font-size: 14px; color: var(--text-dampad); }
.sidfot__bolag a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 18. Hover och rörelse ---------- */
@media (hover: none) {
  .btn:hover, .kort:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .kort:hover { transform: none; }
}
