/* Section: a Line and Grid template. Compact and light, for firms that win
   most of their work by phone: the phone number is the biggest thing on it. To set it up for a firm, change
   the tokens below (one brand colour does most of the work), swap the photos
   in img/, and edit the copy. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --brand: #B4441C;        /* the firm's colour: the phone number, buttons, links */
  --brand-ink: #FFFFFF;    /* text on the brand colour */
  --paper: #FFFFFF;
  --band: #F3F2EF;         /* the hiring strip and the quote form */
  --ink: #191A1C;
  --muted: #565B60;
  --rule: #E2E1DD;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1120px;
  --radius: 6px;

  --fs-h1: clamp(34px, 4.2vw, 54px);
  --fs-call: clamp(40px, 5.2vw, 66px);
  --fs-h2: clamp(28px, 2.8vw, 36px);
  --fs-h3: 19px;
  --fs-lead: clamp(18px, 1.4vw, 19px);
  --fs-body: 17px;
  --fs-small: 15px;

  --s-section: clamp(56px, 7vw, 88px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.05; letter-spacing: -0.028em; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 34em; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 20; }
.skip:focus { top: 12px; }

/* The example bar: only on the demo. Delete it for a client. */
.example { background: var(--ink); color: #D9DCDF; font-size: 14px; }
.example .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; padding-block: 10px; }
.example a { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.015em; line-height: 1.15; }
.logo .mark { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); border-radius: 50%; font-size: 17px; }
.logo small { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn, .nav .btn:hover { color: var(--brand-ink); text-decoration: none; padding: 0 16px; }
.call-short, .menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .top .wrap { gap: 10px; }
  .logo { margin-right: auto; }
  .call-short { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; min-height: 42px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--radius); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-list { display: grid; }
  .menu-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px; }
  .menu-list a { padding: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
}
@media (max-width: 400px) { .logo small { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn.small { min-height: 42px; font-size: var(--fs-small); }

/* The phone number: the biggest thing on the page. */
.call { display: inline-grid; margin-top: 32px; color: var(--brand); text-decoration: none; font-size: var(--fs-call); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.call span { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 8px; }
.call:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) var(--s-section); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .intro { font-weight: 600; color: var(--brand); margin-bottom: 16px; }
.hero .lead { margin-top: 20px; }
.hero .alt { margin-top: 20px; color: var(--muted); }
.hero .alt a { font-weight: 600; }
.hero figure { margin: 0; }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; border-radius: var(--radius); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero img { aspect-ratio: 16 / 10; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-section); border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-title { margin-bottom: clamp(24px, 3vw, 36px); }
.more { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }

/* What we do: a schedule, one service to a row. No boxes, no icons. */
.schedule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.schedule > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.schedule p { color: var(--muted); }
/* On the services page each row carries the detail. */
.schedule.detail > li { padding: 28px 0; }
.schedule.detail h2 { font-size: 23px; letter-spacing: -0.015em; }
.schedule.detail p + p { margin-top: 12px; }
.schedule.detail ul { margin: 14px 0 0; padding-left: 20px; list-style: disc; color: var(--muted); }
.schedule.detail ul li + li { margin-top: 4px; }
@media (max-width: 700px) { .schedule > li { grid-template-columns: 1fr; } }

.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px); }
.work figure { margin: 0; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.work figcaption { margin-top: 14px; }
.work figcaption span { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 2px; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.about > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about h2 { margin-bottom: 16px; }
.about p { color: var(--muted); max-width: 36em; }
.about p + p { margin-top: 14px; }
.about .areas-head { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }
.about .more { display: inline-block; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 44px; margin-top: 28px; }
.facts strong { display: block; font-size: clamp(30px, 3vw, 38px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.facts span { font-size: var(--fs-small); color: var(--muted); }
.areas { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.areas li:not(:last-child)::after { content: ","; margin-right: 0.35em; }
.about .note { margin-top: 10px; font-size: var(--fs-small); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about > img { aspect-ratio: 16 / 10; } }

/* One line between about and contact, only when there's a job to show. */
.hiring { background: var(--band); border-top: 1px solid var(--rule); }
.hiring .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }
.hiring a { font-weight: 600; }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); }
.contact .lead { margin-top: 14px; }
.contact .call { font-size: clamp(34px, 3.6vw, 46px); }
.contact dl { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.quote { background: var(--band); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.quote .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote label { display: grid; gap: 6px; font-weight: 600; font-size: var(--fs-small); }
.quote input, .quote textarea { font: inherit; font-weight: 400; font-size: var(--fs-body); color: var(--ink); padding: 11px 14px; border: 1px solid #8C9196; border-radius: var(--radius); background: var(--paper); min-height: 48px; width: 100%; }
.quote textarea { min-height: 112px; resize: vertical; }
.quote .done { font-weight: 600; color: var(--brand); }
.quote .done:empty { display: none; }
.credits { margin-top: clamp(32px, 4vw, 48px); color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 860px) { .contact .wrap, .quote .pair { grid-template-columns: 1fr; } }

/* The close of every inner page: the phone number again. */
.call-band .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
.call-band .lead { margin-top: 12px; }
.call-band .call { margin-top: 0; }
.call-band .alt { margin-top: 12px; }
.call-band .alt a { font-weight: 600; }
@media (max-width: 860px) { .call-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 48px); }
.page-head .lead { margin-top: 18px; }
.page-head + .section { border-top: 0; padding-top: 0; }
.job { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.job:first-child { border-top: 1px solid var(--ink); }
.job .facts-row { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 10px; color: var(--muted); font-size: var(--fs-small); }
.job p { margin-top: 14px; color: var(--muted); max-width: 46em; }
.job ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.job .btn { margin-top: 20px; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #C9CDD1; font-size: var(--fs-small); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 36px; }
.foot .logo { color: #fff; }
.foot .logo small { color: #A9AEB3; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { color: #E6E8EA; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .logo:hover { text-decoration: none; }
.foot .base { border-top: 1px solid #2E3337; }
.foot .base .wrap { gap: 8px 24px; padding-block: 16px 20px; color: #A9AEB3; }
