/* Riise Elektro & Co ANS – felles stil for alle sidene */
:root {
  --red: #d7141a;
  --red-dark: #a80f14;
  --ink: #16181d;
  --text: #2b2f36;
  --muted: #646b76;
  --line: #e6e8ec;
  --bg: #ffffff;
  --soft: #f5f6f8;
  --radius: 14px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }

/* Knapper */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 650; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn svg { width: 20px; height: 20px; }

/* Topp */
.topbar { background: var(--ink); color: #cfd3da; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 1.5rem; justify-content: flex-end; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; }
.topbar a { color: #fff; }
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.logo img { height: 46px; width: auto; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
nav.main a { color: var(--ink); font-weight: 600; padding: .5rem .85rem; border-radius: 999px; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--soft); text-decoration: none; }
nav.main .btn { margin-left: .5rem; padding: .6rem 1.1rem; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem; }
.menu-toggle svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  nav.main { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.main.open { display: flex; }
  nav.main .btn { margin: .5rem 0 0; justify-content: center; }
}

/* Forside-hero */
.hero { position: relative; color: #fff; background: #1b1d22 url("img/bakgrunn.jpg") center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 19, 23, .92) 0%, rgba(18, 19, 23, .78) 55%, rgba(18, 19, 23, .35) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { color: #fff; }
.hero p { color: #d5d8de; font-size: 1.15rem; max-width: 560px; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .btn-ghost { color: #fff; }
.hero-photo { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border: 4px solid rgba(255, 255, 255, .9); }
.badges { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; }
.badge svg { width: 22px; height: 22px; color: #ff6b6f; flex: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; } }

/* Sidetopp for undersider */
.page-head { background: var(--ink) url("img/bakgrunn.jpg") center/cover; position: relative; color: #fff; }
.page-head::before { content: ""; position: absolute; inset: 0; background: rgba(18, 19, 23, .85); }
.page-head .wrap { position: relative; padding-top: 64px; padding-bottom: 56px; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #d5d8de; margin: .5rem 0 0; max-width: 640px; }

/* Kort */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(215, 20, 26, .09); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check li { display: flex; gap: .6rem; align-items: flex-start; }
.check li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Områder */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }

/* Merker */
.brands { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: center; }
.brands img { height: 46px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; object-fit: contain; }
.brands img:hover { filter: none; opacity: 1; }

/* Tall */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat strong { display: block; font-size: 2.4rem; color: var(--red); line-height: 1; font-weight: 800; }
.stat span { color: var(--muted); }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }

/* Åpningstider og kontakt */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:first-child { font-weight: 650; color: var(--ink); width: 42%; }
.contact-line { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-line svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
.tech { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); gap: 1rem; }
.tech:last-child { border-bottom: 0; }
.tech small { display: block; color: var(--muted); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* Bestill */
.cta { background: var(--red); color: #fff; border-radius: 20px; padding: 44px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }
.cta p { margin: .35rem 0 0; color: #ffe1e2; }
.booking-frame { width: 100%; min-height: 1100px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Bunn */
footer.site { background: var(--ink); color: #b9bec7; padding: 56px 0 28px; font-size: .95rem; }
footer.site h3 { color: #fff; font-size: 1rem; }
footer.site a { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
footer.site .bottom { border-top: 1px solid #2c3038; margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
footer.site .logo-w { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 1rem; }
footer.site .logo-w img { height: 36px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }
nav.main a.btn-primary, nav.main a.btn-primary:hover { color: #fff; background: var(--red); }
nav.main a.btn-primary:hover { background: var(--red-dark); }
