/* ===========================================================
   Fjord Rør AS – design system
   =========================================================== */
:root {
  /* Brand – Navy / White with a warm brass accent */
  --navy:        #0c2340;
  --navy-800:    #102c50;
  --navy-700:    #16395f;
  --ink:         #0a1a2e;
  --blue:        #2f6db5;
  --brass:       #c07c3b;
  --brass-dark:  #a5652a;
  --sand:        #f4efe8;
  --surface:     #f7f9fb;
  --paper:       #ffffff;
  --line:        #e4e2db;
  --muted:       #5c6775;

  /* Spacing scale */
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6.5rem;

  /* Radii */
  --radius-sm:   10px;
  --radius:      18px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(12, 35, 64, 0.06);
  --shadow:    0 18px 40px -18px rgba(12, 35, 64, 0.28);
  --shadow-lg: 0 30px 70px -28px rgba(12, 35, 64, 0.38);

  /* Fluid type */
  --fs-body:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: clamp(0.85rem, 0.82rem + 0.1vw, 0.925rem);
  --fs-h1: clamp(2.6rem, 1.8rem + 3.6vw, 5rem);
  --fs-h2: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem);
  --fs-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  --fs-h4: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", Helvetica, sans-serif;

  --maxw: 1180px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 var(--space-md);
}
h1 { font-size: var(--fs-h1); font-weight: 650; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--space-md); }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.sr-only {
  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: var(--space-sm); top: -60px;
  background: var(--navy); color: #fff; padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm); z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: var(--space-sm); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--brass); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brass-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sand); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass-dark);
  margin: 0 0 var(--space-sm);
}
.eyebrow--light { color: #e9c79e; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; text-decoration: none; color: var(--navy);
}
.link-arrow span { transition: transform .18s ease; }
.link-arrow:hover { color: var(--brass-dark); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 650; font-size: 1.3rem;
  color: var(--navy); text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--brass); font-size: 0.7em; vertical-align: super; }
.brand:hover { color: var(--navy); }

.primary-nav ul {
  display: flex; align-items: center; gap: var(--space-lg);
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  text-decoration: none; color: var(--navy);
  font-weight: 500; font-size: 0.98rem;
  padding: var(--space-2xs) 0; position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--brass); transform: scaleX(0);
  transform-origin: left; transition: transform .2s ease;
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--brass-dark); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 0.55em 1.2em !important; border-radius: var(--radius-pill);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-700); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  color: var(--navy);
}
.nav-toggle__box { position: relative; display: block; width: 24px; height: 2px; margin: 0 auto; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  position: absolute; left: 0; width: 24px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle__bar { top: 0; }
.nav-toggle__bar::before { content: ""; top: -7px; }
.nav-toggle__bar::after { content: ""; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
  }
  .primary-nav.is-open { max-height: 460px; }
  .primary-nav ul {
    flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--space-sm) var(--space-lg) var(--space-lg);
  }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { display: block; padding: var(--space-md) 0; }
  .primary-nav a::after { display: none; }
  .nav-cta { display: inline-block; margin-top: var(--space-md); text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,26,46,.25) 0%, rgba(10,26,46,.55) 55%, rgba(10,26,46,.9) 100%),
    linear-gradient(90deg, rgba(10,26,46,.55), rgba(10,26,46,.1));
}
.hero__inner { position: relative; padding-block: var(--space-2xl); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: var(--space-md); }
.hero__lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  color: #eef2f6; max-width: 58ch; margin-bottom: var(--space-xl);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--navy);
  color: #fff;
}
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
}
.trust__item h2 {
  color: #fff; font-size: 1.12rem; font-family: var(--font-body);
  font-weight: 700; margin-bottom: var(--space-2xs);
}
.trust__item p { color: #c3cedb; font-size: 0.95rem; margin: 0; }
.trust__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(192,124,59,.18); color: var(--brass);
  margin-bottom: var(--space-md);
}
@media (max-width: 900px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust__grid { grid-template-columns: 1fr; gap: var(--space-lg); } }

/* ---------- Generic section ---------- */
.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.section__head { max-width: 680px; margin-bottom: var(--space-2xl); }
.section__intro { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--space-lg); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: var(--space-xs); }
.card__body p { color: var(--muted); flex: 1; }
.card__body .link-arrow { margin-top: var(--space-sm); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- Split (alternating image/text) ---------- */
.split { padding-block: var(--space-2xl); }
.split:nth-of-type(even) { background: var(--sand); }
.split__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-xl), 5vw, var(--space-3xl));
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 5 / 5.2;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text h2 { margin-bottom: var(--space-md); }
.split__text p { color: var(--muted); }
@media (max-width: 820px) {
  .split__inner { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 16 / 10; }
}

