/*
  Stil Kängan - V1 Förfinad Klassiker
  Preview av Netiqo
  Mobile-first, varma jordnära toner, mossgrön accent.
*/

:root {
  --bg-cream: #f7f2ea;
  --bg-warm: #efe6d8;
  --ink: #1f1a16;
  --ink-soft: #5b524a;
  --accent: #6b7559;
  --accent-deep: #4a5440;
  --gold: #b89968;
  --line: rgba(31, 26, 22, 0.12);
  --shadow-sm: 0 1px 2px rgba(31, 26, 22, 0.06);
  --shadow-md: 0 8px 28px rgba(31, 26, 22, 0.08);
  --shadow-lg: 0 18px 48px rgba(31, 26, 22, 0.12);
  --radius: 14px;
  --radius-lg: 28px;
  --container: 1240px;
  --header-h: 72px;
  --banner-h: 38px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-cream);
  overflow-x: hidden;
  padding-top: calc(var(--header-h) + var(--banner-h));
}

body.banner-closed {
  padding-top: var(--header-h);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.05rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p {
  color: var(--ink-soft);
}

em {
  font-style: italic;
  color: var(--accent-deep);
}

.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.eyebrow--light {
  color: #ffffff;
  opacity: 1;
}

/* Preview banner */
.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--banner-h);
  background: var(--ink);
  color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  padding: 0 44px 0 22px;
  letter-spacing: 0.02em;
}

.preview-banner p {
  color: inherit;
  margin: 0;
}

.preview-banner__close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bg-cream);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.25s var(--ease);
}

.preview-banner__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.banner-closed .preview-banner {
  display: none;
}

/* Header */
.site-header {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

body.banner-closed .site-header {
  top: 0;
}

.site-header.is-scrolled {
  background: rgba(247, 242, 234, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
}

.logo__stil {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
}

.logo__sep {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 300;
}

.logo__kangan {
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.primary-nav ul {
  display: flex;
  gap: 38px;
  align-items: center;
}

.primary-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.primary-nav a:hover {
  color: var(--accent-deep);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.icon-btn:hover {
  background: rgba(107, 117, 89, 0.12);
  color: var(--accent-deep);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 50%;
}

.hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-cream);
}

.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(74, 84, 64, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg-cream);
}

.btn--small {
  padding: 11px 22px;
  font-size: 0.78rem;
  background: var(--accent-deep);
  color: var(--bg-cream);
}

.btn--small:hover {
  background: var(--ink);
}

.btn--outline-light {
  background: transparent;
  color: var(--bg-cream);
  border-color: var(--bg-cream);
}

.btn--outline-light:hover {
  background: var(--bg-cream);
  color: var(--accent-deep);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 78vh;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 0;
}

.hero__img {
  overflow: hidden;
}

.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 12s var(--ease);
}

.hero:hover .hero__img img {
  transform: scale(1.08);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 242, 234, 0.35) 0%,
    rgba(247, 242, 234, 0.45) 45%,
    rgba(247, 242, 234, 0.9) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  text-align: center;
  max-width: 720px;
  margin: 0 16px clamp(28px, 5vw, 56px);
  padding: clamp(34px, 5vw, 56px) clamp(22px, 4vw, 48px) clamp(34px, 5vw, 52px);
  background: rgba(247, 242, 234, 0.92);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(247, 242, 234, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(31, 26, 22, 0.18),
    0 2px 6px rgba(31, 26, 22, 0.08);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__content {
    background: rgba(247, 242, 234, 0.97);
  }
}

.hero__title {
  margin: 0 0 22px;
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(247, 242, 234, 0.6);
}

.hero__title em {
  display: inline-block;
  color: var(--accent-deep);
  font-style: italic;
}

.hero__lead {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Category trio */
.category-trio {
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--bg-cream);
}

