/* 
  main.css — Shared design system for betong-design.no
  Include on homepage and main service pages.
  Page-specific rules (unique hero treatments, router visuals, reference backgrounds, etc.)
  remain in the individual page's <style> block or dedicated stylesheet.
  Last synced from homepage + betongarbeid + verneverdige common base — 2026-06-14
*/

:root {
  --ink: #2b2d28;
  --muted: #666b61;
  --deep: #242720;
  --green: #6f7a64;
  --green-dark: #2d342c;
  --paper: #f4efe5;
  --soft: #ebe4d7;
  --white: #ffffff;
  --line: #d8d0c1;
  --gold: #aa8c58;
  --gold-soft: #d6c3a2;
  --card: #f8f4ec;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.82), transparent 28rem),
    radial-gradient(circle at 82% 20%, rgba(170, 140, 88, 0.08), transparent 24rem),
    linear-gradient(180deg, #f8f3ea 0%, var(--paper) 46%, #f1eadf 100%);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(43, 45, 40, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 45, 40, 0.018) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  opacity: 0.34;
  pointer-events: none;
}

body,
button,
input,
textarea {
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(167, 125, 69, 0.5);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--ink);
  background: #f8f5f0;
  border-bottom: 1px solid #e8e2d8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: inline-block;
  height: 32px;
  width: auto;
  vertical-align: middle;
}

.brand span {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  color: rgba(43, 45, 40, 0.84);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-dark);
}

.nav-cta {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--deep);
  border-radius: 6px;
  color: var(--white);
  background: var(--deep);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(36, 39, 32, 0.16);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  margin-left: auto;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--white);
  background: #1b1e19;
  border-color: #1b1e19;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(36, 39, 32, 0.22);
}

/* Typography */
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 840px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section {
  padding: clamp(88px, 11vw, 140px) 0;
}

.section-white {
  background: linear-gradient(180deg, rgba(241, 234, 223, 0.72), rgba(248, 243, 234, 0.78) 20%, rgba(248, 243, 234, 0.78));
}

.section-soft {
  background: linear-gradient(180deg, rgba(248, 243, 234, 0.78), rgba(235, 228, 215, 0.66) 18%, rgba(235, 228, 215, 0.66));
}

.section-heading {
  max-width: 650px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  color: var(--green);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Buttons */
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: #2b2d28;
  border: 1px solid #2b2d28;
  box-shadow: 0 14px 30px rgba(36, 39, 32, 0.18);
}

.button-primary:hover {
  background: #1f211d;
  box-shadow: 0 18px 36px rgba(36, 39, 32, 0.24);
}

.button-secondary {
  color: #2b2d28;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(43, 45, 40, 0.35);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.68);
}

/* Trust bar */
.trust-bar {
  position: relative;
  z-index: 2;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(244, 239, 229, 0.96), rgba(241, 234, 223, 0.72));
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 18px;
  border-top: 1px solid rgba(43, 45, 40, 0.08);
  border-bottom: 1px solid rgba(43, 45, 40, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 310px;
  font-size: 0.82rem;
  color: #5f5a55;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(216, 208, 193, 0.72);
  padding-left: clamp(16px, 2.4vw, 26px);
  margin-left: clamp(16px, 2.4vw, 26px);
}

