/* ==========================================================================
   KS Metrology Solutions — engineering site stylesheet (engineering.ksmetsolutions.com)

   One page, read like a document. Desktop: a narrow navigation column on the
   left (logo and section links), the text column on the right.
   Phone: a plain top bar with a drop-down menu, nothing fixed. Structure comes
   from hairlines, whitespace and small uppercase labels; the brand accent
   (raspberry) marks labels, heading rules, chips, links, buttons and the
   contact block. No images, no decorative elements.

   Structure
     1. Tokens & base
     2. Layout             (side column + text column, phone top bar)
     3. Blocks             (label, headings, running text, item lists, chips, fact list, links)
     4. Intro & contact
     5. Legal pages
     6. Footer

   Breakpoints
     medium   <= 900 px   side column becomes a top bar with a drop-down menu
     narrow   <= 560 px   phone portrait
   ========================================================================== */


/* 1. Tokens & base
   ------------------------------------------------------------------------ */
:root{
  --accent:#b00149;
  --accent-dark:#8c003a;
  --accent-soft:#faf1f5;   /* raspberry tint: hover of the white button in the contact block */
  --ink:#141a26;
  --text:#3a4453;
  --muted:#77808f;
  --line:#dddde3;
  --ground:#f4f4f6;   /* the silver grey of the product site */
  --measure:660px;   /* the text column */
  --edge:48px;       /* distance from the window edge to the navigation column */
  --side:220px;      /* the navigation column */
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--ground);font-size:16.5px;line-height:1.62;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-optical-sizing:auto}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit}


/* 2. Layout
   ------------------------------------------------------------------------ */
.page{display:grid;grid-template-columns:var(--side) minmax(0,var(--measure));column-gap:88px;justify-content:start;width:calc(100% - 2 * var(--edge));margin:0 var(--edge)}   /* anchored to the left edge of the window, not centred */
.side{padding:40px 0 48px}
.side-inner{position:sticky;top:40px}   /* travels with the page but never covers the text */
.brand{display:block;width:196px;margin:0 0 42px;line-height:0}
.brand img{width:100%;height:auto}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{padding:7px 0;border-left:2px solid transparent;font-size:14.5px;font-weight:550;color:var(--text);transition:color .16s ease,border-color .16s ease}
.nav a:hover{color:var(--accent-dark)}
.nav .site-link{margin-top:10px;color:var(--muted);font-weight:500}
.nav .site-link::after{content:" \2197";font-size:12px}
.mobile-toggle{display:none;border:0;background:transparent;color:var(--ink);font-size:25px;cursor:pointer}

