/* ==========================================================================
   Mi Wallet Limited — site styles
   Built on Bootstrap 5.3: Bootstrap's own fonts, colours and components.
   This file only adds what Bootstrap has no component for (timeline,
   numbered steps, image placeholders, logo grid) plus small spacing tweaks.
   ========================================================================== */

/* ---------- Base ---------- */
html { scroll-padding-top: 80px; }
body { font-size: 1.0625rem; line-height: 1.65; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.75rem; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Top bar ---------- */
.topbar { font-size: .875rem; padding: .45rem 0; color: rgba(255,255,255,.7); }
.topbar-list { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.topbar-list li { display: flex; align-items: center; gap: .45rem; }
.topbar-list .bi { color: var(--bs-warning); }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Main navigation ---------- */
.site-nav { padding: .85rem 0; border-bottom: 1px solid var(--bs-border-color); transition: box-shadow .2s ease, padding .2s ease; }
.site-nav.is-scrolled { padding: .5rem 0; box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.08); }
.site-nav .navbar-brand { margin-right: 1.5rem; }
.site-nav .navbar-brand img { height: 42px; width: auto; }
.site-nav .navbar-toggler { border: 0; padding: .4rem .5rem; }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .25); }

.site-nav .navbar-nav { gap: .35rem; }
.site-nav .nav-link {
  position: relative;
  font-weight: 500;
  color: var(--bs-emphasis-color);
  padding: .55rem .9rem !important;
  white-space: nowrap;
  border-radius: var(--bs-border-radius);
  transition: background-color .15s ease, color .15s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link.show { color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .07); }
.site-nav .nav-link.active { color: var(--bs-primary); font-weight: 600; }
.site-nav .dropdown-toggle::after { vertical-align: .15em; margin-left: .4em; transition: transform .2s ease; }
.site-nav .dropdown-toggle.show::after { transform: rotate(180deg); }

.nav-actions { display: flex; gap: .6rem; }
.nav-actions .btn { padding: .55rem 1.15rem; font-weight: 600; white-space: nowrap; }

