/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{line-height:1.15;-webkit-text-size-adjust:100%;}
body{margin:0;}
main{display:block;}
h1{font-size:2em;margin:.67em 0;}
hr{box-sizing:content-box;height:0;overflow:visible;}
pre{font-family:monospace,monospace;font-size:1em;}
a{background-color:transparent;}
abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}
b,strong{font-weight:bolder;}
code,kbd,samp{font-family:monospace,monospace;font-size:1em;}
small{font-size:80%;}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}
sub{bottom:-.25em;}
sup{top:-.5em;}
img{border-style:none;}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}
button,input{overflow:visible;}
button,select{text-transform:none;}
[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;}
[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0;}
[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText;}
fieldset{padding:.35em .75em .625em;}
legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}
progress{vertical-align:baseline;}
textarea{overflow:auto;}
[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}
[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto;}
[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}
[type=search]::-webkit-search-decoration{-webkit-appearance:none;}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}
details{display:block;}
summary{display:list-item;}
template{display:none;}
[hidden]{display:none;}

/* ======= Bidhelp Brand Variables ======= */
:root {
  --bg: #ffffff;         /* Hvit bakgrunn */
  --fg: #333333;         /* Primær tekstfarge */
  --muted: #666666;      /* Sekundær tekst */
  --muted-2: #7a7a7a;
  --border: #e6e6e6;     /* Diskret linjefarge */
  --card: #ffffff;

  /* Brand (primær/CTA) */
  --accent: #F07D27;     /* Amber Clay – primær */
  --accent-600: #985832;  /* Mule Fawn – hover/dypere */
  --accent-50: #FFF5EB;   /* Lys vask til fokus/hover */

  /* Sekundær/lenker (naturbalanse) */
  --accent1: #556B47;     /* Forest Moss – sekundær */
  --link: #556B47;
  --link-hover: #3f5337;

  /* Mørk base (footer / mørke seksjoner) */
  --paco: #33170B;

  /* Skjema/skyggar */
  --shadow: 0 8px 18px rgba(0,0,0,.05);
}

/* ======= Global / Base ======= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ======= Layout ======= */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.main { padding-block: 24px; }
section { padding-block: 32px; }

/* ======= Header / Nav ======= */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(180%) blur(10px);
  background: #ffffff; /* Hvit topp */
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 18px;
}

.brand a {
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 1.05rem;
  color: var(--paco);
}

.menu {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.menu a {
  padding: 8px 0;
  color: var(--muted);
  font-weight: 600;
}

.menu a:hover,
.menu a.active {
  color: var(--accent);
}

/* ======= Buttons ======= */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-weight: 600;
  text-align: center;
  transition: transform .04s ease, background .2s ease, border-color .2s ease;
}

.btn:hover {
  background: var(--accent-600);
  border-color: var(--accent-600);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

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

.btn.outline:hover { background: var(--accent-50); }

/* ======= Hero ======= */
.hero {
  padding-block: 56px;
  display: grid;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin: 0;
  color: var(--paco);
}

.hero p {
  color: var(--muted);
  max-width: 70ch;
  margin: 0;
}

.hero .cta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ======= Sections / Titles ======= */
.section-title {
  font-size: 1.6rem;
  margin: 0 0 14px 0;
  color: var(--paco);
}

/* ======= Grids ======= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

@media (max-width:900px){
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width:640px){
  .grid-3 { grid-template-columns: 1fr; }
}

/* ======= Cards ======= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  color: var(--paco);
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* ======= Tables ======= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

thead th {
  background: var(--accent-50);
  text-align: left;
  padding: 12px 14px;
  font-size: .92rem;
  color: var(--paco);
}

tbody td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

tbody tr:hover { background: #fafafa; }

/* ======= Forms ======= */
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

input,
textarea,
select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  font-size: 1rem;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-50);
}

.form .btn { justify-self: start; }

/* ======= Footer ======= */
footer {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  background: var(--paco);
  color: #fff;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover { color: var(--accent-600); }

/* ======= Utilities ======= */
a { text-decoration: none; color: inherit; }
small { color: var(--muted-2); }
.muted { color: var(--muted); }
.center { text-align: center; }

section p + p { margin-top: 6px; }
section h2 + p { margin-top: 0; }

/* ======= Logo ======= */
.logo {
  height: 75px;
  width: auto;
  display: block;
}

/* ======= Mørk seksjon (kan brukes ved behov) ======= */
.section-dark {
  background: var(--paco);
  color: #fff;
  padding-block: 48px;
}
.section-dark h2, .section-dark p { color: #fff; }

/* ======= Hero (alternativ layout) ======= */
.hero-alt {
  width: 100%;
  background: var(--paco); /* mørk brun bakgrunn */
  color: #fff;
  padding: 80px 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 95%);
  margin: 0 auto;
  gap: 40px;
}

.hero-text {
  flex: 1;
  color: #fff;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--accent); /* Amber Clay (oransje tittel) */
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f5f3f0;
  margin: 0;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Responsiv oppførsel */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-text {
    padding: 0 20px;
  }
}


/* --- Mobile polish --- */
@media (max-width: 700px) {
  nav { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .logo { height: 48px; }
  .menu { width: 100%; justify-content: space-between; gap: 12px; }
  .menu a { font-size: 0.95rem; padding: 6px 0; }
  .hero { padding-block: 32px; }
  .container { width: min(1100px, 94vw); }
}
