/* ==========================================================================
   The Language Bureau — site.css (global, minify-ready)
   Group-harmonised structure/behaviour + TLB homepage section styling
   ========================================================================= */


/* ========================================================================== */
/* 01) TOKENS + THEMES                                                        */
/* ========================================================================== */

:root{
  --max: 1160px;
  --pad: clamp(16px, 2.2vw, 24px);

  /* Light theme surfaces */
  --bg: #ffffff;
  --bg2: #f6f8fb;
  --card: rgba(255,255,255,.78);
  --cardSolid: #ffffff;

  --text: #0b1020;
  --muted: rgba(11,16,32,.70);

  --border: rgba(16,24,40,.12);
  --shadow: 0 18px 55px rgba(17,24,39,.10);
  --shadow2: 0 6px 18px rgba(17,24,39,.08);

  --radius: 18px;
  --radius2: 24px;

  /* TLB accents */
  --accent1: #1F4E8C; /* blue */
  --accent2: #0B1F3B; /* navy */
  --accent3: #C6A75E; /* muted gold */

  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;

  --navH: 64px;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #070B12;
    --bg2: #0A101C;
    --card: rgba(16,24,40,.58);
    --cardSolid: #0C1220;

    --text: #eef2ff;
    --muted: rgba(238,242,255,.72);

    --border: rgba(148,163,184,.18);
    --shadow: 0 18px 55px rgba(0,0,0,.35);
    --shadow2: 0 8px 22px rgba(0,0,0,.28);
  }
}

html[data-theme="light"]{
  --bg: #ffffff;
  --bg2: #f6f8fb;
  --card: rgba(255,255,255,.78);
  --cardSolid: #ffffff;

  --text: #0b1020;
  --muted: rgba(11,16,32,.70);

  --border: rgba(16,24,40,.12);
  --shadow: 0 18px 55px rgba(17,24,39,.10);
  --shadow2: 0 6px 18px rgba(17,24,39,.08);
}
html[data-theme="dark"]{
  --bg: #070B12;
  --bg2: #0A101C;
  --card: rgba(16,24,40,.58);
  --cardSolid: #0C1220;

  --text: #eef2ff;
  --muted: rgba(238,242,255,.72);

  --border: rgba(148,163,184,.18);
  --shadow: 0 18px 55px rgba(0,0,0,.35);
  --shadow2: 0 8px 22px rgba(0,0,0,.28);
}


/* ========================================================================== */
/* 02) BASE + ACCESSIBILITY                                                   */
/* ========================================================================== */

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: var(--font);
  line-height:1.6;
  color:var(--text);
  background:
    radial-gradient(1100px 650px at 10% -10%, color-mix(in srgb, var(--accent1) 14%, transparent), transparent 62%),
    radial-gradient(900px 600px at 92% 0%, color-mix(in srgb, var(--accent3) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 32%, var(--bg) 100%);
  overflow-x:hidden;
}

a{ color:inherit; }
img{ max-width:100%; height:auto; display:block; }
.wrap, .container{ max-width:var(--max); margin:0 auto; padding:0 var(--pad); }

.skip-link{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: var(--pad);
  top: var(--pad);
  width:auto; height:auto;
  background: var(--cardSolid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow2);
  z-index: 9999;
}

:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent1) 55%, white);
  outline-offset: 3px;
  border-radius: 12px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}


/* ========================================================================== */
/* 03) BUTTONS + CONTROLS                                                     */
/* ========================================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration:none;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--cardSolid) 84%, transparent);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }

/* Primary CTA — gold, with subtle gold->slightly-transparent gradient */
.btn.primary,
.btn.btn-primary{
  border: 0;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--accent3),
    color-mix(in srgb, var(--accent3) 85%, transparent)
  );
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent3) 18%, transparent);
  position: relative;
}
.btn.primary::after,
.btn.btn-primary::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(198,167,94,0.32);
  pointer-events:none;
}
.btn.primary:hover,
.btn.btn-primary:hover{
  filter: brightness(1.03);
  box-shadow: var(--shadow);
}

/* Secondary button (for hero “Explore services”) */
.btn-secondary{
  border:1px solid color-mix(in srgb, var(--accent3) 28%, var(--border));
  background: color-mix(in srgb, var(--cardSolid) 82%, transparent);
  color: color-mix(in srgb, var(--text) 92%, transparent);
}
.btn-secondary:hover{
  background: color-mix(in srgb, var(--accent3) 10%, transparent);
}

