/* =============================================
   EGONEX - Base
   Reset, typography, accessibility utilities.
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body[data-menu-open="true"] {
    overflow: hidden;
}

main {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-primary);
}

p {
    margin: 0;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

code,
pre,
kbd {
    font-family: var(--font-mono);
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

textarea {
    resize: vertical;
}

:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: var(--color-blue);
    color: var(--text-on-dark);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.skip-link:focus-visible {
    top: var(--spacing-md);
}

.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.is-hidden {
    display: none;
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-text {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--font-size-3xl);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .site-header,
    .site-footer,
    .cookie-banner,
    .menu-toggle,
    .mobile-menu,
    .language-switcher,
    .skip-link,
    .btn {
        display: none !important;
    }

    main {
        padding: 0;
    }

    .section--dark {
        background: white;
        color: black;
    }

    .section--dark p,
    .section--dark .section__description,
    .section--dark .section__title {
        color: black;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]::after,
    a[href^="mailto:"]::after {
        content: "";
    }
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}
