/* ==========================================================================
   TexMandi — header and footer (texmandi.com only; BizTorq uses .site-header / .site-footer)
   Colours come from the tokens in texmandi-base.css. To re-colour for the new logo,
   change the five --tx-* values below and nothing else.
   ========================================================================== */
.tx-header,
.tx-footer {
  --tx-accent:       var(--brand);
  --tx-accent-hover: var(--brand-hover);
  --tx-gold:         #F5B336;
  --tx-dark:         var(--surface-dark);
  --tx-header-bg:    rgba(247, 245, 252, .92);
}

/* ---- header (75px tall and sticky: the page CSS uses --mk-sticky-top: 75px) ---- */
.tx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--tx-header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-header);
}
.tx-header__inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tx-logo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; flex-shrink: 0; }
.tx-header .tx-logo .tx-logo__tag { font: 700 10.5px/1 var(--font-body); letter-spacing: .02em; color: #12264A; opacity: 1; white-space: nowrap; }
@media (max-width: 380px) { .tx-logo__tag { font-size: 8.5px; } }
.tx-logo img { height: 38px; width: auto; display: block; }

.tx-nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 22px); }
.tx-link {
  font: 600 13.5px/1 var(--font-body);
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.tx-link:hover,
.tx-link.is-current { color: var(--tx-accent); }

.tx-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: var(--tx-accent);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.tx-cta:hover { background: var(--tx-accent-hover); color: #fff; }

.tx-drop { position: relative; }
.tx-drop__menu {
  display: none;
  position: absolute;
  right: -12px;
  top: calc(100% + 14px);
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px -20px rgba(25, 18, 51, .35);
  z-index: 60;
}
.tx-drop__menu.is-open { display: grid; }
.tx-drop__menu a {
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.tx-drop__menu a:hover { background: var(--surface-alt); color: var(--tx-accent); }

.tx-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0 11px;
  background: var(--tx-dark);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.tx-toggle__bar { display: block; height: 2px; background: var(--inv); }

.tx-mobile {
  display: none;
  flex-direction: column;
  padding: 6px var(--gutter) 22px;
  border-top: 1px solid var(--line-header);
  background: var(--surface);
  max-height: 72vh;
  overflow-y: auto;
}
.tx-mobile.is-open { display: flex; }
.tx-mobile__link {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.tx-mobile__cta {
  margin-top: 16px;
  text-align: center;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--tx-accent);
  border-radius: var(--radius-sm);
}
.tx-mobile__cta:hover { color: #fff; background: var(--tx-accent-hover); }

/* ---- footer ---- */
.tx-footer {
  background: var(--tx-dark);
  color: var(--inv-2);
  padding: clamp(50px, 7vw, 90px) var(--gutter) 34px;
}
.tx-footer__wrap { max-width: var(--shell); margin-inline: auto; }
.tx-footer a { color: var(--inv-2); }
.tx-footer a:hover { color: var(--tx-gold); }
.tx-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(28px, 4vw, 44px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.tx-footer__brand { grid-column: span 2; min-width: 0; }
.tx-footer__brand img { height: 38px; width: auto; display: block; margin-bottom: 8px; }
.tx-footer__tag { margin: 0 0 14px; font: 600 11px/1.2 var(--font-body); letter-spacing: .02em; color: var(--tx-gold); }
.tx-footer__about { font-size: 14px; line-height: 1.7; margin: 0 0 12px; max-width: 58ch; color: var(--inv-2); }
.tx-footer__by { font-size: 13.5px; margin: 0 0 18px; color: var(--inv-3); }
.tx-footer__by a { color: #fff; font-weight: 700; }
.tx-footer__contact { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.tx-footer__contact a { font-weight: 600; color: #fff; }
.tx-footer__h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.tx-footer__h--gap { margin-top: 28px; }
.tx-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tx-footer__social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; font-size: 13px; }
.tx-footer__social a { color: var(--inv-3); }
.tx-footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--inv-3);
}

@media (max-width: 1100px) {
  .tx-nav { display: none; }
  .tx-toggle { display: flex; }
}
@media (max-width: 860px) {
  .tx-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tx-footer__bottom { flex-direction: column; gap: 8px; }
}
@media print {
  .tx-header, .tx-toggle, .tx-mobile, .whatsapp-fab { display: none; }
}
