/* ==========================================================================
   SLA Engineering and Management Inc. — Shared Stylesheet
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #152238;
  --navy: #1C3A5E;
  --steel: #3E6C96;
  --steel-light: #EAF1F7;
  --paper: #FBFAF9;
  --concrete: #F1EFEA;
  --slate: #5C6570;
  --amber: #B8863B;
  --amber-dark: #96702C;
  --line: #DCD7CB;
  --line-dark: #33455E;
  --white: #FFFFFF;

  /* Type */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --max: 1120px;
  --gap: 24px;
  --radius: 3px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth;
      scroll-padding-top: 96px;
      }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; max-width: 62ch; }
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

/* Logo lockup */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
}
.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--slate);
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--steel);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-call {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-call:hover { border-color: var(--steel); color: var(--steel); }
.header-call svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 28px 14px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-toggle { display: flex; }
  .header-call span.call-label { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-call {
  background: var(--amber);
  color: var(--white);
}
.btn-call:hover { background: var(--amber-dark); }
.btn-email {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-email:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  border-bottom: 4px solid var(--steel);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 28px 76px;
}
.hero-eyebrow {
  font-size: 14px;
  color: #B7C6D9;
  font-weight: 500;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 52px);
  max-width: 16ch;
  margin-bottom: 22px;
}
.hero p.lead {
  color: #D7E0EA;
  font-size: 18px;
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero-credentials {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #AAB9CC;
}
.hero-credentials .cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 12px;
  border-radius: var(--radius);
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 72px 0; }
.section-alt { background: var(--concrete); }
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-kicker {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head p { color: var(--slate); font-size: 16.5px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Service index (list, not cards) ---- */
.service-group h3 {
  font-size: 19px;
  border-bottom: 2px solid var(--line-dark);
  padding-bottom: 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.service-group h3 .count {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--slate);
}
.service-list-compact li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.service-list-compact li:last-child { border-bottom: none; }
.service-list-compact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.service-list-compact a:hover { color: var(--steel); }
.service-list-compact .arrow { color: var(--steel); font-size: 18px; flex-shrink: 0; }

/* ---- Full service entries (services.html) ---- */
.service-entry {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}
.service-entry:last-child { padding-bottom: 4px; }
.service-index-list:first-of-type .service-entry:first-child { border-top: none; }
.service-entry h4 {
  font-size: 20px;
  margin-bottom: 4px;
}
.service-entry .service-tag {
  font-size: 13px;
  color: var(--steel);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.service-entry p {
  color: var(--slate);
  max-width: 64ch;
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .service-entry { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   About page pieces
   ========================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}
.stat-cell {
  background: var(--white);
  padding: 26px 22px;
}
.stat-cell .stat-num {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.stat-cell .stat-label {
  font-size: 13.5px;
  color: var(--slate);
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
}

.team-stub {
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius);
  padding: 36px 30px;
  margin-top: 48px;
  background: var(--steel-light);
}
.team-stub h3 { font-size: 18px; margin-bottom: 8px; }
.team-stub p { color: var(--slate); margin-bottom: 0; }

/* ==========================================================================
   Credentials strip
   ========================================================================== */
.credentials-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.credentials-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.credentials-inner .cred-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--slate);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.cred-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}
.cred-logo small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: var(--slate);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: 26px; margin-bottom: 6px; }
.cta-band p { color: #C7D2DF; margin-bottom: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--steel);
}
.contact-hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 40px); max-width: 18ch; }
.contact-hero p { color: #D7E0EA; font-size: 17px; }

.contact-actions {
  margin-top: -46px;
  position: relative;
  z-index: 2;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 700px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 12px 28px rgba(21, 34, 56, 0.08);
}
.contact-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.contact-card.call .icon-wrap { background: #FBF1E1; color: var(--amber-dark); }
.contact-card.email .icon-wrap { background: var(--steel-light); color: var(--steel); }
.contact-card .icon-wrap svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 17px; margin-bottom: 4px; }
.contact-card .contact-value {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0 18px;
  display: block;
}
.contact-card .contact-value:hover { color: var(--steel); }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
@media (max-width: 760px) {
  .contact-info-grid { grid-template-columns: 1fr; gap: 32px; }
}
.info-block .info-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 10px;
}
.info-block p { color: var(--slate); margin-bottom: 4px; }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover { border-color: var(--steel); color: var(--steel); }
.social-row svg { width: 17px; height: 17px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #AEB8C6;
  padding: 46px 0 28px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 30px;
  margin-bottom: 20px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo-text, .footer-brand .logo-text span { color: #AEB8C6; }
.footer-brand .logo-badge { background: var(--steel); }
.footer-brand p { color: #8C97A6; font-size: 13.5px; margin-top: 14px; }
.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  color: #E4E8ED;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: var(--font-head);
}
.footer-col a, .footer-col p {
  display: block;
  color: #AEB8C6;
  margin-bottom: 9px;
  font-size: 14px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7C8798;
}