/* =====================================================
   TRESLEIV.COM — Cormorant Garamond + Inter
   Nordisk editorial · Skoggrønn + Lin-palett
   ===================================================== */

:root {
  --skog:    #2C3E2D;
  --lin:     #F5F1EB;
  --lin-2:   #EDE8DF;
  --gull:    #C49A2A;
  --grønn-2: #5C7A5E;
  --bark:    #3D3028;
  --hvit:    #FAFAF7;
  --tekst:   #1E2820;
  --tekst-2: #4A5248;

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Inter', sans-serif;

  --radius: 4px;
  --gap: 2rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tekst);
  background: var(--hvit);
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hvit);
  border-bottom: 1px solid var(--lin-2);
  padding: 0 2rem;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--skog);
}
.logo-dot { color: var(--gull); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tekst-2);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--skog); }
.nav-shop {
  background: var(--skog);
  color: var(--lin) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}
.nav-shop:hover { background: var(--bark) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

/* ---- HERO ---- */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 85vh;
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grønn-2);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--skog);
  margin-bottom: 2rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gull);
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--tekst-2);
  max-width: 420px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-primary {
  background: var(--skog);
  color: var(--lin);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--bark); transform: translateY(-1px); }

.btn-ghost {
  border: 1.5px solid var(--skog);
  color: var(--skog);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { background: var(--skog); color: var(--lin); }

.hero-why { display: flex; flex-direction: column; gap: 0.6rem; }
.why-item { display: flex; align-items: center; gap: 0.8rem; }
.why-num {
  font-family: var(--ff-serif);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gull);
  min-width: 20px;
}
.why-text { font-size: 0.85rem; color: var(--tekst-2); font-weight: 400; }

/* HERO RIGHT */
.hero-right { position: relative; }
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 520px;
}
.hero-img { overflow: hidden; border-radius: 6px; }
.hero-img-1 { grid-row: span 1; }
.hero-img-2 { margin-top: 2.5rem; }
.hero-img img { transition: transform 0.6s ease; }
.hero-img:hover img { transform: scale(1.03); }

.hero-tag {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  background: var(--gull);
  color: var(--hvit);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
}

/* ---- KATEGORI-STRIPE ---- */
.category-stripe {
  background: var(--skog);
  padding: 1rem 2rem;
  overflow: hidden;
}
.stripe-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,241,235,0.7);
  font-weight: 400;
}
.stripe-inner .sep { color: var(--gull); }

/* ---- PRODUCTS SECTION ---- */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-header { margin-bottom: 3rem; }
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grønn-2);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--skog);
  letter-spacing: -0.01em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.product-card { background: var(--lin); border-radius: 8px; overflow: hidden; transition: box-shadow 0.25s; }
.product-card:hover { box-shadow: 0 8px 32px rgba(44,62,45,0.12); }

.product-img-wrap {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
}
.product-img-wrap img { transition: transform 0.5s ease; }
.product-img-wrap:hover img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--skog);
  color: var(--lin);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-badge.new { background: var(--gull); }

.product-info { padding: 1.5rem; }
.product-info h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--skog);
  margin-bottom: 0.5rem;
}
.product-info p { font-size: 0.88rem; color: var(--tekst-2); line-height: 1.6; margin-bottom: 1.25rem; }

.product-meta { display: flex; align-items: center; justify-content: space-between; }
.price {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--skog);
}
.btn-small {
  background: var(--skog);
  color: var(--lin);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-small:hover { background: var(--bark); }

.products-cta { text-align: center; }

/* ---- NETWORK ---- */
.network-section {
  background: var(--lin-2);
  padding: 5rem 2rem;
}
.network-section .section-header { max-width: 1280px; margin: 0 auto 3rem; }
.network-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.network-card {
  background: var(--hvit);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--lin-2);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.network-card:hover { border-color: var(--grønn-2); box-shadow: 0 4px 16px rgba(44,62,45,0.08); }
.nc-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.network-card h4 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--skog);
  margin-bottom: 0.4rem;
}
.network-card p { font-size: 0.85rem; color: var(--tekst-2); }
.network-card-main { background: var(--skog); color: var(--lin); border-color: var(--skog); }
.network-card-main h4 { color: var(--lin); }
.network-card-main p { color: rgba(245,241,235,0.7); }
.network-card-main:hover { border-color: var(--skog); box-shadow: 0 8px 24px rgba(44,62,45,0.25); }

/* ---- TRUST ---- */
.trust-section {
  background: var(--skog);
  padding: 3rem 2rem;
}
.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--lin);
}
.trust-item strong { font-size: 0.95rem; font-weight: 500; }
.trust-item span { font-size: 0.82rem; color: rgba(245,241,235,0.65); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bark);
  color: var(--lin);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(245,241,235,0.15);
  margin-bottom: 1.5rem;
}
.footer-brand .logo { font-size: 1.4rem; color: var(--lin); margin-bottom: 0.75rem; display: block; }
.footer-brand p { font-size: 0.85rem; color: rgba(245,241,235,0.6); max-width: 340px; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: rgba(245,241,235,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--lin); }
.footer-copy { font-size: 0.78rem; color: rgba(245,241,235,0.4); }

/* ---- PAGE (inner pages) ---- */
.page-hero {
  background: var(--lin-2);
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--skog);
  margin-bottom: 1rem;
}
.page-hero p { max-width: 560px; margin: 0 auto; color: var(--tekst-2); font-size: 1rem; }

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.page-content h2 {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--skog);
  margin: 2.5rem 0 1rem;
}
.page-content h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--skog);
  margin: 2rem 0 0.5rem;
}
.page-content p { margin-bottom: 1.2rem; color: var(--tekst-2); font-size: 0.97rem; line-height: 1.75; }
.page-content ul { margin: 0 0 1.2rem 1.5rem; color: var(--tekst-2); font-size: 0.97rem; line-height: 1.75; }

.info-box {
  background: var(--lin-2);
  border-left: 3px solid var(--gull);
  padding: 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 2rem 0;
}
.info-box p { margin: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero { padding: 4rem 2rem 3rem; min-height: auto; }
  .hero-images { height: 420px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .network-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .hero-right { display: none; }
  .hero-title { font-size: clamp(3rem, 10vw, 5rem); }
  .product-grid { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .trust-inner { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; }
}