.category-trio .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.cat-card {
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 32px 30px 36px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cat-card__img {
  width: 190px;
  height: 190px;
  margin: 0 auto 24px;
  border-radius: 50% 46% 52% 48% / 48% 52% 48% 52%;
  overflow: hidden;
  background: var(--bg-cream);
}

.cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.cat-card:hover .cat-card__img img {
  transform: scale(1.06);
}

.cat-card h2 {
  font-size: 1.85rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.cat-card p {
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* About */
.about {
  padding: clamp(70px, 9vw, 120px) 0;
  background: var(--bg-cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about__media {
  border-radius: 46% 54% 50% 50% / 56% 44% 52% 48%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-warm);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text h2 {
  margin: 0 0 18px;
}

.about__text p {
  margin-bottom: 16px;
  font-size: 1rem;
}

.about__text .btn {
  margin-top: 12px;
}

/* News */
.news {
  background: var(--accent);
  color: var(--bg-cream);
  padding: clamp(70px, 9vw, 110px) 0;
}

.news__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}

.news__header h2 {
  color: var(--bg-cream);
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
}

.news__header p {
  color: rgba(247, 242, 234, 0.85);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product {
  background: var(--bg-cream);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-warm);
}

.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}

.product:hover .product__img img {
  transform: scale(1.05);
}

.product__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(247, 242, 234, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.product__fav:hover {
  background: var(--ink);
  color: var(--bg-cream);
}

.product__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product__name {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.35;
}

.product__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.product__price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product__bag {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.product__bag:hover {
  background: var(--accent);
  color: var(--bg-cream);
}

.news__cta {
  text-align: center;
  margin-top: 48px;
}

/* Instagram */
.instagram {
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--bg-cream);
}

.instagram__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.instagram__text h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
}

.instagram__text p {
  margin-bottom: 26px;
  max-width: 420px;
}

.instagram__feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.instagram__feed li {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.instagram__feed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s var(--ease);
}

.instagram__feed li:hover img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

/* Footer */
.site-footer {
  background: var(--accent-deep);
  color: var(--bg-cream);
  padding-top: clamp(60px, 8vw, 90px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 242, 234, 0.14);
}

.site-footer__col h3 {
  color: var(--bg-cream);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.site-footer__col ul li {
  margin-bottom: 10px;
}

.site-footer__col a {
  color: rgba(247, 242, 234, 0.78);
  font-size: 0.92rem;
  transition: color 0.25s var(--ease);
}

.site-footer__col a:hover {
  color: var(--bg-cream);
}

.site-footer address {
  font-style: normal;
  color: rgba(247, 242, 234, 0.78);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer__hours {
  margin-top: 14px;
  color: rgba(247, 242, 234, 0.68);
  font-size: 0.88rem;
}

.site-footer__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 22px 30px;
  font-size: 0.8rem;
  color: rgba(247, 242, 234, 0.6);
  max-width: var(--container);
  margin: 0 auto;
}

.site-footer__bottom p {
  color: inherit;
}

.site-footer__credit a {
  color: rgba(247, 242, 234, 0.78);
  border-bottom: 1px solid rgba(247, 242, 234, 0.3);
}

.site-footer__credit a:hover {
  color: var(--bg-cream);
  border-color: var(--bg-cream);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tablet */
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-trio .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .site-footer__bottom {
    flex-direction: row;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .container {
    padding: 0 32px;
  }
  .hero {
    min-height: 82vh;
  }
  .hero__content {
    margin-bottom: clamp(56px, 8vw, 96px);
    padding: clamp(48px, 6vw, 72px) clamp(40px, 5vw, 64px);
  }
  .category-trio .container {
    grid-template-columns: repeat(3, 1fr);
  }
  .about__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .instagram__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
  }
  .instagram__feed {
    gap: 14px;
  }
}

/* Mobile nav */
@media (max-width: 859px) {
  .primary-nav {
    position: fixed;
    top: calc(var(--header-h) + var(--banner-h));
    left: 0;
    right: 0;
    background: var(--bg-cream);
    border-top: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
    z-index: 999;
    padding: 12px 22px 28px;
    box-shadow: var(--shadow-md);
  }
  body.banner-closed .primary-nav {
    top: var(--header-h);
  }
  .primary-nav.is-open {
    transform: translateY(0);
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .primary-nav li {
    border-bottom: 1px solid var(--line);
  }
  .primary-nav li:last-child {
    border-bottom: 0;
  }
  .primary-nav a {
    display: block;
    padding: 18px 4px;
    font-size: 0.85rem;
  }
  .primary-nav a::after {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }
  .header-actions .icon-btn:nth-child(1) {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-actions .icon-btn:nth-child(2) {
    display: none;
  }
  .hero__cta .btn {
    width: 100%;
  }
}
