/* Virexa — shared layout: bold editorial + dark chrome */

:root {
    --color-bg-primary: #f4f0e8;
    --color-bg-secondary: #e8f2ef;
    --color-bg-elevated: #ffffff;
    --color-bg-muted: #e5dfd4;

    --color-ink: #0c1a18;
    --color-accent-primary: #0d9488;
    --color-accent-deep: #0f766e;
    --color-accent-primary-hover: #14b8a6;
    --color-accent-warm: #ea580c;
    --color-accent-gold: #d97706;
    --color-highlight: #fbbf24;
    --color-cta: #ea580c;
    --color-cta-hover: #c2410c;

    --color-text-primary: #0c1a18;
    --color-text-secondary: #3f4f4c;
    --color-text-muted: #5c6d69;

    --color-border: rgba(13, 148, 136, 0.18);
    --color-border-strong: rgba(13, 148, 136, 0.35);

    --color-header-bg: linear-gradient(135deg, #042f2e 0%, #064e3b 48%, #065f46 100%);
    --color-header-border: rgba(251, 191, 36, 0.35);

    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --shadow-sm: 0 2px 12px rgba(6, 47, 46, 0.08);
    --shadow-md: 0 12px 40px rgba(6, 47, 46, 0.12);
    --shadow-lg: 0 24px 64px rgba(6, 47, 46, 0.16);
    --shadow-glow-warm: 0 8px 32px rgba(234, 88, 12, 0.22);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-blob: 60% 40% 55% 45% / 45% 55% 45% 55%;

    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

main {
    position: relative;
    z-index: 1;
}

/* Paper texture + soft grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.07) 1px, transparent 0),
        radial-gradient(ellipse 120% 80% at 0% 0%, rgba(234, 88, 12, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 90% 60% at 100% 10%, rgba(217, 119, 6, 0.05) 0%, transparent 45%),
        linear-gradient(180deg, rgba(244, 240, 232, 0.97) 0%, rgba(244, 240, 232, 1) 40%);
    background-size:
        24px 24px,
        100% 100%,
        100% 100%,
        100% 100%;
    pointer-events: none;
    z-index: 0;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-header-border);
    box-shadow: 0 4px 24px rgba(4, 47, 46, 0.35);
    transition: var(--transition-base);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    transition: var(--transition-base);
}

.logo::before {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--color-highlight), var(--color-accent-warm));
    border-radius: var(--radius-blob);
    transform: rotate(12deg);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.4);
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: #fefce8;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.logo-image {
    height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(254, 252, 232, 0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-base);
    border-radius: 999px;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.55rem 0.65rem;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #fefce8;
    transition: var(--transition-base);
    border-radius: 2px;
}

.main-footer {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    padding-top: calc(var(--spacing-lg) + 6px);
    background: linear-gradient(180deg, #022c22 0%, #042f2e 40%, #064e3b 100%);
    z-index: 1;
    box-shadow: 0 -12px 48px rgba(4, 47, 46, 0.25);
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-accent-warm), var(--color-accent-primary), var(--color-highlight));
    background-size: 200% 100%;
    animation: footerShine 8s linear infinite;
}

.main-footer::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(254, 252, 232, 0.25), transparent);
}

@keyframes footerShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    text-align: center;
}

.footer-text,
.footer-links {
    color: rgba(226, 232, 230, 0.85);
    font-size: 0.9rem;
    line-height: 1.9;
}

.footer-link {
    color: #fde68a;
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 500;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-link {
    color: var(--color-accent-deep);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 600;
    border-bottom: 2px solid rgba(13, 148, 136, 0.35);
}

.contact-link:hover {
    color: var(--color-accent-warm);
    border-bottom-color: var(--color-accent-warm);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #064e3b 0%, #042f2e 100%);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0.25rem;
        transform: translateX(-100%);
        transition: var(--transition-base);
        border-bottom: 1px solid var(--color-header-border);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        border-radius: var(--radius-sm);
        border-bottom: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: var(--spacing-sm);
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-image {
        height: 40px;
    }
}
