/* Stranice po nameni (includes/landing.php). Komponente prate sajt:
   stats-grid (tehnoloske-linije), cat-card / machine-card, proc-step (sirovine). */

.lp { --lp-teal: #4a9b8e; --lp-teal-light: #5eb5a6; --lp-teal-dark: #3d8173; --lp-dark: #1a1a1a; --lp-text: #2d3748;
      --lp-muted: #666; --lp-light: #f5f7fa; --lp-border: #e2e8f0;
      color: var(--lp-text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.7; overflow-x: hidden; }
.lp h1, .lp h2, .lp h3 { font-family: 'Montserrat', sans-serif; color: var(--lp-dark); line-height: 1.25; }
.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.lp-hero { padding: 130px 0 60px; background: linear-gradient(135deg, #f4faf9 0%, #ffffff 60%); }
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.lp-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--lp-muted); margin-bottom: 18px; }
.lp-breadcrumb a { color: var(--lp-teal-dark); text-decoration: none; }
.lp-badge { display: inline-block; padding: 6px 14px; border-radius: 50px; background: rgba(74,155,142,0.1); color: var(--lp-teal-dark); font-weight: 600; font-size: .85rem; margin-bottom: 16px; }
.lp-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 0 0 18px; }
.lp-hero h1 span { color: var(--lp-teal); }
.lp-lead { font-size: 1.12rem; color: var(--lp-muted); margin: 0 0 28px; max-width: 620px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.lp-btn-ghost { display: inline-block; padding: 14px 26px; border-radius: 50px; border: 2px solid var(--lp-teal); color: var(--lp-teal-dark); font-weight: 600; text-decoration: none; }
.lp-btn-ghost:hover { background: rgba(74,155,142,0.08); }
.lp-hero-image img { width: 100%; height: auto; border-radius: 24px; border-top-right-radius: 100px; box-shadow: 0 20px 50px rgba(26, 26, 46, .15); object-fit: cover; aspect-ratio: 16 / 10; }

/* Ukratko: traka kao stats-grid */
.lp-facts { padding: 56px 0; background: #fff; border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); }
.lp-facts .lp-label { text-align: center; }
.lp-stats { display: grid; grid-template-columns: repeat(var(--lp-cols, 3), 1fr); gap: 1px; background: var(--lp-border);
            border: 1px solid var(--lp-border); border-radius: 16px; overflow: hidden; }
.lp-stat { padding: 30px 26px; text-align: center; background: #fff; transition: background .25s; }
.lp-stat:hover { background: var(--lp-light); }
.lp-stat-num { display: block; font-family: 'Montserrat', sans-serif; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; color: var(--lp-teal); line-height: 1.15; margin-bottom: 8px; }
.lp-stat-desc { display: block; font-size: .92rem; color: var(--lp-muted); font-weight: 500; line-height: 1.5; }

/* Sekcije */
.lp-section { padding: 80px 0; }
.lp-alt { background: var(--lp-light); }
.lp-label { display: block; color: var(--lp-teal); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; margin-bottom: 10px; }
.lp-section h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.5px; margin: 0 0 14px; }
.lp-intro { color: var(--lp-muted); max-width: 760px; margin: 0 0 8px; font-size: 1.02rem; }
.lp-note { color: var(--lp-muted); font-size: .92rem; margin-top: 22px; max-width: 900px; }

/* Kartice kao cat-card */
.lp-cards { display: grid; grid-template-columns: repeat(var(--lp-cols, 3), 1fr); gap: 0 32px; }
.lp-card { display: flex; flex-direction: column; position: relative; margin-top: 50px; padding: 35px 28px 32px;
           background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%); border-radius: 24px; border-top-right-radius: 100px;
           border: 1px solid rgba(74,155,142,0.08); box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(74,155,142,0.05);
           color: inherit; text-decoration: none; transition: all .4s cubic-bezier(0.4,0,0.2,1); }
.lp-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(74,155,142,0.15); border-color: rgba(74,155,142,0.2); }
.lp-card-icon { position: absolute; top: 0; right: 0; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
                font-size: 1.8rem; background: linear-gradient(135deg, var(--lp-teal), var(--lp-teal-light));
                box-shadow: 0 8px 24px rgba(74,155,142,0.35), 0 0 0 4px #fff, 0 0 0 5px rgba(74,155,142,0.1); transition: all .5s cubic-bezier(0.34,1.56,0.64,1); }
.lp-card:hover .lp-card-icon { transform: scale(1.15) rotate(15deg); }
.lp-card h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; padding: 0 65px 16px 0; position: relative; letter-spacing: -0.3px; }
.lp-card h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 45px; height: 3px; border-radius: 2px;
                     background: linear-gradient(90deg, var(--lp-teal), var(--lp-teal-light)); transition: width .4s cubic-bezier(0.4,0,0.2,1); }
