/* ---------------------------------------------------------
   Tømrer Morten Rønningen AS
   Palette:
     --ink        #17130F   near-black, warm charcoal (text, dark sections)
     --paper      #E8E0CC   warm off-white background (like planed wood/paper)
     --white      #FDFCF8   near-white for contrast surfaces
     --barn-red   #9B3226   accent — colour of a Norwegian barn / stabbur
     --timber     #5C4130   wood-brown, secondary accent
     --concrete   #8B8579   grey-beige, nods to betong service
   Type:
     Display — 'Anton'      condensed, heavy, sign-painted / stencil feel
     Body    — 'Work Sans'  plain, legible, unfussy
--------------------------------------------------------- */

:root {
  --ink: #17130F;
  --paper: #E8E0CC;
  --white: #FDFCF8;
  --barn-red: #9B3226;
  --timber: #5C4130;
  --concrete: #8B8579;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-mark {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { border-bottom-color: var(--barn-red); }

.phone-pill {
  text-decoration: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.phone-pill:hover { background: var(--barn-red); border-color: var(--barn-red); color: var(--white); }
.phone-pill-label { font-weight: 400; opacity: 0.75; margin-right: 6px; }

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

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--timber);
  margin: 0 0 14px;
  font-size: 15px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  color: var(--ink);
  margin-bottom: 26px;
}

.hero-lede {
  max-width: 46ch;
  font-size: 19px;
  color: #3a352c;
  margin: 0 0 34px;
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--barn-red); border-color: var(--barn-red); color: var(--white); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-mark {
  color: var(--timber);
  opacity: 0.85;
}
.hero-mark svg { width: 100%; height: auto; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { width: 46%; margin: 0 auto; opacity: 0.5; }
}

/* ---------- marquee divider ---------- */

.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.marquee-track {
  display: inline-flex;
  animation: scroll-left 26s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 14px 0;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- section heading ---------- */

.section-heading {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 8px;
}
.section-heading--light { color: var(--white); }

.section-lede {
  color: #524c40;
  max-width: 56ch;
  margin: 0 0 40px;
}

/* ---------- services ---------- */

.services { padding: 84px 0; }

.service-list {
  border-top: 2px solid var(--ink);
  margin-top: 36px;
}

.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 2px solid var(--ink);
}

.service-row h3 {
  font-size: 1.6rem;
  color: var(--barn-red);
}

.service-row p {
  margin: 0;
  max-width: 58ch;
  color: #322e26;
}

@media (max-width: 680px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- projects ---------- */

.projects { padding: 20px 0 90px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 30px;
  border: 2px solid var(--ink);
}

.project-tile {
  margin: 0;
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.project-tile--a { background: repeating-linear-gradient(45deg, var(--timber), var(--timber) 10px, #4a3527 10px, #4a3527 20px); }
.project-tile--b { background: repeating-linear-gradient(45deg, var(--concrete), var(--concrete) 10px, #79746a 10px, #79746a 20px); }
.project-tile--c { background: repeating-linear-gradient(45deg, #6b6157, #6b6157 10px, #5a5148 10px, #5a5148 20px); }
.project-tile--d { background: repeating-linear-gradient(45deg, var(--barn-red), var(--barn-red) 10px, #7e281d 10px, #7e281d 20px); }

.project-tile figcaption {
  width: 100%;
  background: rgba(23,19,15,0.82);
  color: var(--paper);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}
.project-tile figcaption span {
  font-weight: 400;
  opacity: 0.75;
  font-size: 12.5px;
}

.project-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--timber);
  font-style: italic;
}

@media (max-width: 720px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- about ---------- */

.about {
  background: var(--white);
  padding: 84px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}

.about-copy p {
  color: #322e26;
  max-width: 56ch;
}

.about-facts {
  margin: 0;
  align-self: start;
  border-top: 2px solid var(--ink);
}

.about-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #c9c1ac;
}

.about-facts dt {
  font-weight: 600;
  color: var(--timber);
}
.about-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */

.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 0 100px;
}

.contact-lede {
  color: #c8c0ac;
  max-width: 50ch;
  margin: 0 0 46px;
  font-size: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #3a342a;
}

.contact-card {
  background: var(--ink);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  transition: background 0.15s ease;
}
a.contact-card:hover { background: var(--barn-red); }

.contact-card-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a79f8a;
  font-weight: 600;
}
a.contact-card:hover .contact-card-label { color: var(--white); }

.contact-card-value {
  font-size: 21px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid #3a342a;
  padding: 26px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-mark { height: 28px; width: auto; opacity: 0.9; }

.footer-inner p {
  color: #a79f8a;
  font-size: 13px;
  margin: 0;
}
