/* MLJ Systems — shared stylesheet. Design tokens are authoritative (project brief §4). */

/* Archivo variable via Google Fonts — @font-face inlined here so the stylesheet from
   fonts.googleapis.com isn't a render-blocking request; files still come from Google. */
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdboLnnA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdfoLnnA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/archivo/v25/k3kQo8UDI-1M0wlSfdnoLg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --paper:  #FAFCFE;  /* page background */
  --ink:    #33363A;  /* primary text */
  --grey:   #58585A;  /* secondary text */
  --blue:   #0F75BC;  /* brand blue */
  --blue-deep: #0A5A93;
  --teal:   #2FA98C;  /* brand teal */
  --ice:    #E3F3FC;  /* tinted section background */
  --navy:   #223F63;  /* dark bands */
  --ember:  #E0762F;  /* ONLY for molten steel / arc glow in the furnace schematic */
  --line:   #D9E4EC;  /* hairlines and borders */
  --maxw:   1080px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  font-family:'Archivo',system-ui,sans-serif;
  background:var(--paper);
  color:var(--ink);
  font-size:17px;
  line-height:1.6;
}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-deep);text-decoration:underline}
a:focus-visible,button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
img{max-width:100%}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

.skip-link{
  position:absolute;left:-9999px;top:0;background:#fff;color:var(--blue);
  padding:10px 16px;border:1px solid var(--line);z-index:10;
}
.skip-link:focus{left:0}

/* Chevron motif — appears once before each major section heading, nowhere else */
.chev{display:inline-block;width:22px;height:16px;vertical-align:-1px;margin-right:10px}

