/* UseBotiq — shared site CSS (navbar, footer, buttons, cards, global sections)
   Extracted from layouts/app.blade.php's inline <style> block so the browser can
   cache this once and reuse it across every page instead of re-downloading it on
   every single page load. Only the dynamic --primary/--secondary color variables
   (set from Admin → Settings) remain inline in the layout, since those depend on
   per-tenant DB values and can't live in a static file. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { font-family: 'Inter', sans-serif; color: #1e293b; background: #fff; margin: 0; position: relative; overflow-x: hidden; max-width: 100%; }
/* All main content sits above the canvas */
.site-footer, .mobile-nav-overlay, .mobile-nav-drawer, #scrollTop, #scroll-progress { position: relative; z-index: 1; }
.navbar-spacer { position: relative; z-index: 1; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.site-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 10px 0;
    transition: all .3s ease;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #f0eeff;
    box-shadow: 0 1px 16px rgba(124,58,237,.06);
    backdrop-filter: blur(10px);
}
.site-navbar.scrolled {
    padding: 7px 0;
    box-shadow: 0 4px 28px rgba(0,0,0,.10);
    border-bottom-color: #e8e0ff;
}
.navbar-brand-text {
    font-size: 1.6rem; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.navbar-brand img, .navbar-brand-img { height: 52px; transition: height .2s; }
.site-navbar .nav-link {
    color: #374151 !important; font-weight: 500; font-size: .91rem;
    padding: 7px 14px !important; border-radius: 8px; transition: all .2s;
}
.site-navbar .nav-link:hover  { color: var(--primary) !important; background: rgba(124,58,237,.06); }
.site-navbar .nav-link.active { color: var(--primary) !important; font-weight: 700; background: rgba(124,58,237,.07); }
.btn-nav-login {
    background: transparent; border: 1.5px solid #e2e8f0;
    color: #374151; font-weight: 600; font-size: .87rem;
    padding: 7px 18px; border-radius: 10px; text-decoration: none; transition: all .2s;
}
.btn-nav-login:hover { border-color: var(--primary); color: var(--primary); background: rgba(124,58,237,.04); }
.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none; color: #fff !important; font-weight: 700; font-size: .87rem;
    padding: 8px 20px; border-radius: 10px; text-decoration: none; transition: all .2s;
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,.5); }

