/* ============================================
   WALDEN BYGGSERVICE AS — global stylesheet
   ============================================ */

:root {
  --bg: #0e0d0b;
  --bg-alt: #12100d;
  --card: #191712;
  --card-hover: #1e1b15;
  --line: rgba(201, 149, 92, 0.14);
  --line-soft: rgba(255, 255, 255, 0.06);
  --gold: #c9955c;
  --gold-light: #e3b078;
  --gold-grad: linear-gradient(135deg, #e3b078 0%, #c9955c 55%, #a9743d 100%);
  --ink: #f2ece1;
  --body: #9d9484;
  --body-dim: #6f685c;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 84px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.accent { color: var(--gold); }

/* ---------- eyebrow label ---------- */
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-gold {
  background: var(--gold-grad);
  color: #191410;
  box-shadow: 0 6px 24px rgba(201, 149, 92, 0.22);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201, 149, 92, 0.32); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid rgba(201, 149, 92, 0.35);
  padding-bottom: 3px;
  transition: gap 0.25s var(--ease);
}
.arrow-link:hover { gap: 13px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.logo svg { width: 46px; height: 36px; }
.logo .logo-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}
.logo .logo-sub {
  color: var(--gold);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo .logo-sub::before, .logo .logo-sub::after {
  content: "";
  height: 1px;
  width: 14px;
  background: rgba(201, 149, 92, 0.5);
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 12px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO (home)
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 13, 11, 0.92) 0%, rgba(14, 13, 11, 0.55) 45%, rgba(14, 13, 11, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}

.hero-content { max-width: 560px; padding: 90px 0; }
.hero h1 {
  font-size: clamp(42px, 6vw, 64px);
  margin-bottom: 24px;
}
.hero p {
  font-size: 18px;
  color: #c7bfb1;
  max-width: 420px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- feature bar ---------- */
.feature-bar {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.feature-bar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.feature-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

/* ============================================
   SECTIONS
   ============================================ */
section.block { padding: 110px 0; }
section.block.tinted { background: var(--bg-alt); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  max-width: 520px;
}
.section-head .side {
  max-width: 380px;
  padding-bottom: 6px;
}
.section-head .side p { margin-bottom: 18px; font-size: 15.5px; }

/* ---------- service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.service-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .thumb img { transform: scale(1.05); }
.service-card .thumb .icon-chip {
  position: absolute;
  left: 16px; bottom: 16px;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(14, 13, 11, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .thumb .icon-chip svg { width: 20px; height: 20px; color: var(--gold); }
.service-card .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service-card h3 { font-size: 19px; }
.service-card p { font-size: 14.5px; line-height: 1.6; }
.service-card .go {
  margin-top: auto;
  padding-top: 14px;
  color: var(--gold);
  display: flex;
  justify-content: flex-end;
}
.service-card .go svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.service-card:hover .go svg { transform: translateX(5px); }

/* ---------- projects preview (home) ---------- */
.projects-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.projects-preview .shot {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  position: relative;
}
.projects-preview .shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.projects-preview .shot:hover img { transform: scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  padding: 96px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.cta-band p { max-width: 480px; margin: 0 auto 34px; }

/* ============================================
   SUBPAGE HERO
   ============================================ */
.page-hero {
  padding: calc(var(--header-h) + 90px) 0 70px;
}
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 20px; }
.page-hero .lead {
  font-size: 18px;
  color: #c7bfb1;
  max-width: 520px;
}

/* ============================================
   OM OSS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-copy h1 { font-size: clamp(34px, 4.5vw, 50px); margin-bottom: 26px; }
.about-copy .intro {
  font-size: 18px;
  color: #c7bfb1;
  margin-bottom: 18px;
}
.about-copy p { margin-bottom: 18px; }
.signature {
  margin-top: 34px;
}
.signature .sig-name {
  font-family: "Great Vibes", cursive;
  font-size: 38px;
  color: var(--gold-light);
  line-height: 1.1;
}
.signature .sig-role {
  font-size: 13px;
  color: var(--body-dim);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) contrast(1.05); }

/* ---------- stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 90px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--line); }
.stat svg { width: 26px; height: 26px; color: var(--gold); margin: 0 auto 12px; }
.stat .stat-big {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.stat .stat-small { font-size: 13.5px; color: var(--body-dim); }

/* ---------- values list (om oss) ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.value-card svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 16px; }
.value-card h3 { font-size: 18px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; }

/* ============================================
   PROSJEKTER
   ============================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-pill {
  background: var(--card);
  border: 1px solid var(--line-soft);
  color: var(--body);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-pill:hover { color: var(--ink); border-color: var(--line); }
.filter-pill.active {
  background: var(--gold-grad);
  color: #191410;
  border-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  position: relative;
  aspect-ratio: 4 / 3;
  display: block;
}
.project-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-item:hover img { transform: scale(1.06); }
.project-item .tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(14, 13, 11, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}
.project-item.hidden { display: none; }

/* ============================================
   KONTAKT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 20px; }
.contact-info .lead { margin-bottom: 40px; font-size: 17px; color: #c7bfb1; }
.contact-lines { display: flex; flex-direction: column; gap: 26px; margin-bottom: 42px; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; }
.contact-line svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-line .label { font-size: 13px; color: var(--body-dim); letter-spacing: 0.04em; }
.contact-line .value { color: var(--ink); font-weight: 600; font-size: 16.5px; }
.contact-line a.value:hover { color: var(--gold-light); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form .field-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 7px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(201, 149, 92, 0.55);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--body-dim); margin-top: 14px; text-align: center; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-grid .logo { align-items: flex-start; margin-bottom: 18px; }
.footer-about p { font-size: 14.5px; max-width: 300px; }
.footer-col h4 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col li { font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--body-dim);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1020px) {
  .card-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-bar .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .feature-item { justify-content: flex-start; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(14, 13, 11, 0.98);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 28px 20px;
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 0; font-size: 17px; width: 100%; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--gold); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }

  section.block { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 38px; }
  .card-grid, .project-grid, .projects-preview { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
  .hero-content { padding: 60px 0; }
  .hero p { font-size: 16.5px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 20px 14px; }
}