/* ---------- Header ---------- */
header.site-header{border-bottom:1px solid var(--line);background:#fff}
.nav{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:18px 24px;max-width:var(--maxw);margin:0 auto;position:relative;
}
.brand img{height:34px;width:auto;max-width:none;display:block}
.nav-contact{display:none}
@media(max-width:479px){
  .brand img{height:28px}
  .nav-cta{display:none}
  .nav-contact{display:list-item}
}
.site-nav ul{display:flex;gap:28px;list-style:none}
.site-nav a{color:var(--ink);font-weight:500;font-size:.95rem}
.site-nav a:hover{color:var(--blue);text-decoration:none}
.site-nav a[aria-current="page"]{color:var(--blue);font-weight:600}
.nav-cta{background:var(--blue);color:#fff;padding:10px 20px;border-radius:5px;font-weight:600;font-size:.95rem;white-space:nowrap}
.nav-cta:hover{background:var(--blue-deep);color:#fff;text-decoration:none}

.nav-toggle{
  display:none;background:none;border:1.5px solid var(--ink);border-radius:5px;
  padding:8px 10px;cursor:pointer;color:var(--ink);
}
.nav-toggle:hover{border-color:var(--blue);color:var(--blue)}
.nav-toggle .bars{display:block;width:20px;height:14px;position:relative}
.nav-toggle .bars span{
  position:absolute;left:0;width:100%;height:2px;background:currentColor;
}
.nav-toggle .bars span:nth-child(1){top:0}
.nav-toggle .bars span:nth-child(2){top:6px}
.nav-toggle .bars span:nth-child(3){top:12px}

@media(max-width:820px){
  .nav-toggle{display:inline-block}
  .site-nav ul{display:none}
  .site-nav.open ul{
    display:flex;flex-direction:column;gap:0;
    position:absolute;top:100%;left:0;right:0;z-index:20;
    background:#fff;border-bottom:1px solid var(--line);
    padding:6px 24px 14px;
  }
  .site-nav.open a{display:block;padding:12px 0;font-size:1.05rem}
}

/* ---------- Buttons ---------- */
.cta-row{display:flex;gap:14px;flex-wrap:wrap}
.btn{display:inline-block;padding:13px 26px;border-radius:5px;font-weight:600;font-size:1rem}
.btn-solid{background:var(--blue);color:#fff}
.btn-solid:hover{background:var(--blue-deep);color:#fff;text-decoration:none}
.btn-ghost{border:1.5px solid var(--ink);color:var(--ink)}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue);text-decoration:none}

/* ---------- Hero (homepage) ---------- */
.hero{padding:72px 0 64px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff 0%,var(--paper) 100%)}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}
@media(max-width:860px){.hero-grid{grid-template-columns:1fr}}
h1{
  font-size:clamp(2.4rem,5.2vw,3.6rem);
  line-height:1.05;
  font-weight:750;
  letter-spacing:-.025em;
  font-variation-settings:'wdth' 108;
  margin-bottom:22px;
}
.hero p{font-size:1.15rem;color:var(--grey);max-width:34em;margin-bottom:32px}

/* Furnace schematic */
.stage{width:100%}
.schematic{width:100%;height:auto;display:block}
/* hover dimension callouts — trigger scoped to the schematic container */
.dims{opacity:0;transition:opacity .35s ease}
.stage:hover .dims{opacity:1}
@media(hover:none){.dims{opacity:.85}}
@media(prefers-reduced-motion:reduce){.dims{transition:none}}
.mono-ish{font-variant-numeric:tabular-nums}

/* ---------- Proof band ---------- */
.proof{background:var(--navy);color:#E8F0F8;padding:56px 0}
.proof .wrap{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center}
@media(max-width:860px){.proof .wrap{grid-template-columns:1fr}}
.proof h2{font-size:1.7rem;font-weight:700;letter-spacing:-.015em;line-height:1.25;margin-bottom:14px}
.proof p{color:#A9BBD1;max-width:36em}
.figures{display:grid;gap:28px}
.figure{
  font-size:clamp(2.2rem,4.4vw,3rem);font-weight:800;letter-spacing:-.02em;line-height:1;
  font-variation-settings:'wdth' 110;
  background:linear-gradient(90deg,#6EC9F0,#4FC79E);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.figure-note{color:#A9BBD1;margin-top:8px;font-size:.98rem}

/* ---------- Sections ---------- */
section{padding:72px 0}
.sec-title{font-size:2rem;font-weight:750;letter-spacing:-.02em;margin-bottom:12px;font-variation-settings:'wdth' 108}
.sec-intro{color:var(--grey);max-width:38em;margin-bottom:44px;font-size:1.05rem}

/* ---------- Services grid ---------- */
.services{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
@media(max-width:760px){.services{grid-template-columns:1fr}}
.service{background:#fff;padding:32px 30px}
.service h3{font-size:1.2rem;font-weight:700;margin-bottom:10px;letter-spacing:-.01em}
.service p{color:var(--grey);font-size:.98rem;max-width:44em}
.service p + p{margin-top:10px}
.service .tag{display:inline-block;color:var(--blue);font-weight:600;font-size:.85rem;margin-bottom:12px}

/* ---------- Case studies band ---------- */
.cases{background:var(--ice);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.case-row{display:grid;grid-template-columns:220px 1fr;gap:40px;padding:40px 0;border-top:1px solid #C4DDEE}
.case-row:first-of-type{border-top:none}
@media(max-width:760px){.case-row{grid-template-columns:1fr;gap:12px}}
.case-client{font-weight:750;font-size:1.25rem;letter-spacing:-.01em;font-variation-settings:'wdth' 108}
.case-client small{display:block;font-weight:500;font-size:.85rem;color:var(--grey);margin-top:4px;letter-spacing:0}
.case-body p{color:#3E4A54;max-width:44em;margin-bottom:10px}
.case-body .result{font-weight:700;color:var(--blue-deep)}
/* links on the ice background need the deeper blue for 4.5:1 contrast */
.cases a{color:var(--blue-deep)}
.cases a:hover{color:var(--navy)}

/* ---------- AI section ---------- */
.ai p{max-width:38em;color:var(--grey);margin-bottom:16px}
.ai-list{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:40px}
@media(max-width:860px){.ai-list{grid-template-columns:1fr}}
.ai-item{border-top:3px solid;border-image:linear-gradient(90deg,var(--blue),var(--teal)) 1;padding-top:18px}
.ai-item h3{font-size:1.1rem;font-weight:700;margin-bottom:8px}
.ai-item p{font-size:.95rem;color:var(--grey);margin:0}

/* ---------- About / contact band ---------- */
.about{background:var(--navy);color:#E8F0F8}
.about .sec-title{color:#fff}
.about p{color:#A9BBD1;max-width:38em;margin-bottom:14px}
.about strong{color:#E8F0F8}
.contact-card{margin-top:36px;display:flex;gap:40px;flex-wrap:wrap;align-items:center}
.contact-details{color:#A9BBD1;font-size:.95rem;line-height:1.8}
.contact-details a{color:#6EC9F0}
.contact-details a:hover{color:#9FDCF8}
/* CTA on navy uses teal (darkened from the token for 4.5:1 contrast with white text) */
.about .btn-solid,.band-navy .btn-solid{background:#1E8065}
.about .btn-solid:hover,.band-navy .btn-solid:hover{background:#17715A}

/* ---------- Inner pages ---------- */
.page-hero{padding:64px 0 48px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff 0%,var(--paper) 100%)}
.page-hero h1{margin-bottom:16px;font-size:clamp(2.2rem,4.6vw,3rem)}
.page-hero p{font-size:1.12rem;color:var(--grey);max-width:38em}
.prose p{max-width:38em;margin-bottom:16px;color:var(--ink)}
.prose p.muted{color:var(--grey)}
.prose h2{font-size:1.5rem;font-weight:750;letter-spacing:-.015em;margin:36px 0 12px;font-variation-settings:'wdth' 108}
.prose ul{max-width:38em;margin:0 0 16px 1.2em}
.prose li{margin-bottom:6px}

/* Full case-study sections */
.case-study{padding:64px 0;border-top:1px solid var(--line)}
.case-study:first-of-type{border-top:none}
.case-study .kicker{color:var(--grey);font-size:.95rem;margin-bottom:6px}
.case-study h2{font-size:1.8rem;font-weight:750;letter-spacing:-.02em;margin-bottom:18px;font-variation-settings:'wdth' 108}
.case-study p{max-width:44em;margin-bottom:14px}
.case-study .result{font-weight:700;color:var(--blue-deep);max-width:44em}
.case-study .fig{margin:34px 0 8px;max-width:640px}
.case-study .fig svg{width:100%;height:auto;display:block}

/* Contact page */
.contact-block{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
@media(max-width:760px){.contact-block{grid-template-columns:1fr}}
.contact-block address{font-style:normal;line-height:1.8;color:var(--ink)}
.contact-block h2{font-size:1.3rem;font-weight:700;margin-bottom:10px}

/* Navy band reusable (page CTAs) */
.band-navy{background:var(--navy);color:#E8F0F8;padding:56px 0}
.band-navy h2{font-size:1.6rem;font-weight:750;letter-spacing:-.015em;margin-bottom:12px}
.band-navy p{color:#A9BBD1;max-width:38em;margin-bottom:22px}

/* 404 */
.notfound{padding:64px 0}
.notfound .stage{max-width:640px;margin-bottom:28px}
.notfound p{max-width:38em;color:var(--grey);margin-bottom:24px;font-size:1.1rem}

/* ---------- Footer ---------- */
footer.site-footer{padding:28px 0;color:var(--grey);font-size:.88rem;background:#fff;border-top:1px solid var(--line)}
footer.site-footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}
footer.site-footer a{color:var(--grey);text-decoration:underline}
footer.site-footer a:hover{color:var(--blue)}

/* ---------- Print: one-page capability statement (homepage) ---------- */
@media print{
  @page{size:A4;margin:14mm}
  body{background:#fff;color:#000;font-size:11pt}
  /* hide chrome and screen-only sections */
  .site-nav,.nav-cta,.nav-toggle,.cta-row,.stage,.dims,
  .cases,.ai,.skip-link,footer.site-footer,
  .about p,.contact-card .btn{display:none !important}
  header.site-header{border-bottom:2px solid #000}
  .nav{padding:0 0 10px}
  .hero,.proof,section{padding:14px 0;border:none;background:none}
  .hero-grid,.proof .wrap{display:block}
  h1{font-size:20pt;margin-bottom:6px}
  .hero p{font-size:11pt;color:#000;margin-bottom:0}
  .proof{color:#000}
  .proof h2{font-size:13pt;margin-bottom:4px}
  .proof p{color:#000;font-size:10pt}
  .figures{display:flex;gap:36px;margin-top:8px}
  .figure{background:none;-webkit-text-fill-color:#000;color:#000;font-size:16pt}
  .figure-note{color:#000;font-size:9pt;margin-top:2px}
  .sec-title{font-size:13pt;margin-bottom:6px}
  .chev{display:none}
  .sec-intro{display:none}
  .services{grid-template-columns:repeat(2,1fr);gap:0;border:none;background:none}
  .service{padding:3pt 0;background:none}
  .service .tag,.service p{display:none}
  .service h3{font-size:10.5pt;font-weight:600;margin:0}
  .about{background:none;color:#000;padding-top:6px}
  .about .sec-title{color:#000;display:none}
  .contact-card{margin-top:4px;display:block}
  .contact-details{color:#000;font-size:10pt;line-height:1.5}
  .contact-details a{display:none}
  .contact-details::after{content:"office@mljsystems.co.uk";display:block;font-weight:600}
}