/* Service cards (homepage + services) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: -2px auto 0;
  padding: 28px 0 64px;
}

.service-grid-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.betongplate-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  border: 1px solid rgba(43, 45, 40, 0.12);
  box-shadow: 0 18px 48px rgba(43, 45, 40, 0.08);
}

.section-note {
  margin-top: 12px;
  font-size: 0.92rem;
  color: #5f5a55;
  font-style: italic;
}

.button-tertiary {
  opacity: 0.88;
  font-size: 0.92rem;
}

.service-card {
  position: relative;
  display: flex;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.99), rgba(251, 250, 246, 0.9) 48%, rgba(251, 250, 246, 0.28)),
    #fbfaf6;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(43, 45, 40, 0.12);
  min-height: 370px;
  box-shadow: 0 26px 68px rgba(43, 45, 40, 0.075);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(170, 140, 88, 0.32);
  box-shadow: 0 32px 86px rgba(43, 45, 40, 0.11);
}

.service-card .card-text {
  flex: 1;
  max-width: 62%;
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
}

.service-card .card-text h3 {
  font-size: 1.4rem;
  margin: 10px 0 8px;
  font-family: var(--serif);
  line-height: 1.1;
}

.service-card .card-text p {
  font-size: 0.92rem;
  color: #5f5a55;
  margin-bottom: 14px;
  line-height: 1.45;
}

.service-card .icon-circle {
  display: none;
}

.service-card .card-text .check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.88rem;
}

.service-card .card-text .check-list li {
  padding: 2px 0 2px 18px;
  position: relative;
  color: #4a4f46;
}

.service-card .card-text .check-list li:before {
  content: "";
  top: 0.86em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a68a5f;
  box-shadow: 0 0 0 4px rgba(170, 140, 88, 0.12);
  font-size: 0;
}

.service-card .card-visual {
  display: none;
}

.service-card .button-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 10px 16px;
}

.service-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(68%, 520px);
  height: 100%;
  background: var(--service-image, none) center/cover no-repeat;
  filter: var(--service-filter, grayscale(0.72) sepia(0.15) contrast(0.98) brightness(1.08));
  opacity: var(--service-opacity, 0.54);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.service-card:hover::after {
  opacity: calc(var(--service-opacity, 0.54) + 0.08);
  transform: scale(1.018);
}

.service-card p,
.work-step p {
  margin-top: 12px;
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 28px;
}

/* Project router (interactive "find right path") */
.project-router {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 34px;
}

.project-router-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(43, 45, 40, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 250, 246, 0.9)),
    #fbfaf6;
  box-shadow: 0 22px 58px rgba(43, 45, 40, 0.07);
}

.router-options {
  display: grid;
  gap: 10px;
}

.router-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(43, 45, 40, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.router-option strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.18;
}

.router-option span {
  color: #666b61;
  font-size: 0.86rem;
}

.router-option::after {
  content: "→";
  color: var(--green);
  font-weight: 900;
}

.router-option.is-active,
.router-option:hover,
.router-option:focus-visible {
  border-color: rgba(170, 140, 88, 0.52);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(43, 45, 40, 0.1);
  transform: translateY(-1px);
}

.router-result {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 100%;
  padding: 30px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(28, 32, 27, 0.94), rgba(45, 52, 44, 0.78)),
      var(--router-image, url('/assets/editorial/reference-vestfold-museum-facade-1200.webp')) center/cover;
  max-width: 620px;
  opacity: 0.86;
}

.router-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Projects / references grid */
.projects-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px 24px;
  max-width: none;
}

.projects-heading .eyebrow,
.projects-heading h2 {
  grid-column: 1;
}

.all-projects-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-rows: 140px auto;
  background: rgba(251, 250, 246, 0.78);
  border-radius: 8px;
  border: 1px solid rgba(43, 45, 40, 0.12);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.project-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  filter: grayscale(0.38) sepia(0.08) contrast(0.96) brightness(1.06);
}

.project-placeholder {
  position: relative;
  height: 140px;
  overflow: hidden;
  border-bottom: 1px solid rgba(43, 45, 40, 0.11);
  background:
    linear-gradient(90deg, rgba(43, 45, 40, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(43, 45, 40, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(245, 241, 232, 0.94), rgba(225, 220, 206, 0.72));
  background-size: 36px 36px, 36px 36px, auto;
}

.project-placeholder::before {
  content: "";
  position: absolute;
  inset: 28px 34px;
  border: 1px solid rgba(43, 45, 40, 0.14);
  border-left: 0;
  border-bottom: 0;
}

.project-placeholder::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 25px;
  width: 76px;
  height: 1px;
  background: rgba(43, 45, 40, 0.24);
  box-shadow: -18px -18px 0 rgba(43, 45, 40, 0.14);
}

.project-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 7px;
  padding: 17px 18px 19px;
  flex: 1;
}

