/* Fornebu Services — drift og vedlikehold for sameier og næringsbygg
   Palett: dyp marine + varm sand. Rolig, ryddig, B2B. */

:root {
  --navy: #10243c;
  --navy-2: #1b3a5e;
  --sand: #e8dcc8;
  --sand-2: #f6f1e7;
  --accent: #c8892f;
  --accent-dark: #a06d20;
  --ink: #16202b;
  --muted: #5a6875;
  --line: #d9d2c4;
  --white: #ffffff;
  --ok: #2f6d4f;
  --radius: 4px;
  --wrap: 1140px;
  --shadow: 0 1px 2px rgba(16, 36, 60, .06), 0 8px 24px rgba(16, 36, 60, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-2);
}

h1, h2, h3, h4, .ui {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.015em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .6em; font-weight: 700; }
h3 { font-size: 1.2rem; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1.1em; }
a { color: var(--navy-2); }
a:hover { color: var(--accent-dark); }

img, svg { max-width: 100%; height: auto; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy);
  color: #fff; padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Topplinje ---------- */
.topbar {
  background: var(--navy); color: var(--sand);
  font-size: .875rem; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; padding: .5rem 0; }
.topbar a { color: var(--sand); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Header ---------- */
header.site { background: var(--white); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.logo .mark { width: 40px; height: 40px; flex: none; }
.logo b {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.2rem; letter-spacing: -.02em; display: block; line-height: 1.1;
}
.logo span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

nav.main ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
nav.main a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .95rem; text-decoration: none; color: var(--ink); padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--navy); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--navy);
  background: var(--navy); color: var(--white); cursor: pointer; transition: .15s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.btn.gold:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--sand-2); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(232,220,200,.16) 1px, transparent 0);
  background-size: 28px 28px; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(3rem, 8vw, 5.5rem) 0; display: grid; gap: 3rem; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; } }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.2rem; color: var(--sand); max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.eyebrow {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1rem; font-weight: 700;
}

.factcard { background: rgba(255,255,255,.06); border: 1px solid rgba(232,220,200,.25); border-radius: var(--radius); padding: 1.75rem; }
.factcard h2 { font-size: 1rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.factcard dl { margin: 0; display: grid; gap: .85rem; }
.factcard dt { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sand); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.factcard dd { margin: .15rem 0 0; color: var(--white); font-size: 1.05rem; }

/* ---------- Seksjoner ---------- */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
section.alt { background: var(--white); }
section.sand { background: var(--sand); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }

/* Svar-først-boks: det AI-motorer plukker opp */
.answer {
  background: var(--white); border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem; margin: 0 0 2.5rem; box-shadow: var(--shadow);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--navy); }

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

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
section.alt .card { background: var(--sand-2); }
.card h3 { color: var(--navy); }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: .9rem; display: block; }

ul.check { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
ul.check li { padding-left: 1.9rem; position: relative; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.1rem; height: .6rem;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

/* Prosess */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { ol.steps { grid-template-columns: repeat(4, 1fr); } }
ol.steps li { counter-increment: s; position: relative; padding-top: 3.25rem; }
ol.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--navy); color: var(--sand); display: grid; place-items: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700;
}
ol.steps h3 { margin-bottom: .35em; }
ol.steps p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Områdeliste */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.areas li {
  background: var(--white); border: 1px solid var(--line); border-radius: 100px;
  padding: .45rem 1.1rem; font-size: .93rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 600; font-size: 1.08rem;
  color: var(--navy); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--accent); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 2.5rem 1.5rem 0; max-width: 72ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* Bildeplass */
.photo-slot {
  border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--sand-2) ; display: grid; place-items: center; text-align: center;
  padding: 2.5rem 1.5rem; color: var(--muted); min-height: 220px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: .9rem;
}

/* CTA-bånd */
.cta-band { background: var(--navy); color: var(--sand-2); }
.cta-band h2 { color: var(--white); }
.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 p { margin-bottom: 0; color: var(--sand); max-width: 54ch; }
.cta-band .cta { display: flex; gap: .85rem; flex-wrap: wrap; }

/* Skjema */
form.contact { display: grid; gap: 1.1rem; max-width: 640px; }
form.contact label { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 600; font-size: .93rem; display: block; margin-bottom: .35rem; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
}
form.contact textarea { min-height: 150px; resize: vertical; }
.hint { color: var(--muted); font-size: .88rem; margin-top: .3rem; }

/* Tabell */
table.price { width: 100%; border-collapse: collapse; background: var(--white); font-size: .98rem; }
table.price th, table.price td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
table.price th { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--sand); color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* Footer */
footer.site { background: var(--navy); color: var(--sand); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; font-size: .95rem; }
footer.site a { color: var(--sand); }
footer.site h3 { color: var(--white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
footer.site .cols { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { footer.site .cols { grid-template-columns: 1.5fr 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 rgba(232,220,200,.2);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .87rem; color: #a9b6c4;
}

.breadcrumb { font-size: .87rem; color: var(--muted); padding: 1rem 0 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.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(--white); border-bottom: 1px solid var(--line); padding: 0 0 clamp(2rem, 5vw, 3rem); }
.page-head h1 { margin-top: .75rem; }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-bottom: 0; }

.meta-updated { font-size: .87rem; color: var(--muted); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }

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