/* Self-hosted variable fonts (latin subset covers å, ä, ö) */
@font-face{
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(assets/fonts/fraunces-latin.woff2) format('woff2');
}
@font-face{
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-latin.woff2) format('woff2');
}

:root{
  /* Varumärkesfärger */
  --wine: #522834;
  --wine-deep: #3F1C27;
  --beige: #E3E2DC;
  --cream: #F5EFE3;
  --gold: #E1A43A;
  --gold-light: #EFC15F;
  --cookie: #6B3E1F;
  --ink: #2A1A1D;
  --muted: #6B5F58;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --maxw: 1040px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 80px; background-color: var(--wine-deep); background-image: linear-gradient(var(--wine) 0 50vh, transparent 50vh); background-repeat: no-repeat; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--wine-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; }
img{ display: block; max-width: 100%; height: auto; }
p{ margin: 0; }
h1, h2, h3{ font-family: var(--font-display); font-weight: 900; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2{ font-size: clamp(2rem, 5vw, 3.2rem); color: var(--wine); margin-bottom: 32px; }
h3{ font-weight: 700; }

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

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main{ background: var(--cream); }
section{ padding: 80px 0; position: relative; }

.skip{ position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 200; border-radius: 6px; }
.skip:focus{ left: 8px; }

/* ---------- Kaka-motiv ---------- */
.cookie{
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
}
.cookie i{ position: absolute; border-radius: 50%; background: var(--cookie); }
.cookie i:nth-child(1){ left: 20%; top: 34%; width: 13%; height: 13%; }
.cookie i:nth-child(2){ left: 48%; top: 16%; width: 9%; height: 9%; }
.cookie i:nth-child(3){ left: 40%; top: 54%; width: 7%; height: 7%; }
.cookie i:nth-child(4){ left: 64%; top: 46%; width: 12%; height: 12%; }
.cookie i:nth-child(5){ left: 28%; top: 72%; width: 10%; height: 10%; }

/* ---------- Meny ---------- */
header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--wine);
  padding: 12px 0;
}
nav{ display: flex; align-items: center; justify-content: space-between; }
.logo img{ height: 44px; width: auto; }
.nav-links{ display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a{ color: var(--cream); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover{ color: var(--gold-light); }
.nav-cta{
  background: var(--gold);
  color: var(--ink) !important;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover{ background: var(--gold-light); }
.nav-cta-mobile{ display: none; text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.nav-toggle{ display: none; background: none; border: 0; width: 32px; height: 22px; position: relative; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span{ top: 10px; }
.nav-toggle span::before{ top: -8px; }
.nav-toggle span::after{ top: 8px; }
.nav-toggle.open span{ background: transparent; }
.nav-toggle.open span::before{ transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after{ transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{ padding: 150px 0 110px; overflow: hidden; }
.cookie-hero{ width: min(48vw, 560px); aspect-ratio: 1; right: -9vw; top: 130px; }
.hero .wrap{ position: relative; }
.hero h1 span{ display: block; }
.h1-main{ font-size: clamp(3.4rem, 11vw, 7.25rem); line-height: 0.9; letter-spacing: -0.035em; max-width: 7.5ch; }
.vh{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-sub{ margin-top: 26px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.35; max-width: 22em; }
.hero-actions{ margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn{
  display: inline-block; padding: 16px 32px; border-radius: 999px;
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  border: 3px solid var(--wine);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--wine); color: #fff; }
.btn-primary:hover{ background: var(--wine-deep); }
.btn-outline{ color: var(--wine); }
.btn-outline:hover{ background: rgba(82,40,52,0.08); }

/* ---------- 404 ---------- */
.notfound{ min-height: calc(100vh - 78px); padding-top: 170px; }
.nf-code{
  font-family: var(--font-display); font-weight: 900; color: var(--cookie);
  font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.08em; margin-bottom: 14px;
}
.notfound .h1-main{ max-width: 9ch; color: var(--wine); }

/* ---------- Påsar (id/klass heter fortfarande lador) ---------- */
.lador{ padding-top: 40px; }
.price-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card{
  border: 3px solid var(--wine); border-radius: 28px; padding: 26px 32px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px;
}
.price-card h3{ font-size: clamp(1.6rem, 3vw, 2rem); }
.price-card p:not(.price){ color: var(--muted); margin-top: 2px; }
.price{
  grid-column: 2; grid-row: 1 / span 2;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1; color: var(--wine); white-space: nowrap;
}
.price-card-dark{ background: var(--wine); color: #fff; }
.price-card-dark p:not(.price){ color: rgba(255,255,255,0.85); }
.price-card-dark .price{ color: var(--gold-light); }
.note{ margin-top: 24px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Sorter ---------- */
.sorter{ background: var(--beige); }
.sort-grid{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sort-grid li{
  display: flex; align-items: center; gap: 18px;
  border: 3px solid var(--wine); border-radius: 24px; padding: 18px 22px;
  font-weight: 600; font-size: 1.35rem; line-height: 1.2;
}
.sort-grid small{ display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.sort-grid .seasonal{ grid-column: 1 / -1; border-style: dashed; }
.dot{ flex: none; width: 56px; height: 56px; }

/* ---------- Så beställer du ---------- */
.steps{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li{ display: flex; gap: 16px; align-items: flex-start; font-size: 1.15rem; line-height: 1.35; }
.num{
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.15rem;
}
.delivery{ margin-top: 40px; padding-top: 24px; border-top: 3px solid rgba(82,40,52,0.35); font-size: 1.15rem; }

/* ---------- Om oss ---------- */
/* Samma kräm som Vanliga frågor: ett lugnt block mellan Beställ nu och sidfoten */
.om-oss{ padding-bottom: 0; }
.om-oss p{ max-width: 40em; font-size: 1.2rem; }
.om-oss p + p{ margin-top: 1em; }

/* ---------- Vanliga frågor ---------- */
.faq-list{ max-width: 44em; }
.faq-list > div{ padding: 20px 0; border-top: 3px solid rgba(82,40,52,0.35); }
.faq-list > div:last-child{ border-bottom: 3px solid rgba(82,40,52,0.35); }
.faq-list h3{ font-size: clamp(1.25rem, 2.6vw, 1.5rem); color: var(--wine); margin-bottom: 6px; }
.faq-list p{ font-size: 1.1rem; }

/* ---------- Kontakt ---------- */
/* Samma vinröd som menyn och Stor påse, så att blocket skiljer sig från sidfoten */
.kontakt{ background: var(--wine); color: #fff; }
.kontakt h2{ color: var(--gold-light); }
.kontakt-grid{ display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.kontakt-info{ list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-weight: 600; font-size: 1.2rem; }
.kontakt-info a{ text-decoration: none; border-bottom: 2px solid var(--gold); }
.kontakt-info a:hover{ color: var(--gold-light); }
.qr{ justify-self: end; text-decoration: none; text-align: center; }
.qr img{ width: 200px; height: 200px; background: #fff; border-radius: 20px; padding: 9px; margin: 0 auto 12px; }
.qr span{ font-weight: 600; font-size: 0.9rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--beige); }

/* ---------- Sidfot ---------- */
footer{ background: var(--wine-deep); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-row{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-row, .footer-row a{ color: rgba(245,239,227,0.7); font-size: 0.85rem; }
.footer-row a{ text-decoration: none; }
.footer-row a:hover{ color: var(--gold-light); }

/* ---------- Responsivt ---------- */
@media (max-width: 860px){
  section{ padding: 60px 0; }
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--wine);
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 22px 24px 30px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open{ opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-toggle{ display: block; }
  /* Beställ-knappen ligger bredvid hamburgaren, inte gömd i menyn */
  .nav-cta-item{ display: none; }
  .nav-cta-mobile{ display: inline-block; margin-left: auto; margin-right: 14px; padding: 8px 16px; }
  .hero{ padding: 120px 0 120px; }
  .cookie-hero{ width: 240px; right: -80px; top: auto; bottom: -70px; }
  .price-grid, .sort-grid, .steps, .kontakt-grid{ grid-template-columns: 1fr; }
  .qr{ justify-self: center; }
}
@media (max-width: 480px){
  .wrap{ padding: 0 18px; }
  .logo img{ height: 38px; }
  .price-card{ padding: 22px; }
}

