/* ============================================================
   TEZ ERP — components.css
   Header, navigation, buttons, cards, footer.
   Reused across every page — page CSS should not redefine these.
   ============================================================ */

/* ---------------- Recognition Bar (Top Bar) ---------------- */
.recognition-bar {
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--dark-border);
}

.recognition-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 48px);
  width: 100%;
  padding-block: 10px;
}

.recognition-bar strong {
  font-weight: 800;
  color: #fff;
  letter-spacing: .08em;
  white-space: nowrap;
}

.recognition-bar span {
  color: #c8ced8;
  border-left: 1px solid var(--dark-line);
  padding-left: 36px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
}

@media (max-width: 850px) {
  .recognition-inner {
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-inline: 16px;
  }
  .recognition-inner::-webkit-scrollbar { display: none; }
  .recognition-bar span {
    padding-left: 16px;
  }
}

/* ---------------- Header / Navigation ---------------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(11, 23, 32, 0.08);
}

.site-header .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 48px);
}

.logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 130px;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.center-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.navitem {
  position: static;
  display: flex;
  align-items: center;
  height: 100%;
}

.navlabel {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink, #0b1720);
  padding: 0 4px;
  height: 100%;
  transition: color 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 0;
}

.navlabel:hover,
.navitem:hover .navlabel,
.navitem:focus-within .navlabel,
.navitem.is-open .navlabel {
  color: var(--azure, #2563eb);
}

.nav-caret {
  width: 9px;
  height: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  color: #64748b;
}

.navitem:hover .nav-caret,
.navitem:focus-within .nav-caret,
.navitem.is-open .nav-caret {
  transform: rotate(180deg);
  color: var(--azure, #2563eb);
}

/* ---------------- Mega Menu Dropdowns (Desktop) — Exact Wireframe Style ---------------- */
.mega {
  position: absolute;
  top: 100%;
  left: 3vw;
  right: 3vw;
  background: #ffffff;
  border: 1px solid #d9ddd8;
  box-shadow: 0 24px 55px rgba(9, 23, 34, 0.14);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  z-index: 100;
  border-radius: 4px;
  text-align: left;
}

