/* ==========================================================================
   Inlec — Electrical Instrumentation & Automation
   Palette drawn from the Inlec logo:
     Primary blue  #276BAF   Sky blue  #89CCEE   Steel blue #84A7CB
     Charcoal      #4C4E50   Grey      #727475
   ========================================================================== */

:root {
  --primary: #276baf;
  --primary-dark: #1e548c;
  --navy: #12283f;
  --navy-2: #17395c;
  --sky: #89ccee;
  --steel: #84a7cb;
  --ink: #26313c;
  --body: #4a545e;
  --charcoal: #4c4e50;
  --line: #dde6ee;
  --tint: #f2f7fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(18, 40, 63, 0.08);
  --container: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.875rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 46rem;
  font-size: 1.125rem;
}

.section {
  padding: 5.5rem 0;
}

.section--tint {
  background: var(--tint);
}

.section-head {
  margin-bottom: 3rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.875rem 1.875rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

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

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

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--light {
  background: var(--white);
  color: var(--primary);
}

.btn--light:hover {
  background: var(--sky);
  color: var(--navy);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-text {
  line-height: 1.15;
}

.brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--charcoal);
}

.brand-tag {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.site-nav .btn {
  padding: 0.625rem 1.375rem;
  font-size: 0.9375rem;
}

.site-nav .btn.is-active {
  border-bottom: 2px solid transparent;
}

.site-nav .btn--primary,
.site-nav .btn--primary:hover,
.site-nav .btn--primary.is-active {
  color: var(--white);
}

.site-nav .btn--primary.is-active {
  background: var(--primary-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--primary-dark) 100%);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(137, 204, 238, 0.12), transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero .eyebrow {
  color: var(--sky);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-mark {
  justify-self: center;
  width: min(340px, 80%);
  opacity: 0.9;
}

/* Slim hero for inner pages */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4.5rem 0;
}

.page-hero .eyebrow {
  color: var(--sky);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.875rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  font-size: 1.125rem;
}

/* ---------- About / two-column ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.split .section-title {
  margin-bottom: 1.25rem;
}

.split p + p {
  margin-top: 1rem;
}

.panel {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.panel h3 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.panel ul {
  list-style: none;
}

.panel li {
  padding: 0.625rem 0;
  padding-left: 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink);
  font-size: 0.9875rem;
}

.panel li:last-child {
  border-bottom: 0;
}

.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.125rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.panel .btn {
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
}

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--steel);
}

.card h3 {
  font-size: 1.1875rem;
  margin: 1.125rem 0 0.625rem;
}

.card p {
  font-size: 0.9875rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* ---------- Safety pillars (dark section) ---------- */

.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.section--navy .section-title {
  color: var(--white);
}

.section--navy .eyebrow {
  color: var(--sky);
}

.section--navy .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.section--navy .card:hover {
  border-color: var(--sky);
  box-shadow: none;
}

.section--navy .card h3 {
  color: var(--white);
}

.section--navy .card p {
  color: rgba(255, 255, 255, 0.75);
}

.section--navy .card-icon {
  background: rgba(137, 204, 238, 0.12);
  color: var(--sky);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}

/* ---------- Chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.chips li {
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

/* ---------- Steps (careers: how to apply) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.steps h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.steps p {
  font-size: 0.9375rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

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

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 0.375rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39, 107, 175, 0.15);
}

.form-note {
  font-size: 0.875rem;
  color: var(--body);
  margin-top: 1rem;
}

.info-card {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.info-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.info-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item:last-of-type {
  border-bottom: 0;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.25rem;
}

.info-item a {
  color: var(--white);
  font-weight: 600;
}

.info-item a:hover {
  color: var(--sky);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
  width: 150px;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  max-width: 24rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.625rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-mark {
    display: none;
  }

  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4rem 0;
  }

  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.5rem 1.25rem;
    display: none;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a.is-active {
    border-bottom-color: var(--line);
  }

  .site-nav .btn {
    margin-top: 1rem;
    text-align: center;
  }
}
