/* ============================================================
   WARRANTY MITRA — HEADER & FOOTER STYLES
   ============================================================ */

/* ---- HEADER ---- */
.wm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.wm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

/* LOGO */
.wm-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.wm-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #15803d, #0d47a1);
  color: #fff;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.wm-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.wm-logo-brand { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.wm-logo-accent { color: #15803d; }
.wm-logo-text small { font-size: 0.6rem; color: #94a3b8; font-weight: 500; }

/* DESKTOP NAV */
.wm-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.wm-nav-link {
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  border-radius: 0.4rem;
  transition: color 0.2s, background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.wm-nav-link:hover, .wm-nav-link.wm-nav-active { color: #15803d; }
.wm-nav-active { color: #4ade80 !important; font-weight: 700; }
.wm-arrow { font-size: 0.7rem; transition: transform 0.2s; }

/* DROPDOWN */
.wm-dropdown { position: relative; }
.wm-dropdown:hover .wm-arrow { transform: rotate(180deg); }
.wm-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 0.75rem;
  min-width: 280px;
  display: none;
  z-index: 200;
}
.wm-dropdown-panel-sm { min-width: 180px; }
.wm-dropdown:hover .wm-dropdown-panel { display: block; }
.wm-dropdown-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; font-weight: 700; padding: 0 0.5rem 0.5rem; }
.wm-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 0.6rem;
  transition: background 0.15s;
}
.wm-dropdown-item:hover { background: #f0fdf4; }
.wm-di-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: #dcfce7;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.wm-dropdown-item strong { display: block; font-size: 0.875rem; color: #0f172a; font-weight: 700; }
.wm-dropdown-item small { font-size: 0.75rem; color: #64748b; }
.wm-dropdown-item-simple {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}
.wm-dropdown-item-simple:hover { background: #f0fdf4; color: #15803d; }

/* HEADER ACTIONS */
.wm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.btn-sm { padding: 0.5rem 1rem !important; font-size: 0.8rem !important; }

/* HAMBURGER */
.wm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.wm-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.25s;
}

/* OVERLAY */
.wm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 150;
  display: none;
}
.wm-overlay.active { display: block; }

/* MOBILE MENU */
.wm-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(340px, 90vw);
  background: #fff;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.wm-mobile-menu.open { transform: translateX(0); }
.wm-mm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  background: #0f172a;
  color: #fff;
  flex-shrink: 0;
}
.wm-logo-mini { font-size: 1rem; font-weight: 800; color: #fff; }
.wm-logo-mini span { color: #4ade80; }
.wm-mm-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wm-mm-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.wm-mm-section { margin-top: 0.75rem; }
.wm-mm-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: #15803d; font-weight: 800; padding: 0 0.5rem; margin-bottom: 0.4rem; }
.wm-mm-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  border-radius: 0.5rem;
  transition: all 0.15s;
}
.wm-mm-link:hover, .wm-mm-link.wm-nav-active { background: #f0fdf4; color: #15803d; }
.wm-mm-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }

/* ---- FOOTER ---- */
.wm-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 0;
  font-size: 0.875rem;
}
.wm-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293b;
}
.wm-footer-brand p { font-size: 0.82rem; line-height: 1.7; margin: 0.75rem 0 1rem; }
.wm-footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.wm-logo-brand-w { font-size: 1.1rem; font-weight: 800; color: #fff; }
.wm-footer-social { display: flex; gap: 0.6rem; }
.wm-footer-social a {
  width: 2rem;
  height: 2rem;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #022352;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.wm-footer-social a:hover { background: #15803d; color: #fff; }
.wm-footer-col h4 { color: #fff; font-weight: 700; font-size: 0.875rem; margin-bottom: 1rem; }
.wm-footer-col a { display: block; color: #94a3b8; margin-bottom: 0.55rem; font-size: 0.82rem; transition: color 0.2s; }
.wm-footer-col a:hover { color: #4ade80; }
.wm-footer-cities { padding: 1.25rem 0; font-size: 0.78rem; color: #64748b; border-bottom: 1px solid #1e293b; }
.wm-footer-cities strong { color: #ffffff; margin-right: 0.4rem; }
.wm-footer-payments { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; padding: 1.25rem 0; border-bottom: 1px solid #1e293b; font-size: 0.78rem; }
.wm-footer-payments strong { color: #94a3b8; }
.wm-pay-chip { background: #fff; color: #0f172a; padding: 0.2rem 0.6rem; border-radius: 0.3rem; font-size: 0.72rem; font-weight: 700; }
.wm-footer-copy { text-align: center; padding: 1.5rem 0; font-size: 0.75rem; color: #475569; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.wm-footer-copy a { color: #4ade80; }
.wm-footer-copy a:hover { text-decoration: underline; }

/* ---- BUTTON TEXT VARIANTS ---- */
/* Full label visible by default, short label hidden */
.wm-btn-label-short { display: none; }
.wm-btn-label-full  { display: inline; }
.wm-btn-icon        { display: none; }   /* icon shown only on mobile */

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .wm-nav { display: none; }
  .wm-hamburger { display: flex; }
  .wm-footer-grid { grid-template-columns: 1fr 1fr; }
  .wm-footer-brand { grid-column: 1 / -1; }
}

/* TABLET (641–1024px): show full buttons */
@media (min-width: 641px) and (max-width: 1024px) {
  .wm-header-actions .btn { display: flex; }
}

/* MOBILE (≤640px): compact Login + App buttons visible alongside hamburger */
@media (max-width: 640px) {
  .wm-footer-grid { grid-template-columns: 1fr; }
  .wm-hamburger { display: flex; }

  /* Keep buttons visible but compact */
  .wm-btn-login,
  .wm-btn-app {
    display: inline-flex !important;
    padding: 0.38rem 0.6rem !important;
    font-size: 0.72rem !important;
    gap: 0.2rem;
    align-items: center;
    border-radius: 0.45rem;
  }

  /* Show icon on mobile */
  .wm-btn-icon        { display: inline; }
  .wm-btn-label       { display: inline; }   /* "Login" is already short */
  .wm-btn-label-full  { display: none; }     /* hide "Download App" text */
  .wm-btn-label-short { display: inline; }   /* show "App" instead */
}
.wm-logo-img {
  height: 60px;
  width: auto;
}

/* Tablet */
@media (max-width: 1024px) {
  .wm-logo-img {
    height: 52px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .wm-logo-img {
    height: 44px;
  }
}
.wm-header-inner {
  padding: 1rem 0;
}
.wm-visitor-counter{
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 600;
}

.wm-footer-payments{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}