.project-content h4 {
  font-size: 1.05rem;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: #2b2d28;
}

.project-content span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #6f6a60;
}

.project-content p {
  margin: 0;
  color: #5f5a55;
  font-size: 0.9rem;
  line-height: 1.48;
}

/* Competence + reference grids */
.competence-tags {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(43, 45, 40, 0.14);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.62);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(43, 45, 40, 0.035);
}

.competence-tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 16px 18px;
  border-left: 1px solid var(--line);
  color: #4f594e;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.competence-tags span:first-child {
  border-left: 0;
}

.competence-grid,
.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(43, 45, 40, 0.14);
  border-radius: 8px;
  background: rgba(248, 244, 236, 0.86);
  overflow: hidden;
}

.competence-item,
.reference-card {
  min-height: 132px;
  padding: 26px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.competence-item {
  color: var(--ink);
  font-weight: 800;
}

.competence-item:first-child { border-left: 0; }

.reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  background: transparent;
}

.reference-card {
  position: relative;
  min-height: 176px;
  border: 1px solid rgba(43, 45, 40, 0.14);
  border-radius: 8px;
  background: rgba(248, 244, 236, 0.88);
  overflow: hidden;
}

.reference-card::before {
  content: "";
  display: block;
  height: 74px;
  margin: -26px -26px 20px;
  background: var(--reference-image) center/cover no-repeat;
  filter: grayscale(0.25) sepia(0.03) contrast(1.03) brightness(1.02);
  opacity: 0.9;
  border-bottom: 1px solid var(--line);
}

.reference-card p {
  margin-top: 10px;
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.label-row span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px 7px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  font-size: 0.88rem;
  font-weight: 800;
}

.label-row span::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 11px;
  width: 5px;
  height: 5px;
  background: var(--green);
}

/* Work steps, audience, why, visual */
.work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: work;
}

.work-step {
  padding: 22px;
}

.work-step::before {
  counter-increment: work;
  content: counter(work);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-weight: 800;
}

.why-trust img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.audience-layout,
.visual-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}

.visual-layout {
  align-items: start;
}

.audience-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-list li,
.why-item {
  position: relative;
  padding: 14px 18px 14px 38px;
  color: var(--ink);
  font-weight: 800;
}

