/* Shared site header and footer, loaded on every synced page by tools/layout/head.html */

/* ============================================
   SITE HEADER (shared on every page; markup generated by tools/layout/sync_layout.py)
   Light background like the "Used by businesses expanding into the EU from" strip,
   dark text and icons, thin bottom border.
   ============================================ */
/* Header colours on :root: the phone menu is a sibling of the header and uses them too */
:root {
  --sh-bg: #f3f2ef;            /* same as .trust-strip */
  --sh-text: #0b2422;
  --sh-accent: #7a6030;
  --sh-border: #d0cec9;
  --sh-gold: #c8a96e;
  --sh-gold-hover: #b8944f;
  --sh-height: 76px;
  --sh-t: 0.16s ease;
}
.site-header {
  --sh-gutter: 32px;
  position: sticky; top: 0; z-index: 1000;
  background: var(--sh-bg);
  border-bottom: 1px solid var(--sh-border);
  padding: 0 var(--sh-gutter);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.site-header *, .site-menu * { box-sizing: border-box; }
.site-header ul, .site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-header a, .site-menu a { text-decoration: none; }

.site-header__inner { max-width: 1200px; margin: 0 auto; height: var(--sh-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--sh-text); }
.site-header__logo-mark { display: block; width: 40px; height: 40px; flex-shrink: 0; }
.site-header__logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.site-header__logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--sh-text); }
.site-header__logo-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--sh-accent); }

.site-header__menu { flex: 1; display: flex; justify-content: center; }
.site-header__links { display: flex; align-items: center; gap: 28px; }
.site-header__links > li > a, .site-header__toggle { font-size: 15px; font-weight: 600; color: var(--sh-text); white-space: nowrap; transition: color var(--sh-t); }
.site-header__links > li > a:hover, .site-header__toggle:hover { color: var(--sh-accent); }
.site-header__dropdown { position: relative; }
.site-header__toggle { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 8px 0; font-family: inherit; }
.site-header__toggle svg { width: 10px; height: 10px; transition: transform var(--sh-t); }
.site-header__panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 260px; padding: 8px 0; background: #ffffff; border: 1px solid var(--sh-border); border-radius: 10px; box-shadow: 0 12px 28px rgba(11,36,34,0.12); opacity: 0; visibility: hidden; transition: opacity var(--sh-t), visibility var(--sh-t); }
.site-header__dropdown.open .site-header__panel { opacity: 1; visibility: visible; transition: opacity var(--sh-t), visibility 0s; } /* links focusable at once */
.site-header__dropdown.open .site-header__toggle svg { transform: rotate(180deg); }
.site-header__panel a { display: block; padding: 9px 18px; font-size: 14px; color: var(--sh-text); transition: background-color var(--sh-t), color var(--sh-t); }
.site-header__panel a:hover, .site-header__panel a:focus-visible { background: var(--sh-bg); color: var(--sh-accent); }

.site-header__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.site-header__login { font-size: 14px; font-weight: 600; color: var(--sh-text); border: 1px solid var(--sh-text); border-radius: 8px; padding: 10px 16px; transition: background-color var(--sh-t); }
.site-header__login:hover { background: rgba(11,36,34,0.06); }
.site-header__cta { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--sh-text); background: var(--sh-gold); border: 1px solid var(--sh-gold); border-radius: 8px; padding: 11px 18px; white-space: nowrap; transition: background-color var(--sh-t), border-color var(--sh-t); }
.site-header__cta:hover { background: var(--sh-gold-hover); border-color: var(--sh-gold-hover); }

.site-header__menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px 4px; }
.site-header__menu-btn span { display: block; width: 22px; height: 2px; background: var(--sh-text); transition: transform var(--sh-t), opacity var(--sh-t); }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Phone and tablet menu */
.site-menu { display: none; position: fixed; top: calc(var(--sh-height) + 1px); left: 0; right: 0; bottom: 0; overflow-y: auto; background: var(--sh-bg); padding: 8px 16px 24px; z-index: 9000; font-family: "Inter", system-ui, -apple-system, sans-serif; }
.site-menu.open { display: block; overscroll-behavior: contain; }
/* The cookie banner sits above the menu: leave room so the last links can scroll clear of it */
body:has(#cookie-banner.visible) .site-menu { padding-bottom: 260px; }
.site-menu__title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sh-accent); margin: 18px 0 4px; }
.site-menu li { border-bottom: 1px solid var(--sh-border); }
.site-menu li a { display: block; padding: 11px 0; font-size: 15px; color: var(--sh-text); }
.site-menu__main { margin-top: 12px; }
.site-menu__main a { font-weight: 600; }
.site-menu__cta { display: flex; width: 100%; margin-top: 20px; }

/* Page behind the open phone menu does not scroll (position:fixed also works in iOS Safari) */
body.site-menu-open { position: fixed; width: 100%; overflow: hidden; padding-right: var(--scrollbar-w, 0px); }
body.site-menu-open .site-header { position: fixed; top: 0; left: 0; right: 0; padding-right: calc(var(--sh-gutter) + var(--scrollbar-w, 0px)); }