/* Products mega menu */
.mega-menu { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); padding: .75rem; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.12); }
.mega-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .7rem .75rem; border-radius: var(--bs-border-radius);
  text-decoration: none; color: var(--bs-body-color);
  transition: background-color .15s ease;
}
.mega-item:hover, .mega-item:focus-visible { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.mega-item.active { background: rgba(var(--bs-primary-rgb), .08); }
.mega-icon {
  flex: 0 0 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  border-radius: var(--bs-border-radius); background: rgba(var(--bs-primary-rgb), .1);
  color: var(--bs-primary); font-size: 1.2rem;
}
.mega-title { display: block; font-weight: 600; color: var(--bs-emphasis-color); line-height: 1.3; }
.mega-desc { display: block; font-size: .875rem; color: var(--bs-secondary-color); line-height: 1.4; margin-top: .15rem; }
.mega-feature {
  flex-direction: column; gap: .6rem; padding: 1.25rem;
  border-radius: var(--bs-border-radius); background: var(--bs-dark); color: rgba(255,255,255,.8);
}
.mega-feature-title { font-weight: 700; color: #fff; font-size: 1.05rem; margin: 0; }
.mega-feature-text { font-size: .9rem; margin: 0; line-height: 1.5; }

@media (min-width: 1200px) {
  .site-nav .nav-link.active:not(.dropdown-toggle)::after {
    content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .2rem;
    height: 2px; border-radius: 2px; background: var(--bs-primary);
  }
  .mega-menu { width: 640px; margin-top: .75rem !important; }
  .mega-grid { grid-template-columns: 1.35fr 1fr; }
}

/* Mobile: slide-in menu */
@media (max-width: 1199.98px) {
  .site-nav .offcanvas { max-width: 86vw; }
  .site-nav .offcanvas-header { border-bottom: 1px solid var(--bs-border-color); }
  .site-nav .offcanvas-body { display: flex; flex-direction: column; gap: 1.25rem; }
  .site-nav .navbar-nav { gap: .15rem; }
  .site-nav .nav-link { font-size: 1.05rem; padding: .75rem .9rem !important; }
  .mega-menu { border: 0; box-shadow: none; padding: 0 0 0 .5rem; background: transparent; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; padding: .75rem 1rem; }
  .offcanvas-contact { list-style: none; padding: 1rem 0 0; margin: 0; border-top: 1px solid var(--bs-border-color); font-size: .95rem; }
  .offcanvas-contact li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; }
  .offcanvas-contact .bi { color: var(--bs-primary); }
  .offcanvas-contact a { text-decoration: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 5rem 0; }
.hero h1 { font-weight: 700; }
.hero .lead { color: rgba(var(--bs-white-rgb), .8); max-width: 46ch; margin-top: 1rem; }
.hero-page { padding: 4rem 0; }

/* ---------- Recognition strip ---------- */
.recognition-title { font-size: 1rem; font-weight: 600; color: var(--bs-warning); margin-bottom: .75rem; }
.recognition-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem 2rem; }
.recognition-list li { font-size: .95rem; color: rgba(var(--bs-white-rgb), .7); }
.recognition-list strong { display: block; color: #fff; }
.recognition-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  background: #fff;
  border-radius: var(--bs-border-radius);
  padding: .6rem .9rem;
  margin-bottom: .75rem;
}
.recognition-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Sections ---------- */
.band-head { max-width: 70ch; margin-bottom: 2.5rem; }
.band-head h2 { font-weight: 700; margin-bottom: .5rem; }
.band-head p { margin-bottom: 0; font-size: 1.25rem; font-weight: 300; color: var(--bs-secondary-color); }
.band-foot { max-width: 70ch; margin-top: 2.5rem; margin-bottom: 0; color: var(--bs-secondary-color); }
section h2 { font-weight: 700; }

.band-dark p, .band-dark li { color: rgba(var(--bs-white-rgb), .78); }
.band-dark .card p, .band-dark .card li { color: var(--bs-secondary-color); }
.band-dark .card { color: var(--bs-body-color); }
.band-dark a:not(.btn) { color: #fff; }
.band-dark .card a:not(.btn) { color: var(--bs-link-color); }
.band-dark .band-head p { color: rgba(var(--bs-white-rgb), .78); }

.product-row + .product-row { margin-top: 4rem; }
.product-name { font-weight: 700; margin-bottom: 1rem; }

.feature-inventory { border-top: 4px solid var(--bs-warning); }
.point-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem; }
.point-list li { border-left: 3px solid var(--bs-warning); padding-left: 1rem; }
.point-list h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.point-list p { margin-bottom: 0; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; }
.detail-grid h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.detail-grid p { margin-bottom: 0; color: var(--bs-secondary-color); }

.work .client { font-weight: 600; color: var(--bs-primary); margin-bottom: .25rem; }
.work h3, .pillar h3 { font-size: 1.25rem; }
.work p:last-child, .pillar p:last-child { margin-bottom: 0; }
.pillar { border-top: 4px solid var(--bs-primary) !important; }

/* ---------- Numbered steps (real sequences only) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 2rem 4rem; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.6rem; height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; background: var(--bs-primary);
  border-radius: 50%; z-index: 1;
}
.steps > li::after {
  content: ""; position: absolute; left: calc(1.3rem - 1px); top: 2.6rem; bottom: .2rem;
  width: 2px; background: var(--bs-border-color);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.steps p:last-child { margin-bottom: 0; }
.band-dark .steps > li::before { background: var(--bs-warning); color: var(--bs-dark); }
.band-dark .steps > li::after { background: rgba(255,255,255,.2); }

/* ---------- Journey timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 2rem; position: relative; padding-bottom: 2.25rem; }
.timeline > li::before {
  content: ""; position: absolute; left: 8.5rem; top: .45rem;
  width: 14px; height: 14px; transform: translateX(-50%);
  background: var(--bs-primary); border: 3px solid var(--bs-body-bg); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bs-primary); z-index: 1;
}
.timeline > li::after {
  content: ""; position: absolute; left: 8.5rem; top: 1.2rem; bottom: -.3rem;
  width: 2px; transform: translateX(-50%); background: var(--bs-border-color);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::after { display: none; }
.timeline .when { font-weight: 700; font-size: 1.2rem; color: var(--bs-primary); text-align: right; }
.timeline .what { padding-left: 1rem; }
.timeline h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.timeline p { margin-bottom: 0; color: var(--bs-secondary-color); }
.bg-light .timeline > li::before { border-color: var(--bs-light); }
@media (max-width: 575.98px) {
  .timeline > li { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline > li::before, .timeline > li::after { left: .45rem; }
  .timeline .when { text-align: left; }
  .timeline .what { padding-left: 0; }
}

/* ---------- Inline text placeholder (years still to confirm) ---------- */
.ph-inline {
  display: inline-block; border: 1.5px dashed #997404; background: var(--bs-warning-bg-subtle);
  color: #664d03; padding: 0 .4rem; border-radius: var(--bs-border-radius-sm); font-size: .9em;
}

/* ---------- Photos and screenshots ----------
   Every image is shown in a fixed frame and cropped to fill it, whatever the
   size of the original file, so images line up across a section.
   .shot          4:3 frame (default: heroes, product rows, step columns)
   .shot-square   1:1 frame (side-by-side pairs)
   .shot-wide     21:9 frame (full-width banners, map)                       */
.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--bs-border-radius-xl);
  background: var(--bs-tertiary-bg);
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .12);
}
.shot-square { aspect-ratio: 1 / 1; }
.shot-wide { aspect-ratio: 21 / 9; }
.hero .shot { box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .5); outline: 1px solid rgba(255, 255, 255, .08); }
.bg-dark .shot { box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .45); }

