/* ---------- Fonter ---------- */
@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
/* Sherbourne lastes fra Adobe Fonts (kit dje5edr), se <head> i index.html. */

/* ---------- Variabler ---------- */
:root {
  --pink: #F1CFCE;
  --pink-light: #F1E6E6;
  --green: #224E3F;
  --navy: #083A51;
  --ink: #041C27;
  --teal: #83BFC9;
  --sky: #B4E7EF;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "sherborne-variable", Georgia, "Times New Roman", serif;

  /* Mål fra skissen (ramme 1440 px): innhold 1072 px bredt */
  --maxw: 1072px;
  --gutter: clamp(20px, 5vw, 184px);
  --sp: clamp(56px, 9.3vw, 134px);   /* vertikal avstand mellom seksjoner */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--ink); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
/* Hold innholdet på 1072 px midt på siden når skjermen er bredere enn 1440 px */
@media (min-width: 1440px) { :root { --gutter: calc((100vw - var(--maxw)) / 2); } .wrap { max-width: none; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--sky); color: var(--ink); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink) url("images/hero.jpg") center / cover no-repeat;
  min-height: clamp(520px, 63.4vw, 913px);
  display: flex;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,28,39,.45), rgba(4,28,39,.25) 55%, rgba(4,28,39,.55)); }
.hero .wrap { position: relative; display: flex; flex-direction: column; padding-top: clamp(32px, 9vw, 130px); padding-bottom: clamp(32px, 5.5vw, 80px); }
.logo { width: clamp(180px, 23.2vw, 334px); height: auto; }
.hero h1 {
  font-weight: 300;
  font-size: clamp(2.25rem, 5.6vw, 5rem);   /* 80 px fra 1440 px */
  line-height: 1.2;
  letter-spacing: 0;
  margin-top: clamp(40px, 7.3vw, 105px);
}
.hero-links { margin-top: auto; padding-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem clamp(24px, 4.1vw, 59px); font-size: 20px; line-height: 1.45; }
.hero-links a { color: var(--sky); text-decoration: none; }
.hero-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Intro ---------- */
.intro { padding-block: calc(var(--sp) * .85) var(--sp); }
.intro p { max-width: 830px; font-size: 26px; line-height: 40px; }

/* ---------- Om Øyvind ---------- */
.about-grid { display: grid; grid-template-columns: 448px 1fr; background: var(--sky); padding-inline: 0; width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw); margin-inline: auto; }
.about-grid > img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.about-text { padding: clamp(28px, 5.8vw, 84px); padding-right: clamp(28px, 5.8vw, 84px); font-size: 18px; line-height: 28px; }
.about-text > p:not(.eyebrow) { max-width: 455px; }
.about-text p + p { margin-top: 28px; }
.eyebrow { font-size: 12px; line-height: 17px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.about h2 { font-weight: 300; font-size: 48px; line-height: 1.2; margin-bottom: 30px; }

/* ---------- Spesialområder ---------- */
.special { padding-block: var(--sp) calc(var(--sp) * 1.2); }
.special-intro { max-width: 720px; font-size: 28px; line-height: 38px; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.1vw, 30px); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card > img { width: 100%; aspect-ratio: 338 / 291; object-fit: cover; object-position: center 30%; }
.card-label { padding: 35px 37px 36px; flex: 1; }
.card-label span { display: block; font-size: 16px; line-height: 23px; }
.card-label strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 40px; }
.card-navy { background: var(--navy); color: var(--pink-light); }
.card-green { background: var(--green); color: var(--sky); }
.card-green > img { width: calc(100% - 80px); margin: 42px 40px 0; aspect-ratio: 257 / 249; object-position: center; }
.card-green .card-label strong { color: var(--teal); }
.card-teal { background: var(--teal); color: var(--ink); }

/* ---------- Landskapsarkitekturen ---------- */
.discipline { background: var(--pink-light); padding-block: calc(var(--sp) * .94) calc(var(--sp) * .95); }
.discipline-text { max-width: 650px; margin-left: clamp(0px, 11vw, 159px); font-size: 20px; line-height: 30px; }
.discipline h2 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.4; margin-bottom: 20px; }
.discipline-text p + p, .discipline-text .pillars + p { margin-top: 30px; }
.pillars { margin-top: 0; }
.pillars strong { font-weight: 600; }
.discipline-images { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.7vw, 25px); margin-top: clamp(32px, 3.3vw, 48px); }
.discipline-images img { width: 100%; aspect-ratio: 524 / 295; object-fit: cover; }
.discipline-more { margin-top: clamp(40px, 5vw, 71px); }
.discipline-more h3 { font-size: 20px; font-weight: 600; line-height: 30px; margin: 30px 0 0; }
.discipline-more h3 + p { margin-top: 0; }
.discipline-more p + h3 { margin-top: 30px; }
.discipline-more .lead-in { margin-top: 30px; }
.discipline-more .lead-in + p { margin-top: 30px; }

/* ---------- Collage ---------- */
.collage { padding-block: var(--sp) calc(var(--sp) * 1.55); background: #fff; }
.collage img { width: 100%; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--green) url("images/footer.jpg") center / cover no-repeat; }
.footer-visual { position: relative; height: clamp(240px, 33.6vw, 484px); }
.mark { position: absolute; left: 50%; top: 50%; width: clamp(72px, 8.9vw, 128px); height: auto; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); }
.footer-bar { background: rgba(4, 28, 39, .82); color: var(--sky); font-size: 20px; line-height: 29px; }
.footer-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: clamp(20px, 3.5vw, 51px); }
.footer-bar a { text-decoration: none; }
.footer-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mellomstørrelser ---------- */
@media (max-width: 1100px) {
  .discipline-text { margin-inline: auto; }
  .about-grid { grid-template-columns: 40% 1fr; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .intro p { font-size: 20px; line-height: 1.5; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > img { height: auto; aspect-ratio: 4 / 4.2; object-position: center 20%; }
  .about-text { font-size: 17px; line-height: 1.55; }
  .about h2 { font-size: 36px; }
  .special-intro { font-size: 22px; line-height: 1.4; margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; }
  .card > img { aspect-ratio: 16 / 10; }
  .card-green > img { aspect-ratio: 16 / 10; }
  .card-label strong { font-size: 26px; }
  .discipline-text, .discipline-more { font-size: 17px; line-height: 1.6; }
  .discipline h2 { font-size: 36px; }
  .discipline-more h3 { font-size: 17px; line-height: 1.6; }
  .discipline-images { grid-template-columns: 1fr; }
  .hero-links, .footer-bar { font-size: 16px; line-height: 1.5; }
  .footer-bar .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
