/* ==========================================================
   Marketing With Siraj — site-wide premium layer
   Loaded on every page (header.php). Page-specific styles
   live in public/views/<page>/<page>.css.
   ========================================================== */

:root {
    --mw-ink: #0b1023;
    --mw-ink-2: #111833;
    --mw-text: #0f172a;
    --mw-muted: #64748b;
    --mw-line: #e5e7f0;
    --mw-indigo: #4f46e5;
    --mw-indigo-2: #6366f1;
    --mw-cyan: #22d3ee;
    --mw-mint: #34d399;
    --mw-violet: #a855f7;
    --mw-gold: #fde68a;
    --mw-ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }
::selection { background: rgba(99, 102, 241, .25); }

/* ---------- Header ---------- */
.mw-header {
    background: rgba(255, 255, 255, .78) !important;
    -webkit-backdrop-filter: saturate(180%) blur(16px);
            backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    box-shadow: none !important;
    transition: box-shadow .4s ease, border-color .4s ease, background-color .4s ease;
}
.mw-header.is-scrolled {
    background: rgba(255, 255, 255, .92) !important;
    border-bottom-color: rgba(15, 23, 42, .06);
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35) !important;
}

.mw-nav-link {
    position: relative;
    padding: .35rem 0;
    color: #334155 !important;
    font-weight: 500;
    transition: color .3s ease;
}
.mw-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--mw-indigo-2), var(--mw-cyan));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--mw-ease);
}
.mw-nav-link:hover { color: var(--mw-text) !important; }
.mw-nav-link:hover::after,
.mw-nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.mw-nav-link.is-active { color: var(--mw-indigo) !important; font-weight: 600; }

.mw-mobile-link.is-active { color: var(--mw-indigo) !important; font-weight: 600; background: #eef2ff; border-radius: .6rem; }

/* Header CTA */
.mw-header-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--mw-indigo), #4338ca) !important;
    border-radius: .8rem !important;
    box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .9);
    transition: transform .3s ease, box-shadow .3s ease !important;
}
.mw-header-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(79, 70, 229, 1); }

/* Mobile menu slide */
/* Tablet (768–1023px): desktop nav shows but space is tight — tighten
   spacing and drop the brand text (logo stays) so nothing collides. */
@media (min-width: 768px) and (max-width: 1023px) {
    .mw-header nav > * + * { margin-left: 1.4rem !important; }
    .mw-header .mw-brand-text { display: none; }
    .mw-header-cta { padding-left: 1rem !important; padding-right: 1rem !important; white-space: nowrap; }
}

#mobile-menu:not(.hidden) { animation: mw-drop .35s var(--mw-ease); }
@keyframes mw-drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Buttons (shared) ---------- */
.mw-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border-radius: .9rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    border: 0;
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}
.mw-btn i { transition: transform .3s ease; }
.mw-btn:hover .fa-arrow-right { transform: translateX(4px); }
.mw-btn:active { transform: scale(.98); }
.mw-btn:focus-visible { outline: 3px solid rgba(99, 102, 241, .5); outline-offset: 3px; }

.mw-btn--primary {
    color: #fff;
    background: linear-gradient(90deg, var(--mw-indigo), #4338ca);
    box-shadow: 0 14px 30px -14px rgba(79, 70, 229, .95);
}
.mw-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(79, 70, 229, 1); }

.mw-btn--glow {
    color: #04201c;
    background: linear-gradient(90deg, #6ee7b7, #67e8f9);
    box-shadow: 0 14px 34px -12px rgba(52, 211, 153, .75);
}
.mw-btn--glow:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(52, 211, 153, .95); }

.mw-btn--light { color: #312e81; background: #fff; }
.mw-btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(255, 255, 255, .8); }

.mw-btn--ghost-dark {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
}
.mw-btn--ghost-dark:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); }

.mw-btn--outline-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); background: transparent; }
.mw-btn--outline-light:hover { background: #fff; color: #312e81; border-color: #fff; }

.mw-btn--ghost {
    color: var(--mw-text);
    background: #fff;
    border: 1px solid var(--mw-line);
}
.mw-btn--ghost:hover { border-color: #c7d2fe; box-shadow: 0 12px 24px -16px rgba(79, 70, 229, .6); transform: translateY(-2px); }

/* shimmer sweep */
.mw-shine::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: mw-sweep 4.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes mw-sweep { 60%, 100% { transform: translateX(120%); } }

/* ---------- Shared type helpers ---------- */
.mw-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem .95rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mw-indigo);
    background: #eef2ff;
    border: 1px solid #e0e7ff;
}
.mw-eyebrow--dark { color: var(--mw-gold); background: rgba(253, 230, 138, .08); border-color: rgba(253, 230, 138, .25); }

