/* Intertech AS — layout & theme (farger fra intertech_logo.svg) */
:root {
  /* Logo: #5a5a64 #e64b46 #82b4d2 #8caa64 */
  --logo-gray: #5a5a64;
  --logo-coral: #e64b46;
  --logo-sky: #82b4d2;
  --logo-sage: #8caa64;

  --bg-deep: #14171d;
  --bg-elevated: #1c2129;
  --bg-card: #242a34;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9eef5;
  --text-muted: #8b95a8;

  --accent: var(--logo-sky);
  --accent-dim: rgba(130, 180, 210, 0.2);
  --accent-glow: rgba(130, 180, 210, 0.45);
  --accent-strong: #9ec8e0;
  --accent-emphasis: var(--logo-coral);
  --accent-sage-dim: rgba(140, 170, 100, 0.12);

  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

#produkter,
#utleie,
#om-intertech,
#prosjekter,
#prosess,
#kontakt {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(20, 23, 29, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo:hover .logo-img {
  opacity: 0.94;
}

.logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
  object-position: left center;
  /* Grått ordmerke (#5a5a64) leses bedre på mørk bakgrunn */
  filter: brightness(1.18) contrast(1.06);
  transition: opacity 0.2s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1100px) {
  .site-nav a {
    font-size: 0.875rem;
  }
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-strong) !important;
  border: 1px solid rgba(130, 180, 210, 0.4);
}

.nav-cta:hover {
  background: rgba(130, 180, 210, 0.28);
  color: #c5dff0 !important;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) 0 clamp(5rem, 14vw, 8rem);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 180, 210, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 180, 210, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(140, 170, 100, 0.02) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 96px 96px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background:
    radial-gradient(circle at 30% 40%, rgba(230, 75, 70, 0.12) 0%, transparent 45%),
    radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 3rem;
  }
}

.hero-content {
  position: relative;
  max-width: 640px;
}

@media (min-width: 900px) {
  .hero-content {
    max-width: none;
  }
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.8vw, 3.65rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
}

.hero-title-line--accent {
  font-style: italic;
  color: var(--accent-emphasis);
}

.hero-tagline {
  margin: 0 0 1.25rem;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  max-width: 540px;
}

.hero-visual {
  display: none;
  justify-content: center;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-visual {
    display: flex;
  }
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-deep) 100%);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-visual-led {
  position: absolute;
  inset: 12%;
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, rgba(130, 180, 210, 0.15) 1px, transparent 1px),
    linear-gradient(rgba(130, 180, 210, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, rgba(230, 75, 70, 0.35) 0%, rgba(130, 180, 210, 0.25) 40%, rgba(140, 170, 100, 0.2) 100%);
  background-size: 14px 14px, 14px 14px, auto;
}

.hero-visual-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 70% 30%, var(--accent-glow) 0%, transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-lead--secondary {
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: linear-gradient(165deg, var(--accent-strong) 0%, var(--logo-sky) 100%);
  color: #0e1116;
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(165deg, #b8daf0 0%, var(--accent-strong) 100%);
  color: #0e1116;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2,
.why-copy h2,
.contact-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
}

.section-head--wide {
  max-width: 640px;
}

.section-head--wide.section-head--center {
  max-width: 720px;
}

/* Tagline strip (inspirert av fokus på partner + dekning) */
.tagline-strip {
  border-bottom: 1px solid var(--border);
  background: rgba(130, 180, 210, 0.06);
}

.tagline-strip-inner {
  padding: 1rem 0;
}

.tagline-strip-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.tagline-strip-text strong {
  color: var(--text);
  font-weight: 600;
}

.tagline-strip-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 0.65rem;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* Innendørs / utendørs (Livecom-lignende todelt tilbud) */
.split-led {
  border-top: 1px solid var(--border);
}

.split-led-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .split-led-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.split-led-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.split-led-card:hover {
  border-color: rgba(130, 180, 210, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.split-led-media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
}

.split-led-media--in {
  background-image:
    linear-gradient(160deg, rgba(130, 180, 210, 0.35) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-elevated) 0%, #1a2330 100%);
}

.split-led-media--out {
  background-image:
    linear-gradient(160deg, rgba(230, 75, 70, 0.2) 0%, transparent 45%),
    linear-gradient(135deg, #1a2330 0%, var(--bg-deep) 100%);
}

.split-led-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.split-led-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.split-led-body p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.split-led-link {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.split-led-link:hover {
  text-decoration: underline;
}

/* Utleie */
.utleie {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(130, 180, 210, 0.05) 0%, var(--bg-deep) 100%);
}

.utleie-inner {
  max-width: 560px;
  margin: 0 auto;
}

.utleie-head {
  text-align: center;
  margin-inline: auto;
  max-width: 100%;
}

.utleie-head .section-intro {
  max-width: none;
}

.utleie-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.utleie-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.utleie-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-sky) 0%, var(--logo-sage) 100%);
  box-shadow: 0 0 10px var(--accent-glow);
}

