:root {
  --navy: #1a2b56;
  --navy-dark: #121d3a;
  --red: #a31f24;
  --red-hover: #8a1a1f;
  --white: #ffffff;
  --gray-50: #f6f7f9;
  --gray-100: #e8ebf0;
  --gray-600: #5c6478;
  --shadow: 0 4px 24px rgba(26, 43, 86, 0.08);
  --shadow-card: 0 2px 12px rgba(26, 43, 86, 0.06);
  --font-display: "Barlow Condensed", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--navy-dark);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-block {
  flex-shrink: 0;
}

.brand {
  display: block;
}

.brand-logo {
  height: 104px;
  width: auto;
}

.brand-contact {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--gray-600);
}

.brand-contact a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brand-contact a:hover,
.brand-contact a:focus-visible {
  color: var(--red);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
}

.section-banner {
  background: var(--navy-dark);
  line-height: 0;
  display: flex;
  justify-content: center;
}

.section-banner-image {
  width: 50%;
  height: auto;
  display: block;
}

.section-banner-image--services,
.section-banner-image--technologies,
.section-banner-image--process,
.section-banner-image--industries {
  width: 75%;
}

#services .section-banner,
#process .section-banner {
  background: var(--white);
}

#technologies .section-banner,
#industries .section-banner {
  background: var(--gray-50);
}

.page-section--banner {
  padding: 0;
}

.page-section--banner .section-body {
  padding: 3rem 1.5rem 4rem;
}

.page-section.alt.page-section--banner .section-body {
  background: var(--gray-50);
}

main section[id] {
  scroll-margin-top: 72px;
}

.section-inner.wide {
  max-width: 1100px;
  margin: 0 auto;
}

/* Welcome section */
.welcome-section {
  padding: 3.5rem 1.5rem 4rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.welcome-section--banner {
  padding: 0;
}

.welcome-section--banner .section-inner {
  padding: 3.5rem 1.5rem 4rem;
}

#home .section-banner {
  background: var(--gray-50);
}

.section-banner-image--home {
  width: 75%;
}

.welcome-lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.welcome-tagline {
  font-weight: 600;
  color: var(--navy);
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Page sections */
.page-section {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.page-section.alt {
  background: var(--gray-50);
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header.light h2 {
  color: var(--white);
  border-bottom-color: var(--red);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--gray-600);
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 78ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* About Us */
.about-section {
  padding: 4rem 1.5rem;
}

.about-prose {
  margin-bottom: 2.5rem;
}

.about-block {
  margin-bottom: 2.5rem;
}

.about-subheading {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.value-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.value-card span {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--gray-600);
}

.about-statements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-statement {
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-top: 4px solid var(--navy);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.about-statement p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gray-600);
}

.prose.light p,
.prose.light {
  color: rgba(255, 255, 255, 0.88);
}

/* Option cards — Services & Industries */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.option-grid--industries {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: auto;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26, 43, 86, 0.14);
  border-color: rgba(163, 31, 36, 0.2);
}

.option-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-dark);
}

.option-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18, 29, 58, 0.55) 100%);
  pointer-events: none;
}

.option-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.option-card:hover .option-card__media img {
  transform: scale(1.07);
}

.option-card__media--product {
  background: var(--gray-50);
}

.option-card__media--product::after {
  display: none;
}

.option-card__media--product img {
  object-fit: contain;
  padding: 0.75rem;
  transform: none;
}

.option-card:hover .option-card__media--product img {
  transform: scale(1.03);
}

.option-card__label {
  display: block;
  padding: 1rem 1.15rem 1.15rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--navy);
  border-top: 3px solid var(--red);
}

/* Info cards — Technologies & Process */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.info-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(26, 43, 86, 0.12);
}

.info-card__photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-dark);
}

.info-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(18, 29, 58, 0.35) 100%);
  pointer-events: none;
}

.info-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.info-card:hover .info-card__photo img {
  transform: scale(1.05);
}

.info-card__photo--product {
  background: var(--gray-50);
}

.info-card__photo--product::after {
  display: none;
}

.info-card__photo--product img {
  object-fit: contain;
  padding: 1rem;
  transform: none;
}

.info-card:hover .info-card__photo--product img {
  transform: scale(1.02);
}

.info-card__photo--system {
  background: linear-gradient(180deg, #eef1f6 0%, #f8f9fb 100%);
  aspect-ratio: 16 / 9;
}

.info-card__photo--system::after {
  display: none;
}

.system-photo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem 1.15rem;
}

.system-photo__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
}

.system-photo__device img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  transform: none;
}

.system-photo__device figcaption {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}

.system-photo__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  width: 88px;
}

.system-photo__cable {
  position: relative;
  width: 100%;
  height: 4px;
  background: var(--navy);
  border-radius: 999px;
}

.system-photo__cable::before,
.system-photo__cable::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: var(--white);
  transform: translateY(-50%);
}

.system-photo__cable::before {
  left: -2px;
}

.system-photo__cable::after {
  right: -2px;
}

.system-photo__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--red);
  line-height: 1.2;
}

.info-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.info-card h3 {
  margin: 0 0 0.95rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.25;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(163, 31, 36, 0.2);
}

.info-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-card__tags li {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy-dark);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.info-card__tags li:hover {
  background: rgba(163, 31, 36, 0.08);
  border-color: rgba(163, 31, 36, 0.25);
  color: var(--navy);
}

.info-card--brands {
  grid-column: 1 / -1;
}

.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 43, 86, 0.1);
  border-color: rgba(163, 31, 36, 0.2);
}

.brand-logo-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

/* Contact */
.contact-section {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}

.contact-logo-link {
  display: block;
  margin-bottom: 2rem;
}

.contact-logo {
  display: block;
  height: 64px;
  width: auto;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-details {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.contact-details a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--white);
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: 4px;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  background: var(--white);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

/* Mobile */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-statements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-banner-image--home {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--gray-100);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .site-header {
    position: relative;
  }

  .card-grid,
  .option-grid,
  .option-grid--industries {
    grid-template-columns: 1fr;
  }

  .brand-logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .system-photo {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .system-photo__link {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }

  .system-photo__cable {
    width: 72px;
  }

  .option-card {
    min-height: auto;
  }
}
