/* ==========================================================================
   IRSYS Corporation — Manufacturing MSP Landing Page
   Theme from logo: IRSYS blue (#2e4a93) primary + IRSYS red (#dd2d1e) accent
   Below-hero design: industrial spec-sheet — condensed uppercase display
   type, monospace tags, striped accents, ghost numbers. Strictly no boxes.
   ========================================================================== */

:root {
  --blue-900: #14204a;
  --blue-800: #1c2d68;
  --blue-700: #24397a;
  --blue-500: #2e4a93;
  --steel-100: #f4f6fa;
  --steel-200: #e5e9f2;
  --steel-500: #59657e;
  --ink: #182342;
  --accent: #dd2d1e;
  --accent-dark: #b8210f;
  --accent-light: #ff7161;   /* red for use on dark blue backgrounds */
  --accent-contrast: #ffffff;
  --mono: "Consolas", "Courier New", monospace;
  --radius: 14px;
  --shadow-md: 0 10px 30px rgba(20, 32, 74, 0.10);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .navbar-brand {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
}

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--accent-contrast);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 600;
}

.text-accent { color: var(--accent-light); }

/* ---------- Navbar (light, to match white logo background) ---------- */
#mainNav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--steel-200);
}

#mainNav.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(20, 32, 74, 0.12);
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

#mainNav .nav-link {
  color: var(--blue-800);
  font-weight: 600;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  transition: color 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus,
#mainNav .nav-link.active {
  color: var(--accent);
}

#mainNav .navbar-toggler {
  border-color: rgba(28, 45, 104, 0.35);
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(28, 45, 104, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero (unchanged) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(221, 45, 30, 0.12), transparent 60%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
  color: #ffffff;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  background: rgba(221, 45, 30, 0.16);
  border: 1px solid rgba(255, 113, 97, 0.5);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.hero-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-badge i { color: var(--accent-light); font-size: 1.15rem; }

/* ---------- Hero radar / operations-scanner visual ---------- */
.radar-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
}

/* concentric rings */
.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(157, 185, 247, 0.22);
  border-radius: 50%;
}

.rr-1 { width: 30%; height: 30%; }
.rr-2 { width: 50%; height: 50%; }
.rr-3 {
  width: 70%;
  height: 70%;
  border-color: rgba(157, 185, 247, 0.32);
}

/* crosshair grid */
.radar-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(157, 185, 247, 0.16);
}

.radar-cross-h { width: 70%; height: 1px; transform: translate(-50%, -50%); }
.radar-cross-v { height: 70%; width: 1px; transform: translate(-50%, -50%); }

/* rotating sweep beam */
.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 113, 97, 0.35) 0deg,
    rgba(255, 113, 97, 0.10) 26deg,
    rgba(255, 113, 97, 0) 60deg,
    transparent 360deg);
  animation: radarSweep 5s linear infinite;
  z-index: 1;
}

@keyframes radarSweep {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* central hub */
.radar-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 30%, #ff8a76, var(--accent) 55%, var(--accent-dark));
  box-shadow: 0 0 44px rgba(221, 45, 30, 0.55), 0 0 90px rgba(221, 45, 30, 0.25);
  color: #fff;
  font-size: 2.7rem;
  z-index: 4;
}

.rh-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 113, 97, 0.7);
  animation: rhPulse 2.8s ease-out infinite;
}

@keyframes rhPulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* service blips — icon sits ON the ring, label centered below */
.radar-blip {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 170px;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%);
  animation:
    blipIn 0.55s ease var(--d, 0s) forwards,
    blipFloat 6s ease-in-out calc(var(--d, 0s) + 0.55s) infinite;
  z-index: 5;
}

.radar-blip i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(20, 32, 74, 0.85);
  border: 1px solid rgba(157, 185, 247, 0.6);
  color: #9db9f7;
  font-size: 1.45rem;
  box-shadow: 0 0 18px rgba(46, 74, 147, 0.75);
  backdrop-filter: blur(4px);
}

.radar-blip .lbl {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 12px rgba(10, 18, 40, 0.95);
}

/* icon centered ON the outer ring line (r ≈ 35%); label wraps below */
.rb-1 { left: 19.7%; top: calc(32.5% - 27px); }  /* upper-left  */
.rb-2 { left: 80.3%; top: calc(32.5% - 27px); }  /* upper-right */
.rb-3 { left: 50%;   top: calc(85% - 27px); }    /* bottom      */
.rb-4 { left: 50%;   top: calc(15% - 27px); }    /* top         */
.rb-5 { left: 80.3%; top: calc(67.5% - 27px); }  /* lower-right */
.rb-6 { left: 19.7%; top: calc(67.5% - 27px); }  /* lower-left  */

@keyframes blipIn {
  from { opacity: 0; transform: translateX(-50%) scale(0.85); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes blipFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; }
  .radar-sweep, .rh-pulse { animation: none; }
  .radar-blip { animation: none; opacity: 1; }
}

/* ==========================================================================
   BELOW-HERO DESIGN SYSTEM — industrial spec sheet
   ========================================================================== */

.sec { padding: 110px 0; }

.sec-light { background: #ffffff; }
.sec-tint  { background: var(--steel-100); }

.sec-dark {
  background:
    radial-gradient(800px 400px at 15% 90%, rgba(221, 45, 30, 0.10), transparent 60%),
    linear-gradient(160deg, var(--blue-900), var(--blue-800));
  color: #fff;
}

/* --- section header --- */
.sec-head { margin-bottom: 3.2rem; max-width: 860px; }

.sec-display {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin-bottom: 1.2rem;
}

.sec-display-light { color: #fff; }

.sec-lead {
  color: var(--steel-500);
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 0;
}

.sec-lead-light { color: rgba(255, 255, 255, 0.75); }

/* --- monospace inline label --- */
.mono-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-500);
}

