/* ===========================================================
   3dprinta.lt — solidus, šiuolaikiškas dizainas
   Paletė: grafitas + balta + "molten" akcentas
   =========================================================== */

:root {
    --ink:      #16181a;
    --ink-2:    #1f2327;
    --steel:    #6b7177;
    --steel-2:  #9aa0a6;
    --plate:    #eceeea;
    --paper:    #fafaf9;
    --white:    #ffffff;
    --line:     #e3e4e0;
    --molten:   #ff6a2c;
    --molten-d: #e8531a;

    --r:   14px;
    --r-s: 10px;
    --maxw: 1180px;

    --shadow:    0 1px 2px rgba(20,22,24,.05), 0 12px 32px -12px rgba(20,22,24,.18);
    --shadow-lg: 0 30px 60px -24px rgba(20,22,24,.35);

    --f-display: "Space Grotesk", system-ui, sans-serif;
    --f-body:    "Inter", system-ui, sans-serif;
    --f-mono:    "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--f-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; }

:focus-visible { outline: 2px solid var(--molten); outline-offset: 3px; border-radius: 4px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--steel); margin: 0 0 1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--molten); box-shadow: 0 0 0 4px rgba(255,106,44,.18); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5em; font-family: var(--f-display); font-weight: 600; font-size: .95rem;
    padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    min-height: 44px;
}
.btn-cta { background: var(--molten); color: #fff; box-shadow: 0 10px 24px -10px rgba(255,106,44,.7); }
.btn-cta:hover { background: var(--molten-d); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,250,249,.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 76px;
}
.contact-pill {
    display: inline-flex; align-items: center; gap: .5em;
    font-size: .85rem; color: var(--steel); font-weight: 500;
    transition: color .15s ease; white-space: nowrap;
}
.contact-pill:hover { color: var(--molten); }
.contact-pill svg { width: 16px; height: 16px; flex: none; }

.header-logo { justify-self: start; display: flex; align-items: center; }
.header-logo img { width: 180px; height: auto; }

.header-nav { justify-self: end; }
.nav-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 24px;
    font-family: var(--f-display); font-weight: 500;
}
.nav-menu > li > a { font-size: .95rem; color: var(--ink); transition: color .15s ease; }
.nav-menu > li > a:hover { color: var(--molten); }
.nav-langs { display: flex; gap: 8px; padding-left: 20px; border-left: 1px solid var(--line); }
.nav-langs .lang { font-family: var(--f-mono); font-size: .78rem; color: var(--steel-2); padding: 2px 4px; }
.nav-langs .lang.is-active { color: var(--ink); border-bottom: 2px solid var(--molten); }

/* Kontaktai dešinėje po mygtukų */
.nav-contacts { display: none; flex-direction: column; gap: 3px; padding-left: 22px; border-left: 1px solid var(--line); }

.nav-toggle { display: none; }

/* ===========================================================
   HERO (tamsus, su build-plate tinkleliu + molten)
   =========================================================== */
.hero {
    position: relative; overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: 84px 0 76px;
}
.hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 75%);
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--molten) 35%, var(--molten) 65%, transparent);
    opacity: .9;
}
.hero-inner { position: relative; max-width: 780px; }
.hero .eyebrow { color: var(--steel-2); }
.hero-title {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff, #c9ccce);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #c4c8cb; max-width: 60ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ===========================================================
   SECTIONS
   =========================================================== */
.section { padding: 76px 0; }
.section-alt { background: var(--plate); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin-bottom: .8rem; }
.section-lead { color: var(--steel); font-size: 1.08rem; margin: 0; }

/* ---------- Services: kaitaliojamos eilutės (paveikslėlis | tekstas) ---------- */
.services-rows { display: flex; flex-direction: column; gap: 28px; }
.service-row { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }

.service-media { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.service-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }

.service-body { padding: 4px 2px; }
.service-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 18px;
    background: var(--ink); color: var(--molten);
}
.service-icon svg { width: 26px; height: 26px; }
.service-body h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .55rem; }
.service-summary { color: var(--steel); margin: 0 0 1.2rem; font-size: 1.02rem; }
.service-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.service-features li { position: relative; padding-left: 24px; font-size: .98rem; color: var(--ink-2); }
.service-features li::before {
    content: ""; position: absolute; left: 0; top: .5em;
    width: 9px; height: 9px; border-radius: 2px;
    background: var(--molten); transform: rotate(45deg);
}