.audience-list li::before,
.why-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.image-grid figure {
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.image-grid figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 452px;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-grid figcaption {
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfaf8;
  font-size: 0.94rem;
  font-weight: 800;
}

/* Contact / form (shared base) */
.contact-layout {
  align-items: start;
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-direct a,
.contact-direct span {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.contact-links {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.contact-links a {
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.local-business {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.local-business h3 {
  margin-bottom: 8px;
}

.map-embed {
  position: relative;
  width: 100%;
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}

.map-embed iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.contact-form,
.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(43, 45, 40, 0.14);
  border-radius: 8px;
  background: rgba(248, 244, 236, 0.94);
  box-shadow: 0 18px 52px rgba(43, 45, 40, 0.06);
}

.field {
  display: grid;
  gap: 7px;
}

label {
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c7c1b8;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 66, 56, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.turnstile-wrap {
  min-width: 0;
  min-height: 65px;
}

.turnstile-wrap iframe {
  max-width: 100%;
}

.form-message {
  display: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
}

.form-message.success {
  display: block;
  color: #0f4d35;
  background: #e3f4eb;
  border: 1px solid #b9dfca;
}

.form-message.error {
  display: block;
  color: #7a1f1f;
  background: #fbe6e6;
  border: 1px solid #e7b9b9;
}

.contact-form button[disabled],
.lead-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

button { border: 0; }

/* Bottom contact bar */
.bottom-contact {
  background: #f8f5f0;
  border-top: 1px solid #e8e2d8;
  padding: 32px 0;
  font-size: 0.9rem;
}

.contact-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.contact-text strong {
  font-family: var(--serif);
  font-size: 1.05rem;
}

.contact-text p {
  margin: 4px 0 0;
  color: #5f5a55;
  font-size: 0.85rem;
}

.contact-details {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.85rem;
}

.contact-details a, .contact-details span {
  color: #4a4f46;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Cookie banner */
body.cookie-banner-visible {
  padding-bottom: 116px;
}

.cookie-banner {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 24px);
  left: auto;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-panel {
  width: min(100vw - 24px, 440px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(43, 45, 40, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(251, 250, 246, 0.96);
  box-shadow: 0 16px 42px rgba(43, 45, 40, 0.16);
  pointer-events: auto;
}

.cookie-panel p {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-button {
  min-height: 42px;
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--deep);
  background: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.cookie-button.secondary {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(43, 45, 40, 0.18);
}

/* Footer */
.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--deep);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
}

.footer-cookie-button {
  padding: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Motion / animations */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready [data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 640ms ease, transform 640ms ease;
  }

  html.motion-ready [data-animate].is-visible {
    opacity: 1;
    transform: none;
  }

  html.motion-ready [data-animate="group"] > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 640ms ease, transform 640ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  html.motion-ready [data-animate="group"].is-visible > * {
    opacity: 1;
    transform: none;
  }

  html.motion-ready [data-animate="group"].is-visible > *:nth-child(2) {
    transition-delay: 90ms;
  }
}

/* Responsive — shared breakpoints */
@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .trust-inner,
  .audience-layout,
  .visual-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .trust-list,
  .service-grid,
  .project-router,
  .competence-tags,
  .projects-grid,
  .work-grid,
  .why-grid,
  .competence-grid,
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-list li:nth-child(odd),
  .competence-item:nth-child(odd) {
    border-left: 0;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .project-router {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.cookie-banner-visible {
    padding-bottom: 188px;
  }

  .container,
  .hero-content {
    width: min(100% - 24px, 1120px);
  }

  .brand span {
    white-space: normal;
  }

  .header-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .site-nav {
    order: 3;
    gap: 10px 14px;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .nav-cta {
    margin-left: auto;
    min-height: 38px;
    padding: 7px 12px;
  }

  .trust-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: min(100% - 24px, 1120px);
    padding: 16px 0;
  }

  .trust-item {
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .trust-item + .trust-item {
    margin-left: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(216, 208, 193, 0.72);
  }

  .trust-item:nth-child(odd) {
    border-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid rgba(216, 208, 193, 0.72);
  }

  .router-option {
    grid-template-columns: 1fr;
  }

  .router-option::after {
    display: none;
  }

  .button-link {
    width: 100%;
  }

  .service-grid {
    margin-top: 0;
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .service-card {
    min-height: 330px;
  }

  .service-card .card-text {
    max-width: 68%;
    padding: 30px 24px 26px;
  }

  .trust-list,
  .service-grid,
  .competence-tags,
  .projects-grid,
  .work-grid,
  .why-grid,
  .competence-grid,
  .reference-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .trust-list,
  .competence-grid {
    border: 0;
    background: transparent;
  }

  .trust-list li,
  .competence-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(248, 244, 236, 0.82);
  }

  .trust-list li + li,
  .competence-item + .competence-item {
    margin-top: 10px;
  }

  .competence-tags span {
    min-height: 64px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .competence-tags span:first-child {
    border-top: 0;
  }

  .projects-heading {
    grid-template-columns: 1fr;
  }

  .all-projects-link {
    grid-column: 1;
    grid-row: auto;
  }

  .image-grid figure,
  .image-grid figure:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-button {
    width: 100%;
  }
}
