/* =========================================================
   FORMLINE SYSTEMS PAGE
   File: /site/css/systems.css
   ========================================================= */

.fl-systems-page,
.fl-systems-page * {
  box-sizing: border-box;
}

.fl-systems-page {
  background: #ffffff;
  color: #202428;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---------- Hero ---------- */

.fl-systems-hero {
  background: #ffffff;
  border-bottom: 1px solid #e4e8eb;
}

.fl-systems-hero-inner {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 74px 40px 64px 40px;
}

.fl-systems-kicker {
  margin: 0 0 16px 0;
  color: #0d2c54;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fl-systems-title {
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  color: #111418 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(42px, 5vw, 72px) !important;
  line-height: 0.98 !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em !important;
}

.fl-systems-intro {
  max-width: 780px;
  margin: 0;
  color: #3b444b;
  font-size: 19px;
  line-height: 1.65;
}

.fl-systems-hero-card {
  padding: 32px;
  background: #f4f6f7;
  border: 1px solid #d8dde0;
  border-radius: 4px;
}

.fl-systems-hero-card h2 {
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  color: #111418 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.fl-systems-hero-card p {
  margin: 0;
  color: #3b444b;
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- System index cards ---------- */

.fl-systems-index {
  background: #f4f6f7;
  border-bottom: 1px solid #e4e8eb;
}

.fl-systems-index-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 46px 40px;
}

.fl-systems-index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.fl-systems-index-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  padding: 26px 20px;
  background: #ffffff;
  border: 1px solid #d8dde0;
  border-radius: 4px;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fl-systems-index-card:hover {
  border-color: #aeb8c2;
  box-shadow: 0 12px 28px rgba(17, 20, 24, 0.08);
  transform: translateY(-2px);
}

.fl-system-icon {
  display: flex;
  justify-content: center;
  min-height: 68px;
  margin-bottom: 22px;
}

.fl-system-icon svg {
  width: 92px;
  height: 68px;
}

.fl-systems-code {
  margin: 0 0 8px 0;
  color: #111418;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.fl-systems-line {
  width: 34px;
  height: 2px;
  margin: 0 auto 14px auto;
  background: #0d2c54;
}

.fl-systems-index-card p {
  margin: 0;
  color: #3b444b;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

/* ---------- Standard sections ---------- */

.fl-systems-section {
  border-bottom: 1px solid #e4e8eb;
  background: #ffffff;
  scroll-margin-top: 110px;
}

.fl-systems-section:nth-child(even) {
  background: #f8f9fa;
}

.fl-systems-section-inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  gap: 60px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 40px;
}

.fl-systems-visual {
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f7;
  border: 1px solid #d8dde0;
  border-radius: 4px;
}

.fl-systems-visual svg {
  width: 90%;
  max-width: 420px;
  height: auto;
}

.fl-systems-label {
  margin: 0 0 14px 0;
  color: #0d2c54;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.fl-systems-heading {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  color: #111418 !important;
  font-size: clamp(30px, 3vw, 44px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

.fl-systems-copy p {
  margin: 0 0 16px 0;
  color: #3b444b;
  font-size: 16px;
  line-height: 1.7;
}

.fl-systems-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.fl-systems-feature {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #d8dde0;
  border-radius: 4px;
  color: #202428;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.fl-systems-section:nth-child(even) .fl-systems-feature {
  background: #ffffff;
}

.fl-systems-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.fl-systems-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 22px;
  color: #ffffff !important;
  background: #0d2c54;
  border: 1px solid #0d2c54;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(13, 44, 84, 0.16);
}

.fl-systems-btn:hover {
  background: #123b70;
  border-color: #123b70;
}

.fl-systems-btn-secondary {
  color: #0d2c54 !important;
  background: #ffffff;
  border-color: #aeb8c2;
  box-shadow: none;
}

.fl-systems-btn-secondary:hover {
  background: #f4f6f7;
  border-color: #0d2c54;
}

/* ---------- Compatibility strip ---------- */

.fl-systems-compat {
  background: #0d2c54;
  color: #ffffff;
}

.fl-systems-compat-inner {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.75fr);
  gap: 50px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 62px 40px;
}

.fl-systems-compat h2 {
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: clamp(30px, 3vw, 44px) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

.fl-systems-compat p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.7;
}

.fl-systems-compat-list {
  display: grid;
  gap: 10px;
}

.fl-systems-compat-item {
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .fl-systems-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fl-systems-hero-inner,
  .fl-systems-section-inner,
  .fl-systems-compat-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .fl-systems-hero-inner,
  .fl-systems-index-inner,
  .fl-systems-section-inner,
  .fl-systems-compat-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .fl-systems-index-grid,
  .fl-systems-feature-list {
    grid-template-columns: 1fr;
  }
}