:root {
  --color-page-bg: #f4efe7;
  --color-shell-bg: #fffaf2;
  --color-cream: #fbf7ef;
  --color-sand: #efe7da;
  --color-sage: #d9ded1;
  --color-green: #203f26;
  --color-text: #1d1b17;
  --color-muted: #635d52;
  --color-border: #d8cfc1;
  --color-white: #ffffff;
  --shadow-soft: 0 24px 70px rgba(42, 32, 21, 0.12);
  --max-width: 1180px;
  --font-main: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--color-page-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 70px auto 0;
  background: var(--color-shell-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  background: var(--color-white);
}
.logo img { height: 60px; width: auto; }
.main-nav { display: flex; gap: 38px; align-items: center; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.main-nav a { padding: 28px 0 24px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active, .nav-dropdown:hover .nav-parent { border-bottom-color: var(--color-text); }
.nav-dropdown { position: relative; }
.nav-parent span { font-size: 10px; margin-left: 4px; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--color-white);
  box-shadow: 0 18px 40px rgba(42, 32, 21, 0.14);
  border: 1px solid var(--color-border);
  padding: 10px;
  display: none;
  z-index: 20;
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-bottom: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 700;
}
.dropdown-menu a:hover { background: var(--color-cream); border-bottom: 0; }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.menu-button { display: none; background: transparent; border: 1px solid var(--color-border); padding: 9px 14px; font-weight: 700; }

.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  padding: 70px 90px;
  background: #fefaf3;
}
.eyebrow { margin: 0 0 10px; color: var(--color-green); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { color: var(--color-green); font-size: clamp(42px, 5vw, 68px); letter-spacing: -0.04em; }
h2 { color: var(--color-green); font-size: clamp(28px, 3vw, 38px); }
.hero p:not(.eyebrow) { max-width: 430px; font-size: 18px; margin: 24px 0 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1.5px solid var(--color-green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.button.primary { background: var(--color-green); color: var(--color-white); }
.button.secondary { background: transparent; color: var(--color-text); }
.hero-image img { width: 100%; filter: drop-shadow(0 24px 26px rgba(0,0,0,.18)); }

.section { padding: 48px 90px 72px; }
.products { background: #fefaf3; }
.products h2 { text-align: center; margin-bottom: 34px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.category-card {
  display: block;
  transition: transform 0.22s ease;
}
.category-card:hover,
.category-card:focus-visible {
  transform: scale(1.04);
}
.category-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 22px;
}
.category-card h3, .product-card h3, .value-card h3 { color: var(--color-green); font-size: 18px; text-transform: uppercase; }
.category-card p { margin: 14px 0 12px; }
.category-card span { font-size: 32px; }

.values { background: var(--color-sand); display: grid; grid-template-columns: repeat(5, 1fr); padding: 40px 55px; text-align: center; }
.value-card { padding: 0 22px; border-right: 1px solid var(--color-border); }
.value-card:last-child { border-right: 0; }
.value-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 14px;
  background: transparent;
}
.value-card h3 { font-size: 13px; }
.value-card p { font-size: 13px; margin: 10px 0 0; }

.favorites { background: var(--color-sage); display: grid; grid-template-columns: 300px 1fr; gap: 34px; padding: 54px 60px; align-items: center; }
.favorites-intro h2 { margin-bottom: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.product-card { background: var(--color-white); border-radius: 6px; padding: 20px; min-height: 250px; }
.product-card img { height: 128px; width: 100%; object-fit: contain; margin-bottom: 16px; }
.product-card h3 { font-size: 13px; }
.product-card p { margin: 7px 0 0; font-size: 13px; }

.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: var(--color-cream); }
.about > img { width: 100%; height: 360px; object-fit: cover; }
.about > div { padding: 55px 70px; }
.about p:not(.eyebrow) { margin: 16px 0 24px; }
.resellers {
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 48px 70px;
  border-top: 1px solid var(--color-border);
}
.resellers p:not(.eyebrow) { max-width: 650px; margin: 16px 0 0; }
.footer { width: min(var(--max-width), calc(100% - 40px)); margin: 0 auto 70px; padding: 30px; display: flex; justify-content: space-between; color: var(--color-muted); }

@media (max-width: 900px) {
  .site-shell { width: 100%; margin-top: 0; }
  .site-header { padding: 0 24px; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: white; flex-direction: column; padding: 18px; gap: 12px; z-index: 30; }
  .main-nav.open { display: flex; }
  .nav-dropdown { width: 100%; text-align: center; }
  .dropdown-menu { position: static; transform: none; display: block; box-shadow: none; border: 0; padding: 0; margin-top: 4px; }
  .dropdown-menu a { padding: 8px 0; font-size: 13px; }
  .menu-button { display: inline-flex; }
  .hero, .favorites, .about { grid-template-columns: 1fr; }
  .resellers { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .hero, .section, .favorites, .about > div { padding: 40px 24px; }
  .category-grid, .product-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 26px; }
  .value-card { border-right: 0; border-bottom: 1px solid var(--color-border); padding-bottom: 22px; }
}

.bar-detail { min-height: 520px; }

/* Fix: stoppa sidoförskjutning när mobilmenyn öppnas på bars-undersidor */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

.site-shell,
.site-header {
  max-width: 100%;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    width: 100%;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: auto;
  }
}


/* Fix: behåll samma viewportbredd mellan startsida och barsidor.
   Förhindrar att den centrerade layouten hoppar i sidled när scrollbar visas/döljs. */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
}
