:root {
  --brand: #4f703c;
  --brand-light: #7ea96b;
  --bg: #f8faf5;
  --text: #0f1110;
  --ring: #dbe3d4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; border-radius: 8px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* HERO – uten bølge, ren grønn bakgrunn */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  padding: 80px 0 100px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}
/* NB: Vi definerer ikke .hero::after her. */

/* Logo + glød */
.hero-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-logo {
  height: 200px; max-width: 100%; z-index: 1; margin-bottom: 18px;
  transition: transform .3s ease, box-shadow .45s ease;
}
.hero-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(126,169,107,0.75), 0 0 40px rgba(79,112,60,0.45);
}

/* Kategorimeny i hero */
.hero-nav {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; z-index: 1; margin-top: 0;
}
.hero-nav a {
  padding: 10px 16px; border-radius: 999px; background: white; color: var(--brand);
  text-decoration: none; font-weight: 600; transition: all 0.2s ease;
}
.hero-nav a:hover { background: var(--brand-light); color: white; }

/* Seksjons-headere */
h2 {
  font-size: 2rem; margin-bottom: 20px; color: var(--brand);
  position: relative; text-align: center;
}
h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--brand-light); margin: 8px auto 0; border-radius: 2px; }

/* Produkter */
#produkter { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; justify-items: center; }
.card-link { text-decoration: none; color: inherit; display: block; width: 100%; }
.card {
  background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }
.card img, .card video { border-bottom-left-radius: 0; border-bottom-right-radius: 0; transition: transform 0.3s ease; }
.card:hover img, .card:hover video { transform: scale(1.05); }
.pad { padding: 14px; }
.prod-title { font-size: 1.1rem; font-weight: bold; color: var(--brand); }

/* Galleri */
#galleri { text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; justify-items: center; }
.thumb { border-radius: 8px; overflow: hidden; background: #eef2ee; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.thumb video { width: 100%; height: auto; }

/* Kontakt */
#kontakt { text-align: center; }
.contact-form {
  background: white; padding: 20px; border-radius: 12px; max-width: 500px; margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); text-align: left;
}
.contact-form label { font-weight: 600; display: block; margin-top: 10px; color: var(--brand); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px; margin-top: 4px; border: 1px solid var(--ring); border-radius: 6px; font: inherit;
}
.contact-form button { margin-top: 14px; }

