/* Qurtuba Management: site styles
   Layout: a forest-green masthead band, white reading pages where each section has a label
   column on the left and its body on the right, a green contact band, a quiet footer.
   One deliberate light look (a corporate identity), so no dark-mode palette. */

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

:root {
  --field: #1F2E27;          /* forest green band */
  --field-ink: #F2F4F1;      /* text on green */
  --field-soft: #D5DCD7;     /* lede text on green */
  --field-muted: #C3CCC6;    /* small text on green */
  --field-rule: rgba(242, 244, 241, 0.24);
  --paper: #FFFFFF;
  --ink: #141815;            /* near-black, slightly green */
  --ink-2: #353B37;          /* body text */
  --muted: #5A615C;          /* captions, labels */
  --rule: #D7DAD7;
  --hover: #2F5A45;
  --mark: #ECEFD9;           /* highlight for [placeholders] still to fill */
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --measure: 68ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--hover); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
strong { font-weight: 600; color: var(--ink); }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--paper); color: var(--ink); padding: 8px 12px; }

.ph { background: var(--mark); color: inherit; padding: 0 0.2em; border-radius: 2px; }
.field .ph { background: rgba(236, 239, 217, 0.18); }

/* ---- Green band: masthead and hero ---- */
.field { background: var(--field); color: var(--field-ink); }
.field a { color: var(--field-ink); }
.field a:hover { color: var(--field-muted); }

.masthead {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 40px;
  padding-block: 26px 20px;
  border-bottom: 1px solid var(--field-rule);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { display: block; flex: none; width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.brand__sub { font-size: 13px; line-height: 1; }
.masthead .brand__sub { color: var(--field-muted); }

.nav { display: flex; flex-wrap: wrap; gap: 0 32px; font-size: 15px; }
.nav a { display: inline-block; padding-block: 11px; text-decoration: none; border-bottom: 1px solid transparent; line-height: 1.4; }
.nav a:hover { color: var(--field-ink); border-bottom-color: var(--field-muted); }
.nav a[aria-current="page"] { border-bottom-color: var(--field-ink); }

.hero { padding-block: clamp(64px, 10vw, 136px) clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(44px, 6.4vw, 96px); line-height: 0.98; letter-spacing: -0.035em; max-width: 11em; }
.hero__row { display: flex; flex-wrap: wrap; gap: 32px 64px; margin-top: clamp(40px, 5vw, 64px); }
.hero__lede { flex: 999 1 380px; min-width: 0; max-width: 600px; display: grid; gap: 26px; justify-items: start; }
.lede { font-size: 19px; line-height: 1.6; color: var(--field-soft); }
.hero__cta { font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; padding-block: 8px; }
.hero__note {
  flex: 1 1 220px; max-width: 320px; align-self: flex-end;
  padding-top: 16px; border-top: 1px solid var(--field-rule);
  font-size: 14px; line-height: 1.6; color: var(--field-muted);
}

.hero--page { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero--page h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.03em; max-width: 14em; }
.hero--page .lede { margin-top: clamp(22px, 3vw, 34px); max-width: 640px; }
.hero--legal { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); }
.hero--legal h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
.hero--legal .meta { margin-top: 14px; font-size: 14px; color: var(--field-muted); }

/* ---- Reading sections ---- */
.section {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  padding-block: clamp(56px, 8vw, 112px);
  border-bottom: 1px solid var(--rule);
}
.section:last-child { border-bottom: 0; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section > h2 { flex: 0 0 280px; max-width: 100%; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.02em; }
.section--tight > h2 { font-size: clamp(22px, 2.2vw, 28px); }
.section__body { flex: 1 1 560px; min-width: 0; }
.section--stack > h2 { flex-basis: 100%; }
.section--stack > .section__body { flex-basis: 100%; }

.prose { max-width: var(--measure); color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose > h3 { margin-top: 40px; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted); }
.prose .lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; letter-spacing: -0.005em; color: var(--ink); }

.intro { max-width: 34em; margin-bottom: 28px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; letter-spacing: -0.005em; color: var(--ink); }
.after { margin-top: 20px; max-width: var(--measure); color: var(--ink-2); }
.note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.sources { font-size: 13px; line-height: 1.6; color: var(--muted); }
.more { display: inline-block; font-size: 15px; font-weight: 500; text-decoration-color: var(--field); padding-block: 6px; }

/* Three columns of services */
.cards { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.card { flex: 1 1 260px; display: grid; align-content: start; gap: 12px; border-top: 1px solid var(--ink); padding-top: 22px; }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); }

