/**
 * Developer Enklawa — demo styles
 */
:root {
    --de-navy: #14244b;
    --de-navy-dark: #061033;
    --de-gold: #ffc328;
    --de-white: #ffffff;
    --de-gray-50: #f8fafc;
    --de-gray-100: #f1f5f9;
    --de-gray-200: #e5e7eb;
    --de-gray-600: #4b5563;
    --de-shadow: 0 4px 24px rgba(20, 36, 75, 0.08);
    --de-radius: 4px;
    --de-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body.de-demo {
    margin: 0;
    font-family: var(--de-font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--de-navy-dark);
    background: var(--de-white);
}

.de-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.de-main {
    flex: 1;
}

/* Hide default WP / block theme footers */
body.de-demo .site-footer,
body.de-demo footer.site-footer,
body.de-demo #colophon,
body.de-demo .wp-block-template-part[data-area="footer"],
body.de-demo .wp-site-blocks > footer {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.de-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Header */
.de-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--de-white);
    box-shadow: var(--de-shadow);
    border-bottom: 1px solid var(--de-gray-200);
}

.de-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.de-brand {
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    line-height: 1.2;
}

.de-brand-suite {
    font-size: 15px;
    color: var(--de-navy);
    font-weight: 800;
}

.de-brand-divider {
    color: var(--de-gray-200);
    font-weight: 300;
}

.de-brand-project {
    font-size: 18px;
    font-weight: 800;
    color: var(--de-navy);
}

.de-primary-nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.de-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 2px 6px;
    align-items: center;
}

.de-nav-menu li {
    margin: 0;
}

.de-nav-menu a {
    display: block;
    padding: 8px 11px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--de-navy-dark);
    border-radius: var(--de-radius);
    transition: background 0.15s, color 0.15s;
}

.de-nav-menu a:hover,
.de-nav-menu .current-menu-item > a,
.de-nav-menu .current_page_item > a {
    background: var(--de-navy);
    color: var(--de-white);
}

.de-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--de-navy);
    background: var(--de-white);
    cursor: pointer;
    border-radius: var(--de-radius);
}

.de-nav-toggle span {
    display: block;
    height: 2px;
    background: var(--de-navy);
    border-radius: 1px;
}

/* Hero */
.de-hero,
.de-page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--de-navy) 0%, #1e3a6e 45%, #2a4f8a 100%);
    background-size: cover;
    color: var(--de-white);
    overflow: hidden;
}

.de-page-hero--compact {
    min-height: 200px;
}

.de-hero::before,
.de-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.de-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 51, 0.35) 0%, rgba(20, 36, 75, 0.55) 100%);
    pointer-events: none;
}

.de-hero-inner {
    position: relative;
    z-index: 1;
    padding: 64px 24px;
}

.de-hero-kicker {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--de-gold);
}

.de-hero-title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.de-hero-lead {
    margin: 0 0 28px;
    max-width: 640px;
    font-size: 1.125rem;
    opacity: 0.95;
}

.de-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.de-btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--de-radius);
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.de-btn-primary {
    background: var(--de-gold);
    color: var(--de-navy-dark) !important;
    border-color: var(--de-gold);
}

.de-btn-primary:hover {
    opacity: 0.92;
}

.de-btn-secondary {
    background: transparent;
    color: var(--de-white) !important;
    border-color: var(--de-white);
}

.de-btn-secondary:hover {
    background: var(--de-white);
    color: var(--de-navy) !important;
}

.de-page-title {
    margin: 8px 0 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
}

.de-breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.de-breadcrumb a {
    color: var(--de-white);
    text-decoration: none;
    font-weight: 600;
}

.de-breadcrumb a:hover {
    text-decoration: underline;
}

.de-breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.de-breadcrumb-current {
    font-weight: 700;
}

/* Content sections */
.de-content {
    padding: 48px 24px 64px;
}

.de-section {
    margin-bottom: 56px;
}

.de-section:last-child {
    margin-bottom: 0;
}

.de-section-title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--de-navy);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--de-navy);
}

.de-notice {
    padding: 16px 20px;
    background: #fff1c7;
    border-left: 4px solid var(--de-gold);
}

.de-content-single {
    padding-top: 40px;
}

/* Plugin content spacing inside theme */
.de-content .ds-sales-table,
.de-content .ds-filters,
.de-content .ds-status-summary {
    max-width: 100%;
}

/* Mobile nav */
@media (max-width: 900px) {
    .de-nav-toggle {
        display: flex;
    }

    .de-primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 88vw);
        height: 100vh;
        background: var(--de-white);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        padding: 80px 20px 24px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 999;
    }

    .de-primary-nav.is-open {
        transform: translateX(0);
    }

    .de-nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .de-nav-menu a {
        padding: 14px 16px;
    }

    body.de-nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(6, 16, 51, 0.45);
        z-index: 998;
    }

    .de-hero-inner {
        padding: 48px 24px;
    }

    .de-hero,
    .de-page-hero {
        min-height: 320px;
    }
}
