/* ───────────────────────────────────────────────────────────────
   La Libre — shared stylesheet  (Oatly-inspired skin)
   One file for every page. Change a colour here, it changes everywhere.
   All original class names are preserved so the JS keeps working.
   ─────────────────────────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; width: 100%; object-fit: cover; }

/* ── Palette & tokens ── */
:root {
  --paper:    #f2ece0;   /* warm off-white "paper" background        */
  --paper-2:  #ece4d3;   /* slightly deeper paper for alt sections   */
  --ink:      #16110b;   /* near-black ink — borders, headlines      */
  --ink-soft: #3a3027;   /* body text                                */
  --ink-mute: #7a6f60;   /* captions, meta                           */
  --accent:   #2b3fd6;   /* loud Oatly blue — links & button hovers  */
  --marker:   #ffdd2d;   /* highlighter yellow — color-blocks & pops */
  --wa:       #25d366;   /* WhatsApp green                           */

  --border:   2.5px solid var(--ink);
  --shadow:   5px 5px 0 var(--ink);          /* hard "sticker" shadow */
  --shadow-lg: 8px 8px 0 var(--ink);

  --font-display: 'Special Elite', cursive;
  --font-body:    'Archivo', system-ui, sans-serif;
  --font-hand:    'Special Elite', cursive;

  /* hand-drawn marker squiggle, used for .divider */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='14' viewBox='0 0 130 14'%3E%3Cpath d='M2 8 Q 12 1 22 8 T 42 8 T 62 8 T 82 8 T 102 8 T 128 8' fill='none' stroke='%2316110b' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

/* ── Headlines ── */
h1, h2, .detail-title, .footer-logo, .nav-logo-main {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

/* The marker squiggle that sits under every heading */
.divider {
  width: 130px;
  height: 14px;
  background: var(--squiggle) no-repeat left center / contain;
  margin: 1rem 0 1.4rem;
}

/* Eyebrow = scrawled hand-written note */
.eyebrow {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 0.1rem;
  transform: rotate(-1.5deg);
}
.eyebrow::before { content: "✲ "; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: var(--border);
  padding: 0.85rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { text-decoration: none; white-space: nowrap; line-height: 1; }
.nav-logo-main {
  font-size: 26px; font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.03em; display: block;
}
.nav-logo-sub {
  font-family: var(--font-hand); font-size: 14px; color: var(--ink-mute);
  letter-spacing: 0; display: block; margin-top: -2px;
}
.nav-links { display: flex; gap: 1.4rem; list-style: none; }
.nav-links a {
  font-size: 13px; color: var(--ink); text-decoration: none;
  letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700;
  padding-bottom: 2px; border-bottom: 2.5px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink); border-bottom-color: var(--ink);
}
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-lang {
  font-size: 18px; border: var(--border); padding: 4px 10px; border-radius: 0;
  cursor: pointer; background: var(--paper); white-space: nowrap;
  transition: background 0.15s;
}
.nav-lang:hover { background: var(--marker); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: var(--paper);
  border: var(--border); border-radius: 0; cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 18px; height: 2.5px; background: var(--ink);
  margin: 0 auto; transition: transform 0.25s, opacity 0.25s;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; background: var(--marker);
  border-bottom: var(--border); overflow: hidden; max-height: 0;
  transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 320px; }
.mobile-menu a {
  padding: 0.95rem 1.2rem; font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink);
  text-decoration: none; border-bottom: 2.5px solid var(--ink);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── Buttons (shared look) ── */
.btn, .see-all, .see-all-top, .wa-btn, .back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.01em; text-decoration: none;
  border: var(--border); border-radius: 0; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, color 0.15s;
}

/* Primary call to action */
.btn {
  background: var(--ink); color: var(--paper);
  font-size: 14px; padding: 0.85rem 1.9rem; box-shadow: var(--shadow);
}
.btn:hover {
  background: var(--accent); color: #fff;
  transform: translate(-2px,-2px); box-shadow: var(--shadow-lg);
}

/* "See all" links rendered as outlined chips */
.see-all, .see-all-top, .back-link {
  background: var(--paper); color: var(--ink);
  font-size: 12px; padding: 0.55rem 1rem;
}
.see-all:hover, .see-all-top:hover, .back-link:hover {
  background: var(--marker); transform: translate(-1px,-1px);
}
.see-all { margin-top: 1.6rem; }
.section-head .see-all-top { margin-top: 0.2rem; }

/* WhatsApp pill on cards */
.wa-btn {
  background: var(--paper); color: var(--ink);
  font-size: 11px; padding: 0.45rem 0.8rem; white-space: nowrap;
}
.wa-btn svg { flex-shrink: 0; }
.wa-btn:hover { background: var(--wa); color: var(--ink); transform: translate(-1px,-1px); }

/* ── Hero (home) ── */
.hero {
  background: var(--paper);
  border-bottom: var(--border);
  padding: 3.5rem 2rem 4rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-img {
  width: 100%; max-width: 880px; height: 340px;
  border: var(--border); box-shadow: var(--shadow-lg);
  overflow: hidden; margin-bottom: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); font-size: 12px; background: var(--paper-2);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 {
  font-size: clamp(38px, 8vw, 78px);
  max-width: 14ch; margin-bottom: 1.6rem;
  text-transform: uppercase;
}
/* highlighter swipe behind the headline */
.hero h1 { 
  display: inline-block;
  background: linear-gradient(var(--marker), var(--marker)) no-repeat;
  background-size: 100% 0.42em; background-position: 0 88%;
  padding: 0 0.15em;
}
.hero p {
  font-size: 17px; color: var(--ink-soft); max-width: 480px;
  line-height: 1.6; margin-bottom: 2rem;
}

/* ── Sections (home) ── */
section {
  padding: 4rem 2rem;
  border-bottom: var(--border);
}
section:nth-child(even) { background: var(--paper-2); }
.section-inner { max-width: 880px; margin: 0 auto; }
h2 { font-size: clamp(26px, 4.5vw, 44px); margin-bottom: 0.4rem; }
.section-body { font-size: 16px; color: var(--ink-soft); line-height: 1.7; max-width: 560px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }

/* ── Page header (sub-pages) — bold yellow color-block ── */
.page-header {
  background: var(--marker);
  border-bottom: var(--border);
  padding: 3.5rem 2rem 3rem;
}
.page-header-inner { max-width: 880px; margin: 0 auto; }
.page-header .eyebrow { color: var(--ink); }
.page-header h1 { font-size: clamp(34px, 6vw, 60px); text-transform: uppercase; margin-bottom: 0.4rem; }
.page-header .divider { /* squiggle reads fine on yellow */ }
.page-intro { font-size: 17px; color: var(--ink); line-height: 1.6; max-width: 580px; }

/* ── Listing wrappers ── */
.content-section, .list-section { padding: 4rem 2rem; }
.content-inner, .list-inner { max-width: 880px; margin: 0 auto; }
.cards, .product-list {
  display: grid; gap: 1.4rem; margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ── Cards ── */
.card {
  background: var(--paper); border: var(--border); border-radius: 0;
  overflow: hidden; cursor: pointer; text-decoration: none; color: inherit;
  display: block; box-shadow: var(--shadow);
  transition: transform 0.14s, box-shadow 0.14s;
}
section:nth-child(even) .card { background: var(--paper); }
.card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.card-img { background: var(--paper-2); aspect-ratio: 3/4; overflow: hidden; border-bottom: var(--border); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 0.9rem 1rem 1.1rem; }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.05; margin-bottom: 0.3rem; }
.card-sub { font-family: var(--font-hand); font-size: 18px; color: var(--ink-soft); line-height: 1.15; margin-bottom: 0.7rem; }

/* ── Visit (home) ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.6rem; }
.info-item { font-size: 15px; color: var(--ink-soft); }
.info-item a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--marker); }
.info-label {
  display: block; font-family: var(--font-hand); font-size: 22px;
  letter-spacing: 0; text-transform: none; color: var(--accent);
  margin-bottom: 0.15rem; font-weight: 400;
}
iframe { border: var(--border) !important; border-radius: 0 !important; box-shadow: var(--shadow); }

/* ── Detail page ── */
.breadcrumb { padding: 1.2rem 2rem; max-width: 880px; margin: 0 auto; font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.45rem; }

.detail-wrap {
  max-width: 880px; margin: 0 auto; padding: 1.5rem 2rem 5rem;
  display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start;
}
.detail-img-wrap { border: var(--border); box-shadow: var(--shadow-lg); border-radius: 0; overflow: hidden; aspect-ratio: 3/4; background: var(--paper-2); }
.detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 0.5rem; }
.detail-meta { font-family: var(--font-hand); font-size: 20px; color: var(--ink-soft); line-height: 1.2; }
.detail-price { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); margin: 1rem 0 0.25rem; }
.detail-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.75; max-width: 500px; margin-bottom: 2rem; }