/* Invisible hover bridge between header and mega menu */
.mega::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.navitem:hover .mega,
.navitem:focus-within .mega,
.navitem.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.megafeature {
  background: linear-gradient(145deg, #e8f1ff, #f3f7dc);
  flex-direction: column;
  min-height: 225px;
  padding: 28px;
  display: flex;
  text-decoration: none;
  border-radius: 4px;
}

.megafeature small {
  letter-spacing: 0.18em;
  color: var(--azure, #2563eb);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.megafeature b {
  margin: 32px 0 8px;
  font-size: 24px;
  color: var(--ink, #0b1720);
  line-height: 1.15;
}

.megafeature p {
  color: #55616a;
  font-size: 13px;
  line-height: 1.5;
}

.megafeature span {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--azure, #2563eb);
}

.navgroup {
  flex-direction: column;
  gap: 13px;
  padding-top: 8px;
  display: flex;
}

.navgroup > b {
  color: var(--azure, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
}

.navgroup > a,
.navgroup > button {
  text-align: left;
  color: var(--ink, #0b1720);
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.navgroup > a:hover,
.navgroup > button:hover {
  color: var(--azure, #2563eb);
}

/* Hide any legacy unstyled mega-menu markup if present in unmigrated pages */
.mega-menu {
  display: none !important;
}

.mega-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 28px;
}

.mega-grid--3col {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.mega-grid--solutions {
  grid-template-columns: 1.3fr 1.2fr;
}

.mega-col {
  border-right: 1px solid #f1f5f9;
  padding-right: 28px;
}

.mega-col:last-child {
  border-right: none;
  padding-right: 0;
}

.mega-col-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-family: var(--font-body);
}

.mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  width: fit-content;
  display: inline-block;
}

.mega-links a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

/* Card layout for Customers, Partners, Resources */
.mega-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 24px;
}

.mega-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 22px;
  background: #f8fafc;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.mega-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

.mega-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.mega-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.15s ease;
}

.mega-card:hover .mega-card-title {
  color: var(--accent);
}

.mega-card-arrow {
  color: #3b82f6;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.mega-card:hover .mega-card-arrow {
  transform: translateX(4px);
}

.mega-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

/* Bottom Bar inside Mega Menu */
.mega-bottom-bar {
  display: none;
}

.mega-explore-link {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.mega-explore-link:hover {
  color: #1e40af;
  gap: 12px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions .login-link,
.nav-actions .login-link:visited {
  font-size: 13px;
  font-weight: 500;
  color: #344054 !important;
  white-space: nowrap;
  padding: 4px 6px;
  transition: color var(--dur-fast) var(--ease);
}

.nav-actions .login-link:hover {
  color: var(--ink) !important;
}

/* ---------------- TEZ URJA Sign In Dropdown ---------------- */
.urja-signin-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.urja-signin-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #344054 !important;
  white-space: nowrap;
  padding: 4px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.urja-signin-btn:hover {
  color: var(--ink) !important;
  background: transparent;
}

.urja-signin-dropdown.is-open .urja-signin-btn {
  color: var(--ink) !important;
  background: transparent;
}

.urja-signin-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.urja-signin-dropdown.is-open .urja-signin-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.urja-signin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 6px;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.urja-signin-item:hover {
  background: #f8fafc;
  text-decoration: none;
}

.signin-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

/* Helpdesk icon theme (Urja Sky Blue) */
.signin-item-icon--helpdesk {
  background: #edf4ff;
  color: #2558e8;
}

.urja-signin-item:hover .signin-item-icon--helpdesk {
  background: #2558e8;
  color: #ffffff;
  transform: scale(1.04);
}

/* ERP icon theme (Warm Purple / Violet) */
.signin-item-icon--erp {
  background: #f5f3ff;
  color: #7c3aed;
}

.urja-signin-item:hover .signin-item-icon--erp {
  background: #7c3aed;
  color: #ffffff;
  transform: scale(1.04);
}

.signin-item-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.signin-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.urja-signin-item:hover .signin-item-title {
  color: #0f172a;
}

.signin-item-desc {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.3;
  margin-top: 2px;
  white-space: normal;
}

.signin-item-arrow {
  color: #94a3b8;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.urja-signin-item:hover .signin-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #64748b;
}

.nav-toggle {
  display: none;
  color: var(--ink);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  padding: 11px 22px;
  border-radius: 4px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

.btn-demo-outline,
.btn--ghost-light,
.btn--ghost-light:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #0b1720 !important;
  border: 2px solid #0b1720 !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-demo-outline:hover,
.btn--ghost-light:hover {
  background: #0b1720 !important;
  border-color: #0b1720 !important;
  color: #ffffff !important;
}

.btn-get-started,
.btn--primary,
.btn--primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0b1720 !important;
  color: #ffffff !important;
  border: 1px solid #0b1720;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-get-started:hover,
.btn--primary:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}

.btn--secondary,
.btn--secondary:visited {
  background: var(--azure-tint);
  color: var(--azure-dark) !important;
}

.btn--secondary:hover {
  background: #d9e6fd;
  color: var(--azure-dark) !important;
}

.btn--sm {
  padding: 9px 18px;
  font-size: var(--fs-caption);
  border-radius: 4px;
}

/* ---------------- Cards ---------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(15, 27, 46, .16);
  border-color: transparent;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--azure-tint);
  color: var(--azure-dark);
}

/* ---------------- Footer (used by demo, login, etc.) ---------------- */
.site-footer {
  background: var(--dark);
  color: #8DA0C4;
  padding-block: var(--sp-8) var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--dark-border);
}

.footer-brand p {
  margin-top: var(--sp-3);
  font-size: var(--fs-body-sm);
  max-width: 30ch;
  color: #8DA0C4;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5E759E;
  margin-bottom: var(--sp-3);
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-col a {
  font-size: var(--fs-body-sm);
  color: #C6D3EA;
  transition: color var(--dur-fast) var(--ease);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: var(--fs-caption);
  color: #5E759E;
}

.footer-bottom a {
  color: #8DA0C4;
}

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

/* ---------------- Placeholders ---------------- */
.image-box {
  color: #98a2b3;
  letter-spacing: .12em;
  background: repeating-linear-gradient(135deg, #eef0f3, #eef0f3 10px, #e4e7eb 10px 20px);
  place-items: center;
  height: 150px;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  border-radius: 4px;
}

/* ---------------- Supporting Mega Footer ---------------- */
.supporting {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 85px 0 75px;
}

.supporting .container,
.legal .container {
  max-width: 1480px;
  padding-inline: clamp(24px, 4vw, 56px);
}

.supporting-intro {
  border-bottom: 1px solid #cdd2da;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 36px;
}

.supporting-intro .eyebrow {
  letter-spacing: 0.2em;
  color: var(--azure, #2463eb);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.supporting-intro h2 {
  font-size: clamp(26px, 2.7vw, 42px);
  letter-spacing: -0.035em;
  margin-top: 10px;
  margin-bottom: 0;
  color: #0b1720;
  line-height: 1.15;
  font-weight: 500;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.supporting-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 6px;
}

.supporting-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #334155;
  transition: color var(--dur-fast) var(--ease);
}

.supporting-socials a[aria-label="LinkedIn"]:hover  { color: #0A66C2; }
.supporting-socials a[aria-label="YouTube"]:hover   { color: #FF0000; }
.supporting-socials a[aria-label="Instagram"]:hover  { color: #E4405F; }
.supporting-socials a[aria-label="Facebook"]:hover   { color: #1877F2; }

.supporting-socials svg {
  width: 22px;
  height: 22px;
}

.mega-footer {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding-top: 45px;
}

@media (max-width: 1120px) and (min-width: 851px) {
  .mega-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

.mega-footer h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #0b1720);
  margin: 0 0 20px;
}

.mega-footer a {
  color: #4b5565;
  font-size: 12px;
  font-weight: 400;
  margin: 0 0 13px;
  display: block;
  width: fit-content;
  transition: color var(--dur-fast) var(--ease);
}

.mega-footer a:visited {
  color: #4b5565;
}

.mega-footer a:hover {
  color: var(--accent);
}

.mega-footer .social {
  color: var(--muted);
  border-top: 1px solid #d4d8df;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 10px;
  line-height: 1.7;
}

/* 4-column layout for TEZ Urja & Books Footers */
.mega-footer--4col {
  grid-template-columns: 1.1fr 1.1fr 1fr 1.35fr;
  gap: clamp(24px, 3.5vw, 44px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #4b5565;
  line-height: 1.5;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent, #2563eb);
}

.footer-contact-item a {
  margin: 0 !important;
  display: inline !important;
  color: #4b5565 !important;
  text-decoration: none;
  font-size: 12px;
  transition: color var(--dur-fast) var(--ease);
}

.footer-contact-item a:hover {
  color: var(--accent, #2563eb) !important;
}

.footer-address-item span {
  font-size: 12px;
  color: #4b5565;
  line-height: 1.5;
}

.footer-subheading {
  margin-top: 22px !important;
  margin-bottom: 12px !important;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #0b1720);
}

.footer-static-link {
  color: #4b5565;
  font-size: 12px;
  font-weight: 400;
  margin: 0 0 13px;
  display: block;
  width: fit-content;
  cursor: default;
}

/* ---- Mobile elements (strictly hidden on desktop) ---- */
.accordion-toggle,
.footer-lang-selector,
.footer-social-icons,
.mobile-sticky-cta,
.mobile-nav-popup,
.mobile-menu-backdrop {
  display: none !important;
}

/* ---------------- Legal Footer (Bottom Bar) ---------------- */
.legal {
  background: var(--dark);
  color: #c8ced8;
  padding: 20px 0 24px;
}

.legal-banner,
.legal-links {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.legal-disclaimer {
  font-size: 10px;
  line-height: 1.7;
  color: #c8ced8;
  margin: 0;
  text-align: center;
}

.legal-copy-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.legal-copy-wrap small,
.legal-copyright {
  font-size: 10px;
  color: #98a2b3;
  white-space: nowrap;
  margin: 0;
  text-align: right;
}

@media (max-width: 850px) {
  .supporting-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .supporting-intro h2 {
    white-space: normal;
    font-size: clamp(22px, 5vw, 32px);
  }
  .supporting-intro > p {
    margin-top: 0;
  }
  .mega-footer {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .mega-footer {
    grid-template-columns: 1fr;
  }
  .supporting-intro h2 {
    font-size: 30px;
  }
}

/* ---------------- Universal Form Submit & Loading State ---------------- */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spinner-rotate 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes btn-spinner-rotate {
  to { transform: rotate(360deg); }
}

button.is-loading,
.btn.is-loading {
  opacity: 0.85 !important;
  cursor: wait !important;
  pointer-events: none !important;
}

/* ============================================================
   MOBILE VIEW (< 768px) — Accordion footer, header, sticky CTA, Popup Nav
   Desktop (≥ 768px) is completely unaffected.
   ============================================================ */
@media (max-width: 767px) {

  /* Hide desktop mega-menus and nav carets on mobile */
  .mega-menu,
  .mega,
  .nav-caret {
    display: none !important;
  }

  /* Hide top desktop supporting-socials on mobile (mobile uses footer-social-icons at bottom) */
  .supporting-socials {
    display: none !important;
  }

  /* ---- Mobile Header: ONLY show Tez logo, Sign In, Request a Demo ---- */
  .site-header .nav-toggle {
    display: none !important;
  }
  .nav-actions .login-link {
    display: inline !important;
    font-size: 12px;
  }
  .nav-actions .btn-demo-outline,
  .nav-actions .btn--ghost-light {
    display: inline-flex !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border: 1.75px solid #0b1720 !important;
  }
  .nav-actions .btn-get-started,
  .nav-actions .btn--primary {
    display: none !important;
  }

  /* Urja Sign In Dropdown Mobile Placement: open on right side of screen below header */
  .urja-signin-dropdown {
    position: static !important;
  }

  .urja-signin-menu {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    right: 12px !important;
    left: auto !important;
    width: 250px !important;
    max-width: calc(100vw - 24px) !important;
  }

  /* ---- Footer: accordion mode ---- */
  .mega-footer {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding-top: 24px;
  }

  .mega-footer > div {
    border-bottom: 1px solid #d4d8df;
  }

  .mega-footer > div:last-child {
    border-bottom: none;
  }

  /* Show the accordion toggle button on mobile */
  .accordion-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    font-family: var(--font-body);
    text-align: left;
    line-height: 1.3;
  }

  .accordion-toggle .chevron-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #98a2b3;
    transition: transform 0.25s ease;
  }

  .accordion-toggle.is-open .chevron-icon {
    transform: rotate(180deg);
  }

  /* Hide desktop h3 on mobile */
  .mega-footer h3 {
    display: none;
  }

  /* Accordion body: collapsed by default */
  .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    opacity: 0;
    padding-bottom: 0;
  }

  .accordion-body.is-open {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 16px;
  }

  .accordion-body a,
  .accordion-body .footer-static-link {
    font-size: 14px;
    padding: 8px 0;
    margin: 0;
    color: #4b5565;
    display: block;
    width: 100%;
  }

  .accordion-body .footer-subheading {
    margin-top: 14px !important;
    margin-bottom: 6px !important;
    font-size: 13.5px;
  }

  /* ---- Social icons row (LinkedIn, YouTube, Instagram, Facebook) ---- */
  .footer-social-icons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 0 32px;
  }

  .footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #334155;
    transition: color 0.2s ease;
  }

  .footer-social-icons a[aria-label="LinkedIn"]:hover  { color: #0A66C2; }
  .footer-social-icons a[aria-label="YouTube"]:hover   { color: #FF0000; }
  .footer-social-icons a[aria-label="Instagram"]:hover  { color: #E4405F; }
  .footer-social-icons a[aria-label="Facebook"]:hover   { color: #1877F2; }

  .footer-social-icons svg {
    width: 22px;
    height: 22px;
  }

  /* ---- Legal footer: simplified on mobile ---- */
  .legal {
    padding: 20px 0 20px;
  }

  .legal-banner,
  .legal-links {
    max-width: 100% !important;
    padding-inline: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  .legal-disclaimer {
    font-size: 11px;
    line-height: 1.6;
    color: #98a2b3;
    text-align: center;
  }

  .legal-copy-wrap {
    display: flex !important;
    justify-content: center !important;
  }

  .legal-copy-wrap small,
  .legal-copyright {
    font-size: 11px;
    color: #98a2b3;
    text-align: center;
    display: block;
    margin: 0;
  }

  /* ---- Mobile Nav Backdrop ---- */
  .mobile-menu-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 32, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .mobile-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ---- Mobile Nav Popup (Floating Card) ---- */
  .mobile-nav-popup {
    display: block !important;
    position: fixed;
    bottom: 64px;
    left: 12px;
    width: 300px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 150;
    padding: 6px 0;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-nav-popup.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav-item {
    border-bottom: 1px solid #f8fafc;
  }

  .mobile-nav-item:last-child {
    border-bottom: none;
  }

  .mobile-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: background 0.15s ease, color 0.15s ease;
  }

  .mobile-nav-btn:hover,
  .mobile-nav-btn:active {
    background: #f8fafc;
    color: var(--accent);
  }

  .mobile-nav-item.is-open .mobile-nav-btn {
    color: var(--accent);
    font-weight: 600;
    background: #f8fafc;
  }

  .mobile-nav-caret {
    width: 12px;
    height: 12px;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.22s ease, color 0.22s ease;
  }

  .mobile-nav-item.is-open .mobile-nav-caret {
    transform: rotate(180deg);
    color: var(--accent);
  }

  /* Expandable subcategory list */
  .mobile-subnav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #fafbfd;
    padding: 0;
    transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, padding 0.22s ease;
  }

  .mobile-nav-item.is-open .mobile-subnav {
    max-height: 1200px;
    opacity: 1;
    padding: 4px 0 6px 12px;
    border-top: 1px solid #f1f5f9;
  }

  .mobile-subnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px 8px 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475467;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
  }

  .mobile-subnav-link:hover,
  .mobile-subnav-link:active {
    color: var(--accent);
    border-left-color: var(--accent);
    padding-left: 14px;
    font-weight: 600;
  }

  .mobile-subnav-arrow {
    width: 10px;
    height: 10px;
    color: #98a2b3;
  }

  .mobile-nav-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
    padding: 0;
  }

  .mobile-signin-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #0b1720 !important;
    text-decoration: none;
    transition: background 0.15s ease;
  }

  .mobile-signin-link:hover {
    background: #f1f5f9;
    color: #0b1720 !important;
  }

  /* ---- Sticky bottom CTA bar ---- */
  .mobile-sticky-cta {
    display: flex !important;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 160;
    background: #0b1720;
    border-top: none;
    height: 52px;
    padding: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  }

  .mobile-sticky-cta .sticky-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #f8fafc;
    color: var(--ink);
    border: none;
    border-right: 1px solid #1e293b;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s ease;
  }

  .mobile-sticky-cta .sticky-menu-btn:hover {
    background: #f1f5f9;
  }

  .mobile-sticky-cta .sticky-menu-btn .icon-menu {
    width: 20px;
    height: 20px;
    display: block;
  }

  .mobile-sticky-cta .sticky-menu-btn .icon-close {
    width: 18px;
    height: 18px;
    display: none;
  }

  .mobile-sticky-cta .sticky-menu-btn.is-active {
    background: #ffffff;
  }

  .mobile-sticky-cta .sticky-menu-btn.is-active .icon-menu {
    display: none;
  }

  .mobile-sticky-cta .sticky-menu-btn.is-active .icon-close {
    display: block;
  }

  .mobile-sticky-cta .sticky-signup-btn,
  .mobile-sticky-cta .sticky-signup-btn:visited {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-left: 0;
    background: #0b1720 !important;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0 16px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .mobile-sticky-cta .sticky-signup-btn:hover {
    background: #1e293b !important;
    color: #ffffff !important;
  }

  /* Add padding to body so sticky bar doesn't cover footer */
  body {
    padding-bottom: 54px;
  }
}

/* ---------------- Responsive: tablet / mobile (960px) ---------------- */
@media (max-width: 960px) {
  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--ink);
  }

  .nav-toggle svg {
    width: 20px;
    height: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header .nav-row {
    height: 60px;
  }
}

/* ============================================================
   Ask Mr TEZ Shared Chat Widget Styles
   ============================================================ */
.tezchat {
  z-index: 1060;
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-family: var(--font-body, 'Inter', sans-serif);
}

.chatlauncher {
  background: var(--azure, #2463eb);
  color: #ffffff !important;
  letter-spacing: 0.08em;
  align-items: center;
  gap: 11px;
  min-width: 120px;
  padding: 6px 16px 6px 6px;
  display: flex;
  box-shadow: 0 12px 30px rgba(12, 28, 51, 0.25);
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.chatlauncher:hover {
  background: #1b53c7;
  transform: translateY(-2px);
}

.mrtezportrait-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.mrtezportrait-img.large {
  width: 48px;
  height: 48px;
  border-color: var(--brand-cyan, #33a7d8);
}

.chatpanel {
  background: #ffffff;
  border: 1px solid #cbd2d7;
  flex-direction: column;
  width: 380px;
  /* 88px bottom offset + 100px header/breathing room at top */
  max-height: calc(100vh - 190px);
  height: 540px;
  display: none;
  position: fixed;
  bottom: 88px;
  right: 24px;
  box-shadow: 0 25px 70px rgba(7, 19, 31, 0.3);
  border-radius: 6px;
  overflow: hidden;
  z-index: 1070;
}

.chatpanel.is-open {
  display: flex;
}

.chatpanel-header {
  background: #0b1720;
  color: #ffffff;
  border: 0;
  justify-content: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
}

.chatpanel-header div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chatpanel-header b {
  font-size: 17px;
  color: #ffffff;
}

.chatpanel-header small {
  color: #b9c4ca;
  font-size: 11px;
}

.chatclose {
  color: var(--brand-cyan, #33a7d8);
  letter-spacing: 0.1em;
  background: transparent;
  margin-left: auto;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.chatclose:hover {
  text-decoration: underline;
}

.chatmessages {
  background: #f6f4ed;
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chatmessage {
  background: #ffffff;
  border: 1px solid #dce0dd;
  max-width: 88%;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 4px;
}

.chatmessage.user {
  background: #e9f0ff;
  border-color: #c9d7fb;
  margin-left: auto;
}

.chatmessage span {
  letter-spacing: 0.16em;
  color: var(--azure, #2463eb);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  display: block;
}

.chatmessage p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #0b1720;
}

.chatmessage a {
  color: var(--azure, #2463eb);
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
}

.chatmessage a:hover {
  text-decoration: underline;
}

.chatchoices {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  display: grid;
}

.choice-btn {
  color: #0b1720;
  text-align: left;
  background: #ffffff;
  border: 1px solid #cbd2d7;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-btn:hover {
  border-color: var(--azure, #2463eb);
  color: var(--azure, #2463eb);
}

.chatinput {
  border-top: 1px solid #d7dcdf;
  padding: 12px 16px 8px;
  background: #ffffff;
}

.chatinput label {
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 800;
  display: block;
  color: #727b81;
  text-transform: uppercase;
}

.chatinput > div {
  display: flex;
  gap: 6px;
}

.chatinput input {
  border: 1px solid #cbd2d7;
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 3px;
  outline: none;
  color: #0b1720;
  background: #ffffff;
}

.chatinput input:focus {
  border-color: var(--azure, #2463eb);
}

.chatinput button {
  padding: 8px 16px;
  background: var(--azure, #2463eb);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
}

.chatinput button:hover {
  background: #1b53c7;
}

.chatnote {
  color: #737d82;
  padding: 0 16px 10px;
  font-size: 9px;
  line-height: 1.4;
  display: block;
  background: #ffffff;
}

@media (max-width: 960px) {
  .tezchat {
    bottom: 68px;
    right: 16px;
    z-index: 1060;
  }
  .chatpanel {
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 380px;
    max-height: calc(100vh - 148px);
    height: 560px;
    bottom: 80px;
    z-index: 1070;
  }
}

/* Mobile: cover full screen from header bottom to near bottom */
@media (max-width: 520px) {
  .tezchat {
    bottom: 68px;
    right: 16px;
    z-index: 1060;
  }
  .chatpanel {
    position: fixed;
    top: 64px;        /* just below the header */
    left: 0 !important;
    right: 0 !important;
    bottom: 80px;     /* breathing space above the launcher */
    width: 100% !important;
    height: auto;
    max-height: none;
    max-width: none;
    border-radius: 0;
    z-index: 1070;
  }
}

/* Backdrop overlay shown behind the open chat panel */
.tezchat-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: transparent;
}
.tezchat-backdrop.is-active {
  display: block;
}

/* ============================================================
   Announcement bar — scoped to .recognition-bar--announce
   so any other use of .recognition-bar is unaffected.
   Reduced size and no pill container on the text.
   ============================================================ */
.recognition-bar--announce {
  position: relative;
  min-height: 44px;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  background: #0b1720;
  border-bottom: 1px solid rgba(51, 167, 216, .28);
  overflow: visible;
  z-index: 1200;
}

.recognition-bar--announce .recognition-inner {
  justify-content: center;
  overflow: visible;
  padding-block: 7px;
  text-align: center;
  transition: padding-right .2s ease;
}

.recognition-bar--announce .announce-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 6px;
  margin: 0;
  line-height: 1.35;
}

.recognition-bar--announce .announce-lead {
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, .75);
  font-size: inherit;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: normal;
}

.recognition-bar--announce .announce-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.06em;
  letter-spacing: .02em;
}

/* Plain, non-clickable emphasis: white text, no pill */
.recognition-bar--announce .announce-cta {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: #ffffff;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

/* Neutralise any generic .recognition-bar span styling inside announce bar */
.recognition-bar--announce span {
  border: 0;
  padding-left: 0;
}

/* Smooth looping announcement arrow.
   Uses --arrow-color for product-specific tinting.
   viewBox shifted to 0 -4 to prevent top clipping. */
.announce-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 230px;
  height: 110px;
  max-width: none;
  color: var(--arrow-color, #33a7d8);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(var(--ax, 0px), var(--ay, 0px));
  z-index: 2300;
  overflow: visible;
}

.announce-arrow.is-on {
  opacity: 1;
  visibility: visible;
}

.announce-arrow__line,
.announce-arrow__head {
  vector-effect: non-scaling-stroke;
}

/* ---- Product-specific arrow colors ---- */
/* TEZ ERP — brand blue */
.recognition-bar--announce.announce--erp  { --arrow-color: #2563eb; }
/* TEZ URJA — brand deep blue */
.recognition-bar--announce.announce--urja { --arrow-color: #1a3fad; }
/* TEZ BOOKS — brand purple */
.recognition-bar--announce.announce--books { --arrow-color: #7c3aed; }
/* TEZ EDUCATION — brand blue */
.recognition-bar--announce.announce--education { --arrow-color: #2563eb; }

/* ---- Responsive ---- */
/* Hide arrow below 1100px so it never overlaps nav or text */
@media (max-width: 1100px) {
  .announce-arrow {
    display: none !important;
  }
  .recognition-bar--announce .recognition-inner {
    padding-right: 0 !important;
  }
}

@media (max-width: 767px) {
  .recognition-bar--announce {
    font-size: 12px;
    min-height: 38px;
  }
  .recognition-bar--announce .recognition-inner {
    padding-block: 6px;
  }
}

@media (max-width: 480px) {
  .recognition-bar--announce {
    font-size: 11px;
    min-height: 34px;
  }
  .recognition-bar--announce .announce-text {
    gap: 3px 4px;
  }
}