@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@500;600;700&family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;1,7..72,400&display=swap");

:root {
  --fb-paper: #ffffff;
  --fb-wash: #f3f6f9;
  --fb-line: #dde3ea;

  --fb-ink: #1c2430;
  --fb-ink-story: #2d3642;
  --fb-ink-soft: #4d5866;

  --fb-blue: #179fdb;             /* brand blue, decorative */
  --fb-blue-deep: #0f6f9e;        /* readable brand blue for links and buttons */
  --fb-green: #95c121;            /* brand green, accents only */
  --fb-night-text: #c3ccd6;

  --fb-font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --fb-font-body: "Literata", Georgia, "Times New Roman", serif;

  --fb-container: 68rem;
  --fb-gutter: clamp(1rem, 4vw, 2rem);
  --fb-measure: 68ch;
  --fb-slant: 3vw;                /* the brand's angled edges */
  --fb-radius: 2px;
}


/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 20rem;
  font-family: var(--fb-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fb-ink);
  background-color: var(--fb-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--fb-blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--fb-ink);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  font-family: var(--fb-font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fb-ink);
  text-transform: none;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

::selection {
  color: #ffffff;
  background: var(--fb-blue-deep);
}

.sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ==========================================================================
   3. Layout: container and Foundation-style grid
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--fb-container) + 2 * var(--fb-gutter));
  margin-inline: auto;
  padding-inline: var(--fb-gutter);
}

.container::after {
  content: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -1rem;
}

.row > * {
  width: 100%;
  min-width: 0;
  padding-inline: 1rem;
}

.small-12 { width: 100%; }

@media (min-width: 48em) {
  .row > .medium-3  { width: 25%; }
  .row > .medium-4  { width: 33.3333%; }
  .row > .medium-6  { width: 50%; }
  .row > .medium-8  { width: 66.6667%; }
  .row > .medium-9  { width: 75%; }
  .row > .medium-12 { width: 100%; }

  .show-for-small-only {
    display: none !important;
  }
}

@media (max-width: 47.99em) {
  .hide-for-small-only {
    display: none !important;
  }
}


/* ==========================================================================
   4. Header and navigation
   The menu button needs the theme's script, so the menu itself is shown
   instead: beside the logo on wide screens, as a sideways strip on phones.
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--fb-line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}

.header > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 76px;
}

.logo {
  flex: none;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 8.625rem;
  height: auto;
}

/* If the lazy-loading script never swaps in the logo, show the name instead */
.logo img[src^="data:"] {
  display: none;
}

.logo a:has(img[src^="data:"])::before {
  content: "FREDE BELOWSKI";
  font-family: var(--fb-font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fb-ink);
}

.nav-opener {
  display: none !important;
}

.nav {
  min-width: 0;
}

.drop,
.drop-holder {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 0;
  transform: none;
  background: none;
}

.drop-holder > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drop-holder > ul > li {
  position: relative;
}

.drop-holder > ul > li > a {
  position: relative;
  display: block;
  padding: 0.55rem 0.8rem;
  font-family: var(--fb-font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fb-ink);
  text-decoration: none;
}

.drop-holder > ul > li > a:hover,
.drop-holder > ul > li:focus-within > a {
  color: var(--fb-blue-deep);
}

/* The page you are on */
.drop-holder > ul > li.active > a,
.drop-holder > ul > li.current-menu-item > a,
.drop-holder > ul > li.current-menu-ancestor > a {
  color: var(--fb-blue-deep);
}

.drop-holder > ul > li.active > a::after,
.drop-holder > ul > li.current-menu-item > a::after,
.drop-holder > ul > li.current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.15rem;
  height: 2px;
  background-color: var(--fb-green);
}