.ticks { list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 2rem; margin-bottom: var(--space-sm);
  color: var(--ink);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 9px; border-left: 2.5px solid var(--brass);
  border-bottom: 2.5px solid var(--brass); transform: rotate(-45deg);
}

.steps { list-style: none; counter-reset: s; margin: var(--space-md) 0 0; padding: 0; }
.steps li {
  display: flex; align-items: center; gap: var(--space-md);
  margin-bottom: var(--space-sm); font-weight: 500;
}
.steps li span {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-xl); }
.value {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-xl);
}
.value h3 { margin-bottom: var(--space-xs); }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* ---------- Page head ---------- */
.page-head {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff; padding-block: var(--space-3xl) var(--space-2xl);
}
.page-head h1 { color: #fff; max-width: 16ch; }
.page-head__lead { color: #cdd7e2; font-size: 1.15rem; max-width: 60ch; margin: 0; }

/* ---------- Services list ---------- */
.service-list { display: flex; flex-direction: column; gap: var(--space-2xl); }
.service {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-lg), 4vw, var(--space-2xl));
  align-items: center;
}
.service:nth-child(even) .service__media { order: 2; }
.service__media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 9 / 6.5;
}
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body h2 { margin-bottom: var(--space-sm); }
.service__body p { color: var(--muted); }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: var(--space-2xl); align-items: start; }
.pricing__list {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: var(--space-2xs); }
.price-row p { color: var(--muted); margin: 0; max-width: 42ch; }
.price-row__amount {
  flex: none; font-family: var(--font-display); font-weight: 650;
  font-size: 1.5rem; color: var(--navy); white-space: nowrap;
  text-align: right;
}
.price-row__amount span { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); }
.pricing__note {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.pricing__note img { width: 100%; aspect-ratio: 7/5; object-fit: cover; }
.pricing__note > div { padding: var(--space-xl); }
.pricing__note h2 { color: #fff; }
.pricing__note p { color: #c3cedb; }
.pricing__note .btn { margin-top: var(--space-sm); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .price-row { flex-direction: column; } .price-row__amount { text-align: left; } }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: var(--space-md);
}
.gallery__item {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-md); color: #fff; font-size: .92rem; font-weight: 500;
  background: linear-gradient(0deg, rgba(10,26,46,.82), rgba(10,26,46,0));
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item--tall { grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: var(--space-2xl); align-items: start; }
.contact__form-wrap {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
}
.notice {
  background: #e7f3ec; border: 1px solid #b7dcc4; color: #1d5b36;
  border-radius: var(--radius); padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg); font-weight: 500;
}
.form__row { margin-bottom: var(--space-lg); }
.form label { display: block; font-weight: 600; margin-bottom: var(--space-xs); color: var(--navy); }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.8em 1em; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(192,124,59,.2); background: #fff;
}
.form textarea { resize: vertical; }
.form__error { color: #b42318; font-size: .88rem; margin: var(--space-2xs) 0 0; min-height: 0; }
.form .btn { margin-top: var(--space-xs); }

.contact__info { display: grid; gap: var(--space-md); }
.contact__card {
  background: var(--sand); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-lg) var(--space-xl);
}
.contact__card h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-2xs); color: var(--navy); }
.contact__card p, .contact__card address { margin: 0; color: var(--muted); font-style: normal; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(192,124,59,.22), transparent 55%),
    var(--navy);
  color: #fff; padding-block: var(--space-2xl);
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-xl); flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-2xs); }
.cta-band p { color: #cdd7e2; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c3cedb; padding-top: var(--space-2xl); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-xl); padding-bottom: var(--space-2xl);
}
.brand--footer { color: #fff; display: inline-block; margin-bottom: var(--space-sm); }
.brand--footer:hover { color: #fff; }
.site-footer__brand p { color: #9fadbd; max-width: 40ch; }
.site-footer__title { color: #fff; font-family: var(--font-body); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-md); }
.site-footer address { font-style: normal; color: #9fadbd; line-height: 1.8; }
.site-footer a { color: #cdd7e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__nav { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.site-footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--space-lg); font-size: var(--fs-small); color: #8a99aa;
}
.site-footer__base p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.btn--primary { background: #8f5520; }
.btn--primary:hover { background: #7a4719; }
.contact > * { min-width: 0; }
.contact__card a, .contact__card p, .contact__card address { overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: anywhere; }
@media (max-width: 560px) { h1, h2, h3 { hyphens: auto; } }
