/* =========================================================
   Commercial Water Lab — Global Stylesheet
   B2B / technical aesthetic. Navy + cyan accent system.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color system */
  --navy: #0a1929;
  --navy-soft: #0f2540;
  --cyan: #0891b2;
  --cyan-hover: #0e7490;
  --cyan-pale: #ecfeff;
  --cyan-border: #a5f3fc;
  --cyan-dark: #155e75;

  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;

  --text: #0a1929;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-faint: #94a3b8;

  --amber: #f59e0b;
  --green: #10b981;
  --red: #ef4444;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-sm: 0 1px 2px rgba(10, 25, 41, 0.04);
  --shadow: 0 4px 12px rgba(10, 25, 41, 0.06);
  --shadow-lg: 0 8px 24px rgba(10, 25, 41, 0.08);

  --transition: 180ms ease;
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hover); }

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--cyan);
  color: #fff !important;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--cyan-hover); color: #fff !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 32px 16px;
}
.mobile-menu a {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding: 64px 0 56px;
}
.hero-inner { max-width: 600px; }
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan-pale);
  border: 1px solid var(--cyan-border);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}
.hero h1 {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 580px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--navy-soft);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: var(--bg);
  color: var(--text) !important;
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--text) !important;
  border-color: var(--text-light);
}
.btn-cyan {
  background: var(--cyan);
  color: #fff !important;
}
.btn-cyan:hover {
  background: var(--cyan-hover);
  color: #fff !important;
}

/* =========================================================
   Trust strip (dark)
   ========================================================= */
.trust-strip {
  background: var(--navy);
  padding: 22px 0;
  color: #fff;
}
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item {
  display: flex;
  flex-direction: column;
}
.trust-label {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}
.trust-value {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* =========================================================
   Section base
   ========================================================= */
.section {
  padding: 64px 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section-eyebrow {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
.section h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-header h2 { margin-bottom: 0; }
.section-link {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 500;
}

/* =========================================================
   Category cards (4-up grid)
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.category-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg);
  transition: all var(--transition);
}
.category-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.category-icon {
  width: 40px;
  height: 40px;
  background: var(--cyan-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.category-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}
.category-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   Industry cards (4-up grid)
   ========================================================= */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.industry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  transition: all var(--transition);
  color: var(--text);
}
.industry-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.industry-eyebrow {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}
.industry-card-title {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

/* =========================================================
   Review cards (3-up grid)
   ========================================================= */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: all var(--transition);
  color: var(--text);
}
.review-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.review-card-image {
  background: #f1f5f9;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.review-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-card-body {
  padding: 16px;
}
.review-card-category {
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}
.review-card h3 {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}
.review-card-spec {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.4;
}
.review-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 1px;
}
.rating-num {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

/* =========================================================
   About strip
   ========================================================= */
.about-strip {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.about-avatar {
  width: 72px;
  height: 72px;
  background: var(--cyan);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}
.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-content { flex: 1; max-width: 760px; }
.about-eyebrow {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}
.about-strip h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.about-strip p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.about-cta {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 500;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: var(--text-faint);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo-mark { background: rgba(255, 255, 255, 0.1); }
.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 240px;
}
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a {
  color: var(--text-faint);
  font-size: 11px;
}
.footer-legal a:hover { color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-cta { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .trust-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 22px; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .about-inner { flex-direction: column; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   About page
   ========================================================= */
.page-hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
}
.page-hero-content { max-width: 600px; }
.page-hero h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.page-hero-role {
  font-size: 15px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 16px;
}
.page-hero-summary {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}
.page-hero-photo {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px;
}
.page-content section { margin-bottom: 48px; }
.page-content section:last-child { margin-bottom: 0; }
.page-content h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.page-content h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 10px;
}
.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-content ul, .page-content ol {
  margin: 0 0 16px 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}
.page-content li { margin-bottom: 6px; }
.page-content a { font-weight: 500; }

/* Career timeline */
.timeline {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--cyan);
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
  margin-bottom: 0;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.timeline-dates {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  background: var(--cyan-pale);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-weight: 500;
}
.timeline-role {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-org {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.timeline-detail {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0 !important;
}

/* Credentials cards */
.credential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.credential-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--bg);
}
.credential-card-label {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}
.credential-card h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.credential-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

/* Editorial integrity callout */
.integrity-box {
  background: var(--cyan-pale);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}
.integrity-box h3 {
  color: var(--cyan-dark);
  margin-top: 0;
}
.integrity-box p {
  color: var(--cyan-dark);
  margin-bottom: 10px;
}
.integrity-box p:last-child { margin-bottom: 0; }

/* Contact block */
.contact-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0 0;
}
.contact-block h3 { margin-top: 0; }
.contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-row-label {
  font-weight: 500;
  color: var(--text);
  min-width: 60px;
}

@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .page-hero-photo { width: 200px; height: 200px; }
  .page-hero h1 { font-size: 28px; }
  .credential-grid { grid-template-columns: 1fr; }
  .page-content { padding: 40px 24px; }
}