/* Submenus (used on some inner pages) */
.drop-holder > ul > li > ul {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  display: block;
  min-width: 15rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background-color: var(--fb-paper);
  border: 1px solid var(--fb-line);
  border-top: 2px solid var(--fb-green);
  box-shadow: 0 18px 40px -18px rgba(28, 36, 48, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

.drop-holder > ul > li:hover > ul,
.drop-holder > ul > li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.drop-holder > ul > li > ul a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-family: var(--fb-font-head);
  font-size: 0.9375rem;
  color: var(--fb-ink-soft);
  text-decoration: none;
}

.drop-holder > ul > li > ul a:hover {
  color: var(--fb-ink);
  background-color: var(--fb-wash);
}

@media (max-width: 47.99em) {
  .header > .container {
    min-height: 0;
    padding-block: 0.6rem 0.25rem;
  }

  .nav {
    width: 100%;
    margin-inline: calc(-1 * var(--fb-gutter));
    width: calc(100% + 2 * var(--fb-gutter));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .drop-holder > ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    padding-inline: calc(var(--fb-gutter) - 0.8rem);
  }

  .drop-holder > ul > li > ul {
    display: none;
  }
}


/* ==========================================================================
   5. Photo bands: page banner and the "why us" block
   Both carry the brand's slanted edge. When their photos load they show
   under a dark wash; when they don't, a brand-blue gradient stands in.
   ========================================================================== */

.banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(20rem, 46vw, 34rem);
  padding: 6rem 0 calc(clamp(2.5rem, 5vw, 4rem) + var(--fb-slant));
  color: #ffffff;
  background-color: var(--fb-ink);
  background-image: linear-gradient(135deg, var(--fb-blue-deep) 0%, var(--fb-ink) 78%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--fb-slant)), 0 100%);
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 20, 30, 0.75), rgba(12, 20, 30, 0.15) 65%);
}

.banner .text-holder {
  width: 100%;
}

.banner h1 {
  max-width: 18ch;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.block.section-up {
  position: relative;
  isolation: isolate;
  margin-block: clamp(2rem, 5vw, 4rem);
  padding: calc(clamp(3.5rem, 7vw, 6rem) + var(--fb-slant)) 0;
  color: #e6edf3;
  background: linear-gradient(135deg, var(--fb-ink) 0%, var(--fb-blue-deep) 100%);
  clip-path: polygon(0 var(--fb-slant), 100% 0, 100% calc(100% - var(--fb-slant)), 0 100%);
}

.block .bg-box {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.block .bg-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.block.section-up::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(16, 26, 38, 0.8);
}

.block .text-holder .container {
  max-width: calc(46rem + 2 * var(--fb-gutter));
  font-size: 1.125rem;
  line-height: 1.75;
}

.block h2 {
  margin-bottom: 0.75em;
  color: #ffffff;
}


/* ==========================================================================
   6. Text sections
   ========================================================================== */

main > .container > .content {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

main > .container + .container > .content {
  padding-top: 0.75rem;
}

.article p {
  max-width: var(--fb-measure);
}

.article h3 {
  max-width: 30ch;
}

/* The introduction under the banner reads as a lead paragraph
   (the page's own inline styles set article text with !important) */
.banner + .container .article > p:first-child {
  max-width: 40em;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem) !important;
  line-height: 1.55 !important;
  color: var(--fb-ink);
}


/* ==========================================================================
   7. Team profiles
   ========================================================================== */

.section-client {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section-client .three-col {
  row-gap: 3rem;
}

.section-client .col {
  display: flex;
  flex-direction: column;
}

.section-client .img-holder {
  order: -1;
  margin-bottom: 1.25rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--fb-wash);
  border-radius: var(--fb-radius);
}

.section-client .img-holder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* No empty frames when a portrait never loads */
.section-client .img-holder:has(img[src^="data:"]) {
  display: none;
}

.client-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--fb-green);
}

.client-name {
  font-family: var(--fb-font-head);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fb-ink);
}

.client-details .post {
  font-family: var(--fb-font-head);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--fb-ink-soft);
}

.client-details .post br {
  display: none;
}

.section-client .description-holder p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fb-ink-story);
}


/* ==========================================================================
   8. Client list
   ========================================================================== */

.features-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features-list li {
  padding: 0.7rem 0;
  font-family: var(--fb-font-head);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fb-ink);
  border-bottom: 1px solid var(--fb-line);
}

.features-list li:first-child {
  border-top: 1px solid var(--fb-line);
}

/* On phones the two halves stack into one list */
@media (max-width: 47.99em) {
  .content-holder + .content-holder .features-list li:first-child {
    border-top: 0;
  }
}


