/* styles.css */
:root{
  --bg: #ffffff;
  --text: #0b0d10;
  --muted: rgba(11,13,16,.68);
  --panel: rgba(255,255,255,.82);
  --panel-strong: rgba(255,255,255,.92);
  --line: rgba(11,13,16,.12);

  --gold: #b58b2a;
  --gold-soft: rgba(181,139,42,.14);

  --shadow: 0 18px 50px rgba(0,0,0,.10);
  --shadow-strong: 0 24px 70px rgba(0,0,0,.14);

  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity:.9; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section{ padding: 84px 0; position: relative; }
.section--hero{ padding-top: 110px; }
.section--contact{ padding-bottom: 110px; }

.section__header{ margin-bottom: 22px; }
.section__header h2{
  margin:0 0 10px;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
}
.section__sub{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}

/* Bakgrunn */
.bg-orb{
  position: fixed;
  width: 520px;
  height: 520px;
  filter: blur(44px);
  opacity: .35;
  pointer-events: none;
  z-index: -3;
  border-radius: 999px;
}
.bg-orb--a{
  left:-180px; top:90px;
  background: radial-gradient(circle at 35% 35%, rgba(181,139,42,.32), transparent 62%),
              radial-gradient(circle at 70% 70%, rgba(0,0,0,.06), transparent 68%);
}
.bg-orb--b{
  right:-220px; top:260px; left:auto;
  background: radial-gradient(circle at 40% 30%, rgba(181,139,42,.26), transparent 62%),
              radial-gradient(circle at 60% 70%, rgba(0,0,0,.05), transparent 68%);
}
.bg-grid{
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 700px at 50% 18%, rgba(0,0,0,1), transparent 72%);
  opacity: .55;
  pointer-events: none;
  z-index: -2;
}

/* Header */
.header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand__logo{
  width: 92px;
  height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.brand__text{ display:flex; flex-direction: column; }
.brand__name{ font-weight: 800; letter-spacing:-0.02em; }
.brand__tagline{ color: var(--muted); font-size: 12px; }

.nav{
  display:flex;
  align-items:center;
  gap: 12px;
}
.nav__link{
  padding: 10px 10px;
  color: rgba(11,13,16,.72);
  border-radius: 12px;
}
.nav__link:hover{
  color: var(--text);
  background: rgba(0,0,0,.04);
}
.nav__cta{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(181,139,42,.45);
  background: linear-gradient(180deg, rgba(181,139,42,.14), rgba(181,139,42,.08));
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.nav__burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  cursor: pointer;
}
.nav__burger span{
  display:block;
  height: 2px;
  width: 18px;
  background: rgba(0,0,0,.86);
  margin: 5px auto;
  border-radius: 999px;
}

.nav__mobile{
  padding: 10px 24px 18px;
  border-top: 1px solid var(--line);
}
.nav__mobile .nav__link,
.nav__mobile .nav__cta{
  display:block;
  margin-top: 10px;
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.75);
  color: rgba(11,13,16,.70);
  margin: 0 0 16px;
}
h1{
  margin: 0 0 14px;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.accent{
  background: linear-gradient(90deg, #8a6a1f, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 62ch;
  font-size: 16px;
}

.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero__stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.stat__value{ display:block; font-weight: 800; }
.stat__label{ display:block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.hero__visual{ position: relative; }

/* Placeholder / hero-boks */
.image-placeholder{
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0,0,0,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  box-shadow: var(--shadow-strong);
  padding: 18px;
  min-height: 360px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Bilde som bakgrunn (hero) */
.ph-img--bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  z-index: 0;
}

/* Overlay for lesbarhet */
.image-placeholder::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.10),
    rgba(255,255,255,.55)
  );
  z-index: 1;
  pointer-events: none;
}
.image-placeholder > *{
  position: relative;
  z-index: 2;
}

/* Når vi har ekte produktbilder: ingen overlay/placeholder-stil */
.image-placeholder.has-image{
  background: transparent;
}
.image-placeholder.has-image::after{
  display: none;
}

/* Størrelser */
.image-placeholder--small{
  min-height: 170px;
  text-align:center;
}
.image-placeholder--wide{
  min-height: 220px;
  margin-top: 16px;
  text-align:center;
}

/* Komponenter */
.card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.muted{ color: var(--muted); margin-top: 6px; }

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.86);
  color: var(--text);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.button:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.22);
}
.button--primary{
  border: 1px solid rgba(181,139,42,.55);
  background: linear-gradient(180deg, rgba(181,139,42,.20), rgba(181,139,42,.10));
}
.button--ghost{ background: rgba(255,255,255,.70); }
.button--small{ padding: 10px 12px; border-radius: 12px; }

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }

/* Produkter */
.products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;

  /* viktig for at kortene strekkes likt i raden */
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.product{
  overflow:hidden;

  /* viktig: gjør kortet til en kolonne som fyller grid-raden */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Produktbilde-blokk */
.product__image{
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  padding: 0;
  display: block;
  min-height: 170px;
  overflow: hidden;
  position: relative;

  /* valgfritt: lås høyde for 100% likhet (kan kommenteres ut) */
  height: 190px;
}
.product__image .ph-img--bg{
  border-radius: 0;
}

/* --- FIX: knapper på samme linje i produktkort --- */

/* Sørg for at kortene strekkes i raden */
.products{
  align-items: stretch;
}

/* Produktkort: kolonne og full høyde */
.product{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Gjør body til grid: tittel, tekst, innhold (fyller), actions (bunn) */
.product__body{
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  flex: 1;
}

/* La lista være "fyll-området" */
.product__body .list{
  margin: 0;
  align-self: start;
}

.product__image{
  height: 190px;
  min-height: 190px;
}


/* Actions alltid nederst */
.product__actions{
  margin-top: 0;       /* viktig: ikke auto her når vi bruker grid */
  padding-top: 0;
  align-self: start;
}

/* Karusell-kort */
.carousel-card{
  padding: 14px;
  overflow: hidden;
}

/* Karusell */
.carousel{
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Skjul radio-knapper */
.carousel > input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Viewport */
.carousel__viewport{
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

/* Slides */
.carousel__slides{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .35s ease;
}
.carousel__slide{
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
}
.carousel__slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* Posisjon basert på valgt radio */
#gal-1:checked ~ .carousel__viewport .carousel__slides{ transform: translateX(0%); }
#gal-2:checked ~ .carousel__viewport .carousel__slides{ transform: translateX(-100%); }
#gal-3:checked ~ .carousel__viewport .carousel__slides{ transform: translateX(-200%); }
#gal-4:checked ~ .carousel__viewport .carousel__slides{ transform: translateX(-300%); }
#gal-5:checked ~ .carousel__viewport .carousel__slides{ transform: translateX(-400%); }
#gal-6:checked ~ .carousel__viewport .carousel__slides{ transform: translateX(-500%); }

/* Prev/next */
.carousel__controls{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px;
  pointer-events: none;
}
.carousel__btn{
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 26px;
  line-height: 1;
  border: 1px solid rgba(181,139,42,.45);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  cursor: pointer;
  user-select: none;
}
.carousel__btn:hover{
  background: rgba(255,255,255,.90);
}

/* Dots */
.carousel__dots{
  display:flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 10px 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
}
.carousel__dots label{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25);
  background: rgba(0,0,0,.10);
  cursor: pointer;
}
#gal-1:checked ~ .carousel__dots label[for="gal-1"],
#gal-2:checked ~ .carousel__dots label[for="gal-2"],
#gal-3:checked ~ .carousel__dots label[for="gal-3"],
#gal-4:checked ~ .carousel__dots label[for="gal-4"],
#gal-5:checked ~ .carousel__dots label[for="gal-5"],
#gal-6:checked ~ .carousel__dots label[for="gal-6"]{
  background: rgba(181,139,42,.35);
  border-color: rgba(181,139,42,.75);
}

/* Småbilder under karusell (s1/s2/s3) */
.carousel-thumbs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.carousel-thumbs img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

/* Ekstra bilde under småbildene (e1) */
.carousel-extra{
  margin-top: 12px;
}
.carousel-extra img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

/* Banner */
.banner{
  margin-top: 16px;
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, rgba(181,139,42,.10), rgba(255,255,255,.82));
  border: 1px solid rgba(181,139,42,.22);
}
.banner__right{ display:flex; gap: 12px; flex-wrap: wrap; }

/* Kontakt */
.contact__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.contact__info{ padding: 18px; }
.kv{ margin-top: 14px; }
.kv__row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.kv__k{ color: var(--muted); }
.kv__v a{ text-decoration: underline; text-underline-offset: 3px; }

/* Kart */
.map-embed{
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
}
.map-embed iframe{
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.form{ padding: 18px; }
.form label{
  display:flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  color: rgba(11,13,16,.86);
}
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(181,139,42,.60);
  box-shadow: 0 0 0 4px rgba(181,139,42,.16);
}
textarea{ resize: vertical; min-height: 140px; }

.form__actions{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 14px;
}
.form__hint{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}
.form__hint.is-success{
  color: #6b571e;
  font-weight: 600;
}
.form__hint.is-error{
  color: #8b1f1f;
  font-weight: 600;
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: rgba(255,255,255,.78);
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Logo-kolonne + tekst på samme linje */
.footer__brand{
  display:flex;
  gap: 16px;
  align-items: center;
}

/* Logoene sentrert under hverandre */
.footer__logos{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.footer__logo{
  width: 74px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  margin: 0 auto;
}

.footer__ffs{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer__ffslogo{
  height: 30px;   /* din verdi */
  width: auto;
  display: block;
  margin: 0 auto;
  opacity: .9;
}
.footer__ffslogo:hover{ opacity: 1; }

.footer__title{ margin:0; font-weight: 800; }
.footer__muted{ margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.footer__links{ display:flex; gap: 14px; color: rgba(11,13,16,.70); }
.footer__fineprint{ color: var(--muted); font-size: 13px; max-width: 60ch; }

/* Responsivt */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .hero__stats{ grid-template-columns: 1fr; }
  .products{ grid-template-columns: 1fr; }
  .contact__grid{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .nav__burger{ display:inline-flex; align-items:center; justify-content:center; }
  .carousel__viewport{ aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .button{ transition: none; }
  .carousel__slides{ transition: none; }
}