/* Two side-by-side lists */
.pair { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.pair > div { flex: 1 1 260px; min-width: 0; border-top: 1px solid var(--ink); padding-top: 20px; }
.pair h3 { font-size: 19px; line-height: 1.35; margin-bottom: 12px; }
.pair ul { padding-left: 1.25em; color: var(--ink-2); }
.pair li + li { margin-top: 8px; }
.pair li::marker { color: var(--muted); }

/* Numbered stages: the order is the content */
.steps { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.steps li { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-block: 22px; border-top: 1px solid var(--rule); }
.steps__n { flex: 0 0 56px; font-size: 22px; font-weight: 500; line-height: 1.2; color: var(--field); }
.steps h3 { flex: 1 1 160px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.steps p { flex: 3 1 300px; color: var(--ink-2); line-height: 1.65; }

/* Ruled list without numbers */
.ruled { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); max-width: var(--measure); }
.ruled li { padding-block: 18px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.terms li { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.terms strong { flex: 0 0 180px; font-size: 17px; }
.terms span { flex: 1 1 300px; min-width: 0; }
.subhead { margin-top: 44px; margin-bottom: 4px; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
th {
  text-align: left; vertical-align: bottom;
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink);
}
td { vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
th:last-child, td:last-child { padding-right: 0; }
.table--compare { min-width: 600px; }
.table--compare td:first-child { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.table--legal { min-width: 640px; max-width: 920px; }

/* Questions and answers */
.faq { border-top: 1px solid var(--rule); max-width: 920px; }
.faq > div { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.faq dt { flex: 1 1 240px; font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.faq dd { flex: 2 1 320px; min-width: 0; color: var(--ink-2); }

/* Vehicle entries */
.entries { display: grid; gap: 0; max-width: 820px; border-bottom: 1px solid var(--rule); }
.entry { padding-block: 26px; border-top: 1px solid var(--rule); }
.entry h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.entry h3 span { font-weight: 400; color: var(--muted); }
.entry p { margin-top: 10px; color: var(--ink-2); max-width: var(--measure); }
.entry .gp { color: var(--ink); }

/* ---- Contact band ---- */
.contact { padding-block: clamp(64px, 9vw, 120px); }
.contact__line { font-size: clamp(32px, 4.6vw, 62px); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; max-width: 13em; text-wrap: balance; }
.contact__email { margin-top: 30px; font-size: 18px; }

/* ---- Footer ---- */
.footer { display: flex; flex-wrap: wrap; gap: 28px 48px; padding-block: 40px 56px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.footer .brand { flex: 1 1 200px; align-self: flex-start; gap: 12px; color: var(--field); }
.footer .brand svg { width: 36px; height: 36px; }
.footer .brand__name { font-size: 18px; color: var(--ink); }
.footer .brand__sub { font-size: 12px; color: var(--muted); }
.footer__reg { flex: 999 1 420px; max-width: 680px; }
.footer__nav { flex: 1 1 180px; display: flex; flex-direction: column; }
.footer__nav a { color: var(--ink-2); padding-block: 3px; }

@media (max-width: 560px) {
  .nav { gap: 0 22px; }
  .table--compare td:first-child { white-space: normal; }
}

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