/* ==========================================================================
   9. Buttons
   ========================================================================== */

.section-button {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--fb-font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
  background-color: var(--fb-blue-deep);
  border: 0;
  border-radius: var(--fb-radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  color: #ffffff;
  background-color: var(--fb-ink);
}

.button .icon svg {
  width: 1.1em;
  height: 1.1em;
}

/* Icon font script missing: no empty gap */
.button .icon:not(:has(svg)) {
  display: none;
}


/* ==========================================================================
   10. Footer
   ========================================================================== */

.footer {
  padding-block: 2rem;
  font-family: var(--fb-font-head);
  font-size: 0.9375rem;
  color: var(--fb-night-text);
  background-color: var(--fb-ink);
}

.footer > .container:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer a {
  color: var(--fb-night-text);
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* The company name in the copyright links nowhere */
.footer .copyright a[href="#"] {
  pointer-events: none;
  color: inherit;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

/* Back-to-top button, drawn here because its icon font may be missing */
.footer .top {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.footer .top > * {
  display: none;
}

.footer .top::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.25rem;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.footer .top:hover {
  border-color: var(--fb-green);
  text-decoration: none;
}

/* Empty footer columns take no room */
.footer .three-col:not(:has(.description-holder:not(:empty))) {
  display: none;
}

@media (max-width: 47.99em) {
  .footer-nav {
    margin-left: 0;
  }
}


/* ==========================================================================
   11. Cookie notice (Borlabs Cookie), if its script shows it
   ========================================================================== */

#BorlabsCookieBox ._brlbs-box-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 999;
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  margin-left: auto;
  overflow: auto;
  padding: 1.25rem 1.5rem;
  font-family: var(--fb-font-head);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fb-ink);
  background-color: var(--fb-paper);
  border: 1px solid var(--fb-line);
  border-top: 3px solid var(--fb-green);
  box-shadow: 0 24px 48px -16px rgba(28, 36, 48, 0.45);
}

#BorlabsCookieBox .container {
  max-width: none;
  padding: 0;
}

#BorlabsCookieBox ._brlbs-h3 {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

#BorlabsCookieBox ._brlbs-h4 {
  font-weight: 700;
}

#BorlabsCookieBox ._brlbs-paragraph {
  display: block;
  margin-bottom: 0.4em;
}

#BorlabsCookieBox fieldset {
  margin: 0.75rem 0;
  padding: 0;
  border: 0;
}

#BorlabsCookieBox fieldset > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#BorlabsCookieBox input[type="checkbox"] {
  margin-left: 0.35rem;
  accent-color: var(--fb-blue-deep);
}

#BorlabsCookieBox ._brlbs-accept,
#BorlabsCookieBox ._brlbs-refuse,
#BorlabsCookieBox ._brlbs-manage,
#BorlabsCookieBox ._brlbs-legal {
  margin: 0.5rem 0;
}

#BorlabsCookieBox ._brlbs-btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  font-weight: 600;
  color: var(--fb-blue-deep);
  text-decoration: none;
  border: 1px solid var(--fb-blue-deep);
  border-radius: var(--fb-radius);
}

#BorlabsCookieBox ._brlbs-btn-accept-all {
  color: #ffffff;
  background-color: var(--fb-blue-deep);
}

#BorlabsCookieBox ._brlbs-separator::before {
  content: "·";
  margin: 0 0.4rem;
}

#BorlabsCookieBox table {
  width: 100%;
  margin: 0.5rem 0;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

#BorlabsCookieBox th,
#BorlabsCookieBox td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--fb-line);
}

#BorlabsCookieBox ._brlbs-branding img {
  width: 16px;
  height: 16px;
}

#BorlabsCookieBox .borlabs-hide,
#BorlabsCookieBox .not-visible,
#BorlabsCookieBox ._brlbs-slider,
#BorlabsCookieBox ._brlbs-btn-switch-status {
  display: none !important;
}


/* ==========================================================================
   12. Focus and motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--fb-blue-deep);
  outline-offset: 2px;
}

.banner :focus-visible,
.block :focus-visible,
.footer :focus-visible {
  outline-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}