/* ---------- Process ---------- */
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step; }
.process-step { position: relative; padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.process-num { font-family: var(--f-mono); font-weight: 700; font-size: 1rem; color: var(--molten); }
.process-step h3 { font-size: 1.2rem; margin: .5rem 0 .4rem; }
.process-step p { margin: 0; color: var(--steel); font-size: .95rem; }

/* ---------- Contact ---------- */
.section-contact { padding-bottom: 90px; }
.contact-card {
    background: var(--ink); color: #fff; border-radius: 22px;
    padding: 46px 32px; display: grid; gap: 32px;
    position: relative; overflow: hidden;
}
.contact-card::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at 85% 15%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 85% 15%, #000, transparent 70%);
}
.contact-card > * { position: relative; }
.contact-text h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: .7rem; }
.contact-text .eyebrow { color: var(--steel-2); }
.contact-text .section-lead { color: #c4c8cb; }
.contact-channels { display: grid; gap: 14px; }
.contact-channel {
    display: flex; flex-direction: column; gap: 4px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r); padding: 18px 20px; transition: border-color .15s ease, background .15s ease;
}
.contact-channel:hover { border-color: var(--molten); background: rgba(255,106,44,.08); }
.cc-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel-2); }
.cc-value { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: #fff; }
.contact-text .contact-channels { margin-top: 26px; }

/* Užklausos forma */
.quote-form { display: flex; flex-direction: column; }
.quote-form h3 { font-size: 1.3rem; color: #fff; margin-bottom: 14px; }
.quote-form label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-2); margin: 12px 0 5px; }
.quote-form input, .quote-form textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: .95rem;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #8b9196; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--molten); background: rgba(255,106,44,.07); }
.quote-form textarea { resize: vertical; min-height: 104px; }
.quote-form .btn-cta { margin-top: 18px; align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { padding: 11px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 6px; }
.form-msg--ok { background: rgba(60,200,120,.14); border: 1px solid rgba(60,200,120,.4); color: #bff0cf; }
.form-msg--err { background: rgba(255,106,44,.14); border: 1px solid rgba(255,106,44,.45); color: #ffc9b0; }
.form-note { margin: 8px 0 0; font-size: .82rem; color: var(--steel-2); }
.form-privacy { margin: 12px 0 0; font-size: .78rem; color: #8b9196; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--ink); color: #c4c8cb; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-wordmark { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; color: #fff; margin-bottom: 12px; }
.footer-wordmark::after { content: "."; color: var(--molten); }
.footer-brand p { margin: 0; max-width: 36ch; font-size: .95rem; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a:hover { color: var(--molten); }
.footer-social { display: flex; gap: 14px; margin-top: 12px; }
.footer-social a { display: inline-flex; color: #c4c8cb; transition: color .15s ease, transform .15s ease; }
.footer-social a:hover { color: var(--molten); transform: translateY(-2px); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom { padding-top: 22px; font-size: .82rem; color: var(--steel); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (min-width: 600px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

/* Telefone: tekstas visada VIRŠ paveikslėlio (paveikslėlis po tekstu) */
@media (max-width: 759px) {
    .service-body { order: 1; }
    .service-media { order: 2; }
}

@media (min-width: 760px) {
    /* Paveikslėlis | (įstrižas slash) | tekstas, kaitaliojasi zigzagu */
    .services-rows { gap: 18px; }
    .service-row { grid-template-columns: 1.04fr .96fr; gap: 0; align-items: stretch; }

    .service-media { border-radius: 0; box-shadow: none; margin-right: -42px; z-index: 1;
        clip-path: polygon(0 0, 100% 0, calc(100% - 84px) 100%, 0 100%); }
    .service-media img { aspect-ratio: auto; height: 100%; min-height: 400px; }

    .service-body { align-self: center; padding: 14px 0 14px 70px; }

    .service-row.is-reversed .service-media { order: 2; margin-right: 0; margin-left: -42px;
        clip-path: polygon(84px 0, 100% 0, 100% 100%, 0 100%); }
    .service-row.is-reversed .service-body { order: 1; padding: 14px 70px 14px 0; }

    /* Paslauga be paveikslėlio — viso pločio tekstas */
    .service-row--noimg { grid-template-columns: 1fr; }
    .service-row--noimg .service-body { padding: 14px 0; }
}

@media (min-width: 1080px) {
    .nav-contacts { display: flex; }
}

@media (min-width: 900px) {
    .process-grid { grid-template-columns: repeat(4, 1fr); }
    .contact-card { grid-template-columns: 1.05fr .95fr; align-items: start; padding: 56px 52px; }
    .section { padding: 96px 0; }
    .hero { padding: 110px 0 96px; }
    .service-media img { min-height: 460px; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 899px) {
    .header-grid { grid-template-columns: auto 1fr auto; }
    .header-logo { justify-self: center; }
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
    }
    .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu {
        position: fixed; inset: 76px 0 auto 0;
        flex-direction: column; align-items: flex-start; gap: 4px;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 16px 20px 24px; transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform .2s ease, opacity .2s ease; box-shadow: var(--shadow);
    }
    .nav-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { display: block; padding: 12px 0; font-size: 1.1rem; }
    .nav-langs { border-left: none; padding-left: 0; padding-top: 10px; }
    .nav-menu .btn-cta { width: 100%; margin-top: 10px; display: flex; justify-content: center; text-align: center; }
    .nav-contacts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; border-left: none; padding-left: 0; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); width: 100%; }
}

/* ===========================================================
   Slapukų baneris + privatumo modalas
   =========================================================== */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-privacy { background: none; border: none; padding: 0; font: inherit; color: var(--steel); text-decoration: underline; cursor: pointer; }
.footer-privacy:hover { color: var(--molten); }

.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: var(--ink); color: #e6e7e8;
    padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: 12px 18px;
    box-shadow: 0 -12px 30px -14px rgba(0,0,0,.55);
}
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; font-size: .92rem; max-width: 760px; }
.cookie-link { background: none; border: none; padding: 0; font: inherit; color: var(--molten); text-decoration: underline; cursor: pointer; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-banner .btn { padding: .6em 1.3em; min-height: 40px; }
.cookie-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.cookie-banner .btn-ghost:hover { background: #fff; color: var(--ink); }

.privacy-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(10,11,12,.6); overflow-y: auto; padding: 5vh 16px; }
.privacy-modal[hidden] { display: none; }
.privacy-dialog { position: relative; max-width: 720px; margin: 0 auto; background: var(--white); color: var(--ink); border-radius: 14px; padding: 46px 28px 30px; box-shadow: var(--shadow-lg); }
.privacy-close { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; font-size: 26px; line-height: 1; background: none; border: none; cursor: pointer; color: var(--steel); border-radius: 8px; }
.privacy-close:hover { color: var(--ink); background: var(--plate); }
.privacy-h { font-size: 1.55rem; margin: 0 0 1rem; padding-left: 42px; }
.privacy-body { font-size: .95rem; line-height: 1.6; }
.privacy-body h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.privacy-body p { margin: 0 0 .8rem; color: var(--ink-2); }
.privacy-body a { color: var(--molten); }
.privacy-body table { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; font-size: .88rem; }
.privacy-body th, .privacy-body td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.privacy-body th { background: var(--paper); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
