/* ============================================
   2instincts – Design System
   Basert på design fra dev.utenfra.no/2instincts/
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  /* Farger – fra dev-designet */
  --brand-gold: #b8966a;
  --brand-gold-light: #c9a97a;
  --brand-gold-dark: #8a6e4a;
  --brand-slate: #2c2e35;
  --brand-cream: #f7f7f5;
  --brand-graphite: #5a5d66;
  --brand-mist: #6b6e76;
  --brand-silver: #c5c7cc;
  --brand-blue: #1e3a5f;
  --brand-ink: #1a1c23;
  --white: #ffffff;
  --black: #000000;

  /* Fonter */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Størrelser */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;

  /* Layout */
  --container-max: 1400px;
  --container-padding: 1.25rem;
  --radius: 0;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--brand-slate);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  font-variant-numeric: lining-nums tabular-nums;
}

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

/* Prevent flex/grid children from forcing overflow */
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.flex-wrap > * {
  min-width: 0;
}

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

/* ---- Global Focus Styles (WCAG 2.4.7) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-blue, #1e3a5f);
  outline-offset: 2px;
}

/* ---- Skip Link (WCAG 2.4.1) ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-slate);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ---- Visually Hidden (screen readers only) ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Button resets for accessibility conversions ---- */
button.accordion-header,
button.model-option-premium {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

button.accordion-header {
  border: none;
  background: none;
  width: 100%;
}

/* ---- Typografi ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  color: var(--brand-slate);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--brand-graphite);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

/* ---- Knapper ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  min-height: 54px;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-slate);
  color: var(--white);
  border-color: var(--brand-slate);
}

.btn-primary:hover {
  background-color: var(--brand-ink);
  border-color: var(--brand-ink);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-slate);
  border-color: var(--brand-slate);
}

.btn-outline:hover {
  background-color: var(--brand-slate);
  color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--brand-slate);
  border-color: var(--white);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--white);
}

.btn-gold {
  background-color: var(--brand-gold);
  color: var(--white);
  border-color: var(--brand-gold);
}

.btn-gold:hover {
  background-color: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
}

/* ---- Kort ---- */
.card {
  background: var(--white);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: var(--space-6);
}

/* ---- Grid ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  will-change: transform;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
@media (min-width: 769px) {
  .site-header {
    height: clamp(72px, 4.5vw, 80px);
  }
  .site-header.scrolled {
    background: #fff;
    backdrop-filter: none;
  }
}

.site-header .logo {
  color: var(--brand-slate);
}

.site-header .nav-main a {
  color: var(--brand-slate);
}

.site-header .nav-main a:hover {
  color: var(--brand-gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--brand-slate);
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.nav-main {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

@media (min-width: 768px) {
  .nav-main {
    display: flex;
  }
}

.nav-main a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: var(--space-2) var(--space-3);
  transition: color 0.2s;
}

.nav-main a:hover {
  color: var(--white);
}

.nav-main a.active {
  color: var(--brand-gold-dark, #8a6e4a);
  border-bottom: 1px solid var(--brand-gold);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
}

.lang-switcher a {
  padding: var(--space-1) var(--space-2);
  color: var(--brand-mist);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--brand-slate);
}

.site-header .cart-link {
  color: var(--brand-slate);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 58svh; /* default medium */
  padding-top: 72px;
  overflow: hidden;
  color: var(--white);
}

/* Height modifiers */
.hero.has-hero-home   { min-height: 100svh; }
.hero.has-hero-large  { min-height: 68svh; }
.hero.has-hero-medium { min-height: 58svh; }
.hero.has-hero-compact{ min-height: 46svh; }
.hero.has-hero-product{ min-height: 52svh; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero img,
.hero-media,
.hero-picture img,
.hero-bg {
  filter: none !important;
  opacity: 1;
}

.hero::before {
  display: none !important;
}

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

.hero-content {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero-content::before {
  display: none !important;
}

/* Linear fade from bottom-left — layer is oversized so the edge falls outside hero */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    38deg,
    rgba(3, 8, 14, 0.94) 0%,
    rgba(3, 8, 14, 0.80) 8%,
    rgba(3, 8, 14, 0.54) 17%,
    rgba(3, 8, 14, 0.30) 26%,
    rgba(3, 8, 14, 0.14) 33%,
    rgba(3, 8, 14, 0.04) 39%,
    rgba(3, 8, 14, 0.00) 44%,
    rgba(3, 8, 14, 0.00) 71%
  );
}

