/* EZ Fix — tømrer, restaurering og rehabilitering
   Palett: kull + ravgul + treverk. Håndverksstolt, kontrastrikt, robust. */

:root {
  --coal: #1c1a17;
  --coal-2: #2b2823;
  --amber: #d98324;
  --amber-2: #b96c17;
  --oak: #c9a227;
  --bone: #f4f1ea;
  --bone-2: #ffffff;
  --ink: #1c1a17;
  --muted: #6b645a;
  --line: #ddd7cb;
  --radius: 2px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bone);
}

h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 .55em; }
h3 { font-size: 1.15rem; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--amber-2); }
a:hover { color: var(--coal); }
img, svg { max-width: 100%; height: auto; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; background: var(--amber); color: #000; padding: .75rem 1.25rem; z-index: 99; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Header */
header.site { background: var(--coal); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--bone); }
.logo .mark { width: 42px; height: 42px; flex: none; }
.logo b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; display: block; line-height: 1; }
.logo span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
nav.main ul { display: flex; flex-wrap: wrap; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
nav.main a {
  text-decoration: none; color: var(--bone); font-size: .82rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; padding-bottom: .3rem; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--amber); color: #fff; }

/* Knapper */
.btn {
  display: inline-block; font-size: .84rem; font-weight: 800; text-decoration: none;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .95rem 1.8rem; border-radius: var(--radius); border: 2px solid var(--amber);
  background: var(--amber); color: #1a1206; cursor: pointer; transition: .15s;
}
.btn:hover { background: var(--amber-2); border-color: var(--amber-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--amber); }
.btn.ghost:hover { background: var(--amber); color: #1a1206; }
.btn.dark { background: var(--coal); border-color: var(--coal); color: var(--bone); }
.btn.dark:hover { background: var(--coal-2); border-color: var(--coal-2); color: #fff; }

/* Hero */
.hero { background: var(--coal); color: var(--bone); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(217,131,36,.055) 0 2px, transparent 2px 26px);
}
.hero .wrap { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0; display: grid; gap: 3rem; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: 1.25fr .75fr; align-items: end; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: 1.2rem; color: #cdc6b8; max-width: 48ch; text-transform: none; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.eyebrow { font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--amber); font-weight: 800; margin: 0 0 1.2rem; }

.spec { border-top: 2px solid var(--amber); padding-top: 1.5rem; }
.spec dl { margin: 0; display: grid; gap: 1.1rem; }
.spec dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); font-weight: 800; }
.spec dd { margin: .2rem 0 0; color: #fff; font-size: 1.02rem; }

/* Seksjoner */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.white { background: var(--bone-2); }
section.coal { background: var(--coal); color: #d6cfc2; }
section.coal h2, section.coal h3 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
section.coal .section-head p { color: #a89f91; }

.answer {
  background: var(--coal); color: var(--bone); padding: 1.9rem 2.1rem; margin-bottom: 2.5rem;
  border-left: 6px solid var(--amber);
}
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--amber); }

.grid { display: grid; gap: 1.5rem; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card { background: var(--bone-2); border: 1px solid var(--line); padding: 1.9rem; }
section.white .card { background: var(--bone); }
section.coal .card { background: var(--coal-2); border-color: #3e392f; color: #ccc4b6; }
.card h3 { color: var(--coal); }
section.coal .card h3 { color: #fff; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-size: .72rem; letter-spacing: .2em; color: var(--amber); font-weight: 800; display: block; margin-bottom: .8rem; }

ul.check { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
ul.check li { padding-left: 1.8rem; position: relative; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .85rem; height: .85rem;
  background: var(--amber); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
section.coal ul.check li::before { background: var(--oak); }

/* Fagområder — stripete liste */
.disciplines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.disciplines > div { display: grid; gap: .5rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 780px) { .disciplines > div { grid-template-columns: .8fr 2fr; } }
.disciplines h3 { margin: 0; color: var(--coal); }
.disciplines p { margin: 0; color: var(--muted); }

/* Prosess */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
@media (min-width: 780px) { ol.steps { grid-template-columns: repeat(5, 1fr); } }
ol.steps li { counter-increment: s; border-top: 3px solid var(--amber); padding-top: 1.1rem; }
ol.steps li::before { content: "0" counter(s); font-size: .78rem; letter-spacing: .2em; color: var(--amber); font-weight: 800; display: block; margin-bottom: .6rem; }
ol.steps h3 { font-size: 1.02rem; margin-bottom: .4em; }
ol.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
section.coal ol.steps p { color: #a89f91; }

.areas { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.areas li { border: 1px solid var(--line); padding: .45rem 1.1rem; font-size: .88rem; font-weight: 600; letter-spacing: .04em; background: var(--bone-2); }
section.coal .areas li { background: transparent; border-color: #464035; color: #cfc7b9; }

/* FAQ */
.faq { border-top: 2px solid var(--coal); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.3rem 2.8rem 1.3rem 0; position: relative; list-style: none;
  font-weight: 700; font-size: 1.05rem; color: var(--coal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: 1.7rem; color: var(--amber); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 2.8rem 1.6rem 0; max-width: 74ch; }
.faq .a p:last-child { margin-bottom: 0; }

.photo-slot {
  border: 2px dashed var(--line); background: var(--bone-2); display: grid; place-items: center;
  text-align: center; padding: 2.5rem 1.5rem; color: var(--muted); min-height: 250px; font-size: .88rem;
}
section.coal .photo-slot { background: var(--coal-2); border-color: #464035; color: #8e867a; }

/* CTA */
.cta-band { background: var(--amber); color: #1a1206; }
.cta-band .wrap { padding: clamp(2.5rem, 6vw, 4rem) 0; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .cta-band .wrap { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #1a1206; margin-bottom: .35em; }
.cta-band p { margin-bottom: 0; max-width: 52ch; text-transform: none; }
.cta-band .cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn { background: var(--coal); border-color: var(--coal); color: var(--amber); }
.cta-band .btn:hover { background: #000; border-color: #000; color: var(--amber); }
.cta-band .btn.ghost { background: transparent; color: #1a1206; border-color: #1a1206; }
.cta-band .btn.ghost:hover { background: #1a1206; color: var(--amber); }

/* Skjema */
form.contact { display: grid; gap: 1.1rem; max-width: 640px; }
form.contact label { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: .4rem; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { border-color: var(--amber); }
form.contact textarea { min-height: 150px; resize: vertical; }
.hint { color: var(--muted); font-size: .88rem; margin-top: .3rem; }

table.price { width: 100%; border-collapse: collapse; background: var(--bone-2); font-size: .97rem; }
table.price th, table.price td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
table.price th { background: var(--coal); color: var(--bone); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

footer.site { background: var(--coal); color: #9d9488; padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; font-size: .95rem; }
footer.site a { color: #d6cfc2; }
footer.site a:hover { color: var(--amber); }
footer.site h3 { color: var(--amber); font-size: .72rem; letter-spacing: .2em; margin-bottom: 1rem; }
footer.site .cols { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { footer.site .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
footer.site .legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3a352c; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }

.breadcrumb { font-size: .8rem; letter-spacing: .06em; color: var(--muted); padding: 1.25rem 0 0; text-transform: uppercase; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.page-head { background: var(--bone-2); padding: 0 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: .8rem; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
