
/* =====================================================
   WHY SOOO DIGITAL - CUSTOM CSS
   Consolidated Light/Dark Theme + Branding + Preloader
===================================================== */


/* =====================================================
   1. GLOBAL BRAND COLORS & THEME VARIABLES
===================================================== */

:root,
html[data-bs-theme="light"] {
    --brand: #6d4aff;
    --brand-2: #6d4aff;
    --brand-2-text: #ffffff;

    --bs-primary: #6d4aff;
    --bs-primary-rgb: 109, 74, 255;

    --paper: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8f8fc;

    --bs-body-bg: #ffffff;
    --bs-body-color: #212121;
}

html[data-bs-theme="dark"] {
    --brand: #6d4aff;
    --brand-2: #6d4aff;
    --brand-2-text: #ffffff;

    --bs-primary: #6d4aff;
    --bs-primary-rgb: 109, 74, 255;

    --paper: #0e0e10;
    --surface: #17171a;
    --surface-2: #1f1f23;

    --text: #f3f1ec;
    --muted: #a3a09a;
    --line: rgba(243, 241, 236, 0.12);

    --bs-body-bg: #0e0e10;
    --bs-body-color: #f3f1ec;
}


/* =====================================================
   2. GLOBAL BODY COLORS
===================================================== */

html[data-bs-theme="light"] body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #212121;
}

html[data-bs-theme="dark"] body {
    background: #0e0e10 !important;
    background-color: #0e0e10 !important;
    color: #f3f1ec !important;
}

html[data-bs-theme="dark"] {
    background-color: #0e0e10 !important;
}


/* =====================================================
   3. DARK THEME - SECTIONS & BACKGROUNDS
===================================================== */

html[data-bs-theme="dark"] section,
html[data-bs-theme="dark"] .section,
html[data-bs-theme="dark"] main {
    background-color: #0e0e10;
    color: #f3f1ec;
}

html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light {
    background-color: #17171a !important;
    color: #f3f1ec !important;
}


/* =====================================================
   4. DARK THEME - CARDS
===================================================== */

html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .service-card,
html[data-bs-theme="dark"] .pricing-card {
    background-color: #17171a !important;
    color: #f3f1ec;
    border-color: rgba(255, 255, 255, 0.12) !important;
}


/* =====================================================
   5. DARK THEME - TEXT & BORDERS
===================================================== */

html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] h6,
html[data-bs-theme="dark"] p {
    color: inherit;
}

html[data-bs-theme="dark"] .border {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-bs-theme="dark"] .lbl {
    background-color: #29292e !important;
    color: #f3f1ec !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}


/* =====================================================
   6. BRAND COLOR OVERRIDE
===================================================== */

/* Brand text */
.text-brand,
.text-primary {
    color: #6d4aff !important;
}

/* Brand backgrounds */
.bg-brand,
.bg-primary {
    background-color: #6d4aff !important;
}

/* Brand buttons */
.btn-primary,
button.btn-primary {
    background: #6d4aff !important;
    background-color: #6d4aff !important;
    border-color: #6d4aff !important;
    color: #ffffff !important;
}

/* Brand button hover */
.btn-primary:hover,
button.btn-primary:hover {
    background: #5735e8 !important;
    background-color: #5735e8 !important;
    border-color: #5735e8 !important;
    color: #ffffff !important;
}

/* Other brand elements */
[style*="var(--brand)"] {
    color: #6d4aff !important;
}

.text-brand svg,
.icon-brand {
    color: #6d4aff !important;
    fill: #6d4aff !important;
}

.mo-c-dot {
    background-color: #6d4aff !important;
}


/* =====================================================
   7. DARK THEME - BUTTON FIXES
===================================================== */

html[data-bs-theme="dark"] .btn.btn-ink {
    background: #f3f1ec !important;
    background-color: #f3f1ec !important;
    color: #121212 !important;
    border-color: #f3f1ec !important;
}

html[data-bs-theme="dark"] .btn.btn-ink:hover {
    background: #6d4aff !important;
    background-color: #6d4aff !important;
    color: #ffffff !important;
    border-color: #6d4aff !important;
}

html[data-bs-theme="dark"] .btn.btn-ink.btn-icon {
    background: #29292e !important;
    background-color: #29292e !important;
    color: #f3f1ec !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}


/* =====================================================
   8. HEADER - LIGHT & DARK THEME
===================================================== */

/* Light theme header */
html[data-bs-theme="light"] .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line, rgba(0, 0, 0, 0.08));
    padding-block: 0.55rem;
}

