:root {
  --ov-terra: #B9401B;
  --ov-terra-bright: #B9401B;
  --ov-ink: #2b2a28;
  --ov-sand: #e8e9e4;
  --ov-paper: #f9f9f7;
  --ov-white: #ffffff;
  --ov-text: #2c2b29;
  --ov-muted: #5e5c58;
  --ov-line: rgba(43, 42, 40, 0.14);
  --font-heading: "Outfit", "Avenir Next", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --text-body: 17px;
  --section-y: clamp(3.25rem, 6vw, 5.5rem);
  --wrap: 1280px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ov-text);
  background: var(--ov-paper);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.7em;
}

.ov-prose h3,
.ov-prose h4,
.ov-prose h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ov-ink);
}

.ov-prose h3 { font-size: 1.45rem; }
.ov-prose h4 { font-size: 1.2rem; }
.ov-prose h5 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ov-wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.ov-section--bg-paper { background: var(--ov-paper); color: var(--ov-text); }
.ov-section--bg-sand { background: var(--ov-sand); color: var(--ov-text); }
.ov-section--bg-white { background: var(--ov-white); color: var(--ov-text); }
.ov-section--bg-ink { background: var(--ov-ink); color: #f4f1ec; }

.ov-section--pad-both { padding-block: var(--section-y); }
.ov-section--pad-top { padding-top: var(--section-y); }
.ov-section--pad-bottom { padding-bottom: var(--section-y); }
.ov-section--pad-none { padding-block: 0; }

.ov-section h2 {
  color: var(--ov-terra);
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.ov-section--bg-ink h2,
.ov-section--bg-ink .ov-prose { color: #f4f1ec; }

.ov-prose p:last-child { margin-bottom: 0; }

.ov-prose--thanks { max-width: none; }

.ov-thanks > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 1.08fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.ov-prose--thanks .ov-thanks > .wp-block-group__inner-container > *,
.ov-thanks__copy .wp-block-group__inner-container > * + * {
  margin-block-start: 0;
}

.ov-thanks__copy > :first-child { margin-top: 0; }

.ov-thanks__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 14px 14px 14px 140px;
  background: #d7d6d1;
}

.ov-prose--thanks .ov-thanks__photo img {
  width: 100%;
  height: min(28rem, calc(100svh - var(--header-h) - 12rem));
  max-height: 440px;
  object-fit: cover;
  border-radius: 14px 14px 14px 140px;
}

.ov-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--ov-terra);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ov-prose--thanks h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ov-thanks__action { margin-top: 1.5rem; }
.ov-lead { font-weight: 700; }

.ov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--ov-terra);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.95rem 1.35rem;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.ov-btn:hover { filter: brightness(1.06); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: var(--ov-paper);
  border-bottom: 1px solid transparent;
}

.site-header__inner,
.site-footer__inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  margin-right: auto;
}

.site-logo__mark {
  color: var(--ov-terra);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 1.4rem;
}

.site-logo__sub {
  margin-top: 0.28rem;
  color: var(--ov-muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a:not(.ov-btn) {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ov-ink);
}

.site-footer {
  background: var(--ov-ink);
  color: #f4f1ec;
  padding: 3.5rem 0;
}

.site-footer a { text-decoration: none; }

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.site-logo--footer .site-logo__sub { color: rgba(244, 241, 236, 0.72); }

.site-footer__label {
  margin: 0 0 0.15rem;
  color: #f4f1ec;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer__strong { margin: 0 0 0.85rem; font-weight: 400; }
.site-footer__logo { display: block; width: auto; }
.site-footer__logo--bygg { height: 52px; margin: 0.35rem 0 1.15rem; }
.site-footer__logo--partner { height: 38px; margin: 0.45rem 0 0.2rem; }
.site-footer__note { font-size: 0.68rem; color: rgba(244, 241, 236, 0.78); line-height: 1.45; }
.site-footer__note a { text-decoration: underline; }

.agency-block-edit-wrap { position: relative; }
.agency-block-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--ov-ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.ov-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #d7d6d1;
}

.ov-frame img { width: 100%; height: 100%; object-fit: cover; }

.ov-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.ov-split--image-left .ov-split__copy { order: 2; }

@media (max-width: 860px) {
  .ov-thanks > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .ov-thanks__photo { border-radius: 14px 14px 14px 72px; }
  .ov-prose--thanks .ov-thanks__photo img {
    height: 220px;
    border-radius: 14px 14px 14px 72px;
  }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--ov-paper);
    border-bottom: 1px solid var(--ov-line);
  }
  .site-nav.is-open { display: flex; }
  .site-footer__inner,
  .ov-split,
  .ov-split--image-left .ov-split__copy { display: flex; flex-direction: column; order: 0; }
  .ov-split--image-left .ov-split__copy { order: 0; }
}