.hero-content {
  position: absolute;
  left: clamp(32px, 6vw, 96px);
  bottom: clamp(78px, 12vh, 135px);
  z-index: 2;
  max-width: 560px;
  text-align: left;
}

.hero-content * {
  text-align: left;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  margin-bottom: 22px;
  color: var(--white);
  line-height: 1.1;
  /* Soft multi-layer shadow for depth against any background */
  text-shadow: 0 2px 30px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  margin-bottom: 34px;
  opacity: 0.92;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  max-width: 520px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

/* Light variant for dark hero backgrounds — WCAG-compliant */
.hero-eyebrow--light {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Decorative gold line between title and subtitle — left-aligned for new hero layout */
.hero-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--brand-gold);
  margin: var(--space-6) 0 0;
  opacity: 0.6;
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--brand-cream);
  border-top: 1px solid rgba(197,199,204,0.4);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.site-footer h4 {
  color: var(--brand-slate);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.site-footer a {
  color: var(--brand-mist);
  font-size: var(--text-xs);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--brand-gold);
}

.site-footer p {
  color: var(--brand-graphite);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}

.footer-bottom {
  border-top: 1px solid rgba(197,199,204,0.3);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--brand-mist);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---- Seksjoner ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
  font-weight: 300;
}

.section-header p {
  color: var(--brand-graphite);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-sm);
  line-height: 1.9;
}

/* ---- Trust indicators ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item h3 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--brand-slate);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.trust-item p {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--brand-mist);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

/* ---- Series Carousel (Home) ---- */
.series-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 767px) {
  .series-scroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: var(--space-5);
    padding-bottom: var(--space-4);
    -webkit-overflow-scrolling: touch;
  }
  .series-scroll::-webkit-scrollbar { display: none; }
}

.series-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 767px) {
  .series-card {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: start;
  }
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.series-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--brand-cream);
}

.series-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.series-card:hover .series-image-wrap img {
  transform: scale(1.04);
}

.series-info {
  padding: var(--space-5);
  text-align: center;
}

.series-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--brand-ink);
  margin: 0 0 var(--space-2);
}

.series-info p {
  font-size: 0.875rem;
  color: var(--brand-slate);
  line-height: 1.6;
  margin: 0 0 var(--space-3);
}

.series-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-ink);
  border-bottom: 1px solid var(--brand-gold);
  padding-bottom: 0.25rem;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.series-card:hover .series-cta {
  color: var(--brand-gold);
}

/* ---- Founder's Letter (Home) ---- */
.founder-section-home {
  background: var(--brand-cream);
  padding: var(--space-20) var(--space-5);
}

@media (min-width: 768px) {
  .founder-section-home {
    padding: var(--space-28) var(--space-10);
  }
}

.founder-inner-home {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.founder-eyebrow-home {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-6);
}

.founder-quote-home {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--brand-ink);
  margin: 0 0 var(--space-8);
  padding: 0;
  border: none;
  font-style: italic;
}

.founder-quote-home p {
  margin-bottom: var(--space-4);
}

.founder-quote-home p:last-child {
  margin-bottom: 0;
  font-style: normal;
}

.founder-quote-home strong {
  font-weight: 600;
}

.founder-meta-home {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}

.founder-meta-home strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.founder-meta-home span {
  font-size: 0.8rem;
  color: var(--brand-mist);
  font-weight: 300;
}

/* ---- Philosophy Bar (Home) ---- */
.philosophy-bar-home {
  background: var(--brand-ink);
  padding: var(--space-8) var(--space-5);
}

@media (min-width: 768px) {
  .philosophy-bar-home {
    padding: var(--space-10) var(--space-10);
  }
}

.philosophy-grid-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .philosophy-grid-home {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }
}

.philosophy-item-home {
  text-align: center;
  color: var(--white);
}

.philosophy-num-home {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--brand-gold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.philosophy-label-home {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.philosophy-desc-home {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
}

/* ---- Nyhetsbrev ---- */
.newsletter-section {
  background-color: var(--brand-cream);
  padding: var(--space-6) var(--space-5) var(--space-12) var(--space-5);
}

@media (min-width: 768px) {
  .newsletter-section {
    padding: var(--space-8) var(--space-10) var(--space-16) var(--space-10);
  }
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 500px;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
    gap: var(--space-2);
  }
}

.newsletter-form input {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--brand-silver);
  padding: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--brand-slate);
  min-height: 54px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder {
  color: var(--brand-mist);
}

