/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --navy: #0b2033;
  --navy-border: #1d4260;
  --blue: #0f5aa8;
  --blue-dark: #0b467f;
  --blue-tint: #eaf1f7;
  --green: #17a24a;
  --green-bright: #17d060;
  --green-tint: #e8f5ec;

  --bg-light: #f5f8fb;
  --bg-panel: #f8fafc;
  --white: #ffffff;

  --border: #dde6ee;
  --border-light: #eef3f8;
  --border-blue: #cfe0ee;
  --border-input: #c3d4e2;

  --text-navy: #0b2033;
  --text-body: #4d6070;
  --text-muted: #5b6b7c;
  --text-dark-body: #22384a;
  --text-faint: #7a8896;

  --on-dark: #a8c0d4;
  --on-dark-strong: #ffffff;
  --footer-link: #dbe7f0;
  --footer-muted: #7fa2bf;
  --footer-label: #5f89ac;

  --error-bg: #fdf3f3;
  --error-border: #f0d4d4;
  --error-text: #7a2018;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1240px;

  /* Kept in sync with the fixed header's real height by main.js (syncSpacer);
     this fallback only applies for the instant before JS runs. */
  --header-h: 88px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top keeps anchor jumps (e.g. footer links to #rnd/#routine)
   from landing under the fixed .site-header. */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--text-navy);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow--onDark { color: var(--green-bright); display: block; margin-bottom: 14px; }

.section-head {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between;
}
.section-head__copy { max-width: 60ch; }
.section-head h2 {
  margin-top: 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.14;
  letter-spacing: -0.02em; font-weight: 700; color: var(--navy);
}
.section--navy .section-head h2, .section--navy h2 { color: var(--white); }
.section-head p { margin-top: 18px; font-size: 16.5px; line-height: 1.65; color: var(--text-body); }


.section { background: var(--white); }
.section--tint { background: var(--bg-light); }
.section--navy {
  background: var(--navy);
  color: var(--white);
  padding-top: clamp(48px, 6vw, 84px) !important;
  padding-bottom: clamp(48px, 6vw, 84px) !important;
}
.section--border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--border-b { border-bottom: 1px solid var(--border); }
.section--border-t { border-top: 1px solid var(--border); }
.section-pad { padding-top: clamp(28px, 4vw, 54px); padding-bottom: clamp(28px, 4vw, 54px); }
.section-pad--lg { padding-top: clamp(32px, 4.5vw, 60px); padding-bottom: clamp(32px, 4.5vw, 60px); }
.section-pad--hero { padding-top: clamp(32px, 4.5vw, 60px); padding-bottom: clamp(24px, 3vw, 40px); }
.section-pad--sm { padding-top: clamp(16px, 2.5vw, 24px); padding-bottom: clamp(16px, 2.5vw, 24px); }

/* Prevent excessive vertical gaps between consecutive light sections on the same page */
#top + section,
#top + .section,
#top + .section--tint,
.grid-bg + section,
.grid-bg + .section,
.grid-bg + .section--tint,
section + section.section-pad,
section + section.section-pad--lg,
.section + .section,
.section--tint + .section,
.section + .section--tint {
  padding-top: clamp(20px, 2.8vw, 36px);
}

.grid-bg {
  background-color: var(--bg-light);
  background-image:
    linear-gradient(#e4ecf4 1px, transparent 1px),
    linear-gradient(90deg, #e4ecf4 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
}

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  padding: 17px 30px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 180ms ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); padding: 15px 26px; }
.btn-light:hover { background: var(--green); color: var(--white); }
.btn-ghost { background: none; border: 1px solid var(--border-input); color: var(--navy); padding: 12px 20px; font-size: 14.5px; font-weight: 600; }
.btn-ghost:hover { border-color: var(--green); color: var(--navy); }

.link-underline {
  font-size: 15.5px; font-weight: 600; color: var(--blue);
  border-bottom: 2px solid var(--border-blue); padding-bottom: 5px;
}
.link-underline:hover { border-color: var(--green); color: var(--blue); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; background: var(--white); border: 1px solid var(--border-blue);
  border-radius: 100px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: block; }

.tag-chip {
  font-size: 13.5px; font-weight: 500; color: var(--text-dark-body);
  background: var(--white); border: 1px solid var(--border-blue); padding: 8px 13px;
}
.tag-chip--mono {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dark-body);
  background: var(--bg-panel); border: 1px solid var(--border-blue); padding: 8px 12px;
}

