/* Soulères Malerkost — Akari Engine */
:root {
  --color-bg: #ffffff;
  --color-surface: #496052;
  --color-text: #000000;
  --color-text-muted: #54595f;
  --color-accent: #496052;
  --color-accent-muted: #6f8576;
  --color-dark: #262626;
  --color-ink: #141714;
  --color-light: #ffffff;
  --color-cream: #fff7f1;
  --color-overlay: rgba(20, 22, 20, 0.78);
  --color-line: #d9dcd9;
  --font-display: 'Rubik', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Knapp */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-light);
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--color-dark); transform: translateY(-2px); }

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 1.5rem 0;
}
.site-header.solid { position: relative; background: var(--color-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: min(1360px, 100% - 2.5rem); }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--color-light); text-decoration: none; }
.brand img { width: 62px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; line-height: 1.05; font-size: 1.05rem; }
.nav { display: flex; gap: 2.5rem; }
.nav a { color: var(--color-light); text-decoration: none; font-size: 1.15rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--color-light); transform: scaleX(0); transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; color: var(--color-light); cursor: pointer; padding: 0.25rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-light);
  background: var(--color-dark) url("assets/images/hero-bergen.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
.hero-inner { position: relative; max-width: 640px; padding: 8rem 1.25rem 10rem; }
.hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); font-weight: 500; margin-bottom: 1.25rem; }
.hero p { margin: 0 0 2rem; }
.hero-divider { position: absolute; left: 0; right: 0; bottom: -1px; height: 100px; background: var(--color-dark); }
.hero-divider svg { position: absolute; bottom: 0; width: 100%; height: 100px; display: block; }
.hero-divider path { fill: var(--color-surface); }

/* Hvorfor */
.why { padding: 6rem 0; }
.why .inner { max-width: 560px; margin-inline: auto; }
.why h2 { font-size: 2rem; font-weight: 500; margin-bottom: 1.5rem; }
.why ul { margin: 0 0 2.5rem; padding-left: 2.5rem; list-style: disc; }
.why p { margin: 0 0 2rem; }

/* Tjenester */
.services { background: var(--color-surface); color: var(--color-light); padding: 3rem 0 5rem; text-align: center; }
.services h2 { font-size: 2rem; font-weight: 500; margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem 2rem; max-width: 1120px; margin-inline: auto; }
.services h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 1.5rem; }
.services p { margin: 0 auto; max-width: 320px; }

/* Utvalgt arbeid */
.work { padding: 6rem 0 3rem; text-align: center; }
.work h2, .suppliers h2, .contact h2 { font-size: 2rem; font-weight: 500; margin-bottom: 1.5rem; }
.work > .wrap > p { max-width: 480px; margin: 0 auto 2rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.tile { position: relative; display: block; aspect-ratio: 360 / 177; overflow: hidden; color: var(--color-light); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.3rem; background: rgba(0, 0, 0, 0.1); transition: background 0.3s ease; }
.tile:hover img { transform: scale(1.06); }
.tile:hover span { background: rgba(0, 0, 0, 0.4); }

/* Leverandører */
.suppliers { padding: 4rem 0; text-align: center; }
.suppliers img { width: 150px; margin-inline: auto; }

/* Kontakt */
.contact { padding: 3rem 0 6rem; text-align: center; }
.contact .inner { max-width: 576px; margin-inline: auto; }
.contact p { margin: 0 0 1rem; }
.contact a { color: inherit; }
.contact form { margin-top: 2.5rem; display: grid; gap: 1rem; text-align: left; }
.contact input, .contact textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-text);
  border-radius: 20px; font: inherit; background: var(--color-bg); color: var(--color-text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-muted); }
.contact textarea { min-height: 140px; resize: vertical; }
.contact .btn { justify-self: start; }
.contact small { color: var(--color-text-muted); }
.success-message { padding: 1.5rem; border-radius: 20px; background: var(--color-cream); color: var(--color-accent); font-weight: 500; text-align: center; }

/* Gallerisider */
.page-head { background: var(--color-surface); color: var(--color-light); padding: 4rem 0; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; }
.gallery { padding: 4rem 0 5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid button { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.3s ease; }
.gallery-grid button:hover img { transform: scale(1.05); opacity: 0.9; }
.gallery-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 3rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: fixed; top: 1rem; right: 1rem; background: var(--color-light); color: var(--color-text); border: 0; border-radius: 999px; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; transition: transform 0.2s ease; }
.lightbox button:hover { transform: rotate(90deg); }

/* Personvern */
.legal { padding: 4rem 0 6rem; }
.legal .inner { max-width: 720px; margin-inline: auto; }
.legal h2 { font-size: 1.4rem; font-weight: 500; margin: 2rem 0 0.75rem; }
.legal a { color: var(--color-accent); }

/* Footer */
.site-footer { background: var(--color-dark); color: var(--color-light); padding: 3rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--color-light); text-decoration: none; transition: opacity 0.2s ease; }
.site-footer a:hover { opacity: 0.7; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; }
.footer-bottom .social { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-accent); }

/* Scroll-animasjon */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .services-grid, .tiles, .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--color-dark); padding: 0.5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .services-grid, .tiles, .gallery-grid { grid-template-columns: 1fr; }
  .services-grid { gap: 2.5rem; }
  .brand img { width: 46px; }
}
