/* Klingenberg Bygg — brand skin over the default portal stylesheet.
   Loaded after portal's main.css (site.yaml `stylesheet`), so these
   rules win. The whole recolor rides portal's own CSS custom
   properties, so chrome stays consistent; fonts and a few section
   treatments do the rest. */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

@font-face {
  font-family: "FuturaNow";
  font-weight: 800;
  font-display: swap;
  src: url("/site/fonts/futura-heavy.ttf") format("truetype");
}
@font-face {
  font-family: "FuturaNow";
  font-weight: 500;
  font-display: swap;
  src: url("/site/fonts/futura-medium.ttf") format("truetype");
}

:root {
  /* Brick red — the logo tile's own colour. */
  --accent: #8a1e12;
  --accent-soft: rgba(138, 30, 18, 0.12);
  --paper: #f6f5f3;
  --ink: #201a18;
  --ink-dim: #6b615c;
  --line: #ddd6d0;
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-bg-opaque: rgba(255, 255, 255, 0.9);
  --card-shadow: rgba(60, 30, 20, 0.14);
  --hero-glow: rgba(246, 245, 243, 0.85);
  --heading: "FuturaNow", var(--sans);
  --sans: "EB Garamond", Georgia, "Times New Roman", serif;
}

/* Display headings in heavy Futura, tightened. */
h1, h2, h3 {
  font-family: var(--heading);
  letter-spacing: -0.01em;
}
.hero-copy h1 { font-size: 2.6rem; }

/* Body reads as Garamond serif. */
body { font-family: var(--sans); font-size: 1.06rem; }

/* The section rhythm of the original: the service cards alternate a
   dark, a plain, and a brick panel down the page. Text and controls
   invert on the dark and brick ones. */
.alt-card:nth-of-type(3n+1) {
  --card-bg: #1a1613;
  --card-bg-opaque: #1a1613;
  --ink: #f3efe9;
  --ink-dim: #b8ada2;
  --line: #3a322c;
  color: #f3efe9;
}
.alt-card:nth-of-type(3n) {
  --card-bg: #8a1e12;
  --card-bg-opaque: #8a1e12;
  --ink: #fdf3ef;
  --ink-dim: #e7c3ba;
  --line: #a8362a;
  --accent: #fdf3ef;
  color: #fdf3ef;
}
/* On the brick panel the primary button flips to ink-on-cream. */
.alt-card:nth-of-type(3n) .alt-submit {
  background: #fdf3ef;
  color: #8a1e12;
}

/* Wordmark: the mark carries its own red ground, so just seat it. */
.wordmark img { border-radius: 0.35rem; }

/* Partner logos, when dropped into a feature as markdown images, sit
   quiet and small rather than full-bleed. */
.feature p img { max-width: 9rem; width: auto; border: none; }