html { scroll-padding-top: calc(var(--sh-height) + 12px); }

/* The full menu needs about 1185px; below 1300px it tightens, below 1200px it
   becomes the menu button. js/header.js uses the same width. */
@media (max-width: 1300px) {
  .site-header__inner { gap: 16px; }
  .site-header__links { gap: 18px; }
  .site-header__links > li > a, .site-header__toggle { font-size: 14px; }
  .site-header__right { gap: 10px; }
  .site-header__logo-tag { display: none; }
}
@media (max-width: 1199.98px) {
  .site-header__menu { display: none; }
  .site-header__menu-btn { display: flex; }
  .site-header__logo-tag { display: block; }
  /* Without JavaScript the phone menu is a plain list under the header */
  html:not(.js) .site-header__menu-btn { display: none; }
  html:not(.js) .site-menu { display: block; position: static; padding-bottom: 8px; }
  /* Scripts on but the header script failed: the list shows while the header is focused
     or hovered (:hover too, because iOS Safari does not focus a tapped button) */
  html.js:not(.site-menu-ready) .site-header:focus-within + .site-menu,
  html.js:not(.site-menu-ready) .site-header:hover + .site-menu,
  html.js:not(.site-menu-ready) .site-menu:focus-within,
  html.js:not(.site-menu-ready) .site-menu:hover { display: block; }
}
@media (min-width: 1200px) { .site-menu.open { display: none; } }
/* Until the dropdown script is ready (or if it never runs): open on hover and focus */
html:not(.site-dropdowns-ready) .site-header__dropdown:hover .site-header__panel,
html:not(.site-dropdowns-ready) .site-header__dropdown:focus-within .site-header__panel { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  .site-header { --sh-gutter: 16px; }
  .site-header__login { display: none; }
}
@media (max-width: 560px) {
  .site-header__inner { gap: 12px; }
  .site-header__right { gap: 10px; }
  .site-header__logo { gap: 8px; }
  .site-header__logo-tag { display: none; }
  .site-header__logo-text { font-size: 18px; }
  .site-header__logo-mark { width: 34px; height: 34px; }
  .site-header__cta { padding: 9px 11px; font-size: 13px; }
}
@media (max-width: 389px) {
  .site-header__inner { gap: 8px; }
  .site-header__right { gap: 8px; }
  .site-header__logo-text { font-size: 16px; }
  .site-header__logo-mark { width: 30px; height: 30px; }
  .site-header__cta { padding: 8px 9px; font-size: 12.5px; }
}
@media (max-width: 349px) { .site-header__right .site-header__cta { display: none; } }

/* ============================================
   SITE FOOTER (shared on every page; markup generated by tools/layout/sync_layout.py)
   Uses the page tokens --dark, --dark-border, --font and --max-w from css/styles.css;
   the fallbacks apply on pages without them (agency demo). A page that redefines
   these tokens also changes its footer.
   ============================================ */
.footer {
  --ft-bg: var(--dark, #0b2422);
  --ft-border: var(--dark-border, #1e3d38);
  display: block;
  background: var(--ft-bg);
  padding: 56px 24px 28px;
  border-top: 1px solid var(--ft-border);
  font-family: var(--font, "Inter", system-ui, -apple-system, sans-serif);
  line-height: 1.6;
  text-align: left;
}
/* Resets use :where() so they never outrank the single-class rules below */
:where(.footer) *, :where(.footer) *::before, :where(.footer) *::after { box-sizing: border-box; }
:where(.footer) p, :where(.footer) ul { margin: 0; padding: 0; }
:where(.footer) ul { list-style: none; }
:where(.footer) a { text-decoration: none; }
.footer__inner { max-width: var(--max-w, 1080px); margin: 0 auto; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--ft-border); margin-bottom: 22px; }
.footer__brand img { display: block; width: 180px; max-width: 100%; height: auto; margin-bottom: 16px; }
.footer__tagline { font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.65; max-width: 240px; margin-bottom: 16px; }
.footer__social { display: flex; gap: 8px; margin: 4px 0 16px; }
/* LinkedIn: white "in" on a LinkedIn-blue square */
.footer__social-link { width: 32px; height: 32px; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: #0A66C2; color: #ffffff; transition: background-color 0.15s ease; }
.footer__social-link:hover, .footer__social-link:focus-visible { background: #004182; }
.footer__social-link svg { width: 16px; height: 16px; }
.footer__reg { font-size: 0.72rem; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 240px; }
.footer__col-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.95); margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: 0.875rem; color: rgba(255,255,255,0.75); transition: color 0.15s ease; }
.footer__links a:hover { color: #ffffff; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 20px; }
.footer__badge { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 7px 14px; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.85); letter-spacing: 0.01em; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { font-size: 0.75rem; color: rgba(255,255,255,0.6); transition: color 0.15s ease; }
.footer__legal a:hover { color: rgba(255,255,255,0.9); }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__badges { gap: 8px; }
  .footer__badge { font-size: 0.75rem; padding: 6px 11px; }
}