.newsletter-form input:focus {
  border-color: var(--brand-blue);
}

/* ---- Reviews ---- */
.review-card {
  background: var(--brand-cream);
  padding: var(--space-8);
}

.review-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  margin-bottom: var(--space-6);
  color: var(--brand-slate);
  line-height: 1.5;
}

.review-author {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--brand-slate);
}

.review-title {
  font-size: var(--text-sm);
  color: var(--brand-mist);
}

/* ---- Kontaktskjema ---- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--brand-slate);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border: 1px solid var(--brand-silver);
  border-radius: 0;
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  min-height: 54px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand-blue);
}

.form-group input::placeholder {
  color: var(--brand-mist);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---- Product detail ---- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ---- Trip detail ---- */
.trip-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ---- Bakgrunner ---- */
.bg-white { background-color: var(--white); }
.bg-brand-cream { background-color: var(--brand-cream); }

/* ---- Reveal / scroll-animasjoner ---- */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Link Arrow ---- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-graphite);
  transition: color 0.2s ease;
}

.link-arrow::after {
  content: '';
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.link-arrow:hover {
  color: var(--brand-gold);
}

.link-arrow:hover::after {
  width: 2rem;
}

/* ---- Image hover ---- */
.img-hover {
  overflow: hidden;
  position: relative;
}

.img-hover img {
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.img-hover:hover img {
  transform: scale(1.04);
}

/* ---- Card flat (dev-style, shadowless) ---- */
.card-flat {
  background: var(--white);
  position: relative;
  transition: transform 0.3s ease;
}

.card-flat:hover {
  transform: translateY(-4px);
}

.card-flat .card-image {
  aspect-ratio: 1 / 1;
}

/* ---- Hero CTA layout ---- */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
}

.hero-link-secondary {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-sm);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-link-secondary:hover {
  color: var(--white);
}

.hero-ctas .btn + .btn,
.hero-ctas .btn + a,
.hero-ctas a + .btn {
  margin: 0;
}

/* ---- Eyebrow label ---- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-6);
}

/* ---- Body text large ---- */
.text-body-lg {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--brand-graphite);
}

