/*
Theme Name: Netcam
Theme URI: https://www.netcam.no
Author: Netcam Norge AS
Description: Tema for netcam.no med fokus på tjenester og gratis befaring. Oppretter tjenestesider automatisk ved aktivering og bruker HubSpot-skjema for befaringsforespørsler.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: netcam
*/

:root {
	--navy: #00226B;
	--navy-dyp: #00174A;
	--navy-linje: #1E3F86;
	--bla: #0B6CFF;
	--bla-hover: #0050CC;
	--lenke: #0B5FE0;
	--lys-bla: #EAF1FF;
	--lys-bla-linje: #C9DBFF;
	--grunn: #F3F5F9;
	--hvit: #FFFFFF;
	--tekst: #101828;
	--tekst-2: #475467;
	--tekst-3: #667085;
	--linje: #DCE2EC;
	--felt-linje: #C4CCDA;
	--font-display: 'Saira', 'Instrument Sans', system-ui, sans-serif;
	--font-tekst: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grunn); color: var(--tekst); font-family: var(--font-tekst); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--lenke); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid #7FB0FF; outline-offset: 2px; }
.skjult { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hopp-til { position: absolute; left: 16px; top: -60px; background: var(--hvit); padding: 10px 16px; z-index: 100; border-radius: 6px; }
.hopp-til:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.mono { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.mono-bla { color: var(--bla); }
.stabel { display: flex; flex-direction: column; gap: 16px; }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 6px; background: var(--bla); color: var(--hvit); font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--bla-hover); color: var(--hvit); }
.btn-hvit { background: var(--hvit); color: var(--navy); font-weight: 700; min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn-hvit:hover { background: var(--lys-bla); color: var(--navy); }

/* Header */
.site-header { background: var(--hvit); border-bottom: 1px solid var(--linje); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.header-rad { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo-lenke { display: flex; }
.logo { height: 44px; width: auto; display: block; }
.hovedmeny { display: flex; gap: 28px; align-items: center; }
.hovedmeny ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.hovedmeny a { color: var(--tekst); text-decoration: none; font-weight: 500; }
.hovedmeny a:hover { color: var(--bla); }
.hovedmeny .telefon { font-weight: 600; }
.hovedmeny .btn { color: var(--hvit); min-height: 44px; padding: 0 18px; }
.mobilmeny { display: none; gap: 20px; overflow-x: auto; padding: 0 16px 10px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.mobilmeny a { color: var(--tekst); text-decoration: none; }
.mobilmeny a.ring { color: var(--lenke); font-weight: 600; }

/* Hero */
.hero { background: var(--navy); color: var(--hvit); padding-block: 72px 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.hero-tekst { display: flex; flex-direction: column; gap: 26px; padding-top: 12px; }
.hero .merke { color: #8DB8FF; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .merke .rec { width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; display: inline-block; }
.hero h1 { font-size: 60px; line-height: 1.04; font-weight: 700; letter-spacing: -.01em; }
.hero-tjeneste h1 { font-size: 52px; }
.hero .ingress { font-size: 20px; line-height: 1.5; color: #D6E3FA; max-width: 34em; }
.sjekkliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.sjekkliste li { display: flex; gap: 12px; align-items: flex-start; }
.sjekkliste svg { flex: none; margin-top: 2px; }
.nokkeltall { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 18px; border-top: 1px solid var(--navy-linje); }
.nokkeltall div { display: flex; flex-direction: column; gap: 2px; }
.nokkeltall strong { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.nokkeltall span { font-size: 14px; color: #A9C2EE; }
.brodsmuler { font-size: 14px; color: #A9C2EE; display: flex; flex-wrap: wrap; gap: 8px; }
.brodsmuler a { color: #D6E3FA; }
.hero-ring { font-size: 16px; color: #D6E3FA; }
.hero-ring a { color: var(--hvit); font-weight: 600; }
.hero-liten { padding-block: 56px; }
.hero-liten h1 { font-size: 48px; }

/* Kamerastripe */
.kamerastripe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.kamerabilde { margin: 0; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--navy-linje); }
.kamerabilde img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.kamerabilde figcaption { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; color: var(--hvit); background: rgba(0, 16, 50, .62); font-size: 11px; }
.kamerabilde .rec-tekst { color: #FF8A8A; }

/* Skjema */
.skjemakort { background: var(--hvit); color: var(--tekst); border-radius: 10px; padding: 32px; box-shadow: 0 24px 60px rgba(0, 10, 40, .35); scroll-margin-top: 110px; }
.skjemakort-topp { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.skjemakort h2 { font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--navy); }
.skjemakort-topp p { font-size: 15.5px; color: var(--tekst-2); }
.skjemakort .ring-oss { margin-top: 12px; font-size: 14px; color: var(--tekst-3); }
.skjemakort .ring-oss a { font-weight: 600; }
.hs-mal .hs-form-field { margin-bottom: 14px; }
.hs-mal label { display: block; font-size: 14px; font-weight: 600; color: var(--tekst); margin-bottom: 6px; }
.hs-mal .hs-input { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--felt-linje); border-radius: 6px; background: var(--hvit); color: var(--tekst); min-height: 46px; width: 100% !important; }
.hs-mal textarea.hs-input { min-height: 96px; resize: vertical; }
.hs-mal input[type=checkbox].hs-input, .hs-mal input[type=radio].hs-input { width: auto !important; min-height: 0; margin-right: 8px; }
.hs-mal ul.inputs-list { list-style: none; padding: 0; margin: 0; }
.hs-mal fieldset { max-width: none !important; border: 0; padding: 0; margin: 0; }
.hs-mal .input { margin-right: 0 !important; }
.hs-mal fieldset.form-columns-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.hs-mal fieldset.form-columns-2 .hs-form-field { width: auto !important; float: none !important; }
.hs-mal .hs-error-msgs { list-style: none; padding: 0; margin: 6px 0 0; color: #C0262D; font-size: 14px; }
.hs-mal .hs-error-msgs label { color: #C0262D; font-weight: 500; }
.hs-mal .hs-button { width: 100%; min-height: 54px; border: 0; border-radius: 6px; background: var(--bla); color: var(--hvit); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; -webkit-appearance: none; }
.hs-mal .hs-button:hover { background: var(--bla-hover); }
.hs-mal .legal-consent-container, .hs-mal .hs-richtext { font-size: 13px; color: var(--tekst-3); }
.hs-mal .submitted-message { font-size: 18px; color: var(--navy); font-weight: 600; padding-block: 24px; }
.hs-laster { color: var(--tekst-3); font-size: 15px; padding-block: 24px; }

/* Seksjoner */
.seksjon { padding-block: 88px; scroll-margin-top: 90px; }
.seksjon-hvit { background: var(--hvit); border-block: 1px solid var(--linje); }
.seksjon-topp { display: flex; flex-direction: column; gap: 16px; max-width: 46em; margin-bottom: 40px; }
.seksjon-topp h2, .h2 { font-size: 44px; line-height: 1.08; font-weight: 700; color: var(--navy); }
.seksjon-topp p { color: var(--tekst-2); font-size: 18px; }
.gruppe { display: flex; flex-direction: column; gap: 24px; margin-bottom: 56px; }
.gruppe-topp { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--navy); padding-bottom: 12px; }
.gruppe-topp h3 { font-size: 28px; font-weight: 700; color: var(--navy); }
.gruppe-topp .mono { color: var(--tekst-2); }

/* Kort */
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kort { background: var(--hvit); border: 1px solid var(--linje); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .15s, box-shadow .15s; }
.kort:hover { border-color: #9DBDF5; box-shadow: 0 8px 24px rgba(0, 34, 107, .08); }
.kort img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #E6EBF3; }
.kort-innhold { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kort h3 { font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.kort h3 a { color: inherit; text-decoration: none; }
.kort h3 a::after { content: ""; position: absolute; inset: 0; }
.kort p { font-size: 15.5px; color: var(--tekst-2); }
.kort .mer { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--lenke); }
.kort-lys { background: var(--lys-bla); border-color: var(--lys-bla-linje); }

/* Fremhevet */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.boks { background: var(--hvit); border: 1px solid var(--linje); border-radius: 10px; padding: 40px; }
.stasjon-bilder { display: flex; gap: 20px; justify-content: center; align-items: flex-end; background: var(--lys-bla); border-radius: 8px; padding: 28px 20px 0; min-height: 340px; }
.stasjon-bilder img:first-child { width: 44%; max-width: 220px; border-radius: 6px 6px 0 0; display: block; }
.stasjon-bilder img:last-child { width: 34%; max-width: 170px; display: block; }
.punktliste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Prosess */
.steg { list-style: none; margin: 0 0 32px; padding: 0; }
.steg li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--bla); padding-top: 18px; }
.steg h3 { font-size: 22px; font-weight: 600; color: var(--navy); }
.steg p { color: var(--tekst-2); font-size: 15.5px; }

/* Service-ruter */
.rute { background: var(--hvit); border: 1px solid var(--linje); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.rute h3 { font-size: 19px; font-weight: 600; color: var(--navy); }
.rute p { font-size: 15px; color: var(--tekst-2); }

/* CTA */
.cta { background: var(--bla); color: var(--hvit); padding-block: 72px; }
.cta-rad { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: 42px; line-height: 1.08; font-weight: 700; }
.cta p { font-size: 19px; color: #E3EEFF; }
.cta-knapper { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 18px; font-weight: 600; }
.cta-knapper a:not(.btn) { color: var(--hvit); }

/* Tjenesteside */
.tjeneste-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 56px; align-items: start; }
.tjeneste-bilde { border-radius: 10px; overflow: hidden; border: 1px solid var(--linje); background: var(--hvit); margin: 0 0 40px; }
.tjeneste-bilde img { display: block; width: 100%; height: auto; }
.prose { font-size: 18px; line-height: 1.65; max-width: 44em; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--navy); margin-top: 1.6em; }
.prose h3 { font-size: 22px; font-weight: 600; color: var(--navy); margin-top: 1.4em; }
.prose ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--lys-bla) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6CFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.prose ol { padding-left: 1.3em; }
.prose img { border-radius: 8px; }
.prose a { font-weight: 500; }
.sidekolonne { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.sidekort { background: var(--hvit); border: 1px solid var(--linje); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.sidekort h2 { font-size: 20px; font-weight: 700; color: var(--navy); }
.sidekort-bla { background: var(--navy); border-color: var(--navy); color: var(--hvit); }
.sidekort-bla h2 { color: var(--hvit); }
.sidekort-bla p { color: #D6E3FA; font-size: 15.5px; }
.sidekort-bla .tlf { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--hvit); text-decoration: none; }
.sidekort-bla .epost { color: #D6E3FA; }
.lenkeliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lenkeliste li + li { border-top: 1px solid var(--linje); }
.lenkeliste a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--tekst); font-weight: 500; min-height: 44px; align-items: center; }
.lenkeliste a:hover { color: var(--bla); }
.lenkeliste a[aria-current] { color: var(--bla); font-weight: 600; }
.innholdsside { padding-block: 64px 88px; }

/* Footer */
.site-footer { background: var(--navy-dyp); color: #C3D2EE; padding-block: 56px 40px; }
.footer-topp { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.footer-om { display: flex; flex-direction: column; gap: 14px; max-width: 22em; font-size: 15px; }
.footer-om img { height: 46px; width: auto; align-self: flex-start; }
.footer-kolonner { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer-kolonner > div { display: flex; flex-direction: column; gap: 8px; }
.footer-kolonner .mono { color: #8DB8FF; }
.site-footer a { color: #C3D2EE; }
.site-footer a:hover { color: var(--hvit); }
.footer-bunn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--navy-linje); padding-top: 20px; font-size: 13.5px; color: #8FA6CF; }
.footer-bunn a { color: #8FA6CF; }

/* WordPress-standarder */
.alignwide { max-width: 1240px; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; display: block; }
.wp-block-image figcaption { font-size: 14px; color: var(--tekst-3); }
.wp-block-button__link { background: var(--bla); color: var(--hvit); border-radius: 6px; padding: 12px 24px; text-decoration: none; font-weight: 600; }

/* Responsivt */
@media (max-width: 1100px) {
	.hovedmeny ul { gap: 20px; }
	.hovedmeny { gap: 20px; }
}
@media (max-width: 1000px) {
	.hero-grid, .split, .tjeneste-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hovedmeny ul { display: none; }
	.mobilmeny { display: flex; }
	.sidekolonne { position: static; }
	.hero h1 { font-size: 48px; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; position: relative; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding-inline: 16px; }
	.logo { height: 34px; }
	.hovedmeny .telefon { display: none; }
	.hero { padding-block: 44px 40px; }
	.hero h1, .hero-tjeneste h1, .hero-liten h1 { font-size: 36px; }
	.hero .ingress { font-size: 18px; }
	.g4, .g3, .g2, .kamerastripe, .hs-mal fieldset.form-columns-2 { grid-template-columns: minmax(0, 1fr); }
	.kamerastripe { margin-top: 40px; }
	.seksjon { padding-block: 56px; }
	.seksjon-topp h2, .h2, .cta h2 { font-size: 30px; }
	.gruppe-topp h3 { font-size: 23px; }
	.boks { padding: 20px; }
	.skjemakort { padding: 22px; }
	.stasjon-bilder { min-height: 240px; }
	.prose { font-size: 17px; }
	.prose h2 { font-size: 25px; }
	.cta { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}

/* Tillegg */
a.kamerabilde { display: block; color: var(--hvit); }
a.kamerabilde:hover img { opacity: .92; }
.footer-kolonner li { list-style: none; }
.footer-kolonner ul { margin: 0; padding: 0; }