/* Image columns beside long step lists: equal spacing, and on desktop the
   images stay in view while the reader scrolls through the steps */
.media-stack { display: flex; flex-direction: column; gap: 1.5rem; align-self: flex-start; }
.media-stack > .mt-4 { margin-top: 0 !important; }
@media (min-width: 992px) {
  .media-stack { position: sticky; top: 110px; }
}

/* ---------- Logos ---------- */
.logo-wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.logo-wall li {
  height: 118px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); padding: 1rem;
}
.logo-wall img { max-width: 100%; max-height: 76px; object-fit: contain; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.plan { display: flex; flex-direction: column; padding: 2rem; }
.plan h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.plan .for { color: var(--bs-secondary-color); margin-bottom: 1rem; }
.plan .price { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.plan .per { color: var(--bs-secondary-color); margin-bottom: 1.25rem; }
.plan ul { padding-left: 1.2rem; margin-bottom: 1.5rem; flex-grow: 1; }
.plan li { margin-bottom: .4rem; }
.plan.text-bg-primary .for, .plan.text-bg-primary .per { color: rgba(255,255,255,.8); }
.plan-note { color: var(--bs-secondary-color); margin-top: 1.25rem; }

/* ---------- People, principles ---------- */
.person img { width: 100%; max-width: 220px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--bs-border-radius-lg); margin-bottom: 1rem; }
.person h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.person p { color: var(--bs-secondary-color); margin-bottom: 0; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem 3rem; }
.principles h3 { font-size: 1.2rem; }
.principles p { margin-bottom: 0; color: var(--bs-secondary-color); }

/* ---------- Contact, downloads, renewal ---------- */
.contact-list dt { margin-top: 1.25rem; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: .15rem 0 0; }
.form-note { color: var(--bs-secondary-color); }
.app-entry .meta { color: var(--bs-secondary-color); }
.status-badge { display: inline-block; font-weight: 700; padding: .35rem .9rem; border-radius: var(--bs-border-radius); margin-bottom: .75rem; }
.status-badge.is-active { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.status-badge.is-expired { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.inline-alert { border-left: 4px solid var(--bs-warning); background: var(--bs-warning-bg-subtle); padding: .8rem 1rem; border-radius: var(--bs-border-radius-sm); }
.inline-alert.is-error { border-left-color: var(--bs-danger); background: var(--bs-danger-bg-subtle); }

/* ---------- Legal ---------- */
.legal .prose hr { margin: 2rem 0; }
.legal .prose h2 { font-size: 1.5rem; margin-top: 1.75rem; }
.legal .prose h3 { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-name { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-head { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; }
.footer-base p { margin: 0; }
.footer-base a + a { margin-left: 1.5rem; }

@media (max-width: 767.98px) {
  .hero { padding: 3.5rem 0; }
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .steps > li { padding-left: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
