/* Viltgården – stilark
   Bygget som erstatning for den gamle Webflow-siden (viltgarden.no).
   Farger og skrift er hentet fra originalen. */

@font-face { font-family: Myriadpro; src: url("../fonts/MyriadPro-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: Myriadpro; src: url("../fonts/MyriadPro-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Myriadpro; src: url("../fonts/MyriadPro-It.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Myriadpro; src: url("../fonts/MyriadPro-Semibold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Myriadpro; src: url("../fonts/MyriadPro-BoldCond.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --orange-red: #e74914;
  --dark-green: #336225;
  --footer-green: #00321b;
  --link-blue: #0082f3;
  --white: #fff;
  --radius: .6rem;
  --font: Myriadpro, "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: #000;
  background: #fff;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; vertical-align: middle; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: .125rem solid #4d65ff; outline-offset: .125rem; }

/* ───────── Topp / navigasjon ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--orange-red);
  padding: 0 1rem;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 10px auto;
}
.nav-logo { display: block; width: 14rem; padding: 0; line-height: 0; }
.nav-logo img { width: 100%; max-width: none; height: auto; }

.nav-menu { display: flex; align-items: center; }
.nav-link {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 15px 5px 5px;
  font-size: 1rem;
  line-height: 24px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { text-decoration: underline; }
.nav-link[aria-current="page"] { color: var(--link-blue); }
.nav-link.last { border-right: 1px solid #000; margin-right: 10px; }

/* språkvelger */
.lang { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 10px 20px 0 5px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #000;
  background: none;
  border: 0;
  cursor: pointer;
}
.lang-toggle img { width: 2rem; height: 2rem; }
.lang-toggle .chev { width: .6rem; height: .6rem; margin-left: 2px; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: translateY(-2px) rotate(45deg); }
.lang-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  background: var(--white);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
  z-index: 10;
}
.lang:hover .lang-list, .lang.is-open .lang-list, .lang:focus-within .lang-list { display: block; }
.lang-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: .6rem 0;
  text-decoration: none;
  color: #000;
  text-transform: uppercase;
  font-size: 1.1rem;
}
.lang-list img { width: 2rem; height: 2rem; }

.lang-inline { display: none; }

.menu-button {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: #000;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-button svg { width: 2.2rem; height: 2.2rem; }

/* ───────── Hero ───────── */
.section-hero { display: block; }
.padding-global { padding: 1rem 2.5rem .5rem; }
.hero-pad { padding-bottom: 1rem; }

.hero {
  background-color: #555;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50%;
  border-radius: var(--radius);
  height: 55rem;
  min-height: 600px;
  padding: 8rem 0;
}
.hero.pos-top { background-position: 50% 0; }
.hero.pos-bottom { background-position: 50% 100%; }
.hero-inner { padding: .2rem 1rem 0; color: var(--dark-green); }
.hero-box {
  max-width: 70%;
  margin: 2rem auto;
  background: rgba(0, 0, 0, .1);
  padding-left: 1rem;
  overflow: hidden;
}
.hero-text { padding: 1rem 0 4rem; }
@media (max-width: 991px) { .hero-text { padding-bottom: 1.5rem; } }
.hero h1 {
  color: #fff;
  font-size: 5rem;
  line-height: 9rem;
  font-weight: 700;
  text-shadow: 2px 2px 1px rgba(51, 98, 37, .5);
}
.hero p {
  color: #fff;
  font-size: 1.8rem;
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 1px 1px 1px rgba(51, 98, 37, .5);
}
.hero p .gap { display: block; height: 1.4em; }
.hero-empty { height: 1rem; }

/* video-hero på forsiden */
.video-hero {
  position: relative;
  max-width: 1920px;
  height: 75vh;
  margin: 0 auto;
  overflow: hidden;
  background: #333 center / cover no-repeat;
}
.video-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ───────── Innhold ───────── */
.skip { position: absolute; left: -999px; top: .5rem; z-index: 2000; padding: .5rem 1rem; background: #fff; color: #000; }
.skip:focus { left: 1rem; }
.container { max-width: 70%; margin: 2rem auto; position: relative; }
.container-940 { max-width: 940px; margin: 2rem auto; padding: 0 1rem; }
.container-wide { margin: 2rem 0; }
.container-booking { max-width: 1100px; margin: 2rem auto; padding: 0 1.25rem; }
.section-pad { padding: 1rem 2.5rem .5rem; }
.section-wide { padding: 0 2.5rem; }

.heading-caps {
  max-width: 80%;
  color: var(--dark-green);
  text-transform: uppercase;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
}
.heading-green {
  color: var(--dark-green);
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
}
.heading-orange {
  color: var(--orange-red);
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
}
.lead {
  color: var(--dark-green);
  font-size: 1.25rem;
  line-height: 1.5;
  padding-top: 1rem;
}
.lead.no-pad { padding-top: 0; }
.copy { color: var(--dark-green); }
.rule { height: 1px; background: var(--dark-green); margin-bottom: 1rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-4 { padding-bottom: 4rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: .25rem;
  align-items: start;
}
.two-col.ratio { grid-template-columns: 1.25fr 1fr; column-gap: 45px; }
.two-col img { width: 100%; height: auto; display: block; }

.center { text-align: center; }
.widget-slot { min-height: 2rem; }

/* galleri (forsiden) */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  place-items: center start;
}
.gallery img { display: block; width: 100%; height: auto; }

/* bildegrid (opplevelser) */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 2rem; }
.photo-grid img { display: block; width: 100%; height: auto; }

.partner-logo { display: inline-block; padding-top: 1rem; }
.partner-logo img { width: 15rem; max-width: 100%; height: auto; }

.season-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.season-grid .block { padding: 1rem 0; }
.season-label { font-size: 1.25rem; font-weight: 700; color: var(--dark-green); text-transform: uppercase; }
.season-grid p + p { margin-top: 1.5em; }

/* ───────── Bunn ───────── */
.page-padding-footer { padding: .5rem 2.5rem; }
.footer-card {
  position: relative;
  height: 45rem;
  padding: 5rem 2.5rem 8rem;
  overflow: hidden;
  color: #fff;
  background-color: var(--footer-green);
  background-image: linear-gradient(#00000080, #00000080);
  border-radius: var(--radius);
}
.footer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 45rem;
  object-fit: cover;
  opacity: .33;
  mix-blend-mode: luminosity;
}
.footer-content { position: relative; z-index: 2; max-width: 70%; margin: 2rem auto; }
.footer-logo { display: block; width: 235px; margin: 0 0 1rem -.7rem; }
.footer-address { line-height: 1.8; }
.footer-address a, .footer-by a { color: var(--orange-red); }
.footer-by { margin: 1.4rem 0 0; }
.footer-partners { margin-top: 1rem; }
.partner-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 1rem; justify-content: start; align-items: end; margin-top: .5rem; }
.partner-grid a { display: block; line-height: 0; }
.logo-garmin { width: 8rem; max-width: none; }
.logo-vom { width: 4rem; max-width: none; }
.logo-troll { width: 9rem; max-width: none; }

/* ───────── Bilberry-widgetene ───────── */
bilberry-product-list, bilberry-booking, bilberry-booking-button, bilberry-gift-card-button, bilberry-product-featured { display: block; }

/* ───────── 404 ───────── */
.notfound { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }

/* ───────── Nettbrett (≤ 991px) ───────── */
@media (max-width: 991px) {
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .nav-logo { width: 12rem; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--orange-red);
    padding: 0 1rem 1rem;
  }
  .site-header.is-open .nav-menu { display: flex; }
  .nav-link { font-size: 1.2rem; padding: 8px 5px; margin-top: 0; }
  .nav-link.last { border-right: 0; margin-right: 0; }
  .lang { display: none; }
  .lang-inline { display: flex; justify-content: center; align-items: center; gap: 1.5rem; padding: .75rem 0 0; margin-top: 1rem; }
  .lang-inline a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #000; text-transform: uppercase; font-size: 1.1rem; }
  .lang-inline img { width: 2.5rem; height: 2.5rem; }

  .hero { height: auto; min-height: 480px; padding: 4rem 0 6rem; }
  .hero h1 { font-size: 5rem; line-height: 6.4rem; }
  .hero-box { max-width: none; margin: 1rem 0; }
  .hero-inner { padding: 0 2rem; }
  .container { max-width: none; margin: 1.5rem 0; }
  .heading-caps { font-size: 2.4rem; }
  .lead { font-size: 1.2rem; }
  .two-col { display: block; }
  .two-col > * + * { margin-top: 1rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .season-grid { grid-template-columns: 1fr; }
  .footer-card { height: auto; min-height: 30rem; padding-bottom: 4rem; }
  .footer-bg { height: 100%; min-height: 0; }
  .footer-content { max-width: none; }
  .video-hero { height: 20rem; }
}

/* ───────── Mobil liggende (≤ 767px) ───────── */
@media (max-width: 767px) {
  .padding-global, .section-pad { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section-wide { padding: 0 1.25rem; }
  .hero { height: auto; min-height: 380px; padding: 2rem 0 3rem; }
  .hero h1 { font-size: 3rem; line-height: 3.9rem; }
  .hero p { font-size: 1.25rem; }
  .heading-caps { font-size: 1.8rem; max-width: none; }
  .lead { font-size: 1rem; }
  .footer-card { min-height: 25rem; padding: 2rem 1.25rem 4rem; }
  .page-padding-footer { padding: .5rem 1rem; }
}

/* ───────── Mobil (≤ 479px) ───────── */
@media (max-width: 479px) {
  .nav-logo { width: 50vw; }
  .padding-global { padding-left: 1rem; padding-right: 1rem; }
  .hero {
    height: auto;
    min-height: 320px;
    padding: .25rem 0 1rem;
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
  }
  .hero h1 { font-size: 2.7rem; line-height: 3.6rem; }
  .hero-inner { padding: 0 1rem; }
  .gallery, .photo-grid { grid-template-columns: 1fr; }
  .video-hero { height: 16rem; }
  .logo-garmin { width: 6rem; }
  .logo-vom { width: 3rem; }
  .logo-troll { width: 7rem; }
  .partner-logo img { max-width: 60%; }
}

@media (prefers-reduced-motion: reduce) {
  .video-hero video { display: none; }
}