/* ---- Section spacing consistency ---- */
.section-lg {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .section-lg {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* ---- Responsive ---- */
@media (min-width: 901px) {
  .product-detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 701px) {
  .product-specs-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 601px) {
  .trip-meta-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

  /* Mobile header adjustments */
  .site-header {
    position: sticky;
    top: 0;
  }
  .site-header svg {
    fill: #111;
    stroke: #111;
  }
  .site-header .logo img {
    height: 24px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
  }
  .site-header .cart-link {
    padding: 4px;
    min-width: 36px;
    min-height: 36px;
  }
  .site-header .cart-link svg {
    width: 16px;
    height: 16px;
  }
  .lang-switcher {
    gap: 0.25rem;
  }
  .lang-switcher a {
    padding: 0.125rem 0.25rem;
    font-size: 0.7rem;
  }

  /* Dark hamburger lines on white mobile header */
  .mobile-menu-btn span {
    background: var(--brand-slate) !important;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-specs-grid {
    grid-template-columns: 1fr;
  }

  .trip-meta-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  .hero {
    height: auto;
    padding-top: 0;
  }

  /* Mobile height modifiers */
  .hero.has-hero-home   { min-height: calc(100dvh - 72px); }
  .hero.has-hero-large  { min-height: calc(60dvh - 72px); }
  .hero.has-hero-medium { min-height: calc(55dvh - 72px); }
  .hero.has-hero-compact{ min-height: calc(38dvh - 72px); }
  .hero.has-hero-product{ min-height: calc(42dvh - 72px); }

  .hero::after {
    width: 140%;
    height: 140%;
    background: linear-gradient(
      38deg,
      rgba(3, 8, 14, 0.90) 0%,
      rgba(3, 8, 14, 0.72) 10%,
      rgba(3, 8, 14, 0.44) 20%,
      rgba(3, 8, 14, 0.20) 30%,
      rgba(3, 8, 14, 0.06) 38%,
      rgba(3, 8, 14, 0.00) 46%,
      rgba(3, 8, 14, 0.00) 71%
    );
  }

  .hero-content::before {
    display: none !important;
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 28px;
    max-width: none;
    padding: 0;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.05;
    margin-bottom: 10px;
    font-weight: 500;
    text-shadow: 0 2px 24px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.6);
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 1.45;
    max-width: 330px;
    margin-bottom: 10px;
    font-weight: 400;
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-ctas .btn-white {
    width: min(100%, 340px);
    height: 58px;
    padding: 0 24px;
    font-size: 13px;
    letter-spacing: 0.18em;
  }

  .hero-link-secondary {
    font-size: 17px;
    color: #fff;
    text-underline-offset: 6px;
  }

  /* Tighter shop section on mobile */
  #shop-products {
    padding-top: 1.25rem !important;
  }

  /* Horizontal scroll carousels on mobile */
  .mobile-scroll-wrapper {
    position: relative;
  }
  .mobile-scroll {
    display: flex !important;
    flex-wrap: nowrap;
    gap: var(--space-4);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
    padding-bottom: var(--space-2);
  }
  .mobile-scroll::-webkit-scrollbar {
    display: none;
  }
  .mobile-scroll > * {
    flex: 0 0 85vw;
    max-width: 340px;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* Scroll dots indicator */
  .scroll-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
  }
  .scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--brand-silver);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .scroll-dot.active {
    background: var(--brand-gold);
    transform: scale(1.2);
  }

  /* Swipe hint — double chevrons on first card */
  .mobile-scroll > *:first-child::after {
    content: '››';
    position: absolute;
    right: 10px;
    top: 28%;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 52px;
    line-height: 1;
    letter-spacing: -0.1em;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
    pointer-events: none;
    z-index: 5;
    animation: chevronPulse 2s ease-in-out infinite;
  }
  .mobile-scroll.hint-hidden > *:first-child::after {
    opacity: 0;
    transition: opacity 0.4s;
  }
  @keyframes chevronPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(6px); }
  }

  /* Swipe text label under dots */
  .scroll-hint-label {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--brand-mist);
    margin-top: var(--space-2);
    letter-spacing: 0.05em;
  }

  /* Footer compact on mobile */
  .site-footer {
    padding-top: var(--space-10);
    padding-bottom: var(--space-6);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .site-footer h4 {
    margin-bottom: var(--space-3);
  }
  .site-footer p {
    font-size: var(--text-xs);
  }
  .footer-bottom {
    padding-top: var(--space-4);
    gap: var(--space-3);
  }
}

/* ============================================
   Om oss – kontaktskjema feedback
   ============================================ */

.contact-feedback {
  max-width: 600px;
  margin: 0 auto var(--space-8);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.7;
  text-align: center;
}

.contact-feedback--success {
  background: rgba(40, 120, 80, 0.08);
  border-left: 3px solid #287850;
  color: #1e5c3a;
}

.contact-feedback--error {
  background: rgba(180, 60, 60, 0.06);
  border-left: 3px solid #b43c3c;
  color: #8a2e2e;
}

/* ============================================
   Legal Pages – Personvern, Salgsbetingelser, Frakt
   ============================================ */

