/* UNICOSOFT external stylesheet.
 *
 * Hosts the shared "chrome" rules (reset, color variables, typography,
 * navbar, burger menu, mobile nav overlay, container, section, footer)
 * plus the Metropolis @font-face declarations. Every content page
 * links to this file, so these rules are parsed and cached once
 * across the whole site instead of duplicated inline per page.
 *
 * Page-specific rules (hero backgrounds, section layouts, forms, job
 * cards, team grids, etc.) stay inline in each HTML file. The
 * responsive @media blocks also stay inline for now — they are
 * internally mixed (chrome + page-specific) and splitting them would
 * require a separate pass.
 */

/* ========================================================================
 * Fonts
 * ==================================================================== */

@font-face {
    font-family: 'Metropolis';
    src: url('/fonts/Metropolis-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('/fonts/Metropolis-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================================================
 * Reset + base typography
 * ==================================================================== */

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

:root {
    --color-beige: #e8e8e0;
    --color-olive: #b8b8a8;
    --color-dark: #1a1a1a;
    --color-footer: #d8d8d0;
    --color-white: #ffffff;
    --color-text: #333333;
}

body {
    font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========================================================================
 * Sticky navigation
 * ==================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.nav-left {
    justify-self: start;
}

.logo {
    text-decoration: none;
    justify-self: center;
    display: flex;
    align-items: center;
}

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

.nav-right {
    justify-self: end;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Language selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.language-selector a:hover {
    color: var(--color-olive);
}

.language-selector a.active {
    color: var(--color-olive);
    font-weight: 600;
}

.language-selector .separator {
    color: var(--color-text);
    font-weight: 300;
}

/* ========================================================================
 * Burger menu + mobile navigation overlay
 * ==================================================================== */

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    left: 0;
}

.mobile-nav-overlay .nav-links {
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-overlay .nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
}

.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================================================
 * Layout primitives
 * ==================================================================== */

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

section {
    padding: 5rem 0;
}

/* ========================================================================
 * Footer
 * ==================================================================== */

footer {
    background-color: var(--color-footer);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-olive);
}