/* Dark theme header */
html[data-bs-theme="dark"] .site-header.is-scrolled {
    background: rgba(14, 14, 16, 0.88) !important;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
    padding-block: 0.55rem;
}


/* =====================================================
   9. HEADER LOGO FIX
===================================================== */

.site-header .container > a.brand {
    display: flex !important;
    flex: 0 0 120px !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 150px !important;
    height: 80px !important;
    align-items: center !important;
}

.site-header .container > a.brand img#headerLogo {
    display: block !important;
    width: 120px !important;
    min-width: 0 !important;
    max-width: 150px !important;
    height: 80px !important;
    object-fit: contain !important;
}

/* Dark theme logo */
html[data-bs-theme="dark"] header .brand img.logo-light {
    display: none !important;
}

html[data-bs-theme="dark"] header .brand img.logo-dark {
    display: block !important;
}


/* =====================================================
   10. MOBILE OFFCANVAS LOGO
===================================================== */

.offcanvas .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.offcanvas .offcanvas-header .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 40px);
}

.offcanvas .offcanvas-header .brand img.logo {
    display: block;
    width: 120px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

.offcanvas .offcanvas-header .btn-close {
    flex: 0 0 auto;
    margin: 0;
}


/* =====================================================
   11. FOOTER LOGO
===================================================== */

footer .brand img {
    display: block;
    width: 150px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}


/* =====================================================
   12. MOBILE BOTTOM NAVIGATION
===================================================== */

nav.mobile-dock {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;

    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;

    gap: 0 !important;
    padding: 9px 3px !important;
    margin: 0 !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

nav.mobile-dock > a {
    flex: 1 1 0 !important;
    width: 20% !important;
    min-width: 0 !important;
    max-width: 20% !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 4px !important;
    padding: 4px 0 !important;
    margin: 0 !important;

    box-sizing: border-box !important;
    text-align: center !important;
    white-space: nowrap !important;
}

nav.mobile-dock > a i {
    display: block !important;
    font-size: 19px !important;
    line-height: 1 !important;
}

nav.mobile-dock > a span {
    display: block !important;
    max-width: 100% !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

/* Smaller mobile screens */
@media (max-width: 360px) {
    nav.mobile-dock > a span {
        font-size: 9px !important;
    }

    nav.mobile-dock > a i {
        font-size: 17px !important;
    }
}

/* Hide mobile dock on desktop */
@media (min-width: 768px) {
    nav.mobile-dock {
        display: none !important;
    }
}



.wsd-loader{
  --wsd-bg:#ffffff; --wsd-ink:#0A0A0A; --wsd-brand:#4910E0; --wsd-muted:#6E6E7A; --spd:1;
  position:fixed; inset:0; z-index:99999;
  display:flex; align-items:center; justify-content:center; background:var(--wsd-bg);
  opacity:1; transition:opacity .5s ease, transform .5s ease; -webkit-font-smoothing:antialiased;
}
.wsd-loader[data-wsd-theme="dark"]{ --wsd-bg:#0E0E10; --wsd-ink:#FFFFFF; --wsd-brand:#7A4DFF; --wsd-muted:#8C8C99; }
.wsd-loader.is-done{ opacity:0; transform:scale(1.015); pointer-events:none; }

.wsd-stage{ display:flex; flex-direction:column; align-items:center; gap:28px;
  opacity:0; animation:wsdIn calc(.4s*var(--spd)) ease forwards; }
.wsd-logo{ width:min(62vw,336px); height:auto; display:block; overflow:visible;
  animation:wsdSquash calc(.36s*var(--spd)) cubic-bezier(.4,0,.2,1) calc(1.62s*var(--spd)); }
@keyframes wsdIn{ to{ opacity:1; } }
@keyframes wsdSquash{ 0%,100%{transform:scale(1)} 38%{transform:scale(.984)} }

/* 1 — the frame draws from the top in both directions, tail last */
.wsd-pen{ stroke-dasharray:1000; stroke-dashoffset:1000; }
.wsd-penA,.wsd-penB{ animation:wsdDraw calc(0.78s*var(--spd)) cubic-bezier(.6,0,.3,1) calc(0.05s*var(--spd)) forwards; }
.wsd-penC{ animation:wsdDraw calc(0.3s*var(--spd)) cubic-bezier(.3,0,.2,1) calc(0.7s*var(--spd)) forwards; }
@keyframes wsdDraw{ to{ stroke-dashoffset:0; } }

/* 2 — every glyph pops in on its own */
.wsd-g{ opacity:0; transform:scale(.62) translateY(14px);
  animation:wsdPop calc(0.42s*var(--spd)) cubic-bezier(.34,1.56,.64,1) both; }
@keyframes wsdPop{ to{ opacity:1; transform:scale(1) translateY(0); } }

/* 3 — the click and the rays */
.wsd-click{ transform-box:fill-box; transform-origin:center; opacity:0;
  animation:wsdClick calc(.52s*var(--spd)) ease-out calc(1.62s*var(--spd)) forwards; }
@keyframes wsdClick{ 0%{transform:scale(.2);opacity:.9} 70%{opacity:.3} 100%{transform:scale(2.2);opacity:0} }
.wsd-ray{ opacity:0; transform:scale(.2);
  animation:wsdRay calc(.44s*var(--spd)) cubic-bezier(.34,1.56,.64,1) both; }
@keyframes wsdRay{ to{ opacity:1; transform:scale(1); } }

/* 4 — tagline ripple, brush sweep */
.wsd-tl{ opacity:0; transform:translateY(7px);
  animation:wsdTl calc(0.34s*var(--spd)) cubic-bezier(.22,1,.36,1) both; }
@keyframes wsdTl{ to{ opacity:1; transform:translateY(0); } }
.wsd-swwipe{ transform-box:fill-box; transform-origin:left center; transform:scaleX(0);
  animation:wsdWipe calc(0.52s*var(--spd)) cubic-bezier(.33,1,.68,1) calc(2.4s*var(--spd)) forwards; }
@keyframes wsdWipe{ to{ transform:scaleX(1); } }

/* 5 — the loading indicator IS the logo: O O O bounces */
.wsd-o{ animation:wsdBob calc(1.25s*var(--spd)) cubic-bezier(.45,0,.55,1)
  calc((3s + var(--ob))*var(--spd)) infinite; }
/* the rows are tightly set, so the lift stays under the gap to WHY and the
   dip in opacity does the rest of the work */
@keyframes wsdBob{ 0%,58%,100%{transform:translateY(0);opacity:1}
                   26%{transform:translateY(-14px);opacity:.58} }

/* service ticker */
.wsd-ticker{ position:relative; height:14px; width:270px; opacity:0;
  animation:wsdIn calc(.4s*var(--spd)) ease calc(3s*var(--spd)) forwards; }
.wsd-ticker span{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font:600 11px/1 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  letter-spacing:.2em; text-transform:uppercase; color:var(--wsd-muted); white-space:nowrap; opacity:0;
  animation:wsdTick calc(6.9s*var(--spd)) linear infinite; }
@keyframes wsdTick{
  0%{opacity:0;transform:translateY(5px)} 2.2%{opacity:1;transform:translateY(0)}
  14%{opacity:1;transform:translateY(0)} 16.7%{opacity:0;transform:translateY(-5px)}
  100%{opacity:0;transform:translateY(-5px)} }

@media (prefers-reduced-motion:reduce){
  .wsd-loader *{ animation:none !important; transition:none !important; }
  .wsd-stage{ opacity:1; }
  .wsd-pen{ stroke-dashoffset:0; }
  .wsd-g,.wsd-ray,.wsd-tl{ opacity:1; transform:none; }
  .wsd-click{ display:none; }
  .wsd-swwipe{ transform:scaleX(1); }
  .wsd-ticker{ opacity:1; }
  .wsd-ticker span:first-child{ opacity:1; }
}


/* HERO VIDEO CONTAINER */
.in-photo.hero-video {
    display: inline-block;
    position: relative;
    width: 180px;
    height: 85px;
    overflow: hidden;
    vertical-align: middle;
    border-radius: 50px;
    flex-shrink: 0;
    isolation: isolate;
}

/* VIDEO FULL COVER */
.in-photo.hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    border: 0;
    padding: 0;
    margin: 0;
}

/* HERO IMAGE */
.in-photo.round {
    display: inline-block;
    position: relative;
    width: 85px;
    height: 85px;
    overflow: hidden;
    border-radius: 50%;
    vertical-align: middle;
}

.in-photo.round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MOBILE RESPONSIVE */
@media (max-width: 767px) {
    .in-photo.hero-video {
        width: 115px;
        height: 58px;
    }

    .in-photo.round {
        width: 55px;
        height: 55px;
    }
}