.lp-card:hover h3::after { width: 70px; }
.lp-card p { margin: 0; font-size: .92rem; color: #555; line-height: 1.7; flex: 1; }
.lp-card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .78rem; font-weight: 700; text-transform: uppercase;
                letter-spacing: 1.2px; color: var(--lp-teal); }
.lp-card-more::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--lp-teal), var(--lp-teal-light));
                        box-shadow: 0 0 0 2px rgba(74,155,142,0.15); }

/* Tabele */
.lp-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--lp-border); background: #fff; margin-top: 32px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.lp-table th, .lp-table td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--lp-border); }
.lp-table thead th { background: linear-gradient(135deg, var(--lp-teal-dark), var(--lp-teal)); color: #fff; font-weight: 600; white-space: nowrap; }
.lp-table tbody th { font-weight: 600; color: var(--lp-dark); }
.lp-table tbody tr:hover { background: rgba(74,155,142,0.04); }
.lp-table tbody tr:last-child th, .lp-table tbody tr:last-child td { border-bottom: 0; }

/* Koraci: kompaktna mreža sa animacijom pri ulasku u ekran */
.lp-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(var(--lp-cols, 4), 1fr); gap: 20px; }
.lp-step { position: relative; display: flex; flex-direction: column; padding: 20px 20px 18px; background: #fff; border-radius: 20px;
           border: 1px solid rgba(74,155,142,0.1); box-shadow: 0 4px 14px rgba(0,0,0,0.05);
           transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.lp-step:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(74,155,142,0.16); border-color: rgba(74,155,142,0.3); }
.lp-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lp-step-num { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
               background: linear-gradient(135deg, var(--lp-teal), var(--lp-teal-light)); color: #fff; font-weight: 800; font-size: 16px;
               box-shadow: 0 4px 12px rgba(74,155,142,0.35); transition: transform .4s cubic-bezier(0.34,1.56,0.64,1); }
.lp-step:hover .lp-step-num { transform: scale(1.12) rotate(-8deg); }
.lp-step-line { flex: 1; height: 2px; border-radius: 2px; background: rgba(74,155,142,0.15); position: relative; overflow: hidden; }
.lp-step-line::after { content: ''; position: absolute; inset: 0; transform-origin: left;
                       background: linear-gradient(90deg, var(--lp-teal), var(--lp-teal-light)); }
.lp-steps[data-cols="4"] .lp-step:nth-child(4n) .lp-step-line,
.lp-steps[data-cols="3"] .lp-step:nth-child(3n) .lp-step-line,
.lp-step:last-child .lp-step-line { visibility: hidden; }
.lp-step h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.lp-step p { margin: 0; font-size: .88rem; color: var(--lp-muted); line-height: 1.55; flex: 1; }
.lp-step-machine { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 12px; border-radius: 50px;
                   background: rgba(74,155,142,0.08); color: var(--lp-teal); font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s; }
.lp-step-machine:hover { background: rgba(74,155,142,0.18); }

