/* ============================================
   Valcat Shared Styles
   Common CSS used across all pages
   ============================================ */

/* Variables */
:root {
    --primary-blue: #3B5BDB;
    --primary-blue-light: #4C6EF5;
    --magic-purple: #845EF7;
    --magic-purple-light: #B197FC;
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-gray: #F8F9FA;
    --success-green: #10B981;
    --gradient-magic: linear-gradient(135deg, var(--primary-blue) 0%, var(--magic-purple) 100%);
    --gradient-magic-hover: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--magic-purple-light) 100%);
    --section-padding: 5rem 0;
    --container-width: 1200px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }

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

/* Typography */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary-blue); }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { font-size: 1.125rem; color: var(--text-gray); margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Layout */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--section-padding); }
.section-gray { background-color: var(--bg-gray); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-magic);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(132, 94, 247, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(132, 94, 247, 0.2);
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color 0.2s; font-size: 0.925rem; }
.nav-links a:hover, .nav-links a.active { color: var(--magic-purple); }
.nav-links .btn { padding: 0.6rem 1.25rem; font-size: 0.875rem; }

/* Footer */
footer { background-color: var(--primary-blue); color: white; padding: 4rem 0 2rem; }
footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
footer a:hover { color: white; }

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    z-index: 1002;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-blue);
    margin: 6px auto;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.nav-links.active ~ .mobile-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-links.active ~ .mobile-toggle span:nth-child(2) { opacity: 0; }
.nav-links.active ~ .mobile-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        text-align: left;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active { right: 0; display: flex; }

    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: -1;
        backdrop-filter: blur(2px);
        transform: translateX(-100%);
    }

    .mobile-toggle { display: block; }

    .nav-links a {
        display: block;
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 0.5rem;
        width: 100%;
    }

    .nav-links .btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    h1 { font-size: 2rem; }

    /* Footer mobile fix */
    footer div[style*="min-width"] { min-width: 0 !important; width: 100% !important; }
    footer div[style*="display: flex"] { flex-direction: column !important; }
}
