/* =========================================================
   NorData Online AS - Startside v2
   Joomla 6 / Cassiopeia Extended
   ========================================================= */

:root {
  --nd-blue-950: #062c52;
  --nd-blue-900: #073a69;
  --nd-blue-800: #075695;
  --nd-blue-700: #0779c9;
  --nd-blue-500: #11a9ee;
  --nd-teal: #05a8a8;
  --nd-red: #b40000;
  --nd-ink: #4b4b4b;
  --nd-muted: #5e656a;
  --nd-paper: #ffffff;
  --nd-soft: #f3f5f6;
  --nd-line: #d9dfe3;
  --nd-shadow: 0 18px 55px rgba(45, 50, 55, .16);
  --nd-radius: 20px;
}

body {
  background: #fff;
}

.container-header,
.container-footer {
  display: none;
}

body.itemid-102 .site-grid,
body.itemid-102 .grid-child.container-component,
body.itemid-102 main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.itemid-102 .container-sidebar-left,
body.itemid-102 .container-sidebar-right {
  display: none !important;
}

.nd-home,
.nd-home * {
  box-sizing: border-box;
}

.nd-home {
  margin: 0;
  color: var(--nd-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}

.nd-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/* HERO -------------------------------------------------- */

.nd-hero {
  position: relative;
  min-height: 690px;
  isolation: isolate;
  background: linear-gradient(120deg, #dde0e2 0%, #c3c8cb 52%, #aeb5b9 100%);
}

.nd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 15%, rgba(255,255,255,.35), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 38%);
}

.nd-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  padding-top: 34px;
  margin: 0 auto 8px;
}

.nd-logo {
  display: block;
  width: min(760px, 100%);
  max-width: 760px;
  height: auto;
  margin: 0 auto;
}

.nd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  gap: 54px;
  align-items: start;
  padding: 8px 0 92px;
}

.nd-hero-copy {
  min-width: 0;
}

.nd-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--nd-red);
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.nd-hero h1 {
  margin: 0;
  color: #4a4a4a;
  font-size: clamp(3rem, 5.3vw, 5.35rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}

.nd-lead {
  max-width: 710px;
  margin: 24px 0 0;
  color: #3f4346;
  font-size: clamp(1.18rem, 1.8vw, 1.48rem);
  line-height: 1.42;
  font-weight: 700;
}

.nd-sublead {
  margin: 9px 0 0;
  color: #555b60;
  font-size: 1rem;
}

.nd-support-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.nd-btn {
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 16px 20px;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.nd-btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.19);
  filter: brightness(1.04);
}

.nd-btn-primary {
  background: linear-gradient(135deg, #149ee5, #0876d2);
}

.nd-btn-teal {
  background: linear-gradient(135deg, #20b9bb, #07989d);
}

.nd-btn-empty {
  min-height: 74px;
  background: linear-gradient(135deg, #6f7780, #4c535b);
  cursor: default;
  color: transparent !important;
}


.nd-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.nd-btn strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.05;
  white-space: nowrap;
}

.nd-btn small {
  display: block;
  margin: 0;
  font-size: .86rem;
  line-height: 1.25;
  opacity: .92;
}

.nd-btn strong {
  font-size: 1.22rem;
  line-height: 1.05;
  white-space: nowrap;
}

.nd-btn small {
  margin-top: 5px;
  font-size: .86rem;
  opacity: .92;
}

/* CONTACT CARD ----------------------------------------- */

.nd-contact-card {
  align-self: start;
  margin-top: 58px;
  padding: 22px 24px 18px;
  color: var(--nd-blue-950);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--nd-radius);
  background: rgba(255,255,255,.95);
  box-shadow: var(--nd-shadow);
  backdrop-filter: blur(10px);
}

.nd-contact-card h2 {
  margin: 0 0 16px;
  color: var(--nd-blue-950);
  font-size: 1.55rem;
  letter-spacing: -.02em;
}

.nd-contact-top {
  display: block;
}

.nd-call-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.nd-phone-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nd-blue-700), var(--nd-blue-950));
  text-decoration: none !important;
}

.nd-phone-number {
  min-width: 0;
}

.nd-label {
  display: block;
  margin-bottom: 3px;
  color: #55718b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nd-phone-number a {
  color: var(--nd-blue-950) !important;
  text-decoration: none !important;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  font-weight: 800;
  white-space: nowrap;
}

.nd-sms-note {
  display: block;
  margin-top: 4px;
  color: #a51f1f;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.nd-card-rule {
  height: 1px;
  margin: 14px 0 12px;
  background: var(--nd-line);
}

.nd-email-row {
  display: block;
  width: 100%;
}

.nd-email-address {
  display: block;
  width: 100%;
  color: #0d6f83;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.nd-email-row small {
  display: block;
  margin-top: 4px;
  color: #65727b;
  font-size: .70rem;
}

/* SERVICES --------------------------------------------- */

.nd-services {
  position: relative;
  padding: 48px 0 56px;
  background: #fff;
}

.nd-section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.nd-section-heading span {
  color: var(--nd-red);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.nd-section-heading h2 {
  margin: 7px 0 0;
  color: #42474b;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -.035em;
}

.nd-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nd-service-card {
  min-height: 150px;
  padding: 26px;
  border: 1px solid #e1e5e8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f7f8f9);
  box-shadow: 0 9px 28px rgba(45, 50, 55, .08);
}

.nd-service-card h3,
.nd-shop-card h3 {
  margin: 0 0 7px;
  color: #41464a;
  font-size: 1.28rem;
}

.nd-service-card p,
.nd-shop-card p {
  margin: 0;
  color: #60686e;
  line-height: 1.5;
}

.nd-shop-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 22px 26px;
  border: 1px solid #dde2e5;
  border-radius: 18px;
  background: linear-gradient(100deg, #f8f9fa, #eef1f2);
  box-shadow: 0 10px 28px rgba(45, 50, 55, .07);
}

.nd-shop-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nd-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  padding: 14px 21px;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #54595d, #333639);
  box-shadow: 0 8px 20px rgba(45, 50, 55, .15);
}