.utleie-cta {
  margin: 0;
  text-align: center;
}

/* Portfolio (Medialab-lignende «tidligere arbeid») */
.portfolio {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(130, 180, 210, 0.25);
}

.portfolio-card-visual {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.portfolio-card-visual--a {
  background-image: linear-gradient(125deg, rgba(130, 180, 210, 0.4) 0%, var(--bg-deep) 60%);
}

.portfolio-card-visual--b {
  background-image: linear-gradient(125deg, rgba(230, 75, 70, 0.25) 0%, var(--bg-deep) 55%);
}

.portfolio-card-visual--c {
  background-image: linear-gradient(125deg, rgba(140, 170, 100, 0.35) 0%, var(--bg-deep) 60%);
}

.portfolio-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card-meta {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.portfolio-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.portfolio-card-body p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.portfolio-card-link {
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

.portfolio-card-link:hover {
  text-decoration: underline;
}

/* Trust strip (Klienter-seksjon, uten logoer — kun sektorer) */
.trust-strip {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.trust-strip-label {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.trust-strip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-strip-list li {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Services */
.services {
  background: linear-gradient(
    180deg,
    var(--bg-deep) 0%,
    var(--accent-sage-dim) 45%,
    var(--bg-elevated) 100%
  );
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(130, 180, 210, 0.28);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Why */
.why {
  border-top: 1px solid var(--border);
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.why-copy p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-sky) 0%, var(--logo-sage) 100%);
  box-shadow: 0 0 12px var(--accent-glow);
}

.why-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Process */
.process {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.process-steps li {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.process-steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.process-steps p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Contact */
.contact {
  padding-bottom: clamp(5rem, 12vw, 7rem);
}

.contact-inner {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  max-width: 560px;
  padding: 2.5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.contact-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
}

.contact-details {
  font-style: normal;
  margin: 0 0 1.5rem;
}

.contact-details p {
  margin: 0 0 0.5rem;
}

.contact-details a {
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}

.footer-brand-block {
  max-width: 320px;
}

.footer-logo {
  display: block;
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(1.18) contrast(1.06);
}

.footer-brand,
.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-tagline {
  margin-top: 0.5rem;
  line-height: 1.45;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.5rem 1.5rem;
}

@media (min-width: 640px) {
  .footer-nav ul {
    justify-content: end;
  }
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-strong);
}

/* Responsive */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .why-layout {
    grid-template-columns: 1fr;
  }

  .why-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 140px;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: var(--container);
    margin-inline: auto;
  }

  .site-nav li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav li:last-child {
    border-bottom: none;
  }

  .site-nav a {
    display: block;
    padding: 0.875rem 0;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card:hover,
  .portfolio-card:hover,
  .split-led-card:hover {
    transform: none;
  }
}
