/* ============================================================
   Visolaris – utseende
   Färger och typsnitt följer den tidigare WordPress-sajten:
   marinblått (#0C2356) och solgult (#FBB03B), Montserrat.
   ============================================================ */
:root {
  --navy: #0C2356;
  --navy-2: #1A3D7C;
  --blue: #4A68A0;
  --blue-light: #6E92BF;
  --sun: #FBB03B;
  --sun-dark: #D98E30;
  --sun-light: #FFD56A;
  --ink: #14213D;
  --text: #333;
  --muted: #6b7280;
  --light: #F4F6FA;
  --line: #e2e6ee;
  --white: #fff;
  --ok: #16A34A;
  --err: #C62828;
  --font: "Montserrat", system-ui, sans-serif;
  --wrap: 1180px;
  --header-h: 78px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }
.kicker { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--sun-dark); margin-bottom: 8px; }
.lead-text { font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: 0 18px 40px rgba(12,35,86,.16); }
.wide { width: 100%; }
.caption { text-align: center; color: var(--muted); font-size: .9rem; margin: 12px 0 40px; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sun); color: #fff; text-decoration: none;
  font-family: var(--font); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 14px 24px; border: 2px solid var(--sun); border-radius: 999px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--sun-dark); border-color: var(--sun-dark); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn.outline-light:hover { background: #fff; color: var(--navy); }
.btn.small { padding: 9px 16px; font-size: .72rem; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.center-btns { justify-content: center; }

/* ---------- Sidhuvud ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: #fff; border-bottom: 3px solid var(--sun-light);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1320px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav li { position: relative; }
.nav a {
  display: flex; align-items: center; gap: 5px; text-decoration: none;
  font-weight: 600; font-size: .86rem; color: var(--ink); padding: 10px 11px; white-space: nowrap;
}
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"] { color: var(--sun-dark); }
.nav .caret { width: 9px; height: 9px; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px 0;
  background: #fff; box-shadow: 0 14px 34px rgba(12,35,86,.16); border-radius: 10px; border-top: 3px solid var(--sun);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-weight: 500; font-size: .84rem; padding: 9px 18px; }
.nav .sub a:hover { background: var(--light); color: var(--navy); }
.nav .nav-cta {
  margin-left: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .8rem;
}
.nav .nav-cta svg { width: 16px; height: 16px; }
.nav .nav-cta:hover { background: var(--navy-2); }
.menu-toggle { display: none; background: var(--navy); color: #fff; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; display: block; }

/* ---------- Stor bild (startsida) ---------- */
.hero {
  position: relative; min-height: calc(88vh - var(--header-h)); display: flex; align-items: flex-end;
  background: var(--navy) center/cover no-repeat; color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,35,86,.15) 0%, rgba(12,35,86,.25) 40%, rgba(12,35,86,.85) 100%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: 9vh; padding-top: 12vh; }
.hero h1 { color: #fff; max-width: 15em; }
.hero p { max-width: 36em; font-size: 1.12rem; font-weight: 500; }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; margin-bottom: 12px; color: var(--sun-light); }

/* ---------- Sidhuvud för undersidor ---------- */
.page-head {
  position: relative; padding: 110px 0 90px; text-align: center; color: #fff;
  background: var(--navy) center/cover no-repeat;
}
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,35,86,.55), rgba(12,35,86,.75)); }
.page-head .wrap { position: relative; }
.page-head h1 { color: #fff; margin: 0 auto; max-width: 20em; }
.page-head p { max-width: 40em; margin: 14px auto 0; }

/* ---------- Sektioner ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 50px 0; }
.section.light { background: var(--light); }
.section.navy { background: var(--navy); color: #dfe6f3; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-title { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; align-items: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 50px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature img { margin-bottom: 20px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.box { background: var(--light); border-radius: var(--radius); padding: 28px; }
.prose { max-width: 760px; }
.prose a { color: var(--navy-2); }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Bockar */
ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { position: relative; padding: 4px 0 4px 30px; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sun) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Startsidan ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tile {
  position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 16/10;
  border-radius: 22px; overflow: hidden; background: #ccc center/cover no-repeat; text-decoration: none;
  box-shadow: 0 10px 0 var(--sun-light); transition: transform .25s;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(12,35,86,.75)); }
