/* =====================================================================
   Web Digital Mantra — Design System (light theme)
   Brand: logo red + deep ink navy. Font: Plus Jakarta Sans.
   Load AFTER bootstrap. Everything is prefixed .wdm-* to avoid clashes.
   ===================================================================== */
:root {
  --wdm-red: #d81830;
  --wdm-red-600: #b8112a;
  --wdm-red-700: #8f0c20;
  --wdm-red-400: #ef4a5e;
  --wdm-red-100: #ffe1e5;
  --wdm-red-50: #fff3f5;
  --wdm-ink: #12142b;
  --wdm-ink-2: #3a3f5f;
  --wdm-muted: #6a6f8c;
  --wdm-line: #eceef5;
  --wdm-line-2: #e0e3ee;
  --wdm-bg: #ffffff;
  --wdm-soft: #f7f8fc;
  --wdm-soft-2: #f1f3fa;
  --wdm-gold: #f5a524;
  --wdm-green: #12a773;
  --wdm-blue: #3b6cf6;
  --wdm-grad: linear-gradient(135deg, #f0213a 0%, #b10f26 100%);
  --wdm-grad-soft: linear-gradient(135deg, #fff3f5 0%, #f4f6ff 100%);
  --wdm-r-sm: 10px;
  --wdm-r: 16px;
  --wdm-r-lg: 24px;
  --wdm-r-xl: 32px;
  --wdm-shadow-xs: 0 1px 2px rgba(18, 20, 43, .05);
  --wdm-shadow-sm: 0 4px 14px rgba(18, 20, 43, .06);
  --wdm-shadow: 0 12px 32px rgba(18, 20, 43, .08);
  --wdm-shadow-lg: 0 24px 60px rgba(18, 20, 43, .12);
  --wdm-shadow-red: 0 12px 28px rgba(216, 24, 48, .28);
  --wdm-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wdm-ease: cubic-bezier(.22, .8, .3, 1);

  /* legacy template variables re-pointed to brand */
  --inflanar-primary: var(--wdm-red);
  --colorPrimary: var(--wdm-red);
}

html { scroll-behavior: smooth; }
body.wdm-body, .wdm-body {
  font-family: var(--wdm-font);
  color: var(--wdm-ink-2);
  background: var(--wdm-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
.wdm-body h1, .wdm-body h2, .wdm-body h3, .wdm-body h4, .wdm-body h5, .wdm-body h6 {
  font-family: var(--wdm-font); color: var(--wdm-ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.18;
}
.wdm-body a { color: var(--wdm-red); text-decoration: none; transition: color .2s; }
.wdm-body a:hover { color: var(--wdm-red-600); }
.wdm-body ::selection { background: var(--wdm-red); color: #fff; }
.wdm-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Layout helpers ---------- */
.wdm-section { padding: 96px 0; position: relative; }
.wdm-section--soft { background: var(--wdm-soft); }
.wdm-section--tint { background: var(--wdm-grad-soft); }
.wdm-section--sm { padding: 64px 0; }
@media (max-width: 767px) { .wdm-section { padding: 64px 0; } }

.wdm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--wdm-red); background: var(--wdm-red-50); border: 1px solid var(--wdm-red-100);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.wdm-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--wdm-red); }
.wdm-h1 { font-size: clamp(38px, 5.2vw, 66px); font-weight: 800; }
.wdm-h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; }
.wdm-h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.wdm-lead { font-size: 18px; color: var(--wdm-muted); max-width: 640px; }
.wdm-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.wdm-head .wdm-lead { margin: 14px auto 0; }
.wdm-gradient-text { background: var(--wdm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.wdm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--wdm-font);
  font-weight: 700; font-size: 15px; line-height: 1; padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--wdm-ease), box-shadow .25s var(--wdm-ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap; text-decoration: none !important;
}
.wdm-btn:hover { transform: translateY(-2px); }
.wdm-btn--primary { background: var(--wdm-grad); color: #fff !important; box-shadow: var(--wdm-shadow-red); }
.wdm-btn--primary:hover { box-shadow: 0 16px 34px rgba(216, 24, 48, .36); color: #fff !important; }
.wdm-btn--dark { background: var(--wdm-ink); color: #fff !important; }
.wdm-btn--dark:hover { background: #000; }
.wdm-btn--ghost { background: #fff; color: var(--wdm-ink) !important; border-color: var(--wdm-line-2); }
.wdm-btn--ghost:hover { border-color: var(--wdm-red); color: var(--wdm-red) !important; box-shadow: var(--wdm-shadow-sm); }
.wdm-btn--soft { background: var(--wdm-red-50); color: var(--wdm-red) !important; }
.wdm-btn--soft:hover { background: var(--wdm-red-100); }
.wdm-btn--sm { padding: 10px 18px; font-size: 13.5px; }
.wdm-btn--lg { padding: 18px 34px; font-size: 16px; }
.wdm-btn--block { width: 100%; }

/* ---------- Cards ---------- */
.wdm-card {
  background: #fff; border: 1px solid var(--wdm-line); border-radius: var(--wdm-r-lg); box-shadow: var(--wdm-shadow-xs);
  transition: transform .3s var(--wdm-ease), box-shadow .3s var(--wdm-ease), border-color .3s; overflow: hidden;
}
.wdm-card--hover:hover { transform: translateY(-6px); box-shadow: var(--wdm-shadow); border-color: transparent; }
.wdm-card__body { padding: 24px; }
.wdm-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--wdm-soft-2); }
.wdm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--wdm-ease); }
.wdm-card--hover:hover .wdm-card__media img { transform: scale(1.06); }

/* ---------- Chips / badges ---------- */
.wdm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; background: var(--wdm-soft-2); color: var(--wdm-ink-2); }
.wdm-chip--red { background: var(--wdm-red-50); color: var(--wdm-red); }
.wdm-chip--green { background: #e6f8f1; color: var(--wdm-green); }
.wdm-chip--gold { background: #fff5e0; color: #b87707; }
.wdm-stars { color: var(--wdm-gold); letter-spacing: 1px; }

/* ---------- Forms ---------- */
.wdm-field { margin-bottom: 18px; }
.wdm-label { display: block; font-weight: 700; font-size: 13.5px; color: var(--wdm-ink); margin-bottom: 8px; }
.wdm-input, .wdm-select, .wdm-textarea {
  width: 100%; font-family: var(--wdm-font); font-size: 15px; color: var(--wdm-ink); background: #fff;
  border: 1.5px solid var(--wdm-line-2); border-radius: 14px; padding: 14px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.wdm-input::placeholder, .wdm-textarea::placeholder { color: #a3a7bd; }
.wdm-input:focus, .wdm-select:focus, .wdm-textarea:focus { border-color: var(--wdm-red); box-shadow: 0 0 0 4px rgba(216, 24, 48, .12); }
.wdm-textarea { min-height: 130px; resize: vertical; }
.wdm-input-icon { position: relative; }
.wdm-input-icon > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9ca1ba; }
.wdm-input-icon .wdm-input { padding-left: 44px; }

/* ---------- Header ---------- */
.wdm-topbar { background: var(--wdm-ink); color: #cfd2e6; font-size: 13px; padding: 9px 0; }
.wdm-topbar a { color: #fff; }
.wdm-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.wdm-header.is-scrolled { border-bottom-color: var(--wdm-line); box-shadow: 0 8px 30px rgba(18, 20, 43, .06); }
.wdm-header__in { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.wdm-logo img { height: 46px; width: auto; display: block; }
.wdm-nav { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wdm-nav > li { position: relative; }
.wdm-nav > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-weight: 600; font-size: 15px;
  color: var(--wdm-ink-2); border-radius: 999px; transition: background .2s, color .2s; }
.wdm-nav > li > a:hover, .wdm-nav > li > a.active { color: var(--wdm-red); background: var(--wdm-red-50); }
.wdm-nav .wdm-sub { position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--wdm-line);
  border-radius: 18px; box-shadow: var(--wdm-shadow-lg); padding: 10px; list-style: none; margin: 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .22s var(--wdm-ease); }
.wdm-nav > li:hover > .wdm-sub { opacity: 1; visibility: visible; transform: none; }
.wdm-sub a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--wdm-ink-2); font-weight: 600; font-size: 14.5px; }
.wdm-sub a:hover { background: var(--wdm-red-50); color: var(--wdm-red); }
.wdm-header__cta { display: flex; align-items: center; gap: 10px; }
.wdm-burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--wdm-line-2); background: #fff;
  align-items: center; justify-content: center; font-size: 18px; color: var(--wdm-ink); }
.wdm-mobile { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; z-index: 1100; padding: 24px; transform: translateX(100%);
  transition: transform .35s var(--wdm-ease); box-shadow: var(--wdm-shadow-lg); overflow-y: auto; }
.wdm-mobile.is-open { transform: none; }
.wdm-mobile a.wdm-m-link { display: block; padding: 14px 4px; font-weight: 700; color: var(--wdm-ink); border-bottom: 1px solid var(--wdm-line); }
.wdm-scrim { position: fixed; inset: 0; background: rgba(18, 20, 43, .45); z-index: 1090; opacity: 0; visibility: hidden; transition: .3s; }
.wdm-scrim.is-open { opacity: 1; visibility: visible; }
@media (max-width: 991px) {
  .wdm-nav, .wdm-header__cta .wdm-btn--ghost { display: none; }
  .wdm-burger { display: inline-flex; }
  .wdm-header__in { height: 68px; }
  .wdm-logo img { height: 40px; }
}

/* ---------- Page hero (inner pages) ---------- */
.wdm-pagehero { position: relative; padding: 72px 0 64px; background: var(--wdm-grad-soft); overflow: hidden; border-bottom: 1px solid var(--wdm-line); }
.wdm-pagehero::before { display: none; content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 24, 48, .16), transparent 68%); }
.wdm-pagehero::after { display: none; content: ''; position: absolute; width: 380px; height: 380px; left: -120px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 108, 246, .12), transparent 70%); }
.wdm-pagehero .wdm-container { position: relative; z-index: 1; }
.wdm-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--wdm-muted); margin-top: 14px; }
.wdm-crumbs a { color: var(--wdm-muted); }
.wdm-crumbs a:hover { color: var(--wdm-red); }
.wdm-crumbs span.sep { opacity: .5; }

