/* =========================================================
   Sarpsborg Lakkering AS
   ========================================================= */

:root {
  --red: #D62828;
  --red-dark: #B7181E;
  --dark: #121212;
  --dark-2: #1A1A1A;
  --dark-3: #232323;
  --light: #F3F4F4;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-2: #4B4F55;
  --muted: #7A7E85;
  --line: #E4E6E9;
  --line-dark: rgba(255,255,255,0.12);
  --gold: #F2B705;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --radius: 8px;
  --radius-sm: 6px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--dark); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 4px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Typografi ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.eyebrow span { margin: 0 4px; }
.eyebrow-light { color: rgba(255,255,255,0.72); }
.eyebrow-red { color: var(--red); }

h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.arrow { display: inline-block; margin-left: 6px; transition: transform .18s ease; }
a:hover .arrow { transform: translateX(3px); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: #2A2A2A; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.text-link {
  font-size: 13px; font-weight: 500;
  text-decoration: none; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.brand-mark { width: 40px; height: 29px; flex: none; }
.brand-text {
  font-size: 15px; font-weight: 700; line-height: 1.05;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.brand-light { color: #fff; }

.main-nav { margin-left: auto; margin-right: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-nav a {
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--text-2); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.is-active { color: var(--text); border-bottom-color: var(--red); }

.header-phone { font-size: 14px; padding: 11px 20px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  min-height: 560px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 66%;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--dark) 0%, rgba(18,18,18,0.85) 18%, rgba(18,18,18,0.35) 45%, rgba(18,18,18,0.05) 75%),
    linear-gradient(0deg, rgba(18,18,18,0.55) 0%, rgba(18,18,18,0) 40%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 72px 0 56px;
}
.hero-content { max-width: 700px; }
.hero h1 {
  font-size: clamp(36px, 4.1vw, 54px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 8px 0 20px;
}
.hero h1 .accent { color: var(--red); }
.hero-lead {
  font-size: 16px; color: rgba(255,255,255,0.82);
  max-width: 440px; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-features {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 36px;
}
.hero-features li { display: flex; align-items: center; gap: 12px; }
.hero-features svg {
  width: 26px; height: 26px; flex: none;
  fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.hero-features span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); line-height: 1.5; }
.hero-features strong { display: block; color: #fff; font-weight: 600; }


/* ---------- Seksjoner ---------- */
.section { padding: 72px 0; }
.section-light { background: var(--light); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
}
.section-head .eyebrow { margin-bottom: 8px; }
.section-head .text-link { margin-bottom: 6px; }

/* ---------- Tjenester ---------- */
.services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -16px rgba(0,0,0,0.35); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 18px 18px 18px;
  flex: 1;
}
.service-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.service-body p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.5; }
.service-body .arrow { color: var(--text); margin: 0 0 2px; font-size: 16px; }

.services-intro {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.services-intro h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.services-intro-text p { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.services-intro-text p:last-child { margin-bottom: 0; }
.services-intro-text a { color: var(--text); font-weight: 500; }
.services-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; align-content: start;
  padding-top: 6px;
}
.services-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.services-list li::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Om oss ---------- */
.about {
  display: grid; grid-template-columns: 37% 63%;
  background: var(--dark);
  color: #fff;
}
.about-text {
  display: flex; align-items: center;
  padding: 64px 0;
}
.about-text-inner {
  width: 100%;
  max-width: calc((var(--container) * 0.37) - 8px);
  margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: 48px;
}
.about-text h2 {
  color: #fff; font-weight: 400;
  font-size: clamp(30px, 3.3vw, 40px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.about-text p { color: rgba(255,255,255,0.78); font-size: 15px; margin-bottom: 28px; max-width: 420px; }

.about-media { position: relative; min-height: 420px; }
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.about-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,18,18,0.55) 0%, rgba(18,18,18,0) 30%);
}
.about-caption {
  position: absolute; left: 28px; bottom: 28px; z-index: 1;
  margin: 0;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); line-height: 1.7;
}

/* ---------- Galleri ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-item {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Kundeopplevelser ---------- */
.google-link { border-bottom-color: var(--text-2); }
.google-g { width: 18px; height: 18px; margin-right: 6px; }

.reviews {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.review-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.review-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.review-card footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.review-card cite { display: block; font-style: normal; font-size: 13px; font-weight: 600; }
.review-card footer div span { font-size: 11px; color: var(--muted); }
.stars { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; white-space: nowrap; }

/* ---------- CTA / Kontakt ---------- */
.cta {
  position: relative;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0.32; }
.cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,18,18,0.92) 0%, rgba(18,18,18,0.75) 50%, rgba(18,18,18,0.45) 100%);
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 56px 0;
}
.cta-text h2 { color: #fff; font-weight: 600; margin-bottom: 12px; }
.cta-text p { color: rgba(255,255,255,0.8); max-width: 420px; margin: 0; font-size: 15px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-actions .btn { margin-bottom: 8px; }
.cta-line {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-size: 14px;
}
.cta-line:hover { text-decoration: underline; }
.cta-line svg { width: 16px; height: 16px; fill: currentColor; opacity: 0.9; }
.cta-line svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px;
  align-items: start;
}
.contact-form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text); }
.field input, .field textarea {
  font: inherit; font-size: 14px; color: var(--text);
  padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white);
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.form-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }
.contact-form.is-sent .form-note { color: var(--text); font-weight: 500; }