/* Knapp */
.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: white;
  padding: 10px 18px; border-radius: 999px; text-decoration: none; display: inline-block; transition: background 0.2s ease;
}
.btn:hover { background: linear-gradient(135deg, var(--brand-light), var(--brand)); }
.btn.full { display: block; text-align: center; }
.btn-secondary {
  background: #fff; border: 2px solid var(--brand); color: var(--brand);
  padding: 10px 18px; border-radius: 999px; text-decoration: none; display: inline-block; margin-top: 10px; transition: all 0.2s ease; font-weight: 600;
}
.btn-secondary:hover { background: var(--brand-light); border-color: var(--brand-light); color: #fff; }

/* Produktside */
.product-page { display: flex; flex-direction: column; align-items: center; text-align: center; }
.product-media { max-width: 600px; margin-bottom: 20px; }
.product-info { max-width: 500px; }
.small-hero {
  background: var(--brand-light); color: white; padding: 40px 0; text-align: center;
  border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
}

/* SoMe nederst */
.hero-social { margin-top: 20px; display: flex; gap: 14px; justify-content: center; z-index: 2; position: relative; }
.sm-icon {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: white; border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  color: var(--brand);
}
.sm-icon svg { width: 22px; height: 22px; fill: currentColor; }
.sm-icon:hover { background: var(--brand-light); transform: scale(1.1); color: #fff; }
.social-footer { margin: 40px 0 10px; }

/* FAQ – pen og luftig */
#faq { margin-top: 40px; text-align: center; }
.faq-item { max-width: 760px; margin: 0 auto 12px; text-align: left; }
.faq-question {
  width: 100%; padding: 14px 16px; background: #fff; color: var(--brand);
  border: 1px solid var(--ring); border-radius: 10px; font-size: 1rem; font-weight: 700; text-align: left; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-question:hover { border-color: var(--brand-light); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.faq-caret { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; transition: transform .28s ease; }
.faq-caret svg { width: 18px; height: 18px; fill: var(--brand); }
.faq-caret.open { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s ease;
  background: white; border: 1px solid var(--ring); border-radius: 10px; margin-top: 6px; padding: 0 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.faq-answer.open { padding: 16px; }
.faq-answer p { margin: 18px 0; line-height: 1.8; }

/* Footer */
.footer {
  background: white; border-top: 1px solid var(--ring);
  padding: 14px 0; text-align: center; font-size: 0.9rem;
}
.footer small { opacity: 0.85; }

/* Språk-burger oppe til høyre (hvis aktiv) */
.lang-switch { position: fixed; top: 14px; right: 14px; z-index: 9999; }
.lang-toggle {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 10px; cursor: pointer; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.lang-toggle span { display: block; width: 18px; height: 2px; background: var(--brand); margin: 2px 0; border-radius: 2px; }
.lang-menu {
  position: absolute; top: 50px; right: 0; background: #fff; border: 1px solid var(--ring); border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12); padding: 8px; min-width: 180px; display: none;
}
.lang-menu.open { display: block; }
.lang-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: none; background: transparent; cursor: pointer; border-radius: 8px; font: inherit; color: var(--text); }
.lang-btn:hover { background: #f3f7ef; }
.flag { width: 18px; height: 12px; border-radius: 2px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); position: relative; }
/* Norge */
.flag.no { background: #BA0C2F; }
.flag.no::before { content:""; position:absolute; left: 30%; top:0; width: 12%; height:100%; background:#FFFFFF; }
.flag.no::after  { content:""; position:absolute; left:0; top: 40%; width:100%; height:12%; background:#FFFFFF; }
.flag.no i, .flag.no b { content:""; position:absolute; display:block; background:#00205B; }
.flag.no i { left: 34%; top:0; width: 4%; height:100%; }
.flag.no b { left:0; top: 44%; width:100%; height:4%; }
/* Sverige */
.flag.se { background:#006AA7; }
.flag.se::before { content:""; position:absolute; left: 30%; top:0; width: 12%; height:100%; background:#FECC00; }
.flag.se::after  { content:""; position:absolute; left:0; top: 40%; width:100%; height:12%; background:#FECC00; }
/* Danmark */
.flag.dk { background:#C60C30; }
.flag.dk::before { content:""; position:absolute; left: 28%; top:0; width: 14%; height:100%; background:#FFFFFF; }
.flag.dk::after  { content:""; position:absolute; left:0; top: 40%; width:100%; height:14%; background:#FFFFFF; }
/* Skjul Google Translate-topper (hvis aktiv) */
.goog-te-banner-frame { display: none !important; }
.goog-logo-link, .goog-te-gadget { display: none !important; }
body { top: 0 !important; }

/* Modal for kontaktskjema */
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 10000; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.modal-card {
  position: relative; z-index: 1;
  width: min(560px, 92vw);
  margin: 10vh auto 0;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
}
.modal.success .modal-icon { background: rgba(126,169,107,.15); }
.modal.error   .modal-icon { background: rgba(220,120,120,.15); }
.modal-icon {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center;
}
.modal-icon svg { width: 34px; height: 34px; fill: var(--brand); }
.modal-title { margin: 6px 0; color: var(--brand); font-size: 1.4rem; }
.modal-text { margin: 0 auto 16px; max-width: 48ch; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-close {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: #f3f3f3; color: #333; font-size: 18px; line-height: 1;
}
.modal-close:hover { background: #e7e7e7; }

/* Responsivt */
@media (max-width: 600px) {
  .hero-logo { height: 170px; }
}

/* KILL SWITCH: fjern enhver tidligere bølge */
.hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
.product-info p {
  margin: 4px 0;
  line-height: 1.3;
}

.product-info ul {
  margin: 6px 0;
  padding-left: 18px;
}

.product-info li {
  margin-bottom: 4px;
  line-height: 1.3;
}
/* ===== SPACING FIX – PRODUKTSIDE ===== */

/* Mer luft mellom bilde og teknisk info */
.product-media {
  margin-bottom: 60px !important;
}

/* Mer luft mellom tekst og "Kontakt oss"-knapp */
.product-info .btn {
  margin-top: 40px !important;
}
/* ===== FIX: Like høye produktbilder ===== */

.card img {
  width: 100%;
  height: 600px;        /* Juster denne hvis du vil ha høyere/lavere */
  object-fit: cover;   /* Beskjærer pent uten å strekke */
  display: block;
}
#faq {
  display: none !important;
}
/* ===== FIKS: Flytt Galleri opp (mindre luft fra teksten over) ===== */

/* Overstyr inline margin på #info (du har margin:50px auto i HTML) */
#info {
  margin: 30px auto 10px !important; /* top / left-right / bottom */
}

/* Stram inn toppmargin på Galleri-overskriften */
#galleri h2 {
  margin-top: 0 !important;
}
.product-info p:last-of-type {
  margin-top: 14px;
}
/* ===== LUFT MELLOM HERO OG PRODUKTBILDE ===== */

.small-hero {
  margin-bottom: 40px;
}
/* ===== FIKS: Like store knapper i alle modaler ===== */

.modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.modal-actions .btn,
.modal-actions .btn-secondary {
  min-width: 200px;
  height: 44px;
  line-height: 44px;
  padding: 0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
/* ===== MODAL: samme høyde på knapper (filled + outline) ===== */
.modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.modal-actions .btn,
.modal-actions .btn-secondary {
  min-width: 220px;
  height: 46px;              /* <- lik høyde */
  padding: 0 22px;           /* <- lik innvendig luft */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;            /* <- unngå tekst som påvirker høyde */
  box-sizing: border-box;    /* <- border teller med */
  white-space: nowrap;
}

/* Outline-knappen: behold border, men samme høyde likevel */
.modal-actions .btn-secondary {
  border-width: 2px;
}
/* ===== MODAL: identisk høyde (filled + outline) ===== */
.modal-actions{
  display:flex !important;
  gap:14px !important;
  justify-content:center !important;
  align-items:center !important;
}

.modal-actions .btn,
.modal-actions .btn-secondary{
  min-width: 260px !important;
  height: 48px !important;
  padding: 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
}

/* NØKKELEN: samme border-tykkelse på begge */
.modal-actions .btn{
  border: 2px solid transparent !important;   /* usynlig, men gir lik høyde */
}

.modal-actions .btn-secondary{
  border: 2px solid var(--brand) !important;
}
