/* ==========================================================================
   FinTech Express — Header, mobile drawer, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--brand-950);
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-xs);
  font-weight: 600;
  overflow: hidden;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  height: var(--topbar-h);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  white-space: nowrap;
}

.topbar__item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-400);
  flex: none;
}

@media (max-width: 860px) {
  .topbar__inner {
    justify-content: flex-start;
    gap: var(--sp-6);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topbar__inner::-webkit-scrollbar {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base) var(--ease);
}

.site-header.is-stuck {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
}

.site-header__logo {
  flex: none;
}

.site-header__logo img {
  height: 34px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-right: auto;
}

.site-nav__link {
  position: relative;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.site-nav__link:hover {
  color: var(--brand-700);
  background: var(--brand-50);
}

.site-nav__link.is-active {
  color: var(--brand-700);
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-500);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.icon-btn:hover {
  background: var(--bg-alt);
  color: var(--brand-700);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--brand-500);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--surface);
}

.cart-count[hidden] {
  display: none;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.lang-switch__btn {
  padding: 0.3rem 0.72rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.lang-switch__btn:hover {
  color: var(--ink);
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand-700);
  box-shadow: var(--shadow-xs);
}

/* Header search (desktop, expands on click) */
.header-search {
  position: relative;
  flex: 1;
  max-width: 340px;
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .site-header__logo {
    margin-right: auto;
  }
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: rgba(4, 33, 26, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease), visibility var(--t-base);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--z-drawer) + 1);
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease-out);
  overflow-y: auto;
}

.drawer.is-open {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.drawer__head img {
  height: 30px;
}

.drawer__body {
  flex: 1;
  padding: var(--sp-5);
  display: grid;
  align-content: start;
  gap: var(--sp-2);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  transition: background var(--t-fast) var(--ease);
}

.drawer__link:hover,
.drawer__link.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
}

.drawer__link svg {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
}

.drawer__foot {
  padding: var(--sp-5);
  border-top: 1px solid var(--border);
  display: grid;
  gap: var(--sp-4);
}

.drawer__contact {
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.drawer__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--ink-2);
  font-weight: 600;
}

.drawer__contact svg {
  width: 15px;
  height: 15px;
  color: var(--brand-500);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--brand-950);
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--fs-base);
}

.site-footer a {
  transition: color var(--t-fast) var(--ease);
}

.site-footer a:hover {
  color: #fff;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: var(--sp-10) var(--sp-8);
  padding-block: var(--sp-16) var(--sp-12);
}

@media (max-width: 1080px) {
  .footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer__main {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer__brand img {
  height: 36px;
  margin-bottom: var(--sp-5);
}

.footer__tagline {
  max-width: 34ch;
  line-height: 1.65;
}

.footer__contact {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.footer__contact a,
.footer__contact span {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.footer__contact svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--brand-300);
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-5);
}

.footer__links {
  display: grid;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}

.footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border-inverse);
}

.footer__payments-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-right: var(--sp-2);
}

.footer__payments img {
  height: 30px;
  width: auto;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--r-sm);
}

.footer__socials {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.footer__socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-inverse);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--t-fast) var(--ease);
}

.footer__socials a:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

.footer__socials svg {
  width: 18px;
  height: 18px;
}

.footer__disclaimer {
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border-inverse);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.46);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border-inverse);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.52);
}

.footer__bottom-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

/* --------------------------------------------------------------------------
   Floating WhatsApp button
   -------------------------------------------------------------------------- */

.wa-fab {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-full);
  background: #25d366;
  color: #04211a;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.wa-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.5);
}

.wa-fab svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.wa-fab--mail {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 640px) {
  .wa-fab {
    right: var(--sp-4);
    bottom: var(--sp-4);
    padding: 0.8rem;
  }

  .wa-fab span {
    display: none;
  }
}