.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid var(--accent);border-radius:3px;font-size:14.5px;font-weight:650;white-space:nowrap;transition:background-color .16s ease,color .16s ease,border-color .16s ease}
.button.solid{background:var(--accent);color:#fff}
.button.solid:hover{background:var(--accent-dark);border-color:var(--accent-dark)}

.content{padding:40px 0 0}

/* Medium and below: the side column becomes a top bar; the menu drops down when toggled (site.js, .nav.open). */
@media (max-width:900px){
  .page{display:block;width:auto;margin:0 20px}
  .side{position:relative;padding:0;border-bottom:1px solid var(--line)}
  .side-inner{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;padding:14px 0}
  .brand{width:190px;margin:0}
  .mobile-toggle{display:block;margin-left:auto}
  .nav{display:none;flex-basis:100%;padding:8px 0 4px}
  .nav.open{display:flex}
  .nav a{padding:10px 0}
  .content{padding-top:8px}
}
@media (max-width:560px){
  .page{margin:0 16px}
  .brand{width:176px}
}


/* 3. Blocks
   ------------------------------------------------------------------------ */
.label{margin:0 0 14px;color:var(--accent);font-size:12px;line-height:1.2;font-weight:700;letter-spacing:.22em;text-transform:uppercase}
.block{padding:48px 0 52px;border-top:1px solid var(--line)}
.block h2{position:relative;margin:0 0 18px;padding-bottom:14px;font-size:26px;line-height:1.22;letter-spacing:-.025em}
.block h2::after{content:"";position:absolute;left:0;bottom:0;width:44px;height:2px;background:var(--accent)}   /* the accent rule under every block heading */
.block p{margin:0 0 16px;color:var(--text)}
.block h3{margin:0 0 5px;font-size:17px;line-height:1.35;letter-spacing:-.01em}

/* Items: heading, text and optional chips, stacked */
.items{margin:26px 0 0;padding:0;list-style:none}
.items>li{margin:0 0 26px}   /* direct children only: the chip lists inside have their own rhythm */
.items>li:last-child{margin-bottom:0}
.items p{margin:0}
.items .role{margin:0 0 8px;color:var(--muted);font-size:14px}
.block .cv-note{margin:28px 0 0;color:var(--muted);font-size:14px}   /* one quiet line for both principals */

/* Chips: technologies and standards as small outlined tags, searchable text */
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0;padding:0;list-style:none}
.chips li{padding:2px 9px;border:1px solid #e6c9d4;border-radius:3px;background:#fff;color:var(--accent-dark);font-size:12.5px;line-height:1.5;font-weight:600;white-space:nowrap}

/* Fact list: term and description side by side, hairlines between */
.facts{margin:26px 0 0}
.facts>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;padding:13px 0;border-top:1px solid var(--line)}
.facts>div:last-child{border-bottom:1px solid var(--line)}
.facts dt{padding-top:3px;color:var(--accent-dark);font-size:11.5px;line-height:1.5;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.facts dd{margin:0;color:var(--text);font-size:15px}

.links{margin:22px 0 0;padding:0;list-style:none}
.links li{margin:0 0 8px;color:var(--text)}   /* explanatory text after a link */
.text-link{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;transition:color .16s ease}
.text-link:hover{color:var(--accent-dark)}
.video-frame{position:relative;width:100%;aspect-ratio:16 / 9;margin:26px 0 0;overflow:hidden;background:#111}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

@media (max-width:560px){
  .block{padding:38px 0 42px}
  .block h2{font-size:23px}
  .facts>div{grid-template-columns:1fr;gap:3px;padding:11px 0}
}


/* 4. Intro & contact
   ------------------------------------------------------------------------ */
#contact.block{padding-bottom:44px}   /* the raspberry block closes the page, the footer band follows directly */
.intro{padding:8px 0 52px}
.intro h1{margin:0 0 20px;font-size:38px;line-height:1.12;letter-spacing:-.03em}
.intro .lead{margin:0 0 14px;color:var(--ink);font-size:19px;line-height:1.45}
.intro p{margin:0 0 14px;color:var(--text)}
.intro p:last-child{margin-bottom:0}
.intro .intro-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:30px 0 0}   /* e-mail and phone, centred under the first paragraph */
.intro .intro-actions .button{width:296px;max-width:100%;min-height:50px;padding:0 10px;font-size:15.5px}   /* one width for both, set by the e-mail address: side by side from 1024 px, stacked and centred below */
.intro .intro-actions .button.phone{color:var(--accent)}
.intro .intro-actions .button.phone:hover{background:var(--accent-soft)}

/* Contact: a raspberry block with white text, the e-mail as white button, the phone as outline beside it */
.contact{margin:0;padding:40px 44px 44px;border-radius:4px;background:var(--accent);color:#fff}
.contact .label{color:rgba(255,255,255,.72)}
.contact h2{margin:0 0 12px;font-size:26px;line-height:1.22;letter-spacing:-.025em}
.contact p{max-width:520px;margin:0 0 24px;color:rgba(255,255,255,.88)}
.contact-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}   /* side by side from 1100 px, stacked and centred below */
.contact .button{width:276px;max-width:100%;padding:0 10px;border-color:#fff;background:#fff;color:var(--accent)}   /* one width for both, set by the e-mail address */
.contact .button:hover{background:var(--accent-soft)}
.contact .button.phone{background:transparent;color:#fff}
.contact .button.phone:hover{background:rgba(255,255,255,.12)}
.contact .meta{margin:22px 0 0;color:rgba(255,255,255,.72);font-size:13.5px}

@media (max-width:900px){
  .intro{padding:34px 0 44px}
  .intro h1{font-size:32px}
  .intro .lead{font-size:18px}
}
@media (max-width:560px){
  .intro{padding:28px 0 36px}
  .intro h1{font-size:27px}
  .intro .lead{font-size:17px}
  .intro .label{font-size:min(11px,3vw);letter-spacing:.12em;white-space:nowrap}   /* the long domain line stays on one line on every phone: 317 px wide at 11 px, shrinking with the viewport below 367 px */
  #contact.block{padding-bottom:36px}
  .contact{padding:28px 22px 30px}
  .contact h2{font-size:23px}
}


/* 5. Legal pages (imprint, privacy): the same layout, the text column carries the legal text
   ------------------------------------------------------------------------ */
.legal-page{padding:8px 0 56px}
.page-title{margin:0 0 12px;font-size:34px;line-height:1.1;letter-spacing:-.03em}
.legal-page h2{margin:34px 0 12px;font-size:19px;line-height:1.3;letter-spacing:-.015em}
.legal-page p,.legal-page li{color:var(--text)}
.legal-page a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.legal-page ul{margin:0 0 16px;padding-left:22px}
.company-data{display:grid;grid-template-columns:200px 1fr;gap:8px 24px;margin:0 0 6px;color:var(--text);font-size:15px}
.company-data dt{color:var(--ink);font-weight:600}
.company-data dd{margin:0}
.legal-date{color:var(--muted);font-size:13px}

@media (max-width:900px){
  .legal-page{padding-top:34px}
}
@media (max-width:560px){
  .legal-page{padding:28px 0 44px}
  .page-title{font-size:29px}
  .company-data{grid-template-columns:1fr;gap:2px}
  .company-data dd{margin-bottom:8px}
}


/* 6. Footer: a flat band across the full width; the row inside aligns with the two columns above
   ------------------------------------------------------------------------ */
.site-footer{border-top:1px solid var(--line);background:#ececef;color:var(--muted);font-size:13px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:8px 28px;flex-wrap:wrap;width:calc(100% - 2 * var(--edge));margin:0 var(--edge);padding:14px 0 15px}   /* copyright at the left window edge, legal links at the right */
.footer-links{display:flex;gap:22px}
.footer-links a{color:var(--text);transition:color .16s ease}
.footer-links a:hover{color:var(--accent-dark)}

@media (max-width:900px){
  .footer-inner{width:auto;margin:0 20px}
}
@media (max-width:560px){
  .footer-inner{margin:0 16px}
}
