/* Infinity Technology — Safety-forward corporate theme */
:root {
  --ink: #1a1d21;
  --ink-soft: #2c3138;
  --charcoal: #0f1215;
  --slate: #5a6169;
  --muted: #8b929a;
  --line: #e4e7eb;
  --paper: #ffffff;
  --paper-soft: #f6f7f9;
  --hivis: #f5b800;
  --hivis-deep: #e09a00;
  --safety-orange: #e85d04;
  --safety-orange-deep: #c44d03;
  --success: #1b7f4e;
  --focus: #0b6bcb;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(15, 18, 21, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 18, 21, 0.14);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--safety-orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--safety-orange);
}

:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 29, 33, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--hivis);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.brand img,
.brand .logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--hivis);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #e8eaed;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--hivis);
  border-bottom-color: var(--hivis);
}

.site-nav .nav-cta {
  background: var(--hivis);
  color: var(--ink) !important;
  border-bottom: none !important;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-weight: 700;
}

.site-nav .nav-cta:hover {
  background: #ffc933;
  color: var(--ink) !important;
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(15, 18, 21, 0.94) 0%, rgba(26, 29, 33, 0.88) 48%, rgba(232, 93, 4, 0.55) 100%),
    radial-gradient(circle at 80% 20%, rgba(245, 184, 0, 0.25), transparent 45%),
    linear-gradient(160deg, #1a1d21, #2c3138);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 18px,
    var(--hivis) 18px 36px
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4.5rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 184, 0, 0.14);
  border: 1px solid rgba(245, 184, 0, 0.45);
  color: var(--hivis);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  color: #d9dee5;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: #c5cbd3;
  font-size: 0.92rem;
}

.hero-meta strong {
  color: #fff;
  display: block;
  font-size: 1.05rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--hivis);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.96rem;
}

.hero-card li:first-child {
  border-top: none;
  padding-top: 0;
}

.hero-card .num {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--hivis);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--hivis);
  color: var(--ink);
}

.btn-primary:hover {
  background: #ffc933;
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  border-color: var(--hivis);
  color: var(--hivis);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.section-label {
  display: block;
  color: var(--safety-orange);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.bg-soft {
  background: var(--paper-soft);
}

.bg-dark {
  background: var(--charcoal);
  color: #fff;
}

.bg-dark .section-head p,
.bg-dark p {
  color: #c5cbd3;
}

.bg-stripe {
  background:
    linear-gradient(var(--paper-soft), var(--paper-soft)) padding-box,
    repeating-linear-gradient(
      135deg,
      var(--hivis) 0 12px,
      var(--ink) 12px 24px
    ) border-box;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.97rem;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(245, 184, 0, 0.15);
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(245, 184, 0, 0.45);
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--hivis);
}

.service-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--safety-orange-deep);
  margin-bottom: 0.4rem;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--hivis);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  color: var(--hivis);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat span {
  color: #c5cbd3;
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, #2a2208 55%, var(--safety-orange) 160%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
}

.cta-band p {
  margin: 0;
  color: #d9dee5;
  max-width: 48ch;
}

/* Page hero (inner) */
.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding: 3rem 0 2.5rem;
  border-bottom: 4px solid var(--hivis);
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: #c5cbd3;
  max-width: 60ch;
  font-size: 1.05rem;
}

/* About */
.bio-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.portrait {
  background: var(--ink);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--hivis);
  border: 3px solid var(--hivis);
  text-align: center;
  padding: 1.5rem;
}

.portrait strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

.portrait span {
  color: #c5cbd3;
  font-size: 0.9rem;
}

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.creds li {
  background: rgba(245, 184, 0, 0.12);
  border: 1px solid rgba(245, 184, 0, 0.4);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: #fafbfc;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.contact-card h2 {
  margin: 0 0 0.5rem;
  color: var(--hivis);
}

.contact-card p {
  color: #c5cbd3;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-list span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hivis);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--hivis);
}

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field .req {
  color: var(--safety-orange);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c9ced6;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--hivis-deep);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.25);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0 0 1rem;
}

.form-success,
.form-error {
  display: none;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-success {
  background: #e8f7ef;
  color: var(--success);
  border: 1px solid #b7e0c8;
}

.form-error {
  background: #fdecea;
  color: #b42318;
  border: 1px solid #f3c4c0;
}

/* Industries */
.industry-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.industry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-top: 4px solid var(--hivis);
}

.industry h3 {
  margin: 0 0 0.4rem;
}

.industry p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #c5cbd3;
  padding: 3rem 0 1.5rem;
  border-top: 4px solid var(--hivis);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.site-footer a {
  color: #c5cbd3;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--hivis);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-brand strong {
  color: #fff;
  display: block;
}

.legal-line {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

.tagline {
  color: var(--hivis);
  font-weight: 600;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .bio-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .stats,
  .industry-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 3px solid var(--hivis);
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .grid-3,
  .grid-2,
  .grid-4,
  .stats,
  .industry-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 3rem 0 3.5rem;
  }

  .hero h1 {
    max-width: none;
  }
}