/* Icon buttons */
.iconbtn{
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--cardSolid) 70%, transparent);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.iconbtn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }

/* Theme toggle look */
#themeToggle, #mobTheme, [data-theme-toggle]{
  color: var(--text);
  background: color-mix(in srgb, var(--cardSolid) 82%, transparent);
}


/* ========================================================================== */
/* 04) TOP BAR + NAV (TIGHTENED)                                              */
/* ========================================================================== */

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom:1px solid var(--border);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--navH);
}

.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:-.3px;
  white-space:nowrap;
}

.brandword{
  font-weight: 900;
  letter-spacing: -0.35px;
}

/* Dot uses gold */
.dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--accent3), var(--accent3));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent3) 12%, transparent);
}

/* Desktop nav */
.navlinks{
  display:none;
  gap:6px;
  align-items:center;
  font-weight:850;
  color:var(--muted);
  white-space: nowrap;
}

.navlinks > a{
  text-decoration:none;
  padding:7px 9px;
  border-radius: 999px;
  cursor:pointer;
  user-select:none;
  font-size: 14px;
  letter-spacing: -0.1px;
}
.navlinks > a:hover{
  background: color-mix(in srgb, var(--accent1) 10%, transparent);
  color: var(--text);
}
.navlinks > a[aria-current="page"]{
  background: color-mix(in srgb, var(--accent3) 12%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent3) 28%, transparent);
}

/* Controls cluster */
.controls{ display:flex; align-items:center; gap:10px; }

/* Mobile: hamburger */
.hamburger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:40px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--cardSolid) 70%, transparent);
  cursor:pointer;
}
.hamburger span{
  width:18px; height:2px; background: color-mix(in srgb, var(--text) 70%, transparent);
  position:relative; display:block; border-radius:999px;
}
.hamburger span::before,
.hamburger span::after{
  content:"";
  position:absolute; left:0;
  width:18px; height:2px; border-radius:999px;
  background: color-mix(in srgb, var(--text) 70%, transparent);
}
.hamburger span::before{ top:-6px; }
.hamburger span::after{ top:6px; }

/* Mobile drawer + backdrop */
.mobnav{
  position:fixed;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-left: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 90;
}
.mobnav.is-open{ transform: translateX(0); }

.mobnav-inner{
  padding: 18px var(--pad) 22px;
  height: 100%;
  overflow:auto;
}

.mobnav-top{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-bottom: 10px;
}

.mobnav a{
  display:block;
  text-decoration:none;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: color-mix(in srgb, var(--text) 92%, transparent);
}
.mobnav a:hover{ background: color-mix(in srgb, var(--accent1) 10%, transparent); }

.mobnav .section{
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.mobnav .label{
  font-size: 12px;
  letter-spacing: .22px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
  margin: 0 0 6px;
}

.mobnav .ctaRow{
  margin-top: 12px;
  display:grid;
  gap:10px;
}

/* Overlay behind mobile nav */
.mobbackdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition: opacity .22s ease;
  z-index: 85;
}
.mobbackdrop.is-open{
  opacity:1;
  pointer-events:auto;
}

/* Responsive: show desktop nav >= 920px */
@media (min-width: 920px){
  .navlinks{ display:flex; }
  .hamburger{ display:none; }
}


/* ========================================================================== */
/* 05) HOMEPAGE / SECTIONS                                                    */
/* ========================================================================== */

.section{ padding: clamp(46px, 6vw, 86px) 0; }
.section1-hero{ padding: clamp(46px, 6vw, 86px) 0 clamp(26px, 3vw, 42px); }

.hero-grid{
  display:grid;
  gap:16px;
  align-items:center;
  grid-template-columns: 1.15fr .85fr; /* keep your current desktop layout */
}

.hero-copy h1{
  margin: 0 0 12px;
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.8px;
}

.eyebrow{
  font-weight:800;
  letter-spacing: .22px;
  color:var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin: 0 0 10px;
}

.lead{
  margin:0 0 18px;
  color:var(--muted);
  max-width: 78ch;
  font-size: clamp(16px, 1.6vw, 19px);
}

