/* WTG — SHARED HEADER AND FOOTER (all pages) */
.site-header {
  position:fixed; z-index:100; inset:0 0 auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:22px; min-height:94px; padding:18px var(--page-gutter);
  color:var(--white-pure); background:var(--black);
  transition:background-color .25s ease,min-height .25s ease,box-shadow .25s ease;
}
.site-header.is-scrolled { min-height:84px; background:var(--black); box-shadow:0 3px 16px rgba(0,0,0,.15); }
/* Two lines, equal text size and weight */
.brand {
  display:inline-flex; flex-direction:column; gap:0; flex-shrink:0;
  color:inherit; text-decoration:none; font-weight:500;
  font-size:clamp(24px,2.15vw,37px); letter-spacing:-.035em; line-height:1;
}
.brand span { display:block; font-size:1em; font-weight:500; line-height:1.02; }
.header-actions { display:flex; align-items:center; gap:28px; }
.header-nav { display:flex; align-items:center; gap:36px; margin-right:18px; }
.site-header .header-nav a {
  display:inline-block; font-family:'Jost',sans-serif;
  color:var(--white-pure); text-decoration:none; white-space:nowrap;
  font-size:1.05rem; font-weight:500; transition:opacity .2s ease;
}
.site-header .header-nav a:hover { opacity:.75; text-decoration:none; }
.site-header .header-nav a:focus-visible { outline:2px solid #fff; outline-offset:5px; text-decoration:none; }
.language-picker { position:relative; }
.language-toggle { display:inline-flex; gap:6px; align-items:center; padding:10px 3px; border:0; background:transparent; color:inherit; font-size:1.1rem; cursor:pointer; }
.language-toggle svg { width:21px; height:21px; }
.language-menu { position:absolute; top:calc(100% + 10px); right:0; min-width:144px; padding:7px; margin:0; list-style:none; background:white; color:var(--black); border-radius:9px; box-shadow:0 10px 28px rgba(0,0,0,.2); }
.language-menu[hidden] { display:none; }
.language-menu button { width:100%; padding:9px 12px; border:0; border-radius:6px; text-align:left; color:inherit; background:transparent; cursor:pointer; }
.language-menu button:hover, .language-menu button[aria-current='true'] { background:var(--red-soft); }
.site-header .button { font-size:1.02rem; }
/* Inner pages start black with a red Get the App button */
.site-header .header-cta { background:var(--red); color:var(--white-pure); }
.site-header .header-cta:hover { background:#ba1b1b; }
/* Home starts transparent, then turns black on scroll. */
body.page-home .site-header { min-height:106px; background:transparent; box-shadow:none; }
body.page-home .site-header.is-scrolled { min-height:84px; background:var(--black); box-shadow:0 3px 16px rgba(0,0,0,.15); }
body.page-home .site-header:not(.is-scrolled) .header-cta { background:var(--white-pure); color:var(--black); }
body.page-home .site-header:not(.is-scrolled) .header-cta:hover { background:var(--white); }
/* Shared footer */
.site-footer { background:var(--red); color:var(--white-pure); }
.footer-main { display:grid; grid-template-columns:1fr auto; gap:70px; padding:62px clamp(28px,7vw,130px) 66px; }
.footer-links { display:flex; flex-wrap:wrap; gap:clamp(52px,5vw,100px); }
.footer-column h2, .follow-title { margin:0 0 9px; font-size:clamp(1.15rem,1.4vw,1.5rem); font-weight:700; }
.footer-column ul { margin:0; padding:0; list-style:none; }
.footer-column li + li { margin-top:6px; }
.footer-column a { font-size:clamp(1.05rem,1.35vw,1.4rem); font-weight:400; text-decoration:none; text-underline-offset:5px; }
.footer-column a:hover, .footer-column a:focus-visible { text-decoration:underline; }
.footer-right { display:flex; flex-direction:column; align-items:center; gap:14px; min-width:280px; }
.back-to-top { display:inline-flex; align-items:center; gap:5px; align-self:flex-end; padding:0; color:inherit; text-decoration:none; font-size:1rem; }
.back-to-top:hover { text-decoration:underline; }
.back-to-top .arrow-icon { width:20px; height:20px; }
.footer-brand-row { display:flex; align-items:center; justify-content:center; gap:20px; }
.footer-logo { display:flex; align-items:center; justify-content:center; width:95px; height:95px; flex:none; text-decoration:none; }
.footer-logo img { width:100%; height:100%; object-fit:contain; }
.footer-brand-row .button { padding-inline:20px; }
.follow-title { margin:5px 0 0; }
.social-links { display:flex; align-items:center; gap:21px; }
.social-links a { display:inline-flex; justify-content:center; align-items:center; width:43px; height:43px; color:inherit; transition:transform .2s ease; }
.social-links a:hover { transform:translateY(-3px); }
.social-links img { width:100%; height:100%; object-fit:contain; }
.footer-bottom { padding:9px 14px; background:var(--yellow); color:var(--black); text-align:center; font-size:clamp(.8rem,1vw,1.05rem); }
.social-fallback { font-weight:700; font-size:32px; line-height:1; }
@media (max-width:900px) {
  .header-actions { gap:14px; }
  .header-nav { gap:16px; margin-right:4px; }
  .site-header .header-nav a { font-size:.9rem; }
}
@media (max-width:850px) {
  .site-header, body.page-home .site-header { min-height:76px; padding-block:15px; }
  .site-header.is-scrolled, body.page-home .site-header.is-scrolled { min-height:76px; }
  .footer-main { grid-template-columns:1fr; gap:36px; }
  .footer-right { align-items:flex-start; min-width:0; }
  .back-to-top { align-self:flex-start; }
}
@media (max-width:600px) {
  .header-actions { gap:10px; }
  .header-nav { gap:10px; margin-right:0; }
  .site-header .header-nav a { font-size:.75rem; }
}
@media (max-width:520px) {
  .brand { font-size:23px; }
  .site-header .button { padding:9px 12px; min-height:42px; font-size:.83rem; }
  .language-toggle { font-size:.9rem; }
  .language-toggle svg { width:17px; height:17px; }
  .footer-main { padding:45px 27px; }
  .footer-links { gap:30px; }
  .footer-brand-row { flex-wrap:wrap; justify-content:flex-start; }
}
@media (max-width:420px) {
  /* Wrap the crowded navigation instead of letting it leave the viewport. */
  .site-header { flex-wrap:wrap; row-gap:10px; }
  .header-actions { width:100%; justify-content:space-between; }
}