.icon { width: 19px; height: 19px; display: block; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.site-header-spacer { width: 100%; }
.site-header__row {
  max-width: var(--container); margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; gap: 28px;
}
.site-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-header__logo img { height: 46px; width: auto; }
.site-header__spacer { flex: 1; }

.primary-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.primary-nav a:not(.btn) {
  font-size: 14.5px; font-weight: 500; color: var(--navy);
  border-bottom: 2px solid transparent; padding-bottom: 3px;
}
.primary-nav a:not(.btn):hover { color: var(--blue); }
.primary-nav a.is-active:not(.btn) { color: var(--blue); border-bottom-color: var(--green); }
.primary-nav .btn { margin-left: 6px; font-size: 14.5px; padding: 12px 20px; }

.menu-toggle {
  width: 46px; height: 46px; border: 1px solid var(--border-blue); background: var(--white);
  border-radius: 4px; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--navy); display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 10px 20px 22px;
  flex-direction: column; gap: 2px;
  background: var(--white);
}
.mobile-nav a:not(.btn) {
  padding: 14px 4px; font-size: 16px; font-weight: 500; color: var(--navy);
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a.is-active:not(.btn) { font-weight: 600; color: var(--blue); }
.mobile-nav .btn { margin-top: 12px; text-align: center; padding: 16px; border-bottom: none; }
.site-header.is-menu-open .mobile-nav { display: flex; }

@media (max-width: 899px) {
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ==========================================================================
   Hero / page hero
   ========================================================================== */
.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(36px, 5vw, 64px); align-items: center;
  padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__kicker {
  margin-top: 14px; font-family: var(--font-heading); font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.38; font-weight: 500; color: var(--blue); max-width: 34ch;
}
.hero__lede { margin-top: 18px; font-size: 16.5px; line-height: 1.62; color: var(--text-body); max-width: 50ch; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.hero__techniques { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero__techniques-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.hero__techniques-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.hero__media { position: relative; min-width: 0; }
.hero__photo { aspect-ratio: 4/3; border: 1px solid var(--border-blue); position: relative; width: 100%; overflow: hidden; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stats {
  margin-top: -1px; background: var(--navy); color: var(--white); padding: 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
}
.hero__stat-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; }
.hero__stat-desc { margin-top: 5px; font-size: 13px; line-height: 1.55; color: var(--on-dark); }
.hero__note { margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }

.page-hero .eyebrow { display: block; }
.page-hero h1 { margin-top: 16px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; max-width: 26ch; }
.page-hero p { margin-top: 18px; font-size: 16.5px; line-height: 1.65; color: var(--text-body); max-width: 60ch; }

/* ==========================================================================
   Cards: services / three-up / four-up / two-up grids
   (shared by Home, About, Industries)
   ========================================================================== */
.card-grid { margin-top: clamp(32px, 4vw, 48px); display: grid; gap: clamp(20px, 2.5vw, 28px); }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid--fixed2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 619px) { .card-grid--fixed2 { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--blue);
  padding: clamp(26px, 3vw, 38px); transition: box-shadow 200ms ease, transform 200ms ease;
}
.service-card:hover { box-shadow: 0 18px 40px -22px rgba(11,32,51,0.30); transform: translateY(-3px); }
.service-card--green { border-top-color: var(--green); }
.service-card__head { display: flex; align-items: center; gap: 14px; }
.service-card__num {
  width: 42px; height: 42px; background: var(--blue-tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
}
.service-card--green .service-card__num { background: var(--green-tint); color: var(--green); }
.service-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.service-card__desc { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.service-card__list { margin-top: 22px; display: grid; gap: 0; }
.service-card__list li { padding: 13px 0; border-top: 1px solid var(--border-light); font-size: 15.5px; color: var(--text-dark-body); }
.service-card__list li:last-child { border-bottom: 1px solid var(--border-light); }
.service-card__more { margin-top: 24px; display: inline-block; font-size: 15px; font-weight: 600; color: var(--blue); }

/* Why-us / dark numbered list — shared by Home, About, Process */
.dark-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(36px, 5vw, 72px); }
.dark-split p { margin-top: 20px; font-size: 16.5px; line-height: 1.65; color: var(--on-dark); max-width: 44ch; }
.dark-split .btn { margin-top: 28px; }
.numbered-list { display: grid; gap: 0; }
.numbered-list__row { padding: 22px 0; border-top: 1px solid var(--navy-border); display: flex; gap: 20px; align-items: baseline; }
.numbered-list__row:last-child { border-bottom: 1px solid var(--navy-border); }
.numbered-list__num { font-family: var(--font-mono); font-size: 12px; color: var(--green-bright); flex: 0 0 34px; }
.numbered-list__title { font-family: var(--font-heading); font-size: 19px; font-weight: 600; color: var(--white); }
.numbered-list__desc { margin-top: 7px; font-size: 15px; line-height: 1.6; color: var(--on-dark); }

/* Divider tile grids — shared by Home, About, Contact, Process, Services */
.tile-grid { margin-top: clamp(28px, 3.5vw, 44px); display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.tile-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1099px) {
  .tile-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tile-grid--4,
  .tile-grid--3,
  .tile-grid--2 { grid-template-columns: 1fr; }
}
.tile { background: var(--white); padding: clamp(22px, 2.4vw, 32px); transition: background 180ms ease; }
.tile:hover { background: var(--bg-light); }
.tile__icon {
  width: 38px; height: 38px; border: 1px solid var(--border-blue); background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
}
.tile__icon--green { background: var(--green-tint); }
.tile__icon .icon { color: var(--blue); width: 18px; height: 18px; }
.tile__icon--green .icon { color: var(--green); }
.tile h3 { margin-top: 16px; font-size: 17px; font-weight: 600; color: var(--navy); }
.tile p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }

/* CTA banner — used on most pages */
.cta-banner {
  border: 1px solid var(--border); background: var(--bg-light);
  background-image: linear-gradient(90deg, rgba(15,90,168,0.05), rgba(23,162,74,0.05));
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.cta-banner h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.14; letter-spacing: -0.02em; font-weight: 700; color: var(--navy); }
.cta-banner p { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--text-body); max-width: 46ch; }
.cta-banner__actions { display: grid; gap: 14px; justify-items: start; }
.cta-banner__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14.5px; color: var(--navy); }
.cta-banner__phone .icon { width: 15px; height: 15px; color: var(--green); }
.cta-banner__phone:hover { color: var(--green); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer__grid {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px) 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(30px, 4vw, 52px);
}
.footer-brand__logo { background: var(--white); display: inline-block; padding: 14px 16px; border-radius: 3px; }
.footer-brand__logo img { height: 62px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: 14.5px; line-height: 1.65; color: var(--on-dark); max-width: 34ch; }
.footer-social { margin-top: 18px; display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--navy-border); display: flex; align-items: center;
  justify-content: center; color: var(--on-dark);
}
.footer-social a:hover { border-color: var(--green); color: var(--white); }
.footer-social .icon { width: 16px; height: 16px; color: currentColor; }
.footer-col-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--footer-label); }
.footer-links { margin-top: 16px; display: grid; gap: 11px; }
.footer-links a { font-size: 14.5px; color: var(--footer-link); }
.footer-links a:hover { color: var(--green-bright); }
.footer-contact { margin-top: 16px; display: grid; gap: 14px; font-size: 14.5px; line-height: 1.6; color: var(--footer-link); }
.footer-contact a { color: var(--footer-link); word-break: break-word; }
.footer-contact a:hover { color: var(--green-bright); }
.footer-contact__addr { color: var(--on-dark); }