/* ---------- Footer (light) ---------- */
.wdm-cta-band { margin-bottom: -90px; position: relative; z-index: 2; }
.wdm-cta-band__in { background: var(--wdm-grad); border-radius: var(--wdm-r-xl); padding: 56px 56px; color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--wdm-shadow-red); position: relative; overflow: hidden; }
.wdm-cta-band__in::after { display: none; content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -80px; top: -200px;
  background: rgba(255, 255, 255, .12); }
.wdm-cta-band h3 { color: #fff; font-size: clamp(24px, 3vw, 36px); max-width: 620px; position: relative; z-index: 1; }
.wdm-cta-band .wdm-btn { background: #fff; color: var(--wdm-red) !important; position: relative; z-index: 1; }
.wdm-footer { background: var(--wdm-soft); border-top: 1px solid var(--wdm-line); padding: 150px 0 0; }
.wdm-footer h6 { font-size: 15px; font-weight: 800; margin-bottom: 20px; }
.wdm-footer ul { list-style: none; margin: 0; padding: 0; }
.wdm-footer li { margin-bottom: 12px; }
.wdm-footer li a { color: var(--wdm-ink-2); font-weight: 500; font-size: 15px; }
.wdm-footer li a:hover { color: var(--wdm-red); padding-left: 4px; }
.wdm-footer__about img { height: 52px; margin-bottom: 18px; }
.wdm-social { display: flex; gap: 10px; }
.wdm-social a { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--wdm-line-2); display: inline-flex;
  align-items: center; justify-content: center; color: var(--wdm-ink-2); transition: all .25s var(--wdm-ease); }
.wdm-social a:hover { background: var(--wdm-red); color: #fff; border-color: var(--wdm-red); transform: translateY(-3px); }
.wdm-footer__bar { border-top: 1px solid var(--wdm-line-2); margin-top: 56px; padding: 24px 0; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--wdm-muted); }

/* ---------- Reveal on scroll ---------- */
.wdm-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--wdm-ease), transform .8s var(--wdm-ease); }
.wdm-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wdm-reveal { opacity: 1; transform: none; transition: none; } .wdm-btn:hover { transform: none; } }

