/* ===== CASE STUDY 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; }
}

/* ===== CASE HERO ===== */
.case-hero {
    background: #111111;
    padding: 72px 0 64px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.case-hero-inner {
    max-width: 760px; margin: 0 auto; padding: 0 48px;
}
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: rgba(255,255,255,0.3);
    text-decoration: none; margin-bottom: 32px; transition: color 0.2s;
}
.back-link:hover { color: rgba(255,255,255,0.7); }
.case-tag {
    display: inline-block; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.case-title {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #ffffff; letter-spacing: -0.03em; line-height: 1.1;
    margin: 0 0 24px;
}
.case-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 0.75rem; color: rgba(255,255,255,0.28);
}

/* ===== METRIC STRIP ===== */
.case-metrics {
    background: #0d0e16;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0;
}
.case-metrics-inner {
    max-width: 760px; margin: 0 auto; padding: 0 48px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.metric-block { text-align: center; }
.metric-val {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--accent); letter-spacing: -0.03em;
    line-height: 1; display: block; margin-bottom: 6px;
}
.metric-label {
    font-size: 0.72rem; color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
}

@media (max-width: 600px) {
    .case-metrics-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== CASE BODY ===== */
.case-body-wrap {
    max-width: 760px; margin: 0 auto; padding: 64px 48px 80px;
}
.case-body h2 {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 1.4rem; color: #111111; letter-spacing: -0.02em;
    margin: 48px 0 16px;
}
.case-body h2:first-child { margin-top: 0; }
.case-body h3 {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 1.05rem; color: #111111; margin: 32px 0 12px;
}
.case-body p {
    font-size: 0.95rem; color: rgba(0,0,0,0.62);
    line-height: 1.85; margin-bottom: 18px;
}
.case-body strong { color: #111111; font-weight: 600; }
.case-body ul, .case-body ol { padding-left: 20px; margin-bottom: 18px; }
.case-body li {
    font-size: 0.95rem; color: rgba(0,0,0,0.62);
    line-height: 1.85; margin-bottom: 6px;
}

/* Result callout */
.case-result {
    background: rgba(255,126,95,0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 20px 24px; margin: 28px 0;
    font-size: 0.92rem; color: rgba(0,0,0,0.6); line-height: 1.75;
}
.case-result strong { color: #111; }

/* CTA block */
.case-cta {
    background: #111111; border-radius: 8px;
    padding: 36px 40px; margin-top: 56px; text-align: center;
}
.case-cta h3 {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 1.3rem; color: #fff; margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.case-cta p {
    font-size: 0.9rem; color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: 0.85rem;
    text-decoration: none; padding: 12px 24px;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

/* ===== 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; }
}
@media (max-width: 600px) {
    .case-hero-inner, .case-body-wrap { padding-left: 24px; padding-right: 24px; }
    .case-hero { padding: 56px 0 48px; }
    .case-metrics-inner { padding-left: 24px; padding-right: 24px; }
}