.cta-row{
/*
  display:flex;
  flex-wrap:wrap;
  gap:12px;
*/
  text-align:center;
}

.stat-badges{
  list-style:none;
  padding:0;
  margin: 12px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.badge{
  font-size:13px;
  border:1px solid color-mix(in srgb, var(--accent3) 32%, var(--border));
  background: color-mix(in srgb, var(--cardSolid) 72%, transparent);
  padding:8px 10px;
  border-radius:999px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

.micro{
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 90ch;
}

/* Hero image shape (DO NOT change desktop sizing) */
.hero-figure{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow:hidden;
  aspect-ratio: 4 / 3; /* keep */
}
.hero-figure img{
  width:100%;
  height:100%;
  object-fit: cover;
}

/* Cards / grids */
.card-grid{ display:grid; gap:16px; }
.grid-4{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }

.card{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding: 18px;
  background: var(--card);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}
.card:hover{
  transform: translateY(-1px);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow);
}

.link{
  display:inline-block;
  margin-top: 10px;
  font-weight: 900;
  color: color-mix(in srgb, var(--accent3) 86%, var(--text));
  text-decoration: none;
}
.link:hover{ text-decoration: underline; }

.note{ font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Split section */
.split{
  display:grid;
  gap:16px;
  align-items:center;
  grid-template-columns: 1fr;
}
.split-media img{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* Tags */
.tag-row{
/*
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 12px;
*/
}
.tag{
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--cardSolid) 72%, transparent);
  padding:9px 12px;
  border-radius:999px;
  font-size:14px;
  font-weight: 800;
  color: color-mix(in srgb, var(--text) 92%, transparent);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
display:inline-block;
    margin-top:20px
}

/* Steps */
.steps{ list-style:none; padding:0; margin:0; display:grid; gap:16px; }
.step{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding: 18px;
  background: var(--card);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}

/* CTA band */
.cta-band{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding: 18px;
  background: color-mix(in srgb, var(--cardSolid) 82%, transparent);
  box-shadow: var(--shadow2); 
  margin:15px;    
  /* display:flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;*/
  text-align:center
}
.cta-actions{ /* display:flex; flex-wrap: wrap; gap:12px;*/ text-align:center }

/* Responsive grids */
@media (min-width: 860px){
  .grid-3{ grid-template-columns: 1fr 1fr 1fr; }
  .grid-4{ grid-template-columns: 1fr 1fr; }
  .split{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px){
  .grid-4{ grid-template-columns: 1fr 1fr 1fr 1fr; }
}


/* ========================================================================== */
/* 06) TYPOGRAPHY UTILITIES                                                   */
/* ========================================================================== */

/* Headline gradient — gold-only (no blue) */
.headline-gradient{
  background: linear-gradient(
    90deg,
    var(--accent3),
    color-mix(in srgb, var(--accent3) 75%, transparent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ========================================================================== */
/* 07) FOOTER (THEME-AWARE + CARD COLUMNS)                                    */
/* ========================================================================== */

.site-footer{
  width: 100%;
  margin-top: 24px;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 94%, var(--accent3)),
      color-mix(in srgb, var(--bg) 78%, var(--accent3))
    );
  color: var(--text);
  border-top: 1px solid var(--border);
}

.site-footer .footer-inner{
  padding: 28px var(--pad) 18px;
}

.site-footer .footer-grid{
  display:grid;
  gap:14px;
  grid-template-columns: 1fr;
  align-items: start;
}

/* Card columns (no HTML change needed) */
.site-footer .footer-grid > div{
  background: color-mix(in srgb, var(--cardSolid) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow2);
}

.site-footer .footer-title{
  font-weight: 900;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.site-footer .footer-muted{
  color: var(--muted);
  margin: 0;
  max-width: 70ch;
}
.site-footer .footer-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer .footer-grid a{
  color: color-mix(in srgb, var(--text) 92%, transparent);
  text-decoration: none;
}
.site-footer .footer-grid a:hover{
  color: var(--text);
  text-decoration: underline;
}

.site-footer .footer-bottom{
  margin-top: 16px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
}
.site-footer .footer-bottom small,
.site-footer .footer-legal{
  color: var(--muted);
  max-width: 90ch;
}

@media (min-width: 720px){
  .site-footer .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px){
  .site-footer .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:18px; }
}


/* ========================================================================== */
/* 08) CONSENT (IF PRESENT)                                                   */
/* ========================================================================== */

.consent{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2000;
  display:none;
}
.consent.is-open{ display:block; }

.consent-card{
  max-width: 920px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--cardSolid) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 16px;
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.consent-card p{ margin:0; color: var(--muted); font-size: 0.95rem; }
.consent-actions{ display:flex; gap: 10px; flex-wrap: wrap; }


/* ========================================================================== */
/* 09) MOTION (SAFE)                                                          */
/* ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}


/* ========================================================================== */
/* 10) RESPONSIVE PATCHES (MOBILE HERO + NAV TIGHTENING + ASIDE CTA CENTER)   */
/* ========================================================================== */

/* Mobile hero: true 1-column + centered copy + hero image uses split-media pattern */
@media (max-width: 920px){
  .hero-grid{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy{
    text-align: center;
    margin: 0 auto;
    max-width: 70ch;
  }

  .eyebrow{ justify-content: center; }
  .lead{ margin-left: auto; margin-right: auto; }
  .cta-row{ justify-content: center; }
  .stat-badges{ justify-content: center; }
  .micro{ margin-left: auto; margin-right: auto; }

  /* Use same approach as .split-media img (NOT full-bleed) */
  .hero-figure{
    margin-top: 14px;
    border-radius: var(--radius2);
    border:1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
  }
}

/* Center the “Get in touch” CTA in the mobile aside */
.mobnav .ctaRow{
  display:flex;
  flex-direction: column;
  align-items: center;
}
.mobnav .ctaRow .btn{
  width: 100%;
  max-width: 340px;
  text-align: center;
}

/* Tight phones: reduce padding in topbar + slightly tighter CTA */
@media (max-width: 520px){
  .section1-hero{
    padding-top: 40px;
    padding-bottom: 26px;
  }

  .cta-row .btn{
    width: 100%;
    max-width: 360px;
    margin-top:20px
  }

  .topbar-inner{
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .controls{ gap: 8px; }

  .controls .btn.primary,
  .controls .btn.btn-primary{
    padding: 10px 12px; /* slightly tighter than desktop */
    border-radius: 12px;
  }

  #themeToggle{
    padding: 8px 10px;
  }
}
@media (max-width: 920px){
  /* Ensure the media column stretches full width */
  .hero-media{
    width: 100%;
  }

  /* Ensure figure is block-level and fills the column */
  .hero-figure{
    display: block;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* Ensure the image fills the figure */
  .hero-figure img{
    width: 100%;
    height: 100%;
  }
}
/* ===========================
   Overflow guard (stop horizontal scroll)
   =========================== */

/* Stronger than body alone on some mobile browsers */
html, body{
  width: 100%;
  overflow-x: hidden;
}

/* Prevent any child from forcing the page wider than the viewport */
.container, .wrap{
  max-width: 100%;
}

/* Long strings / URLs / hyphenless text can blow out layout */
body{
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* ===========================
   Common overflow offenders
   =========================== */

/* Images/figures should never exceed their column width */
.hero-media, .hero-figure, .split-media, .split-media img{
  max-width: 100%;
}

/* Cards + grids shouldn’t create width via shadows or long content */
.card, .list-card, .cta-band, .step{
  min-width: 0;
}

/* Flex children can overflow if min-width isn’t reset */
.hero-grid > *, .split > *, .cta-row > *{
  min-width: 0;
}

/* Mobile drawer: ensure it never exceeds viewport width */
.mobnav{
  max-width: 92vw; /* matches your width intent */
}
/* ===========================
   Topbar CTA: 3-line stacked on mobile, centered
   =========================== */
@media (max-width: 520px){

  /* Make the CTA a narrow vertical block */
  #topbarCta{
    padding: 6px 7px;             /* matches visual height of other controls */
    border-radius: 12px;
    text-align: center;
    font-size: 12px;
  }
#themeToggle{
    font-size: 0;            /* hides "Dark/Light" text only on mobile */
    width: 40px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  #themeToggle::before{
    content: "☾";            /* default icon */
    font-size: 16px;
    line-height: 1;
  }

  /* If theme is currently light, show sun icon instead */
  html[data-theme="light"] #themeToggle::before{
    content: "☀";
  }
}
.section-head {text-align:center}
#s-network {text-align:center}