/* ============================================================
   DOCUMENTATION — PREMIUM LIGHT THEME
   Using on /docs/* (owner-* and contractor-* subpages).
   Pairs with the new docs.html hero design.
   ============================================================ */

body.landing-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(99, 102, 241, 0.10), transparent 38%),
        radial-gradient(circle at 86% 8%, rgba(34, 211, 238, 0.08), transparent 36%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%) !important;
    background-attachment: fixed !important;
    color: #0f172a !important;
}

.docs-content {
    padding: 110px 0 80px;
    position: relative;
    min-height: 100vh;
}

.docs-content .landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.docs-content .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -16px;
    margin-left: -16px;
}

.docs-content .col-lg-3,
.docs-content .col-lg-9 {
    position: relative;
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
}

@media (min-width: 992px) {
    .docs-content .col-lg-3 { flex: 0 0 280px; max-width: 280px; }
    .docs-content .col-lg-9 { flex: 1; max-width: calc(100% - 280px); }
}

/* ─────────────── SIDEBAR ─────────────── */
.docs-sidebar {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
    height: fit-content;
}

.docs-sidebar-title {
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: #4338ca;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.docs-sidebar-title i { color: #6366f1; font-size: 0.9rem; }

.docs-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.docs-sidebar-nav a {
    display: block;
    padding: 9px 14px;
    color: #475569;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.docs-sidebar-nav a:hover {
    background: #f1f5f9;
    color: #4338ca;
}
.docs-sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(139,92,246,0.06));
    color: #4338ca;
    border-color: rgba(99,102,241,0.20);
    box-shadow: 0 6px 16px rgba(99,102,241,0.10);
}

/* ─────────────── MAIN ─────────────── */
.docs-main {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 38px 44px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 22px;
}
.docs-breadcrumb a {
    color: #4338ca;
    text-decoration: none;
    font-weight: 600;
}
.docs-breadcrumb a:hover { color: #6366f1; }
.docs-breadcrumb i { color: #cbd5e1; font-size: 0.7rem; }
.docs-breadcrumb span { color: #0f172a; font-weight: 700; }

.docs-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.docs-subtitle {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* ─────────────── STEPS ─────────────── */
.docs-step {
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 12px 28px rgba(15,23,42,0.04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.docs-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(99,102,241,0.10);
    border-color: rgba(99,102,241,0.25);
}
.docs-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.docs-step-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(99,102,241,0.25);
}
.docs-step-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}
.docs-step-content {
    color: #334155;
    font-size: 0.96rem;
    line-height: 1.7;
}
.docs-step-content p { margin: 0 0 12px; }
.docs-step-content p:last-child { margin-bottom: 0; }
.docs-step-content ul,
.docs-step-content ol {
    padding-left: 22px;
    margin: 0 0 14px;
}
.docs-step-content li { margin-bottom: 8px; line-height: 1.6; }
.docs-step-content strong { color: #0f172a; font-weight: 700; }
.docs-step-content code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.88em;
    color: #4338ca;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* ─────────────── INFO BOX / CALLOUT ─────────────── */
.docs-callout,
.docs-info-box,
.docs-tip {
    border-radius: 16px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.docs-callout {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
    border: 1px solid rgba(99,102,241,0.20);
}
.docs-callout i { color: #6366f1; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.docs-info-box {
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.20);
}
.docs-info-box i { color: #3b82f6; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.docs-tip {
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.22);
}
.docs-tip i { color: #10b981; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

/* ─────────────── FAQ ITEMS ─────────────── */
.docs-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 8px 20px rgba(15,23,42,0.03);
}
.docs-faq-item:hover {
    border-color: rgba(99,102,241,0.30);
    box-shadow: 0 14px 30px rgba(99,102,241,0.10);
}
.docs-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.docs-faq-question i {
    color: #6366f1;
    font-size: 0.9rem;
    transition: transform .25s;
}
.docs-faq-item.open .docs-faq-question i { transform: rotate(180deg); }
.docs-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease, padding .3s ease;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.7;
}
.docs-faq-item.open .docs-faq-answer {
    max-height: 800px;
    padding-top: 14px;
}
.docs-faq-answer p { margin: 0 0 10px; }
.docs-faq-answer p:last-child { margin-bottom: 0; }

/* ─────────────── VIDEO CARDS ─────────────── */
.docs-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.docs-video-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15,23,42,0.05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.docs-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(99,102,241,0.14);
    border-color: rgba(99,102,241,0.25);
}
.docs-video-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(139,92,246,0.06));
    display: grid;
    place-items: center;
    color: #6366f1;
    font-size: 2.4rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.docs-video-cover::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.05), transparent 60%);
    pointer-events: none;
}
.docs-video-body { padding: 18px 20px; }
.docs-video-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}
.docs-video-meta {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.docs-video-meta i { color: #6366f1; }

/* ─────────────── TABLES ─────────────── */
.docs-step-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 14px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
}
.docs-step-content table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.docs-step-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.docs-step-content table tr:last-child td { border-bottom: none; }
.docs-step-content table tr:hover td { background: rgba(99,102,241,0.03); }

/* ─────────────── CTA inside docs ─────────────── */
.docs-cta {
    margin-top: 36px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
    border: 1px solid rgba(99,102,241,0.20);
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.docs-cta::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #22d3ee);
}
.docs-cta-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 12px 26px rgba(99,102,241,0.30);
    flex-shrink: 0;
}
.docs-cta-text { flex: 1; min-width: 200px; }
.docs-cta-text h4 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.docs-cta-text p { font-size: 0.92rem; color: #475569; margin: 0; line-height: 1.55; }
.docs-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(99,102,241,0.30);
    transition: transform .15s, box-shadow .2s;
}
.docs-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(99,102,241,0.40);
    color: #fff;
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 991px) {
    .docs-content { padding: 90px 0 60px; }
    .docs-content .landing-container { padding: 0 18px; }
    .docs-sidebar {
        position: static;
        margin-bottom: 22px;
        padding: 22px;
    }
    .docs-main { padding: 28px 24px; }
}
@media (max-width: 640px) {
    .docs-main { padding: 22px 18px; border-radius: 18px; }
    .docs-step { padding: 22px 20px; border-radius: 16px; }
    .docs-step-header { gap: 12px; }
    .docs-step-number { width: 40px; height: 40px; font-size: 1rem; }
    .docs-step-title { font-size: 1.1rem; }
    .docs-cta { padding: 22px; gap: 16px; }
}