/* TRUST / FOOTER --------------------------------------- */

.nd-trust {
  position: relative;
  padding: 42px 0 46px;
  color: #fff;
  background: linear-gradient(145deg, #55595d, #2f3235 72%);
}

.nd-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  gap: 24px;
  align-items: center;
}

.nd-trust-item {
  display: flex;
  gap: 13px;
  align-items: center;
}

.nd-trust-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
}

.nd-trust-item strong,
.nd-trust-item small {
  display: block;
}

.nd-trust-item small {
  margin-top: 3px;
  color: rgba(255,255,255,.76);
  line-height: 1.3;
}

.nd-signoff {
  justify-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  color: #f3f3f3;
}

/* RESPONSIVE ------------------------------------------- */

@media (max-width: 980px) {
  .nd-logo {
    width: min(640px, 100%);
  }

  .nd-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 70px;
  }

  .nd-contact-card {
    margin-top: 0;
    max-width: 640px;
  }

  .nd-service-grid {
    grid-template-columns: 1fr;
  }

  .nd-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nd-signoff {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .nd-wrap,
  .nd-brand {
    width: min(100% - 24px, 1180px);
  }

  .nd-brand {
    padding-top: 22px;
    margin-bottom: 6px;
  }

  .nd-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .nd-support-actions {
    grid-template-columns: 1fr;
  }

  .nd-shop-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .nd-shop-btn {
    width: 100%;
    justify-content: space-between;
  }

  .nd-trust-grid {
    grid-template-columns: 1fr;
  }
}

/* v2.6: To tomme knapper DIREKTE under Sentralbord, i samme høyre kolonne */
.nd-contact-stack {
  min-width: 0;
}

.nd-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 14px;
}

.nd-contact-actions .nd-btn {
  width: 100%;
  min-width: 0;
}

/* v2.7: Samme høyde på knappene under Sentralbord */
.nd-contact-actions .nd-btn {
  height: 82px;
  min-height: 82px;
}

/* v2.8 – kun avtalt layout:
   nordlys beholdes, og alle fem knapper samles i én fullbredde ramme */
.nd-hero {
  background:
    linear-gradient(
      120deg,
      rgba(221, 224, 226, .85) 0%,
      rgba(195, 200, 203, .85) 52%,
      rgba(174, 181, 185, .85) 100%
    ),
    url("/images/nordata/nordlys.jpg") center center / cover no-repeat !important;
}

.nd-five-frame {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 54px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 20px;
  background: rgba(255,255,255,.16);
  box-shadow: 0 18px 55px rgba(45,50,55,.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nd-five-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.nd-five-actions .nd-btn {
  width: 100%;
  min-width: 0;
  height: 82px;
  min-height: 82px;
  margin: 0;
}

@media (max-width: 900px) {
  .nd-five-actions {
    grid-template-columns: 1fr;
  }
}


/* v2.9 – KUN avtalte endringer */

/* Løft logo og toppinnhold litt */
.nd-brand {
  padding-top: 14px !important;
  margin-bottom: 4px !important;
}

.nd-hero-grid {
  padding-top: 0 !important;
}

/* Sentralbord: mer grå og halvtransparent, slik at bakgrunn skimtes */
.nd-contact-card {
  background: rgba(214, 219, 222, .64) !important;
  border: 1px solid rgba(255,255,255,.58) !important;
  box-shadow: 0 18px 48px rgba(45, 50, 55, .18) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* E-post skal se ut som tekst, ikke lenke */
.nd-email-address,
.nd-email-address span {
  color: #167f8d !important;
  text-decoration: none !important;
  cursor: default !important;
}


/* v2.10 – KUN retting av Sentralbord-transparens og ikke-klikkbar e-post */
.nd-contact-card {
  background: rgba(155, 165, 172, .38) !important;
  border: 1px solid rgba(255,255,255,.62) !important;
  box-shadow: 0 18px 48px rgba(45,50,55,.20) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

.nd-email-address {
  display: block;
  width: 100%;
  color: #0d6f83 !important;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: default !important;
}

.nd-email-address::before {
  content: attr(data-user) "@" attr(data-domain);
  text-decoration: none !important;
}


/* v2.11 – KUN: synlig ikke-klikkbar e-post + ikke-klikkbart telefonnummer */
.nd-email-address,
.nd-email-address span,
.nd-phone-static {
  text-decoration: none !important;
  cursor: default !important;
}

.nd-email-address {
  display: inline-block !important;
}

.nd-email-address::before {
  content: none !important;
}

.nd-phone-static {
  color: inherit !important;
  font: inherit;
  font-weight: inherit;
}


/* v2.12 – KUN retting av telefonnummerets utseende */
.nd-phone-number .nd-phone-static {
  display: block !important;
  white-space: nowrap !important;
  font-size: 1.72rem !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: .015em !important;
  color: var(--nd-blue-950) !important;
}


/* v2.13 – KUN: FergeAppen-knapp lengst til høyre */
.nd-btn-ferge {
  background: linear-gradient(135deg, #123b55 0%, #0b7285 100%);
  border: 1px solid rgba(255,255,255,.30);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.nd-btn-ferge:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.19);
  filter: brightness(1.04);
}