/* ---------- Misc ---------- */
.wdm-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--wdm-red-50); }
.wdm-divider { height: 1px; background: var(--wdm-line); margin: 24px 0; }
.wdm-stat { font-size: 40px; font-weight: 800; color: var(--wdm-ink); letter-spacing: -.03em; }
.wdm-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.wdm-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--wdm-muted); font-weight: 700; padding: 14px 16px;
  background: var(--wdm-soft); border-bottom: 1px solid var(--wdm-line); }
.wdm-table td { padding: 16px; border-bottom: 1px solid var(--wdm-line); vertical-align: middle; }
.wdm-table tr:hover td { background: #fcfcfe; }

/* Brand the legacy purchased-template primaries wherever pages still use it */
.inflanar-btn, .inflanar-btn:focus { background: var(--wdm-grad) !important; border-color: transparent !important; color: #fff !important; }

/* ---------- Pagination (bootstrap-5 links()) ---------- */
.wdm-body .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
.wdm-body .page-link { border: 1px solid var(--wdm-line-2); border-radius: 12px !important; color: var(--wdm-ink-2); font-weight: 700; min-width: 42px; text-align: center; padding: 9px 14px; }
.wdm-body .page-link:hover { background: var(--wdm-red-50); color: var(--wdm-red); border-color: var(--wdm-red-100); }
.wdm-body .page-item.active .page-link { background: var(--wdm-grad); border-color: transparent; color: #fff; box-shadow: var(--wdm-shadow-red); }
.wdm-body .page-item.disabled .page-link { opacity: .5; }