.site-footer__bottom { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.site-footer__bottom-row {
  border-top: 1px solid var(--navy-border); padding: 22px 0 34px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
}
.site-footer__copyright { font-size: 13px; color: var(--footer-muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer__legal a { font-size: 13px; color: var(--footer-muted); }
.site-footer__legal a:hover { color: var(--white); }

/* ==========================================================================
   Rich Text / Page Content Styling
   ========================================================================== */
.entry-content,
.page-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

.entry-content h1,
.page-content h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 16px;
}

.entry-content h1:first-child,
.page-content h1:first-child {
  margin-top: 0;
}

.entry-content h2,
.page-content h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-top: 38px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.entry-content h2:first-child,
.page-content h2:first-child {
  margin-top: 0;
}

.entry-content h3,
.page-content h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  margin-top: 28px;
  margin-bottom: 12px;
}

.entry-content p,
.page-content p {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.7;
}

.entry-content p strong,
.page-content p strong {
  color: var(--navy);
  font-weight: 600;
}

.entry-content ul,
.page-content ul,
.entry-content ol,
.page-content ol {
  margin-top: 12px;
  margin-bottom: 24px;
  padding-left: 24px;
  list-style: disc;
}

.entry-content ul ul,
.page-content ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.entry-content li,
.page-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.entry-content li::marker,
.page-content li::marker {
  color: var(--blue);
}

.entry-content a,
.page-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover,
.page-content a:hover {
  color: var(--green);
}

