/* NettVenn / Nettbyen – domenestyrt horisontal logo */
.site-brand-logo {
  display: block;
  width: min(430px, 82vw);
  max-height: 118px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.brand .site-brand-logo { width: min(450px, 86vw); }
.logo .site-brand-logo { width: min(410px, 82vw); }
@media (max-width: 600px) {
  .site-brand-logo { width: min(330px, 86vw); max-height: 92px; }
}

/* NETTVENN_DUAL_BRAND_THEME_V2 */

/* Standardtema: NettVenn */
:root {
  --nv-main: #087db8;
  --nv-dark: #07558c;
  --nv-soft: #eaf6fd;
  --nv-accent: #a8e36a;
  --nv-bg: #eaf5fb;
  --nv-shadow: rgba(15, 66, 105, .12);
}

/* Eget tema: Nettbyen */
:root:has(img.site-brand-logo[src*="nettbyen"]) {
  --nv-main: #6250bd;
  --nv-dark: #34266e;
  --nv-soft: #f0edff;
  --nv-accent: #ffbd75;
  --nv-bg: #f1effa;
  --nv-shadow: rgba(57, 42, 111, .14);
}

body {
  background:
    radial-gradient(ellipse at top, var(--nv-soft), transparent 580px),
    var(--nv-bg) !important;
}

.site {
  max-width: 1180px;
}

.top,
.banner,
.header {
  background: linear-gradient(125deg, var(--nv-dark), var(--nv-main)) !important;
  border-radius: 17px;
  box-shadow: 0 8px 25px var(--nv-shadow);
  padding: 20px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top .slogan {
  color: white;
  font-weight: 600;
  text-align: right;
}

.hero {
  text-align: left !important;
  padding: clamp(25px, 5vw, 48px) !important;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  background: linear-gradient(120deg, var(--nv-dark), var(--nv-main)) !important;
  box-shadow: 0 10px 28px var(--nv-shadow);
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.hero p {
  max-width: 650px;
  line-height: 1.7;
}

.hero .actions {
  justify-content: flex-start;
}

.nav {
  border-radius: 12px;
  box-shadow: 0 3px 12px var(--nv-shadow);
}

.nav a {
  border-radius: 8px;
}

.nav a:hover {
  background: var(--nv-soft) !important;
}

.panel,
.nv-box {
  border-radius: 13px;
  box-shadow: 0 4px 15px var(--nv-shadow);
  border-color: rgba(120,150,180,.28);
}

.panel h2,
.panel-title,
.title {
  color: var(--nv-dark) !important;
}

.panel h2 {
  background: linear-gradient(110deg, var(--nv-soft), #fff) !important;
  border-bottom-color: rgba(120,150,180,.25);
}

.tile {
  border-radius: 11px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--nv-shadow);
}

.btn:not(.green),
.bluebtn,
button[type="submit"] {
  border-radius: 9px;
}

.btn.green {
  background: linear-gradient(120deg, var(--nv-accent), #ffffff) !important;
  color: var(--nv-dark) !important;
  border-color: var(--nv-accent) !important;
}

/* Nye funksjonskort på velkomstsiden */
.nv-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.nv-feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border-radius: 13px;
  border: 1px solid rgba(120,150,180,.3);
  background: rgba(255,255,255,.94);
  color: var(--nv-dark);
  text-decoration: none;
  box-shadow: 0 3px 12px var(--nv-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.nv-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--nv-shadow);
}

.nv-feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--nv-soft);
  font-size: 22px;
}

.nv-feature-card strong,
.nv-feature-card small {
  display: block;
}

.nv-feature-card strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.nv-feature-card small {
  color: #6c7d8d;
  line-height: 1.45;
}

footer {
  padding: 25px 10px;
}

@media (max-width: 760px) {
  .top {
    flex-direction: column;
  }

  .top .slogan {
    text-align: center;
  }

  .nv-feature-strip {
    grid-template-columns: 1fr;
  }

  .nv-feature-card {
    padding: 13px;
  }

  .hero {
    text-align: center !important;
  }

  .hero .actions {
    justify-content: center;
  }
}

/* /NETTVENN_DUAL_BRAND_THEME_V2 */
