/* Industries chapters. Loaded after magtek-cards.css.
   Same content system, alternating composition, so eight industries do not read as one card stamped eight times. */

.industry-chapter {
  padding: 4.8rem 0;
}

.industry-chapter .industry-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.industry-chapter .industry-card:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.industry-chapter .industry-card-container {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 4.8rem;
  align-items: center;
  min-height: 0;
}

.industry-chapter--flip .industry-card-container {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
}

.industry-chapter .industry-card-image {
  min-height: 0;
  align-self: center;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e8eef3;
}

.industry-chapter--flip .industry-card-image {
  order: 2;
}

.industry-chapter .industry-card-image::before {
  display: none;
}

.industry-chapter .industry-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

/* Airline photo is a wide cabin shot with the white tDynamo on the left. */
#airline .industry-card-image img {
  object-position: left center;
}

.industry-chapter .industry-card:hover .industry-card-image img {
  transform: none;
  opacity: 1;
}

.industry-chapter .industry-card-content {
  padding: 0;
  gap: 2.4rem;
}

.industry-chapter .industry-card-header {
  margin: 0;
  padding: 0;
  border-bottom: 0;
  text-align: left;
}

/* Chapter header follows the homepage section header: same title scale,
   80×4 red mark, and lead size. The mark sits on the left because this
   title lives in a column beside the photo. */
.industry-chapter .industry-card-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 24px;
  font-size: clamp(28px, 3.2vw, 45px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #263c50;
}

.industry-chapter .industry-card-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--magtek-red, #d21242) 0%, var(--magtek-red-dark, #b01035) 100%);
}

.industry-chapter .industry-card-subtitle {
  margin: 0;
  max-width: none;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: #4a5568;
}

.industry-chapter .industry-card-features h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.industry-chapter .industry-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem 2.8rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.industry-chapter .industry-benefit-item,
.industry-chapter .industry-benefit-item:hover {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.industry-chapter .industry-benefit-icon,
.industry-chapter .industry-benefit-item:hover .industry-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 0.1rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #263c50 0%, #1e293b 100%);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(38, 60, 80, 0.15);
  transform: none;
}

.industry-chapter .industry-benefit-text h4 {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: 700;
  color: #263c50;
}

.industry-chapter .industry-benefit-text h4::after {
  content: none;
}

.industry-chapter .industry-benefit-text p {
  display: block;
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.5;
  font-weight: 400;
  color: #4b5563;
}

@property --linger {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.industry-chapter-more {
  position: relative;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.5s ease;
}

/* Clock ring sits on the arrow button and sweeps from 12 o'clock. */
.industry-chapter-more__progress {
  --linger: 0;
  position: absolute;
  top: 50%;
  right: 1.4rem;
  z-index: 2;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  background: conic-gradient(from -90deg, #d21242 calc(var(--linger) * 360deg), rgba(210, 18, 66, 0.2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  transition: opacity 0.28s ease;
}

.industry-chapter-more.is-lingering .industry-chapter-more__progress {
  opacity: 1;
}

.industry-chapter-more[open] .industry-chapter-more__progress {
  opacity: 0;
}

.industry-chapter-more[open] {
  border-color: rgba(210, 18, 66, 0.24);
  box-shadow: 0 4px 18px rgba(38, 60, 80, 0.07);
}

.industry-chapter-more summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 44px;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: #263c50;
}

.industry-chapter-more summary::-webkit-details-marker {
  display: none;
}

.industry-chapter-more summary::before {
  content: none;
}

.industry-chapter-more summary::after {
  content: "\25BE";
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(210, 18, 66, 0.08);
  color: #d21242;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease;
}

.industry-chapter-more[open] summary {
  color: #d21242;
  border-bottom: 1px solid #e2e8f0;
}

.industry-chapter-more[open] summary::after {
  transform: rotate(180deg);
  background: rgba(210, 18, 66, 0.14);
}

.industry-chapter-more summary:hover {
  background: rgba(210, 18, 66, 0.04);
}

.industry-chapter-more summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(210, 18, 66, 0.3);
}

.industry-chapter-more__label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: inherit;
}

.industry-chapter-more__label > i {
  color: #d21242;
  font-size: 1.5rem;
}

.industry-chapter-more__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: rgba(38, 60, 80, 0.08);
  color: #263c50;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.industry-chapter-more[open] .industry-chapter-more__count {
  background: rgba(210, 18, 66, 0.1);
  color: #d21242;
}

.industry-chapter-more .checkmark-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2.4rem;
  margin: 0;
  padding: 1.6rem 1.8rem 1.8rem;
}

.industry-chapter-more .checkmark-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  position: static;
  margin: 0;
  padding: 0;
  font-size: 1.55rem;
  line-height: 1.45;
  color: #263c50;
}

.industry-chapter-more .checkmark-list-icon {
  position: static;
  display: inline-flex;
  margin-top: 0.15rem;
  color: #d21242;
  font-size: 1.4rem;
  line-height: 1;
}

.industry-chapter-more .checkmark-list-content {
  font-weight: 500;
}

.industry-chapter-more.is-revealing .checkmark-list-item {
  animation: industry-capability-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.industry-chapter-more.is-revealing .checkmark-list-item:nth-child(2) { animation-delay: 0.04s; }
.industry-chapter-more.is-revealing .checkmark-list-item:nth-child(3) { animation-delay: 0.08s; }
.industry-chapter-more.is-revealing .checkmark-list-item:nth-child(4) { animation-delay: 0.12s; }
.industry-chapter-more.is-revealing .checkmark-list-item:nth-child(5) { animation-delay: 0.16s; }
.industry-chapter-more.is-revealing .checkmark-list-item:nth-child(n + 6) { animation-delay: 0.2s; }

@keyframes industry-capability-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .industry-chapter-more,
  .industry-chapter-more__progress,
  .industry-chapter-more.is-revealing .checkmark-list-item {
    animation: none;
    transition: none;
  }
}

