/*
 * BNK Automation / Alternatives
 * Final scoped stylesheet for ACF v3 templates
 * Replace the old bnk-automation-pages.css with this file.
 */

.bnk-automation-page {
  --bnk-blue: #008dca;
  --bnk-gold: #e2ac20;
  --bnk-ink: #231f20;
  --bnk-muted: #5f5f5f;
  --bnk-line: #e1e1e1;
  --bnk-soft: #f2f2f2;
  color: var(--bnk-ink);
  font-size: 16px;
  line-height: 1.55;
  overflow: hidden;
}

.bnk-automation-page *,
.bnk-automation-page *::before,
.bnk-automation-page *::after { box-sizing: border-box; }

.bnk-automation-page .wrap {
  width: min(1152px, calc(100% - 48px));
  margin-inline: auto;
}

.bnk-automation-page .section { padding: 56px 0; }
.bnk-automation-page .section + .section { border-top: 1px solid var(--bnk-line); }

.bnk-automation-page h1,
.bnk-automation-page h2,
.bnk-automation-page h3 {
  color: var(--bnk-ink);
  font-weight: 400;
  line-height: 1.16;
  padding: 0;
}

.bnk-automation-page h1 { font-size: 34px; margin: 0 0 24px; }
.bnk-automation-page h2 { font-size: 29px; margin: 0 0 18px; }
.bnk-automation-page h3 { font-size: 22px; margin: 0 0 12px; }

.bnk-automation-page p { margin: 0 0 16px; }
.bnk-automation-page a { color: var(--bnk-blue); text-decoration: none; }
.bnk-automation-page a:hover { text-decoration: underline; }

.bnk-automation-page .center { text-align: center; }
.bnk-automation-page .muted { color: var(--bnk-muted); }
.bnk-automation-page .small { font-size: 14px; }

.bnk-automation-page .section-heading {
  text-align: center;
  margin: 0 0 30px;
}
.bnk-automation-page .section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #999;
  margin: 22px auto 0;
}

.bnk-automation-page .lead {
  max-width: 1000px;
  margin: 0 auto 25px;
  font-size: 18px;
  line-height: 1.55;
}

.bnk-automation-page .lead + .small {
  max-width: 1050px;
  margin: 0 auto;
}

.bnk-automation-page .actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-top: 26px;
}

.bnk-automation-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 47px;
  padding: 12px 25px;
  border: 0;
  border-radius: 7px;
  background: var(--bnk-gold);
  color: #111 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: filter .15s ease, transform .15s ease;
}
.bnk-automation-page .button:hover { filter: brightness(.97); transform: translateY(-1px); }

.bnk-automation-page .jump-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--bnk-line);
  border-bottom: 1px solid var(--bnk-line);
}
.bnk-automation-page .jump-links a { font-size: 15px; }

.bnk-automation-page [id] { scroll-margin-top: 95px; }

/* Object cards */
.bnk-automation-page .sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.bnk-automation-page .sector {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bnk-line);
  border-radius: 8px;
  background: #fff;
}

.bnk-automation-page .photo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  aspect-ratio: 2.4;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px dashed #bec7ca;
  background: #f2f4f5;
  color: #727d83;
  text-align: center;
  font-size: 13px;
}

.bnk-automation-page .photo-slot > span { padding: 22px; }
.bnk-automation-page .photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.bnk-automation-page .sector-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.bnk-automation-page .sector h3 { font-size: 23px; }
.bnk-automation-page .sector p { color: #555; font-size: 15px; }
.bnk-automation-page .sector .audience {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #e7e7e7;
  color: #666;
  font-size: 13px;
}
.bnk-automation-page .sector .text-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* Grey bands */
.bnk-automation-page .band {
  padding: 42px 0;
  background: var(--bnk-soft);
}
.bnk-automation-page .band h2 { margin: 0 0 10px; }
.bnk-automation-page .band .wrap > p { max-width: 1030px; }
.bnk-automation-page .band .small { margin-top: 18px; }

/* Two columns */
.bnk-automation-page .split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}
.bnk-automation-page .split > div,
.bnk-automation-page .split > aside { min-width: 0; }
.bnk-automation-page .split h2 { margin-bottom: 16px; }

/* Lists */
.bnk-automation-page .check-list,
.bnk-automation-page .check-list li {
  list-style: none !important;
}
.bnk-automation-page .check-list {
  display: grid;
  gap: 14px;
  margin: 15px 0 20px !important;
  padding: 0 !important;
}
.bnk-automation-page .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
}
.bnk-automation-page .check-list li::marker { content: "" !important; }
.bnk-automation-page .check-icon,
.bnk-automation-page .doc-icon {
  flex: 0 0 auto;
  color: var(--bnk-blue);
  font-weight: 600;
}

/* Process */
.bnk-automation-page .process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.bnk-automation-page .process article {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid #b8b8b8;
}
.bnk-automation-page .process .number {
  margin-bottom: 12px;
  color: var(--bnk-blue);
  font-size: 27px;
  font-weight: 400;
}
.bnk-automation-page .process h3 { font-size: 21px; }
.bnk-automation-page .process p {
  margin-bottom: 0;
  color: #555;
  font-size: 15px;
}