/* ---------- 01 / We Are Not Only Support (production-line timeline) ---------- */
.basics-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.6rem;
  margin-bottom: 3.4rem;
}

.bs-item {
  color: var(--steel-500);
  font-size: 1.02rem;
}

.bs-item i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.bs-note {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--steel-500);
}

.tl-label {
  display: block;
  margin-bottom: 2.4rem;
}

.prod-line {
  position: relative;
  padding: 0.5rem 0 0.2rem;
  max-width: 1020px;
}

.prod-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--accent), var(--blue-500));
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 2.2rem 0;
  text-align: right;
}

.tl-item:last-child { padding-bottom: 0.4rem; }

.tl-item::after {
  content: "";
  position: absolute;
  top: 0.4rem;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}

.tl-right {
  margin-left: 50%;
  padding: 0 0 2.2rem 3rem;
  text-align: left;
}

.tl-right::after {
  right: auto;
  left: -7px;
}

.tl-no {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.tl-item h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--blue-800);
  margin: 0;
  transition: color 0.2s ease;
}

.tl-item:hover h3 { color: var(--accent); }

@media (max-width: 767.98px) {
  .prod-line::before { left: 7px; }
  .tl-item,
  .tl-right {
    width: 100%;
    margin-left: 0;
    padding: 0 0 1.9rem 2.4rem;
    text-align: left;
  }
  .tl-item::after,
  .tl-right::after {
    left: 0;
    right: auto;
  }
}

/* ---------- 02 / Services index ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem 2rem;
  padding: 2.6rem 0;
}

.svc-no {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px #b9c4da;
  transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
}

.svc-row:hover .svc-no {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.svc-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

.svc-title i {
  color: var(--blue-500);
  margin-right: 0.7rem;
  font-size: 0.85em;
}

.svc-items {
  color: var(--steel-500);
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 820px;
  margin: 0 0 0.4rem;
}

.svc-items span {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0.35rem;
}

.svc-note {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel-500);
  margin: 0.5rem 0 0.25rem;
}

.svc-platforms {
  color: var(--blue-800);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.svc-platforms span {
  color: var(--accent);
  margin: 0 0.5rem;
}

@media (max-width: 767.98px) {
  .svc-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 2rem 0; }
  .svc-no { font-size: 3rem; }
}

/* ---------- 03 / OT + IT bridge line ---------- */
.bridge-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.6rem 2.6rem;
  margin-top: 1rem;
}

.bridge-step h3 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #fff;
}

.bridge-step p {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.bridge-arrow {
  color: var(--accent-light);
  font-size: 2.6rem;
  line-height: 1;
  align-self: center;
}

@media (max-width: 767.98px) {
  .bridge-line { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .bridge-arrow { transform: rotate(90deg); margin-left: 1rem; }
}

/* ---------- 04 / Results — underlined-keyword statements ---------- */
.results-v3 { max-width: 980px; }

.quote-line {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 2.6rem;
}

.quote-line:last-child { margin-bottom: 0; }

.hl {
  font-weight: 700;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: 0 96%;
  padding-bottom: 3px;
}

/* ---------- 05 / Five standing pillars ---------- */
.pillar-grid { margin-top: 0.5rem; }

.pc-no {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.pc-line {
  width: 2px;
  height: 46px;
  background: var(--blue-500);
  margin: 1rem 0 1.1rem 2px;
}

.pc-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.pc-desc {
  color: var(--steel-500);
  font-size: 0.95rem;
  margin: 0;
}

.pillar-col:hover .pc-line { background: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { padding: 120px 0; }

.cta-contact a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-contact a:hover { color: var(--accent-light); }
.cta-contact i { color: var(--accent-light); }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
}

.footer-brand {
  background: #ffffff;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
}

.footer-brand .brand-logo { height: 40px; }

.footer-text { font-size: 0.95rem; max-width: 320px; }

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

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

.footer-links li { padding: 0.3rem 0; font-size: 0.95rem; }

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-links i { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.4rem 0;
  font-size: 0.88rem;
}

/* ---------- Contact modal ---------- */
.contact-modal {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 32, 74, 0.35);
}

.contact-modal .modal-header { padding: 1.8rem 1.8rem 0; }
.contact-modal .modal-body { padding: 0 1.8rem 1.8rem; }

.contact-modal .modal-title {
  font-weight: 800;
  color: var(--ink);
}

.contact-modal-sub {
  color: var(--steel-500);
  font-size: 0.95rem;
}

.contact-modal .form-label {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.contact-modal .req { color: var(--accent); }

.contact-modal .form-control,
.contact-modal .form-select {
  border-color: var(--steel-200);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

.contact-modal .form-control:focus,
.contact-modal .form-select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 0.2rem rgba(46, 74, 147, 0.15);
}

.contact-modal-alt {
  font-size: 0.9rem;
  color: var(--steel-500);
}

.contact-modal-alt a,
.contact-success a {
  color: var(--blue-500);
  font-weight: 600;
  text-decoration: none;
}

.contact-modal-alt a:hover,
.contact-success a:hover { color: var(--accent); }

.contact-success { padding: 1.5rem 0 0.5rem; }

.contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(46, 74, 147, 0.12);
  color: var(--blue-500);
  font-size: 2.4rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .hero { padding-top: 130px; min-height: auto; }
  #mainNav .navbar-collapse {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-top: 0.8rem;
    box-shadow: var(--shadow-md);
  }
  #mainNav .nav-item .btn { margin-top: 0.6rem; }
}

@media (max-width: 575.98px) {
  .sec { padding: 76px 0; }
  .brand-logo { height: 38px; }
  .cta-band { padding: 90px 0; }
}
