/* ============================================================
   Landing (radionica.ddtech.hr /) — dD Tech radionice
   Signature: 3D-printana QR pločica (scan → otključaj).
   Koristi theme.css tokene; hero/band/footer su fiksno navy.
   ============================================================ */

.lp {
    /* theme-aware: prati svijetlu/tamnu temu preko dijeljenih tokena */
    --hero-ink: var(--ink);
    --hero-mut: var(--muted);
    --hero-line: var(--line);
    --maxw: 1080px;
}

.lp main { display: block; }

/* Smooth scroll na sidra (#radionice/#kontakt/#opcine); offset za sticky nav */
html { scroll-behavior: smooth; }
.lp-sec, .lp-band { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- nav ---------- */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(20px, 5vw, 40px);
}
.lp-nav .brand-logo { height: 26px; }  /* prati temu (invert u svijetloj) */
.lp-nav-right { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); }
.lp-nav-link { color: var(--hero-mut); font-size: .9rem; font-weight: 600; text-decoration: none; }
.lp-nav-link:hover { color: var(--accent); }

/* ---------- hero ---------- */
.lp-hero {
    background:
        radial-gradient(120% 120% at 82% 12%, rgba(242, 106, 33, .16), transparent 46%),
        linear-gradient(180deg, var(--surface), var(--bg));
    color: var(--ink);
    padding: clamp(36px, 6vw, 68px) clamp(20px, 5vw, 40px) clamp(56px, 8vw, 96px);
    overflow: hidden;
}
.lp-hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: clamp(28px, 5vw, 60px);
}
.lp-eyebrow-light { color: var(--hero-mut); }
.lp-eyebrow-brand { text-transform: none; }   /* "dD Tech" zadržava original casing */
.lp-h1 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.02;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    margin: 14px 0 0;
    text-wrap: balance;
}
.lp-accent { color: var(--accent); }
.lp-hero-sub {
    color: var(--hero-mut);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.6;
    max-width: 44ch;
    margin: 20px 0 0;
}
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-cta-center { justify-content: center; }
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lp-btn-accent { background: var(--accent); color: #fff; }
.lp-btn-accent:hover { background: var(--accent-hover); }
.lp-btn-ghost { color: var(--ink); border-color: var(--line); }
.lp-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero art: AI čip ---------- */
.lp-hero-art { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lp-chip {
    position: relative;
    width: min(320px, 74vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
.lp-chip::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 106, 33, .55), transparent 62%);
    filter: blur(22px);
    z-index: 0;
}
.lp-chip-svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.cp { fill: url(#chipPin); }
.cbody { fill: url(#chipBody); stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.cbevel { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.cnotch { fill: var(--accent); opacity: .8; }
.cdie { fill: url(#chipDie); stroke: rgba(242, 106, 33, .42); stroke-width: 1.5; }
.cdie-inner { fill: none; stroke: rgba(242, 106, 33, .2); stroke-width: 1; }
.tr-base { fill: none; stroke: rgba(130, 153, 174, .42); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tr-flow { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 6 94; stroke-dashoffset: 0; filter: drop-shadow(0 0 3px rgba(242, 106, 33, .8)); }
.pad { fill: #8299ae; }
.pad-o { fill: var(--accent); }
.pad-hollow { fill: none; stroke: rgba(130, 153, 174, .7); stroke-width: 1.5; }
.dnode { fill: var(--accent); }
.ccore-halo { fill: url(#chipCore); transform-box: fill-box; transform-origin: center; }
.cnode-core { fill: var(--accent); filter: drop-shadow(0 0 7px rgba(242, 106, 33, .95)); transform-box: fill-box; transform-origin: center; }
.ccore-hi { fill: rgba(255, 255, 255, .85); }
@media (prefers-reduced-motion: no-preference) {
    .tr-flow { animation: chipFlow 2.8s linear infinite; }
    .cnode-core { animation: chipPulse 2.8s ease-in-out infinite; }
    .ccore-halo { animation: chipHalo 2.8s ease-in-out infinite; }
    .pad-o { animation: chipTwinkle 2.8s ease-in-out infinite; }
}
@keyframes chipFlow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes chipPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes chipHalo { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: .85; transform: scale(1.12); } }
@keyframes chipTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.lp-chip-cap {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .68rem;
    font-weight: 600;
    color: var(--hero-mut);
}

/* ---------- generic section ---------- */
.lp-sec { padding: clamp(52px, 7vw, 88px) clamp(20px, 5vw, 40px); }
.lp-sec > * { max-width: var(--maxw); margin-inline: auto; }
.lp-sec-alt { background: var(--surface-2); }
.lp-sec-head { margin-bottom: clamp(24px, 4vw, 40px); }
.lp-h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    letter-spacing: -.02em;
    margin: 8px 0 0;
    text-wrap: balance;
}

/* ---------- otvorene radionice (carusel) ---------- */
.lp-sec-head--center { text-align: center; }
.lp-rail-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.lp-rail-nav--center { justify-content: center; margin-top: 10px; }
.lp-rail-btn {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.lp-rail-btn:hover { border-color: var(--accent); color: var(--accent); }
.lp-rail-btn:disabled { opacity: .3; cursor: default; }
.lp-rail-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lp-rail {
    display: flex; gap: 16px; overflow-x: auto;
    width: fit-content; max-width: var(--maxw); margin-inline: auto;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px 2px 14px;
    scrollbar-width: none;
}
.lp-rail::-webkit-scrollbar { display: none; }
.lp-card { flex: 0 0 auto; width: clamp(232px, 76vw, 280px); scroll-snap-align: start; }
.lp-card-link {
    display: flex; flex-direction: column; height: 100%; text-decoration: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform .14s ease, border-color .15s ease, box-shadow .15s ease;
}
.lp-card-link:hover { transform: translateY(-4px); border-color: var(--accent); }
.lp-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.lp-card-img { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.lp-card-img.is-dim { filter: grayscale(.45) brightness(.68); }
.lp-card-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent); color: var(--on-accent);
    font-family: var(--font-display); font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(242, 106, 33, .4);
}
.lp-card-ph {
    display: grid; place-items: center; width: 100%; height: 100%;
    background: radial-gradient(120% 120% at 70% 20%, rgba(242, 106, 33, .30), transparent 55%),
        linear-gradient(160deg, #12314f, #0B1F3A);
}
.lp-card-ph img { height: 34px; width: auto; opacity: .92; filter: none; }
.lp-card-body { display: flex; flex-direction: column; gap: 6px; padding: 15px 16px 17px; flex: 1 1 auto; }
.lp-card-meta {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .07em;
    font-size: .68rem; font-weight: 600; color: var(--accent);
}
.lp-card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.22; color: var(--ink); }
.lp-card-desc { color: var(--muted); font-size: .84rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-card-cta { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 700; font-size: .92rem; }
.lp-card-cta.is-full { color: var(--accent); }
.lp-band-mail { margin-top: 14px; font-size: .9rem; color: var(--hero-mut); }
.lp-band-mail a { color: var(--hero-ink); font-weight: 600; }
.lp-empty {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
}
.lp-empty p { margin: 0; font-size: 1.05rem; }
.lp-empty-sub { color: var(--muted); font-size: .92rem; margin-top: 8px !important; }
.lp-empty a { color: var(--accent); font-weight: 600; }

/* ---------- teme ---------- */
.lp-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin-inline: auto; }
.lp-theme {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 26px 24px;
}
.lp-theme::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.lp-theme-ico {
    display: inline-flex; width: 52px; height: 52px; border-radius: 14px;
    align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    color: var(--accent); margin-bottom: 16px;
}
.lp-theme-ico svg { width: 26px; height: 26px; }
.lp-theme-aud {
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
    font-size: .68rem; font-weight: 600; color: var(--accent);
}
.lp-theme-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 6px 0 8px; line-height: 1.2; }
.lp-theme-desc { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }
.lp-theme-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp-chip-tag {
    font-family: var(--font-display); font-size: .74rem; font-weight: 600;
    color: var(--muted); line-height: 1.3; white-space: nowrap;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 999px; padding: 4px 11px;
}

/* ---------- za općine/gradove ---------- */
.lp-opcine-eyebrow { margin-bottom: 14px; }
.lp-opcine { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.lp-opcine-lead .lp-h2 { margin-top: 0; }   /* vrh naslova poravnat s vrhom props stupca */
.lp-opcine-text { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin: 14px 0 0; }
.lp-opcine-text strong { color: var(--ink); }
.lp-props { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-prop { display: flex; gap: 12px; }
.lp-prop-ico {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.lp-prop-ico svg { width: 20px; height: 20px; }
.lp-prop-t { font-weight: 600; font-size: .96rem; }
.lp-prop-d { color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: 2px; }

/* ---------- tko vodi (potpis prije kontakta) ---------- */
.lp-who {
    display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 34px);
    align-items: start;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px;
    padding: clamp(22px, 4vw, 34px);
}
.lp-who-photo {
    flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.lp-who-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-who-initials {
    font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--accent);
}
.lp-who-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--ink); }
.lp-who-role { color: var(--ink); font-size: .95rem; margin-top: 2px; }
.lp-who-org  { color: var(--muted); font-size: .9rem; }
.lp-who-loc  { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.lp-who-lead { color: var(--muted); font-size: .98rem; line-height: 1.6; margin: 16px 0 0; }
.lp-who-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.lp-who-list li {
    color: var(--muted); font-size: .92rem; line-height: 1.55; padding-left: 18px; position: relative;
}
.lp-who-list li::before {
    content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600;
}
.lp-who-list strong { color: var(--ink); font-weight: 600; }
.lp-who-kicker {
    margin: 16px 0 0; color: var(--ink); font-size: .98rem; font-weight: 600;
}
@media (max-width: 640px) {
    .lp-who { grid-template-columns: 1fr; justify-items: start; }
    .lp-who-photo { width: 88px; height: 88px; }
}

/* ---------- CTA band ---------- */
.lp-band {
    background:
        radial-gradient(100% 140% at 50% 0%, rgba(242, 106, 33, .14), transparent 55%),
        var(--surface-2);
    color: var(--ink);
    padding: clamp(52px, 7vw, 84px) clamp(20px, 5vw, 40px);
    text-align: center;
}
.lp-band-inner { max-width: 640px; margin: 0 auto; }
.lp-band-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.lp-band-sub { color: var(--hero-mut); margin: 10px 0 0; font-size: 1.05rem; }
.lp-band .lp-cta-row { margin-top: 26px; }
.lp-contact-card {
    background: var(--surface); border-radius: 18px; padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); text-align: left; margin-top: 24px;
}

/* ---------- footer ---------- */
.lp-foot {
    background: var(--surface-2);
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding: 22px clamp(20px, 5vw, 40px);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
}
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lp-foot a { color: var(--hero-ink); font-weight: 600; }
.lp-foot a:hover { color: var(--accent); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .lp-chip::before { animation: lp-glow 3.4s ease-in-out infinite; }
    @keyframes lp-glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
    .cnode-core { animation: lp-pulse 2.2s ease-in-out infinite; transform-origin: 110px 110px; transform-box: fill-box; }
    @keyframes lp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
    .cnode-o { animation: lp-pulse 2.2s ease-in-out infinite; }
    .cnode-o:nth-of-type(odd) { animation-delay: .7s; }
    .lp-hero-copy > *, .lp-hero-art { opacity: 0; animation: lp-rise .6s ease forwards; }
    .lp-hero-copy > :nth-child(1) { animation-delay: .05s; }
    .lp-hero-copy > :nth-child(2) { animation-delay: .13s; }
    .lp-hero-copy > :nth-child(3) { animation-delay: .21s; }
    .lp-hero-copy > :nth-child(4) { animation-delay: .29s; }
    .lp-hero-art { animation-delay: .18s; }
    @keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .lp-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .lp-hero-sub { margin-inline: auto; }
    .lp-cta-row { justify-content: center; }
    .lp-hero-art { order: -1; }
    .lp-opcine { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .lp-nav-link { display: none; }
    .lp-themes { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .lp-props { grid-template-columns: 1fr; }
    .lp-open-card { flex-direction: column; align-items: flex-start; }
    .lp-open-thumb { width: 100%; height: 140px; }
}

/* Natrag na vrh — floating */
.lp-totop {
    position: fixed;
    bottom: 5.5rem;
    right: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s, transform .25s, background .2s;
    z-index: 9998;
}
.lp-totop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lp-totop:hover { background: var(--accent-hover); }
@media (prefers-reduced-motion: reduce) {
    .lp-totop { transition: opacity .25s; transform: none; }
    .lp-totop.show { transform: none; }
}
@media (max-width: 460px) {
    .lp-totop { bottom: 4.5rem; right: 1.1rem; }
}

/* ── Consent banner (GA4, samo home) ─────────────────────────────── */
.rad-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    margin-inline: auto;
    max-width: 46rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.1rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.rad-consent[hidden] { display: none; }
.rad-consent-text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--muted);
}
.rad-consent-text a { color: var(--accent); }
.rad-consent-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}
/* .lp-btn je pisan za <a> (bez background/font-family); ovdje su <button> pa im treba
   ugasiti browserov buttonface — inače je u tamnoj temi svijetli --ink na bijelom gumbu. */
.rad-consent .lp-btn {
    padding: .5rem .95rem;
    font-size: .85rem;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
}
.rad-consent .lp-btn-accent { background: var(--accent); }
.rad-consent .lp-btn-accent:hover { background: var(--accent-hover); }
@media (max-width: 640px) {
    .rad-consent { flex-direction: column; align-items: stretch; }
    .rad-consent-actions { justify-content: flex-end; }
}