.contact-aside { display: grid; gap: 20px; }
.contact-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  padding: 4px 0 0;
}
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: var(--red); }
.contact-item svg.stroke { fill: none; stroke: var(--red); }
.contact-item div { display: grid; gap: 2px; }
.contact-item span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item strong { font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; line-height: 1.5; }
.contact-item a:hover { text-decoration: underline; }

.map { border-radius: var(--radius); overflow: hidden; background: var(--light); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0F0F0F; color: rgba(255,255,255,0.8); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.9fr 0.9fr; gap: 32px;
  padding: 48px 0 40px;
}
.footer-col h4 { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.footer-col p, .footer-col li { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.75); }
.footer-col p { margin: 0; }
.icon-line { display: flex; gap: 8px; align-items: flex-start; }
.icon-line svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.footer-meta p { font-size: 12px; color: rgba(255,255,255,0.75); }
.social { color: #fff; display: inline-flex; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover { color: var(--red); }

.footer-bottom {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 11px; color: rgba(255,255,255,0.6);
}
.footer-legal { display: inline-flex; gap: 10px; margin-left: auto; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; }
.footer-credit a { color: inherit; text-decoration: none; }
.footer-credit a:hover { color: #fff; }

/* ---------- Scroll-avsløring ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .gallery-item img, .btn, .arrow { transition: none; }
}

/* ---------- Responsivt ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-meta { align-items: flex-start; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 0 12px; margin: 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav a.is-active { border-bottom-color: var(--line); color: var(--red); }
  .main-nav li:last-child a { border-bottom: 0; }
  .header-phone { margin-left: auto; padding: 10px 14px; }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }

  .hero-bg { width: 100%; }
  .hero-bg::after {
    background:
      linear-gradient(90deg, rgba(18,18,18,0.92) 0%, rgba(18,18,18,0.75) 50%, rgba(18,18,18,0.45) 100%),
      linear-gradient(0deg, rgba(18,18,18,0.6) 0%, rgba(18,18,18,0) 50%);
  }

  .about { grid-template-columns: minmax(0, 1fr); }
  .about-text { display: block; min-width: 0; padding: 56px 0; }
  .about-text-inner { width: auto; min-width: 0; max-width: none; margin-inline: var(--gutter); padding-right: 0; }
  .about-media { min-height: 320px; aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .services-intro { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 62px; }
  .brand-text { font-size: 13px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 56px 0 40px; }
  .hero h1 { font-size: 36px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-features { gap: 18px; margin-top: 32px; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .services { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .gallery { gap: 12px; }
  .services-intro { padding: 22px; }
  .contact-form { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .map iframe { height: 240px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { margin-left: 0; }
}