.legal-intro {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.legal-intro p {
  font-size: var(--text-lg);
  color: var(--brand-graphite);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal-intro p:last-child {
  margin-bottom: 0;
}

.legal-article {
  margin-bottom: var(--space-16);
  scroll-margin-top: 100px;
}

.legal-article:last-child {
  margin-bottom: 0;
}

.legal-article h2 {
  font-size: var(--text-2xl);
  color: var(--brand-slate);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.legal-article h3 {
  font-size: var(--text-lg);
  color: var(--brand-slate);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-weight: 400;
}

.legal-article p {
  font-size: var(--text-sm);
  color: var(--brand-graphite);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal-article ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-article ul li {
  font-size: var(--text-sm);
  color: var(--brand-graphite);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.legal-article a {
  color: var(--brand-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-article a:hover {
  border-bottom-color: var(--brand-gold);
}

.legal-box {
  background: var(--brand-cream);
  padding: var(--space-6) var(--space-8);
  margin: var(--space-6) 0;
  border-left: 3px solid var(--brand-gold);
}

.legal-box p {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.legal-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .legal-intro {
    margin-bottom: var(--space-10);
  }
  .legal-article {
    margin-bottom: var(--space-10);
  }
  .legal-box {
    padding: var(--space-4) var(--space-5);
  }
}

/* ============================================
   Cookie Consent – Premium GDPR Banner 2026
   ============================================ */

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(26, 28, 35, 0.98);
  border-top: 1px solid rgba(184, 150, 106, 0.15);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 769px) {
  .cc-banner {
    background: rgba(26, 28, 35, 0.92);
    backdrop-filter: blur(8px);
  }
}

.cc-banner.cc-visible {
  transform: translateY(0);
}

.cc-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-6) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.cc-banner-text {
  flex: 1;
  min-width: 0;
}

.cc-banner-text p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0;
}

.cc-banner-text a {
  color: var(--brand-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cc-banner-text a:hover {
  border-bottom-color: var(--brand-gold);
}

.cc-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
}

.cc-btn-gold {
  background-color: var(--brand-gold);
  color: var(--white);
  border-color: var(--brand-gold);
}

.cc-btn-gold:hover {
  background-color: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
}

.cc-btn-outline {
  background-color: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}

.cc-btn-outline:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.cc-btn-text {
  background: none;
  border: none;
  color: var(--brand-gold);
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cc-btn-text:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .cc-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  }
  .cc-banner-text p {
    font-size: var(--text-xs);
    line-height: 1.5;
  }
  .cc-banner-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    width: 100%;
  }
  .cc-btn {
    width: 100%;
    min-height: 48px;
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
  }
  .cc-btn-text {
    text-align: center;
    padding: var(--space-2) 0;
  }
}

/* ─── Cookie Consent Modal ─── */

.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
@media (min-width: 769px) {
  .cc-modal-overlay {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
  }
}

.cc-modal-overlay.cc-open {
  opacity: 1;
  visibility: visible;
}

.cc-modal {
  background: var(--white);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.cc-modal-header {
  padding: var(--space-8) var(--space-8) var(--space-4);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
}

.cc-modal-header h2 {
  font-size: var(--text-2xl);
  color: var(--brand-slate);
  margin-bottom: var(--space-2);
}

.cc-modal-header p {
  font-size: var(--text-sm);
  color: var(--brand-mist);
  line-height: 1.6;
  margin: 0;
}

.cc-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-mist);
  transition: color 0.2s ease;
}

.cc-modal-close:hover {
  color: var(--brand-slate);
}

.cc-modal-close svg {
  width: 20px;
  height: 20px;
}

.cc-modal-body {
  padding: var(--space-6) var(--space-8);
}

.cc-category {
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cc-category:first-child {
  padding-top: 0;
}

.cc-category:last-child {
  border-bottom: none;
}

.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.cc-category-header h3 {
  font-size: var(--text-base);
  color: var(--brand-slate);
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0;
}

.cc-category p {
  font-size: var(--text-sm);
  color: var(--brand-graphite);
  line-height: 1.6;
  margin: 0;
}

.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-toggle input:focus-visible + .cc-toggle-slider {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.cc-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cc-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-toggle input:checked + .cc-toggle-slider {
  background: var(--brand-gold);
}

.cc-toggle input:checked + .cc-toggle-slider::after {
  transform: translateX(20px);
}

.cc-toggle input:disabled + .cc-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cc-modal-footer {
  padding: var(--space-4) var(--space-8) var(--space-8);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.cc-modal-footer .cc-btn {
  min-height: 48px;
  padding: var(--space-3) var(--space-8);
}

@media (max-width: 768px) {
  .cc-modal {
    max-height: 92vh;
  }
  .cc-modal-header {
    padding: var(--space-6) var(--space-5) var(--space-3);
  }
  .cc-modal-body {
    padding: var(--space-4) var(--space-5);
  }
  .cc-modal-footer {
    padding: var(--space-3) var(--space-5) var(--space-5);
    flex-direction: column;
  }
  .cc-modal-footer .cc-btn {
    width: 100%;
  }
}

/* Product card image wrapper needs positioning context for badges */
.shop-card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.shop-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Per-kategori bilde-ratio */
.shop-card[data-category="rods"] .shop-card-image-wrap,
.shop-card[data-category="featured"] .shop-card-image-wrap:has(img[alt*="stang"]),
.shop-card[data-category="sale"] .shop-card-image-wrap:has(img[alt*="stang"]) {
  aspect-ratio: 3 / 2;
}
.shop-card[data-category="waders"] .shop-card-image-wrap,
.shop-card[data-category="featured"] .shop-card-image-wrap:has(img[alt*="vad"]),
.shop-card[data-category="sale"] .shop-card-image-wrap:has(img[alt*="vad"]) {
  aspect-ratio: 3 / 4;
}