.lp-steps.lp-animate .lp-step { opacity: 0; transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease, box-shadow .35s ease, border-color .35s ease; transition-delay: calc(var(--i) * 90ms); }
.lp-steps.lp-animate .lp-step-line::after { transform: scaleX(0); transition: transform .7s ease; transition-delay: calc(var(--i) * 90ms + 350ms); }
.lp-steps.lp-animate.is-visible .lp-step { opacity: 1; transform: none; }
.lp-steps.lp-animate.is-visible .lp-step-line::after { transform: scaleX(1); }
.lp-steps.lp-animate.is-visible .lp-step-num { animation: lp-pop .5s cubic-bezier(0.34,1.56,0.64,1) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.lp-steps.is-done .lp-step { transition-delay: 0s; }
.lp-steps.is-done .lp-step:hover { transform: translateY(-6px); }
@keyframes lp-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

.lp-text { max-width: 900px; margin-top: 18px; }
.lp-text ul { padding-left: 20px; }
.lp-text li { margin-bottom: 8px; }

/* Reference */
.lp-refs { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 36px; }
.lp-ref { flex: 0 1 calc((100% - (var(--lp-cols, 3) - 1) * 28px) / var(--lp-cols, 3)); background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
          border: 1px solid rgba(74,155,142,0.08); box-shadow: 0 8px 24px rgba(0,0,0,0.06); transition: all .3s; }
.lp-ref:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.lp-ref img { width: 100%; height: 200px; object-fit: cover; }
.lp-ref-body { padding: 22px 24px 24px; }
.lp-ref h3 { font-size: 1.08rem; margin: 0 0 10px; }
.lp-ref-meta { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-ref-meta li { background: rgba(74,155,142,0.1); color: var(--lp-teal-dark); border-radius: 50px; padding: 3px 10px; font-size: .78rem; font-weight: 600; }
.lp-ref p { margin: 0 0 10px; color: var(--lp-muted); font-size: .93rem; }
.lp-ref a { color: var(--lp-teal); font-weight: 600; text-decoration: none; font-size: .92rem; }

/* Video */
.lp-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.lp-videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }

/* FAQ: dva pitanja u redu */
.lp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; align-items: start; margin-top: 32px; }
.lp-faq details { background: #fff; border: 1px solid rgba(74,155,142,0.12); border-radius: 16px; transition: box-shadow .3s, border-color .3s; }
.lp-faq details[open] { border-color: rgba(74,155,142,0.35); box-shadow: 0 8px 24px rgba(74,155,142,0.1); }
.lp-faq summary { cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; color: var(--lp-dark); list-style: none; position: relative; line-height: 1.45; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
                         display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff;
                         background: linear-gradient(135deg, var(--lp-teal), var(--lp-teal-light)); }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq-answer { padding: 0 22px 20px; color: var(--lp-text); font-size: .95rem; }
.lp-faq-answer p { margin: 0 0 8px; }

/* Forma: tekst levo, forma desno */
.lp-form-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.lp-form-aside p { color: var(--lp-muted); }
.lp-form-aside ul { padding-left: 20px; color: var(--lp-text); }
.lp-form-aside li { margin-bottom: 6px; }
.lp-form { background: #fff; border-radius: 24px; padding: 32px; display: grid; gap: 16px;
           border: 1px solid rgba(74,155,142,0.08); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.lp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--lp-dark); }
.lp-form input, .lp-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e0; border-radius: 10px; font: inherit; font-weight: 400; }
.lp-form input:focus, .lp-form textarea:focus { outline: 2px solid var(--lp-teal); border-color: transparent; }
.lp-form .btn-primary { justify-self: start; border: 0; cursor: pointer; }
.lp-form .quote-form-status { margin: 0; font-weight: 600; color: var(--lp-teal-dark); }
.lp-form .quote-form-privacy { margin: 0; font-size: .85rem; color: var(--lp-muted); }

/* Povezane linije i oprema: slika iznad naslova */
.lp-related { display: grid; grid-template-columns: repeat(var(--lp-cols, 3), 1fr); gap: 28px; margin-top: 36px; }
.lp-related-card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; border-top-right-radius: 100px; overflow: hidden;
                   border: 1px solid rgba(74,155,142,0.08); box-shadow: 0 8px 24px rgba(0,0,0,0.08); color: inherit; text-decoration: none;
                   transition: all .4s cubic-bezier(0.4,0,0.2,1); }
.lp-related-card:hover { transform: translateY(-10px); box-shadow: 0 20px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(74,155,142,0.15); }
.lp-related-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--lp-light); }
.lp-related-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lp-related-card:hover .lp-related-image img { transform: scale(1.05); }
.lp-related-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.lp-related-body h3 { font-size: 1.12rem; font-weight: 700; margin: 0 0 12px; padding-bottom: 12px; position: relative; }
.lp-related-body h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 45px; height: 3px; border-radius: 2px;
                             background: linear-gradient(90deg, var(--lp-teal), var(--lp-teal-light)); transition: width .4s ease; }
.lp-related-card:hover h3::after { width: 70px; }
.lp-related-body p { margin: 0; color: var(--lp-muted); font-size: .92rem; flex: 1; }

@media (max-width: 992px) {
    .lp-cards, .lp-related, .lp-steps { grid-template-columns: repeat(2, 1fr); }
    .lp-step-line { visibility: hidden; }
    .lp-ref { flex-basis: calc((100% - 28px) / 2); }
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .lp-hero { padding-top: 110px; }
    .lp-hero-grid, .lp-form-grid, .lp-faq { grid-template-columns: 1fr; gap: 28px; }
    .lp-cards, .lp-related, .lp-stats, .lp-steps, .lp-videos { grid-template-columns: 1fr; }
    .lp-ref { flex-basis: 100%; }
    .lp-form-row { grid-template-columns: 1fr; }
    .lp-section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-step, .lp-step-num, .lp-card, .lp-related-card, .lp-ref { transition: none; animation: none; }
}