.industry-chapter .industry-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 0.8rem;
  padding-top: 0;
  border-top: 0;
}

.industry-chapter .industry-card-actions .btn-primary,
.industry-chapter .industry-card-actions .btn-secondary,
#banking.industry-chapter .industry-card-actions .btn-primary,
#banking.industry-chapter .industry-card-actions .btn-secondary {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  height: var(--btn-height-sm) !important;
  min-height: var(--btn-height-sm) !important;
  padding: 0 var(--btn-padding-x-sm) !important;
  font-size: var(--btn-font-size-sm) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 1024px) {
  .industry-chapter .industry-card-container,
  .industry-chapter--flip .industry-card-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .industry-chapter .industry-card-image,
  .industry-chapter--flip .industry-card-image {
    order: -1;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .industry-chapter .industry-card-image img {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .industry-chapter {
    padding: 3.2rem 0;
  }

  .industry-chapter .industry-benefits,
  .industry-chapter-more .checkmark-list {
    grid-template-columns: 1fr;
  }
}

/* Contact form submit matches the page's small MagTek buttons. */
#contact-us .form-actions {
  align-items: center;
}

#contact-us .form-submit-button.btn-primary {
  align-self: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  height: var(--btn-height-sm) !important;
  min-height: var(--btn-height-sm) !important;
  padding: 0 var(--btn-padding-x-sm) !important;
  font-size: var(--btn-font-size-sm) !important;
  border-radius: var(--btn-border-radius-sm) !important;
  line-height: 1 !important;
}

/* Overview cards follow the Magensa benefit tile: navy icon, quiet surface, equal height. */
.industries-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

.industries-overview-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 2.2rem 2rem 2.4rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.industries-overview-card:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.industries-overview-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.6rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #263c50 0%, #1e293b 100%);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 2px 8px rgba(38, 60, 80, 0.15);
  flex-shrink: 0;
}

.industries-overview-card h3 {
  margin: 0 0 0.8rem;
  color: #263c50;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.industries-overview-card p {
  margin: 0;
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .industries-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .industries-overview-card {
    transition: none;
  }

  .industries-overview-card:hover {
    transform: none;
  }
}

/* Trusted section is a normal MagTek header plus cards. Figures live in the band above it. */
#overview.section-bg-white {
  padding-top: 4.8rem;
  padding-bottom: 4.8rem;
}

#overview .industries-section-header {
  margin-bottom: 3.2rem;
}

/* Homepage proof strip, copied for this page only. Sits under the nav. */
.hp-proof-strip {
  --hp-ink: #263c50;
  --hp-ink-muted: #4a5568;
  --hp-red: #d21242;
  --hp-font-proof-body: 14px;
  position: relative;
  margin: 0;
  padding: 40px 0 36px;
  background: #f4f6f8;
  border-top: 1px solid rgb(38 60 80 / 0.08);
  border-bottom: 1px solid rgb(38 60 80 / 0.08);
}

#mdl.promo-two-col {
  padding-top: 48px;
}

.hp-proof-strip .hp-container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

.hp-proof-strip .hp-proof-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-proof-strip .hp-proof-item {
  margin: 0;
  padding: 2px clamp(22px, 3vw, 48px);
  background: transparent;
  border: 0;
  border-left: 1px solid rgb(38 60 80 / 0.1);
  border-radius: 0;
  box-shadow: none;
}

.hp-proof-strip .hp-proof-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.hp-proof-strip .hp-proof-item:last-child {
  padding-right: 0;
}

.hp-proof-strip .hp-proof-item__value {
  position: relative;
  margin: 0 0 10px;
  padding-top: 16px;
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
  font-variant-numeric: tabular-nums;
}

.hp-proof-strip .hp-proof-item__value::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 3px;
  background: var(--hp-red);
}

.hp-proof-strip .hp-proof-item__desc {
  margin: 0;
  max-width: 34ch;
  font-size: var(--hp-font-proof-body);
  line-height: 1.55;
  color: var(--hp-ink-muted);
}

@media (min-width: 992px) {
  .hp-proof-strip .hp-proof-item {
    padding: 2px clamp(16px, 2.2vw, 32px);
  }

  .hp-proof-strip .hp-proof-item:first-child {
    padding-left: 0;
  }

  .hp-proof-strip .hp-proof-item:last-child {
    padding-right: 0;
  }
}

@media (max-width: 991px) {
  .hp-proof-strip .hp-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
  }

  .hp-proof-strip .hp-proof-item {
    padding: 0 clamp(20px, 3vw, 40px);
    border-left: 1px solid rgb(38 60 80 / 0.1);
  }

  .hp-proof-strip .hp-proof-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .hp-proof-strip .hp-proof-item:nth-child(even) {
    padding-right: 0;
  }
}

@media (max-width: 575px) {
  .hp-proof-strip .hp-proof-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .hp-proof-strip .hp-proof-item {
    padding: 18px 0;
    border-left: 0;
    border-top: 1px solid rgb(38 60 80 / 0.1);
  }

  .hp-proof-strip .hp-proof-item:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

/* Industries lockup, sized for the sticky nav. */
#servicesNav .services-nav-brand img {
  height: 46px;
}

@media (min-width: 1024px) and (max-width: 1199px) {
  #servicesNav .services-nav-brand img {
    height: 42px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #servicesNav .services-nav-brand img {
    height: 40px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  #servicesNav .services-nav-brand img {
    height: 36px;
  }
}

@media (max-width: 479px) {
  #servicesNav .services-nav-brand img {
    height: 32px;
  }
}