.mw-gradient-text {
    background: linear-gradient(90deg, #a5b4fc, #67e8f9, #f0abfc, #a5b4fc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: mw-shine-text 8s linear infinite;
}
.mw-gradient-text--light {
    background-image: linear-gradient(90deg, #4f46e5, #0891b2, #a21caf, #4f46e5);
}
@keyframes mw-shine-text { to { background-position: 300% 0; } }

/* ---------- Scroll reveal ---------- */
/* Rules apply only until the entrance finishes (.is-done), so each
   element's own hover transforms/transitions take over afterwards. */
.mw-js .mw-reveal:not(.is-done),
.mw-js .mw-auto:not(.is-done) {
    transition: opacity .9s var(--mw-ease), transform .9s var(--mw-ease);
    transition-delay: var(--d, 0ms);
}
.mw-js .mw-reveal:not(.is-in) { opacity: 0; transform: translateY(26px); }
.mw-js .mw-auto:not(.is-in) { opacity: 0; transform: translateY(22px); }

/* ---------- Shared page building blocks (used by inner pages) ---------- */
.mw-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; position: relative; z-index: 2; }
.mw-container--narrow { max-width: 56rem; }
@media (min-width: 640px) { .mw-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .mw-container { padding: 0 2rem; } }

.mw-section { padding: 6rem 0; position: relative; }
.mw-section--white { background: #fff; }
.mw-section--soft { background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%); }
.mw-section--dark {
    overflow: hidden; isolation: isolate; color: #e5e7eb;
    background: radial-gradient(120% 80% at 50% 0%, #1e1b4b 0%, #0b1023 55%, #070a18 100%);
}

.mw-head { text-align: center; max-width: 46rem; margin: 0 auto 3.75rem; }
.mw-h1 { margin: 1.3rem 0 1.2rem; font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; color: #fff; }
.mw-h2 { margin: 1rem 0 .9rem; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; color: #0f172a; }
.mw-h2--light { color: #fff; }
.mw-sub { font-size: 1.12rem; line-height: 1.7; color: #64748b; }
.mw-sub--dark { color: #a5b4cb; }

.mw-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mw-blob { position: absolute; width: 44rem; height: 44rem; border-radius: 50%; filter: blur(100px); opacity: .42; will-change: transform; }
.mw-blob--1 { background: #4f46e5; top: -20rem; left: -12rem; animation: mw-float-a 18s ease-in-out infinite; }
.mw-blob--2 { background: #0ea5e9; top: -10rem; right: -16rem; opacity: .3; animation: mw-float-b 22s ease-in-out infinite; }
.mw-blob--3 { background: #a855f7; bottom: -28rem; left: 35%; opacity: .3; animation: mw-float-c 26s ease-in-out infinite; }
@keyframes mw-float-a { 50% { transform: translate(8rem, 6rem) scale(1.1); } }
@keyframes mw-float-b { 50% { transform: translate(-6rem, 8rem) scale(.9); } }
@keyframes mw-float-c { 50% { transform: translate(-10rem, -4rem) scale(1.15); } }
.mw-grid-bg {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 25%, #000 30%, transparent 75%);
}
[data-spotlight] { --mx: 50%; --my: 0%; }

/* ---------- Shared CTA panel ---------- */
.mw-cta {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    border-radius: 1.75rem; padding: 4rem 1.5rem;
    background: linear-gradient(120deg, #312e81, #4f46e5 45%, #7c3aed);
    box-shadow: 0 40px 80px -40px rgba(79, 70, 229, .8);
}
.mw-cta__glow {
    position: absolute; width: 36rem; height: 36rem; top: -18rem; right: -10rem; border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 232, 249, .45), transparent 65%);
    animation: mw-float-b 14s ease-in-out infinite; pointer-events: none;
}
.mw-cta h2 { position: relative; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.mw-cta p { position: relative; color: #c7d2fe; font-size: 1.15rem; max-width: 38rem; margin: 0 auto 2.25rem; }
.mw-cta__actions { position: relative; display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: center; }
@media (min-width: 640px) { .mw-cta__actions { flex-direction: row; } }

/* ---------- Orbit visual (About story, Home services) ---------- */
.mw-orbit { position: relative; width: min(100%, 26rem); aspect-ratio: 1; margin: 0 auto; }
.mw-orbit::before {
    content: ''; position: absolute; inset: 18%; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.25), rgba(34,211,238,.12) 50%, transparent 70%);
    filter: blur(20px);
}
.mw-orbit__ring {
    position: absolute; border-radius: 50%;
    border: 1.5px dashed rgba(99, 102, 241, .28);
    animation: mw-orbit-spin 30s linear infinite;
}
.mw-orbit__ring--1 { inset: 0; }
.mw-orbit__ring--2 { inset: 16%; border-color: rgba(16, 185, 129, .3); animation-duration: 22s; animation-direction: reverse; }
@keyframes mw-orbit-spin { to { transform: rotate(360deg); } }

.mw-orbit__chip {
    position: absolute; top: -1.5rem; left: 50%; margin-left: -1.5rem;
    width: 3rem; height: 3rem; border-radius: .9rem;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, rgb(var(--c)), rgba(var(--c), .75));
    box-shadow: 0 12px 24px -10px rgba(var(--c), .9);
    animation: mw-orbit-spin 30s linear infinite reverse;   /* keep icons upright */
}
.mw-orbit__ring--2 .mw-orbit__chip { animation-duration: 22s; animation-direction: normal; }
.mw-orbit__chip--b { top: auto; bottom: -1.5rem; }
/* inner ring: start its icons at the sides so all four are spread out */
.mw-orbit__ring--2 .mw-orbit__chip { top: 50%; left: -1.5rem; margin: -1.5rem 0 0; }
.mw-orbit__ring--2 .mw-orbit__chip--b { left: auto; right: -1.5rem; bottom: auto; }

.mw-orbit__core {
    position: absolute; inset: 31%;
    border-radius: 50%;
    display: grid; place-items: center;
    background: #fff;
    box-shadow: 0 0 0 10px rgba(238, 242, 255, .9), 0 30px 60px -20px rgba(79, 70, 229, .55);
}
.mw-orbit__core img { width: 72%; height: 72%; object-fit: contain; }

/* lit state: a matching card is hovered */
.mw-orbit__chip { transition: box-shadow .4s ease, filter .4s ease; }
.mw-orbit__chip.is-lit { filter: brightness(1.12) saturate(1.15); box-shadow: 0 0 0 6px rgba(var(--c), .18), 0 0 34px 6px rgba(var(--c), .55); }
.mw-orbit__chip.is-lit i { animation: mw-orbit-pop .5s var(--mw-ease); }
@keyframes mw-orbit-pop { 50% { transform: scale(1.35); } }

/* ---------- Floating-label form fields (Contact, Book Consultation) ---------- */
.mw-field { position: relative; }
.mw-field--full { grid-column: 1 / -1; }

.mw-field input,
.mw-field textarea {
    width: 100%;
    padding: 1.45rem 2.75rem .55rem 1rem;
    border-radius: .95rem;
    border: 1.5px solid #e2e6f0;
    background: #f8fafc;
    font-size: 1rem; color: #0f172a;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.mw-field textarea { padding-right: 1rem; resize: vertical; min-height: 9rem; }
.mw-field label {
    position: absolute; left: 1rem; top: 1rem;
    font-size: 1rem; color: #64748b; pointer-events: none;
    transform-origin: left top;
    transition: transform .25s var(--mw-ease), color .25s ease;
}
.mw-field > i {
    position: absolute; right: 1rem; top: 1.15rem;
    color: #a3adc2; font-size: .9rem; transition: color .25s ease;
}
.mw-field input:focus,
.mw-field textarea:focus { outline: 0; border-color: #818cf8; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
.mw-field input:focus ~ i { color: #6366f1; }
.mw-field input:focus + label,
.mw-field input:not(:placeholder-shown) + label,
.mw-field textarea:focus + label,
.mw-field textarea:not(:placeholder-shown) + label {
    transform: translateY(-.62rem) scale(.78);
    color: #4f46e5; font-weight: 600;
}
/* invalid after the user has tried to submit */
.was-validated .mw-field input:invalid,
.was-validated .mw-field textarea:invalid { border-color: #f87171; background: #fff7f7; }
.was-validated .mw-field input:invalid + label,
.was-validated .mw-field textarea:invalid + label { color: #dc2626; }

.mw-field select {
    width: 100%; appearance: none; -webkit-appearance: none;
    padding: 1.45rem 2.75rem .55rem 1rem; border-radius: .95rem;
    border: 1.5px solid #e2e6f0; background: #f8fafc; font-size: 1rem; color: #0f172a;
}
.mw-field input[type="date"] { min-height: 3.55rem; }
.mw-field input[type="date"] + label { transform: translateY(-.62rem) scale(.78); color: #4f46e5; font-weight: 600; }
.mw-field__hint { font-weight: 400; color: #94a3b8; }

/* ---------- Footer polish ---------- */
.mw-footer {
    position: relative;
    background: radial-gradient(90% 60% at 50% 0%, #161d3d 0%, #0b1023 60%, #070a18 100%) !important;
    overflow: hidden;
}
.mw-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .6), rgba(34, 211, 238, .6), transparent);
}
.mw-footer a { transition: color .3s ease, transform .3s ease, background-color .3s ease !important; }
.mw-footer ul a:hover { color: #fff; }
.mw-footer .rounded-full:hover { transform: translateY(-3px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mw-js .mw-reveal:not(.is-in), .mw-js .mw-auto:not(.is-in) { opacity: 1 !important; transform: none !important; transition: none !important; }
    .mw-shine::after, .mw-gradient-text, .mw-blob, .mw-cta__glow, .mw-orbit__ring, .mw-orbit__chip { animation: none !important; }
}
