:root {
  --navy: #00273B;
  --navy-deep: #081F2C;
  --navy-mid: #0F3149;
  --navy-line: #1E4560;
  --cyan: #3FB9CC;
  --cyan-soft: #8FD8E4;
  --ink: #12222E;
  --gray-text: #4A5A66;
  --gray-bg: #F4F6F8;
  --white: #FFFFFF;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.kicker {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.5px;
}
h2 { font-size: clamp(30px, 4.2vw, 44px); color: var(--navy); }
.section { padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--gray-text); font-size: 17px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 39, 59, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(63, 185, 204, 0.25);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: #D7E3EA; text-decoration: none;
  font-family: var(--font-head); font-weight: 600;
  font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.2s;
}
.nav a:hover { color: var(--cyan); }
.lang-switch {
  display: flex; border: 1px solid var(--navy-line); border-radius: 4px; overflow: hidden;
}
.lang-switch a {
  padding: 5px 12px; font-size: 13px; letter-spacing: 1px;
  text-decoration: none; color: #9FB6C4; font-weight: 600;
}
.lang-switch a.active { background: var(--cyan); color: var(--navy-deep); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0;
}

/* Hero */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  opacity: 0.38;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,39,59,0.3) 0%, rgba(0,39,59,0.65) 70%, var(--navy-deep) 100%);
}
.hero-content { position: relative; padding: 150px 0 110px; max-width: 820px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 6.5vw, 72px);
  margin: 18px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p.lead { color: #C6D6DF; font-size: clamp(16px, 2vw, 19px); max-width: 640px; }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-head); font-weight: 600;
  font-size: 17px; letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 32px; border-radius: 3px;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: var(--navy-deep); }
.btn-primary:hover { background: var(--cyan-soft); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Stats */
.stats { background: var(--navy-deep); border-top: 1px solid var(--navy-line); }
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 20px; text-align: center;
  border-right: 1px solid var(--navy-line);
}
.stat:first-child { border-left: 1px solid var(--navy-line); }
.stat .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px); color: var(--cyan); line-height: 1;
}
.stat .lbl {
  margin-top: 8px; color: #8CA3B2;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}

/* Services */
.services { background: var(--gray-bg); }
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white); border-top: 4px solid var(--cyan);
  box-shadow: 0 2px 14px rgba(10, 35, 50, 0.08);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(10, 35, 50, 0.14); }
.card img { height: 175px; width: 100%; object-fit: cover; }
.card-body { padding: 22px 22px 26px; flex: 1; }
.card h3 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--gray-text); font-size: 15px; }

/* Process band */
.process { background: var(--navy); position: relative; overflow: hidden; }
.process .wrap { position: relative; }
.process h2 { color: var(--white); }
.process-grid {
  margin-top: 46px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
}
.step .n {
  font-family: var(--font-mono); color: var(--cyan);
  font-size: 14px; letter-spacing: 2px;
}
.step h3 { color: var(--white); font-size: 21px; margin: 8px 0 8px; }
.step p { color: #A9BDC9; font-size: 14.5px; }
.step { border-top: 1px solid var(--navy-line); padding-top: 18px; }

/* Lab */
.lab-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.lab-grid img { border-radius: 4px; width: 100%; height: 420px; object-fit: cover; }
.accred-badge {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid #D5DEE4; border-left: 4px solid var(--cyan);
  padding: 14px 20px; margin: 22px 0; border-radius: 0 4px 4px 0;
  background: var(--gray-bg);
}
.accred-badge .code {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--navy); line-height: 1.5;
}
.lab-copy p { color: var(--gray-text); margin-top: 12px; }
details.astm { margin-top: 26px; border: 1px solid #D5DEE4; border-radius: 4px; }
details.astm summary {
  cursor: pointer; padding: 15px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.astm summary::after { content: "+"; font-size: 22px; color: var(--cyan); }
details.astm[open] summary::after { content: "–"; }
.astm-tables {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; padding: 4px 20px 20px;
}
.astm-tables table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.astm-tables caption {
  text-align: left; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--navy);
  padding: 12px 0 6px; font-size: 15px;
}
.astm-tables td {
  padding: 7px 0; border-top: 1px solid #E4EAEE; color: var(--gray-text);
}
.astm-tables td.norm { font-family: var(--font-mono); font-size: 12.5px; color: var(--navy); white-space: nowrap; padding-right: 14px; }

/* About */
.about { background: var(--gray-bg); }
.about-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.about-grid img { border-radius: 4px; width: 100%; height: 430px; object-fit: cover; }
.about-copy p { color: var(--gray-text); margin-top: 14px; }
.values { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.values span {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--navy); background: var(--white);
  border: 1px solid #D5DEE4; border-radius: 3px; padding: 7px 14px;
}

/* Contact */
.contact { background: var(--navy); color: var(--white); }
.contact h2 { color: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; margin-top: 40px;
}
.contact-info p { color: #A9BDC9; margin-bottom: 26px; max-width: 420px; }
.contact-line {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--navy-line);
}
.contact-line .k {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--cyan);
  min-width: 92px;
}
.contact-line a { color: var(--white); text-decoration: none; }
.contact-line a:hover { color: var(--cyan); }
.form { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: 6px; padding: 30px; }
.form label {
  display: block; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #8CA3B2; margin: 16px 0 6px; font-weight: 600;
}
.form label:first-child { margin-top: 0; }
.form input, .form textarea {
  width: 100%; background: var(--navy-mid); border: 1px solid var(--navy-line);
  border-radius: 4px; color: var(--white); padding: 12px 14px;
  font-family: var(--font-body); font-size: 15px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.form textarea { min-height: 110px; resize: vertical; }
.form button {
  margin-top: 22px; width: 100%; border: 0; cursor: pointer;
  background: var(--cyan); color: var(--navy-deep);
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 15px; border-radius: 3px; transition: background 0.2s;
}
.form button:hover { background: var(--cyan-soft); }
.form-note { margin-top: 14px; font-size: 13px; color: #8CA3B2; }
.form-status { margin-top: 14px; font-size: 14.5px; display: none; }
.form-status.ok { display: block; color: var(--cyan-soft); }
.form-status.err { display: block; color: #F0A2A2; }

/* Footer */
.site-footer { background: var(--navy-deep); padding: 44px 0; border-top: 1px solid var(--navy-line); }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.site-footer img { height: 40px; }
.site-footer .fine { color: #7E97A6; font-size: 12.5px; line-height: 1.7; max-width: 560px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .lab-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .lab-grid img, .about-grid img { height: 300px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border: 0 !important; border-bottom: 1px solid var(--navy-line) !important; }
  .astm-tables { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; top: 76px; right: 0; left: 0;
    background: var(--navy-deep);
    flex-direction: column; gap: 0; padding: 10px 0 18px;
    border-bottom: 1px solid var(--navy-line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 24px; width: 100%; text-align: center; }
  .nav-toggle { display: block; }
  .hero { min-height: 78vh; }
  .hero-content { padding: 130px 0 80px; }
}
