/* Macro Group website: shared design system.
   Loaded on every page AFTER the page's own styles, so these rules set the common
   colours, type, header, footer and buttons. Page files keep only page-specific styles. */

:root {
  /* Palette */
  --ink: #13315C;
  --charcoal: #0B2545;
  --night: #13315C;
  --gold: #FFBD00;
  --gold-dark: #E6A800;
  --gold-text: #8A5A00;
  --paper: #F4F3EE;
  --line: #DCD9CF;
  --text: #4D5558;
  --muted: #5E676C;
  --on-dark: #C9D1D5;
  --on-dark-2: #EDEFF0;
  --white: #FFFFFF;
  --tint: #EAF1F6;
  --highlight: #FFF8DD;
  /* One colour per business area */
  --a-building: #175886;
  --a-packaging: #146452;
  --a-construction: #86511C;
  --a-industrial: #0F6B73;
  /* Type */
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --body-font: Arial, Helvetica, sans-serif;
  --fs-section: clamp(32px, 4vw, 56px);
  --fs-label: 11px;
  --site-max: 1240px;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body-font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-wrap { width: min(calc(100% - 40px), var(--site-max)); margin: 0 auto; }

/* Skip link */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 10px 16px; background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Top strip: group note + business areas ---------- */
.site-strip { background: var(--charcoal); color: var(--on-dark-2); font-size: 11px; }
.site-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; min-height: 32px; flex-wrap: wrap; padding: 4px 0; }
.site-strip b { color: var(--white); }
.site-areas { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.site-areas-label { color: var(--on-dark); }
.site-areas a { color: var(--white); font-weight: 700; text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.site-areas a:hover { border-bottom-color: var(--gold); }
.site-areas a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 3px solid var(--gold); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(14, 31, 56, .10); }
.site-header-in { display: flex; align-items: center; gap: 32px; min-height: 70px; }
.site-logo { display: block; flex: none; }
.site-logo img { display: block; height: 48px; width: auto; }
.site-menu { flex: 1; display: flex; align-items: center; gap: 26px; }
.site-menu a { position: relative; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.site-menu a:not(.site-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.site-menu a:not(.site-cta):hover::after { transform: scaleX(1); }
.site-menu .site-home { color: var(--gold-text); }
.site-menu .site-cta { margin-left: auto; padding: 12px 18px; background: var(--gold); color: var(--ink); }
.site-menu .site-cta:hover { background: var(--gold-dark); }
.site-menu-btn { display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- Area bar on sub pages: breadcrumb, area name, spotlight ---------- */
.site-area { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-area-in { display: flex; align-items: center; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap; padding: 14px 0; }
.site-crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.site-crumbs a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.site-crumbs [aria-current] { color: var(--ink); }
.site-area-title { margin: 4px 0 0; font: 400 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: .3px; color: var(--ink); }
.site-area-title em { font-style: normal; color: var(--area, var(--gold-text)); }
.site-area-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.site-spot { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; background: var(--gold); color: var(--ink); font-size: 12px; }
.site-spot b { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.site-spot a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark); padding: 64px 0 28px; }
.sf-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.sf-name { display: inline-block; font: 400 24px/1.1 var(--display); text-transform: uppercase; color: var(--white); text-decoration: none; }
.sf-brand p { margin: 12px 0 0; max-width: 320px; font-size: 13px; line-height: 1.6; }
.site-footer h2 { margin: 0 0 14px; font-size: var(--fs-label); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a { color: var(--on-dark-2); font-size: 14px; text-decoration: none; }
.site-footer li a:hover { color: var(--gold); text-decoration: underline; }
.sf-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 12px; }

/* ---------- Phone back-to-home button (sub pages) ---------- */
.back-main { display: none; }

/* ---------- Shared components ---------- */
/* Section headings: one size and font on every page */
.section-title, .sec-head h2, .needs h2, .directory h2, .section-heading h2, .about-band h2,
.section h2, .responsibility h2, .about h2, .contact h2 {
  font-family: var(--display) !important; font-weight: 400 !important; font-size: var(--fs-section) !important;
  line-height: 1.05 !important; letter-spacing: -.3px !important; text-transform: none;
}
/* Small section labels */
.section-kicker, .kicker, .eyebrow {
  font-size: var(--fs-label) !important; font-weight: 800 !important; letter-spacing: 2px !important;
  text-transform: uppercase; color: var(--gold-text) !important;
}
.sustainability .section-kicker, .responsibility .eyebrow, .contact.dark .kicker { color: var(--gold) !important; }
/* Primary button */
.button {
  border: 0; border-radius: 2px; background: var(--gold); color: var(--ink);
  padding: 15px 24px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--gold-dark); }
.button span { font-size: 16px; }
/* Outline button (second choice next to a yellow one) */
.button.button-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 13px 22px; }
.button.button-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .site-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .site-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: var(--white); border-bottom: 3px solid var(--gold); box-shadow: 0 10px 20px rgba(14, 31, 56, .12); }
  .site-menu.open { display: flex; }
  .site-menu a { padding: 13px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
  .site-menu a:not(.site-cta)::after { display: none; }
  .site-menu .site-cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .sf-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .back-main { display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 12px; bottom: 12px; z-index: 60; min-height: 44px; padding: 0 16px; background: var(--charcoal); color: var(--gold); border: 2px solid var(--gold); border-radius: 999px; font: 700 12px/1 var(--body-font); letter-spacing: .8px; text-transform: uppercase; text-decoration: none; box-shadow: 0 4px 14px rgba(11, 37, 69, .35); }
  .back-main:active { background: var(--gold); color: var(--charcoal); }
  body.has-back { padding-bottom: 68px; }
}
@media (max-width: 640px) {
  .site-strip-in { flex-direction: column; align-items: flex-start; gap: 2px; }
  .site-header-in { min-height: 62px; }
  .site-logo img { height: 42px; }
  .site-area-title { font-size: 19px; }
  .sf-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .site-menu a::after { transition: none; }
}
