/* JP Automation Services Dark Template for Joomla 6 */

:root {
    --jp-bg: #05070b;
    --jp-bg-alt: #0d1117;
    --jp-panel: #111827;
    --jp-border: #1f2937;
    --jp-accent: #3b82f6;
    --jp-accent-soft: rgba(59,130,246,0.1);
    --jp-text: #e5e7eb;
    --jp-text-muted: #9ca3af;
    --jp-danger: #ef4444;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.jp-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    color: var(--jp-text);
    line-height: 1.6;
}

/* Header */

.jp-header {
    border-bottom: 1px solid var(--jp-border);
    background: linear-gradient(90deg, #020617, #020617, #020617);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.jp-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.jp-logo a {
    text-decoration: none;
    color: var(--jp-text);
}

.jp-logo-main {
    font-weight: 700;
    font-size: 1.2rem;
}

.jp-logo-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--jp-text-muted);
}

/* Menu */

.jp-mainmenu {
    font-size: 0.95rem;
}

.jp-mainmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.jp-mainmenu a {
    color: var(--jp-text-muted);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.jp-mainmenu a:hover,
.jp-mainmenu .current,
.jp-mainmenu .active {
    color: #f9fafb;
    background: var(--jp-accent-soft);
    transform: translateY(-1px);
}

/* Hero */

.jp-hero {
    border-bottom: 1px solid var(--jp-border);
    padding: 3.5rem 1.25rem 2.5rem;
    background: radial-gradient(circle at top left, #1f2937 0, #020617 45%, #000 100%);
}

.jp-hero-fallback {
    max-width: 1120px;
    margin: 0 auto;
    text-align: left;
}

.jp-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.jp-hero p {
    max-width: 620px;
    color: var(--jp-text-muted);
    margin-bottom: 1.5rem;
}

.jp-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.1s;
}

.btn-primary {
    background: var(--jp-accent);
    color: #f9fafb;
    box-shadow: 0 12px 25px rgba(37,99,235,0.35);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 18px 35px rgba(37,99,235,0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--jp-border);
    color: var(--jp-text);
}

.btn-secondary:hover {
    border-color: var(--jp-accent);
    background: rgba(15,23,42,0.9);
}

/* Main layout */

.jp-main {
    padding: 2rem 1.25rem 3rem;
}

.jp-main-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr);
    gap: 2rem;
}

.jp-content {
    background: radial-gradient(circle at top left, #0b1120 0, #020617 60%);
    border-radius: 1.25rem;
    border: 1px solid var(--jp-border);
    padding: 1.7rem 1.8rem;
    box-shadow: 0 24px 60px rgba(15,23,42,0.75);
}

.jp-content h1,
.jp-content h2,
.jp-content h3 {
    color: #f9fafb;
}

.jp-content p {
    color: var(--jp-text-muted);
}

/* Sidebar */

.jp-sidebar {
    background: #020617;
    border-radius: 1.25rem;
    border: 1px solid var(--jp-border);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 20px 50px rgba(15,23,42,0.9);
}

/* Bottom modules */

.jp-bottom {
    max-width: 1120px;
    margin: 0 auto 2.5rem;
    padding: 0 1.25rem;
}

/* Footer */

.jp-footer {
    border-top: 1px solid var(--jp-border);
    background: #020617;
    padding: 1.5rem 1.25rem 1.75rem;
    color: var(--jp-text-muted);
    font-size: 0.85rem;
}

.jp-footer-inner {
    max-width: 1120px;
    margin: 0 auto 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.jp-footer-links {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.jp-footer-links a {
    color: var(--jp-text-muted);
    text-decoration: none;
}

.jp-footer-links a:hover {
    color: var(--jp-accent);
}

.jp-footer-copy {
    max-width: 1120px;
    margin: 0 auto;
    color: #4b5563;
}

/* Error page */

.jp-error {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    padding: 2rem;
    border-radius: 1.25rem;
    background: radial-gradient(circle at top, #111827 0, #020617 60%);
    border: 1px solid var(--jp-border);
    box-shadow: 0 24px 60px rgba(15,23,42,0.75);
}

.jp-error h1 {
    margin-bottom: 0.5rem;
}

/* Responsive */

@media (max-width: 900px) {
    .jp-main-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .jp-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .jp-mainmenu ul {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .jp-hero {
        padding-top: 2.5rem;
    }

    .jp-hero h1 {
        font-size: 2rem;
    }
}
