/* ═══════ Praxis Website Theme System ═══════ */

/* Dark Gold (default) */
:root {
    --bg-body: #0c1322;
    --bg-section: #111b2e;
    --bg-card: #131d30;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #c9a962;
    --accent-hover: #d4b56d;
    --border: rgba(201, 169, 98, 0.12);
    --border-strong: rgba(201, 169, 98, 0.25);
    --success: #10b981;
    --cta-bg: linear-gradient(135deg, #131d30 0%, #0c1322 100%);
}

/* Light Gold */
[data-theme="light"] {
    --bg-body: #f8f5ef;
    --bg-section: #f0ebe0;
    --bg-card: #ffffff;
    --text-primary: #1c1710;
    --text-secondary: #4a4030;
    --text-muted: #7a6e5c;
    --accent: #9a7b2e;
    --accent-hover: #836820;
    --border: rgba(154, 123, 46, 0.18);
    --border-strong: rgba(154, 123, 46, 0.3);
    --success: #059669;
    --cta-bg: linear-gradient(135deg, #f0ebe0 0%, #e8e0d0 100%);
}

/* Auto-detect system preference */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-body: #f8f5ef;
        --bg-section: #f0ebe0;
        --bg-card: #ffffff;
        --text-primary: #1c1710;
        --text-secondary: #4a4030;
        --text-muted: #7a6e5c;
        --accent: #9a7b2e;
        --accent-hover: #836820;
        --border: rgba(154, 123, 46, 0.18);
        --border-strong: rgba(154, 123, 46, 0.3);
        --success: #059669;
        --cta-bg: linear-gradient(135deg, #f0ebe0 0%, #e8e0d0 100%);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 32px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-primary);
}

.btn {
    background: var(--accent);
    color: #0a0f1c;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-block;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 169, 98, 0.25);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    margin-left: 16px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero */
.hero {
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-section);
    border-color: var(--accent);
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-section);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.feature:hover {
    border-color: var(--accent);
}

.feature h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 20px;
}

.feature p {
    color: var(--text-secondary);
}

/* Pricing */
.pricing {
    padding: 80px 0;
}

.pricing h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.2s;
}

.price-card:hover {
    border-color: var(--accent);
}

.price-card.popular {
    border-color: var(--accent);
    position: relative;
}

.price-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #0a0f1c;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    margin: 24px 0;
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 24px 0;
}

.price-card li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.price-card li::before {
    content: '✓';
    color: var(--success);
    margin-right: 8px;
}

/* CTA */
.cta {
    padding: 80px 0;
    text-align: center;
    background: var(--cta-bg);
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 16px;
    transition: color 0.2s;
}

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

/* Construction Banner */
.construction-banner {
    background: linear-gradient(135deg, #c9a962, #a8873a);
    color: #0a0f1c;
    text-align: center;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
}

.construction-banner span {
    display: block;
    font-weight: 400;
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Hide nav links but keep controls visible */
    nav > a, nav > .btn {
        display: none;
    }

    nav.mobile-open > a,
    nav.mobile-open > .btn {
        display: block;
    }

    nav.mobile-open {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-strong);
        padding: 16px 24px;
        flex-direction: column;
        gap: 12px;
        z-index: 99;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    nav.mobile-open > a {
        margin-left: 0;
        padding: 8px 0;
    }

    /* Controls always visible on mobile */
    .site-controls {
        margin-left: auto;
        padding-left: 0;
        border-left: none;
    }

    /* Hamburger button */
    .mobile-menu-btn {
        display: flex;
    }

    header .container {
        position: relative;
    }
}

/* Nav layout */
nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hamburger menu button (mobile only) */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s;
    order: -1;
}

.mobile-menu-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Language Switcher — compact globe dropdown */
.site-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border-strong);
}

.lang-dropdown {
    position: relative;
}

.lang-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.lang-trigger:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-globe {
    font-size: 16px;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-left: 0;
    transition: all 0.15s;
}

.lang-menu a:hover {
    background: var(--bg-section);
    color: var(--text-primary);
}

.lang-menu a.active {
    color: var(--accent);
    background: rgba(201, 169, 98, 0.08);
    font-weight: 600;
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

/* Legacy .lang-switch — keep for graceful fallback */
.lang-switch {
    display: none;
}

/* Info Sections (Privacy Hero, Why Praxis, etc.) */
.info-section {
    padding: 60px 0;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border);
}

.info-section.alt {
    background: var(--bg-body);
}

.info-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.info-section .subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 18px;
}

.info-section .emoji-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.info-card .stat {
    font-size: 36px;
    color: var(--success);
    font-weight: 700;
}

.info-card .label {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 8px;
}

.info-card .detail {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Feature icons row */
.icon-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.icon-item {
    text-align: center;
}

.icon-item .icon {
    font-size: 24px;
}

.icon-item .icon-label {
    color: var(--success);
    font-weight: 600;
    margin-top: 8px;
}

.icon-item .icon-detail {
    color: var(--text-muted);
    font-size: 14px;
}

/* Comparison Table */
.comparison {
    padding: 80px 0;
    background: var(--bg-section);
}

.comparison h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
}

.comparison .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-section);
    font-weight: 600;
    font-size: 14px;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    padding-left: 24px;
}

.comparison-table td:first-child {
    color: var(--text-primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .check { color: var(--success); font-size: 18px; }
.comparison-table .cross { color: #ef4444; font-size: 18px; }
.comparison-table .partial { color: #f59e0b; font-size: 14px; }

.comparison-table .competitor {
    background: var(--bg-body);
    color: var(--text-muted);
}

.comparison-table th.competitor {
    background: var(--bg-body);
    color: var(--text-muted);
}

/* Enterprise card */
.price-card.enterprise {
    border-color: #8b5cf6;
}

.price-card.enterprise h3 {
    color: #8b5cf6;
}

.price-card.enterprise .btn {
    background: #8b5cf6;
}

/* Misc helpers */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.small { font-size: 14px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Legal / text pages */
.legal-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.legal-content p, .legal-content li {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-content a {
    color: var(--accent);
}

/* FAQ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.faq-item h3 {
    color: var(--accent);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-secondary);
}

/* Contact form */
.contact-form input,
.contact-form textarea,
.contact-form select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}
