/* ===== BLOG SHARED STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent: #ff7e5f;
    --dark: #111111;
    --light: #fdfaf9;
    --text: #1a1a1a;
    --muted: rgba(0,0,0,0.45);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.page-wrap {
    opacity: 0;
    animation: pageIn 0.5s ease forwards;
    padding-top: 60px;
}
body.page-leaving .page-wrap {
    animation: pageOut 0.3s ease forwards;
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pageOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-6px); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: #111111;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 48px;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.nav-logo {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 1.15rem; color: #ffffff;
    letter-spacing: -0.03em; text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
    color: rgba(255,255,255,0.35); text-decoration: none;
    font-size: 0.78rem; font-weight: 500;
    padding: 6px 13px; letter-spacing: 0.02em; transition: color 0.18s;
}
.nav-link:hover { color: rgba(255,255,255,0.75); }
.nav-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.08); margin: 0 8px; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px;
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-weight: 600; font-size: 0.76rem;
    text-decoration: none; letter-spacing: 0.04em;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    margin-left: 10px;
}
.nav-cta:hover { border-color: rgba(255,255,255,0.5); color: #ffffff; background: rgba(255,255,255,0.04); }

.nav-lang {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    margin-left: 12px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.nav-lang:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
}

/* Burger button */
.nav-burger {
    display: none; width: 28px; height: 28px;
    background: none; border: none; cursor: pointer;
    position: relative; padding: 0; margin-left: 12px;
    flex-shrink: 0;
}
.nav-burger span {
    display: block; width: 18px; height: 1.5px;
    background: rgba(255,255,255,0.6);
    position: absolute; left: 5px;
    transition: transform 0.3s, opacity 0.2s;
}
.nav-burger span:nth-child(1) { top: 9px; }
.nav-burger span:nth-child(2) { top: 14px; }
.nav-burger span:nth-child(3) { top: 19px; }
.nav-burger.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile {
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: #111111;
    z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    pointer-events: none;
}
.nav-mobile.open {
    opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all;
}
.nav-mobile a {
    color: #ffffff !important; text-decoration: none;
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 1.3rem; padding: 14px 20px;
    letter-spacing: -0.02em;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.nav-mobile a:hover { opacity: 1; }
.nav-mobile .nav-lang {
    margin: 16px 0 0; width: 40px; height: 40px;
    font-size: 0.75rem;
}

.scroll-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 90;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    pointer-events: none;
}
.scroll-top.visible {
    opacity: 1; transform: translateY(0); pointer-events: all;
}
.scroll-top:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

@media (max-width: 768px) {
    .nav-inner { padding: 0 24px; }
    .nav-link { display: none; }
    .nav-divider { display: none; }
    .nav-cta { display: none; }
    .nav-lang { display: none; }
    .nav-burger { display: block; }
}

/* ===== FOOTER ===== */
.site-footer { background: #111111; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-main {
    max-width: 1100px; margin: 0 auto; padding: 64px 48px 48px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 1.3rem; color: #ffffff; letter-spacing: -0.03em; text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.28); line-height: 1.65; max-width: 200px; }
.footer-socials { display: flex; gap: 14px; }
.footer-social-link {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.25); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.footer-social-link:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); }
.footer-nav-col { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-label { font-size: 0.63rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.18); margin-bottom: 6px; }
.footer-link { font-size: 0.84rem; color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06); max-width: 1100px; margin: 0 auto;
    padding: 22px 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.18); }
.footer-legal { display: flex; align-items: center; gap: 20px; }
.footer-legal .footer-link { font-size: 0.72rem; color: rgba(255,255,255,0.18); }

@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 24px 36px; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { padding: 18px 24px; }
}