.wa-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--wa); color: var(--ink);
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.01em;
  padding: 0.85rem 1.7rem; border: var(--border); border-radius: 0;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.wa-cta:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.wa-cta svg { flex-shrink: 0; }
.wa-note { font-family: var(--font-hand); font-size: 16px; color: var(--ink-mute); margin-top: 0.7rem; }
.back-link { margin-top: 2.5rem; }

.not-found { text-align: center; padding: 6rem 2rem; }
.not-found h2 { font-size: 34px; margin-bottom: 1rem; }
.not-found p { font-size: 16px; color: var(--ink-soft); }

/* ── Footer ── */
footer { background: var(--ink); padding: 3.5rem 2rem; text-align: center; }
.footer-logo { font-size: 48px; font-weight: 900; text-transform: uppercase; color: var(--paper); margin-bottom: 0.25rem; letter-spacing: -0.03em; }
.footer-sub { font-family: var(--font-hand); font-size: 18px; color: var(--marker); margin-bottom: 0.9rem; }
footer p { font-size: 12px; color: var(--paper-2); letter-spacing: 0.04em; font-weight: 600; }

/* ── Footer social icons ── */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  box-shadow: 3px 3px 0 var(--paper-2);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.footer-social a svg { width: 20px; height: 20px; }
.footer-social a:hover {
  background: var(--marker);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--paper-2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .detail-wrap { grid-template-columns: 1fr; gap: 1.8rem; }
  .detail-img-wrap { max-width: 300px; }
}
@media (max-width: 640px) {
  nav { padding: 0.75rem 1.2rem; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; }
  .hero { padding: 2.5rem 1.2rem 3rem; }
  section, .page-header, .content-section, .list-section { padding-left: 1.2rem; padding-right: 1.2rem; }
  section { padding-top: 2.8rem; padding-bottom: 2.8rem; }
  .section-head { flex-direction: column; gap: 0.6rem; }
  .info-grid { grid-template-columns: 1fr; }
  .cards, .product-list { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .breadcrumb { padding: 1rem 1.2rem; }
  .footer-logo { font-size: 36px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
