/*
Theme Name: Biurokratijos Viršukalnės
Theme URI: https://biurokratijosvirsukalnes.lt
Author: INREAL
Description: K26 dangoraižio projektas - Biurokratijos viršukalnės. 5 metų žygis.
Version: 1.0
Text Domain: biurokratijosvirsukalnes
*/

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --white: #fff;
    --bg: #f0f0f2;
    --bg-warm: #c9c7c2;
    --surface: #fff;
    --border: #d8d8db;
    --border-l: #e6e6e9;
    --text: #1d1d1f;
    --text-2: #48484a;
    --text-3: #86868b;
    --red: #c8102e;
    --red-bg: #fdf2f3;
    --red-border: #f0c5cb;
    --red-dark: #9e0c24;
    --dark: #161618;
    --font: 'Outfit', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --w: 1100px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }
.w { max-width: var(--w); margin: 0 auto; padding: 0 36px; }
::selection { background: var(--red); color: #fff; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0; background: rgba(240,240,242,0.65); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transition: 0.4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(255,255,255,0.88); border-bottom-color: var(--border-l); }
.nav-in { display: flex; justify-content: space-between; align-items: center; max-width: var(--w); margin: 0 auto; padding: 13px 36px; }
.nav-logo { font-weight: 700; font-size: 1.1rem; color: var(--red); letter-spacing: 3px; text-transform: uppercase; transition: opacity 0.2s; }
.nav-logo:hover { opacity: 0.7; color: var(--red); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-3); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--red); transition: width 0.25s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.burger { display: none; cursor: pointer; flex-direction: column; gap: 4px; }
.burger span { width: 18px; height: 1.5px; background: var(--text); transition: 0.3s; display: block; }

.hero { margin-top: 50px; padding: 20px; }
.hero-card {
    display: grid; grid-template-columns: 0.88fr 1.12fr;
    background: var(--bg-warm); border-radius: 6px; overflow: hidden;
    min-height: 84vh; max-width: 1360px; margin: 0 auto;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 48px rgba(0,0,0,0.06);
}
.hero-l { padding: 64px 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.hero-l h1 { font-size: clamp(4.5rem,9vw,8rem); font-weight: 800; line-height: 0.85; letter-spacing: -4px; margin-bottom: 14px; color: var(--text); }
.hero-l .sub { font-size: 1rem; font-weight: 400; color: var(--text-2); margin-bottom: 28px; line-height: 1.45; letter-spacing: 0.2px; }
.hero-l .accent-wrap { margin-bottom: 32px; display: block; width: fit-content; background: var(--red); }
.hero-l .accent-bar { color: #fff; padding: 5px 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.hero-l .accent-title { color: #fff; padding: 6px 16px; font-size: clamp(1.7rem,3.5vw,2.6rem); font-weight: 700; line-height: 1.1; display: block; }
.hero-l .desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.95; max-width: 400px; letter-spacing: 0.1px; }
.hero-l .btn-link { display: inline-flex; align-items: center; margin-top: 20px; font-size: 0.78rem; font-weight: 600; color: var(--red); letter-spacing: 0.3px; transition: color 0.2s, transform 0.2s; }
.hero-l .btn-link:hover { color: var(--red-dark); transform: translateY(2px); }
.hero-r { position: relative; overflow: hidden; }
.hero-r img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.hero-r:hover img { transform: scale(1.03); }
.hero-r .logo-overlay { position: absolute; bottom: 20px; right: 0; opacity: 0.9; transition: opacity 0.3s; }
.hero-r .logo-overlay:hover { opacity: 1; }
.hero-r .logo-overlay img { height: 100px; width: auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.2)); }

.section-label { font-size: 0.64rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.s-header { text-align: center; margin-bottom: 56px; }
.s-header h2 { font-size: clamp(1.5rem,2.8vw,2.1rem); font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.s-header h2 span { color: var(--red); }
.s-header p { color: var(--text-3); font-size: 0.88rem; max-width: 440px; margin: 0 auto; line-height: 1.65; }

.tl-section { padding: 80px 0 88px; background: var(--white); border-top: 1px solid var(--border-l); }
.tl { position: relative; max-width: 760px; margin: 0 auto; }
.tl::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border-l); transform: translateX(-50%); }
.tl-item { display: flex; position: relative; }
.tl-item:nth-child(odd) { padding-right: calc(50% + 30px); text-align: right; }
.tl-item:nth-child(even) { flex-direction: row-reverse; padding-left: calc(50% + 30px); }
.tl-dot { position: absolute; left: 50%; top: 4px; width: 8px; height: 8px; background: var(--white); border: 1.5px solid var(--border); border-radius: 50%; transform: translateX(-50%); z-index: 2; transition: 0.3s; }
.tl-item:hover .tl-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-bg); transform: translateX(-50%) scale(1.2); }
.tl-item.hl .tl-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.tl-body { padding-bottom: 34px; }
.tl-date { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; color: var(--red); margin-bottom: 4px; letter-spacing: 0.2px; }
.tl-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; line-height: 1.35; letter-spacing: -0.1px; }
.tl-text { font-size: 0.8rem; color: var(--text-3); line-height: 1.65; }
.tl-text em { color: var(--text-2); }

