/* ============================================================
   A1LPay shared header + footer (website and application pages).
   Values copied from assets/styles.css (.container, .nav, .btn, .footer).
   Own class names (sn-*, sf-*, sbtn) so it never clashes with styles.css or app.css.
   ============================================================ */
.sn, .sf { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.sn *, .sf * { box-sizing: border-box; }
.sn-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Logo */
.sn-logo { display: flex; align-items: center; text-decoration: none; }
.sn-logo img { height: 52px; width: auto; max-width: none; display: block; }
.a1l-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 1.35rem; color: #0B0F1F; text-decoration: none; letter-spacing: -.01em; line-height: 1; }
.a1l-badge b { background: #0f4c81; color: #fff; border-radius: 7px; padding: 5px 8px; font-size: .95em; font-weight: 700; }

/* Buttons (= .btn / .btn--sm / --primary / --secondary / --ghost) */
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font: 500 14px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.005em; border: 1px solid transparent; text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease; }
.sbtn--primary { background: #013985; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 18px rgba(1, 57, 133, .28); }
.sbtn--primary:hover { background: #002A65; transform: translateY(-1px); }
.sbtn--red { background: #CC0F10; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 18px rgba(204, 15, 16, .28); }
.sbtn--red:hover { background: #9E0B0C; transform: translateY(-1px); }
.sbtn--ghost { background: #fff; color: #0B0F1F; border-color: #E7E5DF; }
.sbtn--ghost:hover { border-color: #5A6072; }

/* Header */
.sn { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 248, 0.82); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid #EFEDE7; }
.sn-in { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 32px; }
.sn-links { display: flex; gap: 32px; font-size: 14.5px; color: #2A2F40; }
.sn-links a { color: inherit; text-decoration: none; transition: color .15s ease; }
.sn-links a:hover { color: #013985; }
.sn-cta { display: flex; align-items: center; gap: 18px; }
.sn-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid #E7E5DF; border-radius: 10px; cursor: pointer; }
.sn-burger span { display: block; height: 2px; width: 100%; background: #0B0F1F; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.sn-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sn-burger.is-open span:nth-child(2) { opacity: 0; }
.sn-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sn-menu { border-top: 1px solid #EFEDE7; background: #FBFAF8; }
.sn-menu nav { display: flex; flex-direction: column; padding: 12px 22px 4px; }
.sn-menu a { padding: 14px 4px; font-size: 17px; font-weight: 500; color: #0B0F1F; text-decoration: none; border-bottom: 1px solid #EFEDE7; }
.sn-menu a:last-child { border-bottom: none; }
@media (max-width: 1140px) { .sn-links a:nth-child(5), .sn-links a:nth-child(6) { display: none; } .sn-burger { display: flex; } }
@media (max-width: 1000px) { .sn-links { display: none; } .sn-in { gap: 16px; } }
@media (max-width: 560px) {
  .sn-in { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 12px; }
  .sn-logo { order: 1; } .sn-burger { order: 2; margin-left: auto; }
  .sn-cta { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 10px; } .sn-cta .sbtn { flex: 1 1 auto; }
}
@media (max-width: 720px) { .sn-wrap { padding: 0 22px; } .sn-logo img { height: 38px; } }

/* Footer */
.sf { background: #F4F2EC; padding: 72px 0 32px; border-top: 1px solid #E7E5DF; }
.sf-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 64px; margin-bottom: 56px; }
.sf-brand a { display: inline-block; text-decoration: none; margin-bottom: 16px; }
.sf-brand img { height: 32px; width: auto; max-width: none; display: block; }
.sf-brand .a1l-badge { font-size: 1.15rem; }
.sf-brand p { margin: 0; font-size: 14.5px; color: #5A6072; max-width: 320px; line-height: 1.55; }
.sf-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sf-cols h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #2A2F40; }
.sf-cols a { display: block; font-size: 14px; color: #5A6072; padding: 5px 0; text-decoration: none; transition: color .15s ease; }
.sf-cols a:hover { color: #013985; }
.sf-bar { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid #E7E5DF; font-size: 12.5px; color: #8A8F9E; }
@media (max-width: 1080px) { .sf-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 720px) { .sf-cols { grid-template-columns: repeat(2, 1fr); } }

/* Website form additions (contact form errors, honeypot) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__err { color: #b42318; font-size: 12.5px; font-weight: 500; }
.contact-form__error { padding: 14px 18px; border-radius: 12px; background: #fdecea; border: 1px solid #f5c2bd; color: #b42318; font-size: 14.5px; }
.contact-form__success a { color: #013985; font-weight: 500; }