.tile span { position: relative; color: var(--sun-light); font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.75rem); text-align: center; padding: 0 20px 28px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.tile:hover { transform: translateY(-4px); }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.reason { background: linear-gradient(120deg, var(--navy-2) 0 55%, var(--blue) 55%); border-radius: 18px; padding: 28px 22px; text-align: center; color: #fff; }
.reason .num { font-size: 3rem; font-weight: 800; color: var(--sun); line-height: 1; margin-bottom: 14px; }
.reason h3 { color: #fff; font-size: 1rem; }
.reason p { font-size: .88rem; margin: 0; opacity: .9; }
.big-price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 14px; }
.big-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.income { display: inline-block; background: var(--sun-light); color: var(--ink); font-weight: 800; padding: 10px 18px; border-radius: 10px; margin: 6px 0 14px; }

/* ---------- Katalogband ---------- */
.katalog-band { background: var(--navy); color: #dfe6f3; padding: 46px 0; border-top: 4px solid var(--sun); }
.katalog-band .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.katalog-band h2 { color: #fff; font-size: 1.45rem; margin-bottom: .3em; }
.katalog-band p { margin: 0; }
.katalog-band .btns { margin: 0; }
.katalog-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--navy); display: grid; place-items: center; }
.katalog-icon svg { width: 32px; height: 32px; }

/* ---------- Produktkort ---------- */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(12,35,86,.08); display: flex; flex-direction: column; }
.pc-img img { aspect-ratio: 16/10; object-fit: cover; width: 100%; transition: transform .3s; }
.pc-img { overflow: hidden; }
.pcard:hover .pc-img img { transform: scale(1.04); }
.pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.pc-group { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--sun-dark); }
.pc-body h3 a { text-decoration: none; }
.pc-body p { font-size: .92rem; }
.pc-price { font-weight: 800; color: var(--navy); font-size: 1.2rem; margin: auto 0 14px; }
.pc-price small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.pc-links { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-pdf { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy-2); }
.pc-pdf svg { width: 16px; height: 16px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #FFF6E3; border-left: 5px solid var(--sun); border-radius: 12px; padding: 26px 30px; }
.notice h3 { margin-bottom: .3em; }
.notice p { margin: 0; }

/* ---------- Produktsida ---------- */
.product-top { padding: 30px 0 60px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: start; }
.pgallery .main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--light); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; width: 96px; background: none; opacity: .75; }
.thumbs button.on, .thumbs button:hover { border-color: var(--sun); opacity: 1; }
.thumbs img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pinfo h1 { margin-bottom: .2em; }
.pinfo .sub { font-size: 1.1rem; font-weight: 600; color: var(--blue); }
.pi-price { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 18px 0 6px; }
.pi-price small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); }
.pi-price.ask { font-size: 1.5rem; }
.pi-month { background: #FFF6E3; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 10px 0 6px; }
.pi-text { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-weight: 600; color: var(--muted); width: 45%; padding-right: 20px; }
.facts td { font-weight: 600; color: var(--ink); }
.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 30px; }
.variant { background: #fff; border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--sun); box-shadow: 0 6px 24px rgba(12,35,86,.07); display: flex; flex-direction: column; }
.v-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.v-price small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }

/* ---------- Varför solel / lönsamhet ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.benefit { background: var(--light); border-radius: var(--radius); padding: 28px; }
.b-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.b-icon svg { width: 22px; height: 22px; }
.benefit p { font-size: .93rem; margin: 0; }
.partner { display: inline-flex; align-items: center; gap: 16px; margin-top: 10px; font-weight: 600; color: var(--navy-2); }
.calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.calc > div { background: var(--light); border-radius: 12px; padding: 18px; }
.calc small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.calc b { display: block; font-size: 1.15rem; color: var(--navy); }
.calc span { font-size: .82rem; }
.calc .hl { background: var(--navy); color: #fff; }
.calc .hl b { color: var(--sun-light); }
.calc .hl small { color: #c5d0e6; }
.infoblad { display: block; text-decoration: none; text-align: center; color: var(--muted); font-size: .85rem; }
.infoblad img { border-radius: 8px; margin-bottom: 8px; }
.total { display: inline-block; background: var(--navy); color: #fff; border-radius: 999px; padding: 14px 30px; font-size: 1.05rem; margin: 10px 0 40px; }
.total b { color: var(--sun-light); font-size: 1.3rem; }
.income-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ic { background: var(--light); border-radius: var(--radius); padding: 26px 22px; }
.ic-sum { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 12px; }
.ic-sum small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.ic p { font-size: .9rem; margin: 0; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.rule { background: var(--light); border-radius: var(--radius); padding: 24px; }
.r-size { font-size: 2rem; font-weight: 800; color: var(--sun-dark); line-height: 1; margin-bottom: 10px; }
.rule p { font-size: .92rem; }
.rule a { font-weight: 700; color: var(--navy-2); display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }
.rule a svg { width: 16px; height: 16px; }

/* ---------- Produktkatalog-sidan ---------- */
.katalog-page { display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: start; }
.katalog-cover img { width: 100%; border-radius: 6px; box-shadow: 0 24px 50px rgba(12,35,86,.25); transition: transform .25s; }
.katalog-cover:hover img { transform: translateY(-4px) rotate(-.5deg); }
.toc { list-style: none; padding: 0; margin: 0; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--sun-dark); }
.toc i { flex: 1; }
.toc b { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
.contact-side { display: grid; gap: 22px; }
.ci { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 600; }
.ci svg { width: 18px; height: 18px; color: var(--sun-dark); }
.katalog-mini { display: flex; gap: 18px; align-items: center; text-decoration: none; padding: 18px; }
.katalog-mini img { width: 90px; border-radius: 4px; box-shadow: 0 8px 18px rgba(12,35,86,.2); }
.katalog-mini b { display: block; color: var(--navy); }
.katalog-mini span { font-size: .88rem; }

/* ---------- Formulär ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; border: 1px solid #cfd6e2; border-radius: 10px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sun); border-color: var(--sun); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); }
.form-msg:empty { display: none; }
.form-msg { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-msg.ok { background: #E8F6EC; color: var(--ok); }
.form-msg.err { background: #FDECEC; color: var(--err); }

/* ---------- Sidfot ---------- */
.cta-footer { background: linear-gradient(120deg, var(--navy-2), var(--blue)); color: #e6ecf7; padding: 60px 0; }
.cta-footer .wrap { display: grid; grid-template-columns: 1.6fr auto; gap: 40px; align-items: center; }
.cta-footer h2 { color: #fff; }
.cta-footer p { margin: 0; }
.site-footer { background: var(--navy); color: #c5d0e6; padding: 60px 0 0; font-size: .92rem; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: var(--sun); font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { height: 28px; margin-bottom: 16px; }
.foot-pdf { display: inline-flex; align-items: center; gap: 6px; color: var(--sun-light); font-weight: 600; }
.foot-pdf svg { width: 15px; height: 15px; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 24px; font-size: .82rem; }
.site-footer .bottom nav { display: flex; gap: 20px; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto;
    flex-direction: column; align-items: stretch; padding: 16px 24px 40px; display: none;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav a { font-size: 1rem; padding: 12px 0; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 16px; min-width: 0; }
  .nav .sub a { font-size: .92rem; padding: 7px 0; }
  .nav .caret { display: none; }
  .nav .nav-cta { margin: 16px 0 0; justify-content: center; }
  .reasons, .income-cards { grid-template-columns: 1fr 1fr; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .split, .split.even, .two-col, .three-col, .product-grid, .contact-grid, .katalog-page, .cta-footer .wrap { grid-template-columns: 1fr; gap: 32px; }
  .katalog-band .wrap { grid-template-columns: 1fr; text-align: left; gap: 18px; }
  .pcards, .benefits, .calc { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .katalog-page .katalog-cover { max-width: 260px; }
  .notice { flex-direction: column; align-items: flex-start; }
  .page-head { padding: 70px 0 56px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .reasons, .income-cards, .rules, .form { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .thumbs button { width: 72px; }
  .hero { min-height: 70vh; }
}
.pinfo .slogan { font-weight: 700; font-style: italic; color: var(--sun-dark); margin: -4px 0 6px; }
.batt { font-weight: 600; color: var(--navy-2); margin: -6px 0 12px; }
.band-link { color: var(--sun-light); font-size: .85rem; font-weight: 600; align-self: center; }