.market { padding: 80px 0 88px; background: var(--bg); border-top: 1px solid var(--border-l); }
.market-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 14px; }
.m-card { background: var(--white); border-radius: 5px; padding: 28px 22px; border: 1px solid var(--border-l); text-align: center; transition: transform 0.35s, box-shadow 0.35s; position: relative; overflow: hidden; }
.m-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--border); transition: background 0.3s; }
.m-card:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(0,0,0,0.05); }
.m-card:hover::before { background: var(--red); }
.m-card .m-num { font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 4px; letter-spacing: -0.5px; }
.m-card:first-child .m-num { color: var(--red); }
.m-card .m-label { font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; margin-bottom: 10px; }
.m-card .m-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.65; }
.grafika-wrap { background: var(--white); border-radius: 5px; padding: 24px; border: 1px solid var(--border-l); margin-top: 14px; }
.grafika-wrap img { width: 100%; height: auto; border-radius: 3px; }

.media { padding: 80px 0 88px; background: var(--bg); border-top: 1px solid var(--border-l); }
.media-list { display: flex; flex-direction: column; gap: 2px; }
.media-item { display: flex; align-items: center; gap: 20px; background: var(--white); border: 1px solid var(--border-l); border-radius: 5px; padding: 22px 28px; text-decoration: none; color: var(--text); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.media-item:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-color: var(--red-border); color: var(--text); }
.media-source { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; color: var(--red); letter-spacing: 0.5px; text-transform: uppercase; min-width: 60px; flex-shrink: 0; }
.media-title { font-size: 0.88rem; font-weight: 500; line-height: 1.45; flex: 1; }
.media-arrow { font-size: 1rem; color: var(--text-3); transition: color 0.2s, transform 0.2s; flex-shrink: 0; }
.media-item:hover .media-arrow { color: var(--red); transform: translateX(3px); }
.docs-section { background: var(--white); }
.doc-date { min-width: 90px; }
.doc-icon { font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.3px; min-width: 44px; text-align: right; }

.loc { padding: 80px 0 64px; background: var(--white); border-top: 1px solid var(--border-l); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.loc h2 { font-size: clamp(1.35rem,2.2vw,1.8rem); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.2px; }
.loc p { color: var(--text-2); font-size: 0.86rem; line-height: 1.8; margin-bottom: 6px; }
.loc-list { margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.loc-row { display: flex; align-items: center; gap: 10px; }
.loc-icon { width: 32px; height: 32px; background: var(--red-bg); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.loc-row strong { display: block; font-size: 0.82rem; margin-bottom: 0; letter-spacing: -0.1px; }
.loc-row .sub { font-size: 0.73rem; color: var(--text-3); }
.loc-map { border-radius: 5px; overflow: hidden; height: 330px; border: 1px solid var(--border-l); }
.loc-map iframe { width: 100%; height: 100%; border: 0; }

.cta { padding: 72px 0; background: var(--bg); border-top: 1px solid var(--border-l); text-align: center; }
.cta h2 { font-size: clamp(1.5rem,2.8vw,2.1rem); font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.cta p { color: var(--text-2); font-size: 0.88rem; max-width: 440px; margin: 0 auto; line-height: 1.7; }

.foot { background: var(--white); padding: 32px 0 16px; border-top: 1px solid var(--border-l); }
.foot-in { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.foot-logo { font-weight: 700; font-size: 0.95rem; color: var(--red); letter-spacing: 3px; text-transform: uppercase; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--text-3); font-size: 0.72rem; font-weight: 500; transition: color 0.2s; }
.foot-links a:hover { color: var(--text); }
.foot-bottom { text-align: center; padding-top: 14px; border-top: 1px solid var(--border-l); font-size: 0.68rem; color: var(--text-3); }

.anim { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.anim.in { opacity: 1; transform: translateY(0); }
.anim-l { opacity: 0; transform: translateX(-20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.anim-l.in { opacity: 1; transform: translateX(0); }
.anim-r { opacity: 0; transform: translateX(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.anim-r.in { opacity: 1; transform: translateX(0); }
.d1 { transition-delay: .06s; } .d2 { transition-delay: .12s; } .d3 { transition-delay: .18s; }

@media (max-width: 1024px) {
    .hero-card { grid-template-columns: 1fr; }
    .hero-l { padding: 80px 36px 40px; }
    .hero-r { height: 400px; }
    .loc-grid { grid-template-columns: 1fr; gap: 32px; }
    .market-row { grid-template-columns: 1fr 1fr; }
    .market-row .m-card:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 768px) {
    .w { padding: 0 16px; }
    .nav-in { padding: 10px 16px; }
    .hero { padding: 10px; }
    .hero-l { padding: 56px 22px 32px; }
    .hero-l h1 { font-size: 3.4rem; letter-spacing: -2px; }
    .hero-r { height: 300px; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 70%; max-width: 260px; height: 100vh; background: var(--white); flex-direction: column; padding: 72px 28px; gap: 16px; transition: 0.35s; box-shadow: -2px 0 24px rgba(0,0,0,0.06); }
    .nav-links.open { right: 0; }
    .burger { display: flex; }
    .burger.on span:nth-child(1) { transform: rotate(45deg) translate(4px,3px); }
    .burger.on span:nth-child(2) { opacity: 0; }
    .burger.on span:nth-child(3) { transform: rotate(-45deg) translate(4px,-3px); }
    .tl::before { left: 12px; }
    .tl-item:nth-child(odd), .tl-item:nth-child(even) { flex-direction: row; padding-right: 0; padding-left: 36px; text-align: left; }
    .tl-dot { left: 12px; }
    .market-row { grid-template-columns: 1fr; }
    .market-row .m-card:nth-child(3) { grid-column: auto; }
    .foot-in { flex-direction: column; gap: 14px; text-align: center; }
    .foot-links { flex-wrap: wrap; justify-content: center; gap: 14px; }
    .loc-map { height: 220px; }
    .hero-r .logo-overlay img { height: 72px; }
    .grafika-wrap { padding: 16px; }
}
@media (max-width: 480px) { .hero-l h1 { font-size: 2.8rem; } }
