/* ═══════════════════════════════════════
   Shared Styles for Webnox Sub-Pages
   ═══════════════════════════════════════ */

:root {
    /* ─── Premium Color Palette ─── */
    --primary: #020617;        /* Slate 950 */
    --primary-light: #0f172a;  /* Slate 900 */
    --accent: #10b981;         /* Emerald 500 */
    --accent-dark: #059669;    /* Emerald 600 */
    --accent-glow: rgba(16, 185, 129, 0.4);
    --secondary: #6366f1;      /* Indigo 500 */
    --promo: #fbbf24;          /* Amber 400 */
    --danger: #ef4444;
    
    /* ─── Contextual Colors ─── */
    --text: #334155;           /* Slate 600 */
    --text-dark: #0f172a;      /* Slate 900 */
    --text-light: #64748b;     /* Slate 500 */
    --text-muted: #94a3b8;     /* Slate 400 */
    --bg: #f8fafc;             /* Slate 50 */
    --bg-alt: #f1f5f9;         /* Slate 100 */
    --white: #ffffff;
    --border: rgba(226, 232, 240, 0.8);
    
    --radius: 12px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --container: 1200px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── BUTTONS ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-accent {
    background: var(--accent);
    
    border-color: var(--accent);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon-box {
    width: 36px;
    height: 36px;
    background: transparent;
    
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.logo-text .accent {
    color: var(--accent);
}

.logo-subtext {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    position: relative;
}

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

.nav-links a.nav-item-highlight {
    color: var(--accent);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.08);
    padding: 2px 10px;
    border-radius: 6px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ─── PAGE HERO ──────────────────────── */
.page-hero {
    padding: 80px 0 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
}

.page-hero p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto;
}

/* ─── CONTENT ────────────────────────── */
.page-content {
    padding: 64px 0 100px;
}

.content-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 32px;
}

.content-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin: 24px 0 10px;
}

.content-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.content-card ul,
.content-card ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.content-card li {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.info-box,
.warning-box {
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.spec-table th,
.spec-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.spec-table th {
    background: var(--bg-alt);
    font-weight: 700;
    color: var(--primary);
}

/* ─── FOOTER ─────────────────────────────── */
.footer {
    background: #020617;
    
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.footer-col p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    display: grid;
    place-items: center;
}

.social-links a:hover {
    border-color: var(--accent);
    background: rgba(16, 185, 129, .1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
        gap: 16px;
        border-top: 1px solid var(--border);
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-hero {
        padding: 60px 0 36px;
    }

    .page-hero h1 {
        font-size: 26px;
    }

    .content-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── PAGE CTA SECTION ──────────────────── */
.page-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #020617 0%, #1e3a5f 100%);
    color: var(--white);
}

.page-cta h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.page-cta p {
    font-size: 17px;
    opacity: 0.8;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.page-cta .btn-white {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.page-cta .btn-white:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* ─── STEP BADGE ────────────────────────── */
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    
    font-weight: 800;
    font-size: 15px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ─── CODE BLOCK ────────────────────────── */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    margin: 12px 0;
    overflow-x: auto;
}

/* ─── FAQ ITEMS (support/guide pages) ───── */
.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ─── CONTACT GRID (support page) ───────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact-item i {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 2px;
}

.contact-item span {
    font-size: 14px;
    color: var(--text-light);
}

/* ─── FEATURE LIST LONG (features page) ── */
.feature-list-long {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 0;
    list-style: none;
    margin-top: 16px;
}

.feature-list-long li {
    font-size: 15px;
    color: var(--text);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.feature-list-long li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.feature-list-long li strong {
    color: var(--primary);
}

/* ─── SECTION TAG (for subpages) ─────── */
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent);
    margin-bottom: 10px;
}

.accent-text {
    color: var(--accent);
}

/* ─── FOOTER EXTRAS ─────────────────────── */
.footer-compliance {
    margin-top: 8px;
    font-size: 11px !important;
    opacity: 0.5;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    display: inline-block;
}

.social-links a i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}