/* Documents */
.bnk-automation-page .doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 48px;
  margin-top: 28px;
}
.bnk-automation-page .doc-list > div,
.bnk-automation-page .doc-list .doc-item {
  display: flex;
  gap: 13px;
  min-width: 0;
}
.bnk-automation-page .doc-list strong { display: block; font-weight: 600; }
.bnk-automation-page .doc-list p {
  margin: 5px 0 0;
  color: #666;
  font-size: 14px;
}

.bnk-automation-page .fineprint {
  margin: 25px 0 0;
  color: #666;
  font-size: 14px;
}

/* FAQ */
.bnk-automation-page .faq details {
  margin: 12px 0;
  padding: 17px 20px;
  border: 1px solid var(--bnk-line);
  border-radius: 5px;
  background: #fff;
}
.bnk-automation-page .faq summary {
  cursor: pointer;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.bnk-automation-page .faq details p {
  margin: 15px 0 0;
  color: #555;
  font-size: 15px;
}

/* CTA */
.bnk-automation-page .cta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.bnk-automation-page .cta-line > div { min-width: 0; }
.bnk-automation-page .cta-line h2 { margin: 0 0 10px; }
.bnk-automation-page .cta-line p { max-width: 760px; margin: 0; }
.bnk-automation-page .cta-line .button { flex: 0 0 auto; }

/* Alternatives table */
.bnk-automation-page .comparison-scroll {
  width: 100%;
  overflow-x: auto;
}
.bnk-automation-page .comparison {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
}
.bnk-automation-page .comparison th,
.bnk-automation-page .comparison td {
  padding: 19px 18px;
  border-bottom: 1px solid var(--bnk-line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
}
.bnk-automation-page .comparison th {
  background: var(--bnk-soft);
  font-weight: 600;
}
.bnk-automation-page .comparison th:first-child,
.bnk-automation-page .comparison td:first-child {
  width: 25%;
  font-weight: 600;
}
.bnk-automation-page .comparison th:nth-child(2),
.bnk-automation-page .comparison td:nth-child(2) { width: 39%; }

/* Keep Divi/theme defaults from leaking into content */
.bnk-automation-page ul { padding-bottom: 0; }
.bnk-automation-page p:last-child { padding-bottom: 0; }

/* Tablet */
@media (max-width: 950px) {
  .bnk-automation-page .wrap { width: min(100% - 40px, 1152px); }
  .bnk-automation-page .section { padding: 48px 0; }
  .bnk-automation-page .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bnk-automation-page .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .bnk-automation-page .split { gap: 40px; }
}

/* Mobile */
@media (max-width: 600px) {
  .bnk-automation-page { font-size: 15px; }
  .bnk-automation-page .wrap { width: calc(100% - 36px); }
  .bnk-automation-page .section { padding: 38px 0; }
  .bnk-automation-page .band { padding: 34px 0; }

  .bnk-automation-page h1 { font-size: 29px; }
  .bnk-automation-page h2 { font-size: 26px; }
  .bnk-automation-page h3 { font-size: 21px; }

  .bnk-automation-page .section-heading { margin-bottom: 25px; }
  .bnk-automation-page .section-heading::after { margin-top: 18px; }
  .bnk-automation-page .lead { font-size: 17px; }

  .bnk-automation-page .actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-top: 23px;
  }
  .bnk-automation-page .actions .button { width: 100%; }
  .bnk-automation-page .jump-links {
    justify-content: flex-start;
    gap: 11px 20px;
    margin-top: 26px;
    font-size: 14px;
  }

  .bnk-automation-page .sector-grid { grid-template-columns: 1fr; gap: 20px; }
  .bnk-automation-page .photo-slot { min-height: 120px; aspect-ratio: 2.6; }
  .bnk-automation-page .photo-slot img { min-height: 120px; }
  .bnk-automation-page .sector-content { padding: 22px; }

  .bnk-automation-page .split { grid-template-columns: 1fr; gap: 34px; }
  .bnk-automation-page .process { grid-template-columns: 1fr; gap: 24px; margin-top: 25px; }
  .bnk-automation-page .doc-list { grid-template-columns: 1fr; gap: 20px; }

  .bnk-automation-page .cta-line {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }
  .bnk-automation-page .cta-line .button { width: 100%; }

  .bnk-automation-page .comparison { margin-top: 22px; table-layout: auto; }
  .bnk-automation-page .comparison thead { display: none; }
  .bnk-automation-page .comparison,
  .bnk-automation-page .comparison tbody,
  .bnk-automation-page .comparison tr,
  .bnk-automation-page .comparison td { display: block; width: 100% !important; }
  .bnk-automation-page .comparison tr {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
  }
  .bnk-automation-page .comparison td {
    padding: 6px 0;
    border: 0;
  }
  .bnk-automation-page .comparison td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #777;
    font-size: 12px;
    font-weight: 400;
  }

  .bnk-automation-page .faq details { padding: 15px 16px; }
}
