/* Industrilakkering AS — demo
   Brand: navy blue #233B83 / #14224C from logo swoosh + CSS,
   logo red used only as a small accent. Fonts as on original site:
   Red Hat Display (headings) + Work Sans (body). */

:root {
  --blue: #233b83;
  --blue-dark: #1b2e68;
  --navy: #14224c;
  --ink: #1b2340;
  --text: #3a4258;
  --muted: #5c6478;
  --bg: #ffffff;
  --bg-alt: #f4f5f8;
  --line: #e3e6ee;
  --red: #e00d06;
  --radius: 10px;
  --font-display: "Red Hat Display", "Segoe UI", Arial, sans-serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: #e8ecf7;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand img {
  width: 180px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}

.nav-menu a:not(.btn):hover {
  color: var(--blue);
  background: var(--bg-alt);
}

.nav-cta {
  margin-left: 8px;
  padding: 12px 22px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 34, 76, 0.93) 20%, rgba(20, 34, 76, 0.72) 55%, rgba(35, 59, 131, 0.45));
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  padding-top: 110px;
  padding-bottom: 150px;
}

.hero h1 {
  color: #fff;
  max-width: 15ch;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  max-width: 52ch;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 1.8em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-swoosh {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
  display: block;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

.section-title {
  position: relative;
  padding-top: 18px;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
}

.section-title-light {
  color: #fff;
}

.section-lead {
  max-width: 62ch;
  font-size: 1.06rem;
  margin-bottom: 2.2em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  margin: 0;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-location {
  font-weight: 600;
  color: var(--ink);
}

/* Services */
.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.service-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: #e9edf8;
  color: var(--blue);
  margin-bottom: 14px;
}

.service-card h3 {
  margin-bottom: 0.35em;
}

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

.services-cta {
  margin: 36px 0 0;
  font-weight: 500;
}

/* NAST */
.nast-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.nast-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: #aabdf0;
}

.nast-media {
  margin: 0;
}

.nast-media img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
}

.section-navy .hero-actions {
  margin-top: 1.8em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 22px;
}

.contact-list dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-list dd {
  margin: 2px 0 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9cfdd;
  border-radius: 6px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Subpage header */
.page-header {
  background: var(--navy);
  padding: 72px 0 56px;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.2em;
}

.page-header-sub {
  color: #aabdf0;
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

.page-header-sub a {
  color: #fff;
}

/* Article (Nast AS + personvern) */
.article {
  max-width: 780px;
}

.article h2 {
  font-size: 1.45rem;
  margin-top: 2em;
}

.article-list {
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.article-list li {
  margin-bottom: 0.5em;
}

.article-media {
  margin: 2em 0;
}

.article-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.4em;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.4em;
}

.footer-text {
  margin: 0;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #aabdf0;
  margin: 0 0 0.8em;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  padding-bottom: 22px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: 0 12px 24px rgba(20, 34, 76, 0.08);
  }

  .nav-menu.is-open {
    display: flex;
  }

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

  .site-nav {
    position: static;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .about-grid,
  .nast-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nast-media {
    order: -1;
  }

  .section {
    padding: 60px 0;
  }

  .hero-inner {
    padding-top: 72px;
    padding-bottom: 120px;
  }
}

@media (max-width: 560px) {
  .form-row-split {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .brand img {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .btn {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}