/* Hamburger */
.nav-hamburger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 38px; height: 38px;
    background: #f8f5ff; border: 1.5px solid #ede9ff;
    border-radius: 10px; cursor: pointer; padding: 7px 8px;
    transition: all .2s; flex-shrink: 0;
}
.nav-hamburger span {
    display: block; height: 2px; border-radius: 2px;
    background: #374151; transition: all .3s cubic-bezier(.4,0,.2,1);
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 998; backdrop-filter: blur(2px);
}
.mobile-nav-overlay.show { display: block; }
.mobile-nav-drawer {
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: min(320px, 85vw); background: #fff;
    z-index: 999; padding: 24px 20px;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
    overflow-y: auto;
}
.mobile-nav-drawer.open { right: 0; }
.mobile-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 20px; margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.mobile-drawer-header img { height: 50px; }
.mobile-drawer-close {
    width: 34px; height: 34px; border-radius: 8px; background: #f1f5f9;
    border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; color: #64748b; transition: all .2s;
}
.mobile-drawer-close:hover { background: #fee2e2; color: #ef4444; }
.mobile-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 10px;
    color: #374151 !important; font-weight: 500; font-size: .95rem;
    text-decoration: none; transition: all .2s; margin-bottom: 2px;
}
.mobile-nav-link i { width: 20px; text-align: center; color: var(--primary); font-size: .9rem; }
.mobile-nav-link:hover { background: #f8f5ff; color: var(--primary) !important; }
.mobile-nav-link.active { background: rgba(124,58,237,.08); color: var(--primary) !important; font-weight: 600; }
.mobile-nav-divider { height: 1px; background: #f1f5f9; margin: 10px 0; }
.mobile-nav-cta-wrap { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav-cta-wrap .btn-nav-login { display: block; text-align: center; padding: 11px; }
.mobile-nav-cta-wrap .btn-nav-cta   { display: block; text-align: center; padding: 12px; font-size: .93rem; }

/* ── CONTENT OFFSET ─────────────────────────────────────── */
.navbar-spacer { height: 78px; }

/* ── GLOBAL SECTION ─────────────────────────────────────── */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(79,70,229,.12));
    border: 1px solid rgba(124,58,237,.2);
    color: var(--primary); font-size: .78rem; font-weight: 700;
    padding: 5px 14px; border-radius: 50px; letter-spacing: .5px;
    text-transform: uppercase;
}
.section-title { font-size: 2.5rem; font-weight: 900; color: #0f172a; line-height: 1.2; }
.section-subtitle { font-size: 1.05rem; color: #64748b; max-width: 560px; margin: 0 auto; }

/* ── GRADIENT TEXT ──────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none; color: #fff; font-weight: 700; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(124,58,237,.35);
    transition: all .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124,58,237,.45); color: #fff; }
.btn-outline-primary {
    border: 2px solid var(--primary); color: var(--primary); font-weight: 700;
    border-radius: 12px; background: transparent; transition: all .25s;
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
    border: 1px solid #f1f0ff; border-radius: 20px;
    transition: all .3s;
}
.card:hover { box-shadow: 0 16px 48px rgba(124,58,237,.1); transform: translateY(-4px); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, #0d0d1f 0%, #0a0a18 100%);
    color: #94a3b8; position: relative; overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), #818cf8, #60a5fa, var(--secondary));
}
.footer-glow {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,.07) 0%, transparent 70%);
    top: -200px; left: -100px; pointer-events: none;
}
.footer-cta-band {
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(79,70,229,.08));
    border: 1px solid rgba(124,58,237,.2); border-radius: 20px;
    padding: 40px 48px; margin-bottom: 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-cta-band h3 { color: #fff; font-size: 1.35rem; font-weight: 800; margin: 0; }
.footer-cta-band p  { color: #94a3b8; font-size: .88rem; margin: 6px 0 0; }
.footer-cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important; font-weight: 700; font-size: .88rem;
    padding: 12px 28px; border-radius: 12px; text-decoration: none;
    box-shadow: 0 4px 20px rgba(124,58,237,.4); white-space: nowrap;
    transition: all .25s; flex-shrink: 0;
}
.footer-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,.55); }
.footer-col-title {
    color: #fff; font-size: .78rem; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.footer-col-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(167,139,250,.3), transparent);
}
.footer-logo-img { height: 84px; max-width: 220px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #94a3b8; text-decoration: none; font-size: .95rem;
    transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-links a::before { content: '›'; color: var(--primary); font-size: 1rem; opacity: 0; transition: opacity .2s; }
.footer-links a:hover::before { opacity: 1; }
.footer-social-btn {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); color: #94a3b8;
    border: 1px solid rgba(255,255,255,.08); text-decoration: none;
    font-size: .95rem; transition: all .25s;
}
.footer-social-btn:hover { background: var(--primary); color: #fff !important; border-color: var(--primary); transform: translateY(-3px); }
.footer-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; padding: 7px 14px; font-size: .78rem; color: #64748b;
}
.footer-badge i { color: #4ade80; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0; margin-top: 48px;
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: #64748b; font-size: .87rem; text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: #94a3b8; }
.footer-divider { border-color: rgba(255,255,255,.07); }

/* ── MOBILE FIXES ────────────────────────────────────────── */
@media (max-width: 991px) {
    .footer-cta-band { padding: 28px 24px; text-align: center; justify-content: center; }
}
@media (max-width: 575px) {
    .navbar-spacer { height: 80px; }
    .navbar-brand img, .navbar-brand-img { height: 56px; }
    .site-navbar { padding: 8px 0; }
    .footer-logo-img { height: 96px; max-width: 240px; }
    .footer-cta-band { padding: 24px 18px; }
    .footer-cta-band h3 { font-size: 1.1rem; }
}

/* ── SCROLL TOP ─────────────────────────────────────────── */
#scrollTop {
    position: fixed; bottom: 28px; right: 28px;
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border: none; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    cursor: pointer; z-index: 9999;
    box-shadow: 0 4px 20px rgba(124,58,237,.45);
    font-size: 1.1rem; transition: all .25s;
}
#scrollTop.show { display: flex; }
#scrollTop:hover { transform: translateY(-3px); }

/* ── LIGHT SECTIONS ─────────────────────────────────────── */
.section-light { background: #fafaf9; }
.section-gradient-bg {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 50%, #e0e7ff 100%);
}

/* ── SCROLL PROGRESS BAR ────────────────────────────────── */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, #7c3aed, #818cf8, #60a5fa);
    z-index: 10000; transition: width .1s linear;
    border-radius: 0 3px 3px 0;
}
