/*
    Fajl:      gsp.css
    Lokacija:  gsp.ba => root, pored index.html
    Opis:      Stilovi prezentacijske stranice GSP — Global Smart Panel.
               Bez JavaScript-a: FAQ preko <details>, mobilni meni preko checkbox-a.
               Poštuje prefers-reduced-motion.
*/

/* ------------------------------------------------------------
   Tokeni
   ------------------------------------------------------------ */
:root {
    --paper:   #F7F8FB;
    --white:   #FFFFFF;
    --ink:     #0F1B33;
    --ink-2:   #4A5670;
    --line:    #DCE2EC;
    --signal:  #1D5BFF;
    --signal-deep: #1247CC;
    --wash:    #E8EFFF;
    --mint:    #12A594;
    --amber:   #E39A16;

    --font-head: 'Sora', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --max: 1180px;
    --gutter: clamp(20px, 4vw, 48px);
    --radius: 14px;
}

/* ------------------------------------------------------------
   Baza
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-head);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 600;
}

p { margin: 0; }

a { color: var(--signal); }

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    max-width: 22em;
}

.section-lead {
    margin-top: 16px;
    max-width: 38em;
    font-size: 18px;
    color: var(--ink-2);
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--ink);
    color: var(--white);
    padding: 8px 14px;
    z-index: 100;
}
.skip:focus { left: 8px; }

/* ------------------------------------------------------------
   Dugmad
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}

.btn-primary {
    background: var(--signal);
    color: var(--white);
}
.btn-primary:hover { background: var(--signal-deep); }

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-lg {
    padding: 18px 32px;
    font-size: 18px;
}

.btn-nav {
    padding: 10px 16px;
    font-size: 15px;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
/* Zaglavlje se skrola sa stranicom - nije fiksno, ne zauzima ekran */
.site-head {
    position: relative;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.site-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
}
.brand-mark svg { width: 20px; height: 20px; stroke-width: 1.6; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-text strong {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
}
.brand-text span {
    font-size: 12px;
    color: var(--ink-2);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-2);
}
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: var(--white); }

.nav-toggle-input { display: none; }
.nav-toggle { display: none; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
    padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px);
    background:
        radial-gradient(70% 90% at 100% 0%, var(--wash) 0%, rgba(232, 239, 255, 0) 60%),
        var(--paper);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero-kicker {
    font-weight: 700;
    font-size: 15px;
    color: var(--signal);
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 700;
    max-width: 12em;
}

.hero-lead {
    margin-top: 22px;
    max-width: 34em;
    font-size: clamp(17px, 1.3vw, 19px);
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 26px;
    padding: 12px 14px;
    border-left: 3px solid var(--amber);
    background: var(--white);
    border-radius: 0 10px 10px 0;
    font-size: 15px;
    font-weight: 600;
    max-width: 34em;
}
.hero-note svg {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 2px;
    color: var(--amber);
}

/* ---- Prikaz panela ---- */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow:
        0 1px 2px rgba(15, 27, 51, .04),
        0 24px 60px -24px rgba(15, 27, 51, .25);
    overflow: hidden;
}

.panel-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.panel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
}
.panel-url {
    margin-left: 12px;
    font-size: 12px;
    color: var(--ink-2);
}

.panel-body { padding: 20px; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.panel-head strong {
    display: block;
    font-family: var(--font-head);
    font-size: 15px;
}
.panel-head span {
    font-size: 12px;
    color: var(--ink-2);
}

.panel-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.panel-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    animation: tile-in .6s cubic-bezier(.16, 1, .3, 1) both;
}
.panel-tile:nth-child(1) { animation-delay: .10s; }
.panel-tile:nth-child(2) { animation-delay: .17s; }
.panel-tile:nth-child(3) { animation-delay: .24s; }
.panel-tile:nth-child(4) { animation-delay: .31s; }
.panel-tile:nth-child(5) { animation-delay: .38s; }
.panel-tile:nth-child(6) { animation-delay: .45s; }
.panel-tile:nth-child(7) { animation-delay: .52s; }
.panel-tile:nth-child(8) { animation-delay: .59s; }

.panel-tile svg {
    width: 22px;
    height: 22px;
    color: var(--signal);
    margin-bottom: 4px;
}
.panel-tile b {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.panel-tile span {
    font-size: 11px;
    color: var(--ink-2);
    line-height: 1.3;
}

@keyframes tile-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   Dostupnost
   ------------------------------------------------------------ */
.avail {
    background: var(--ink);
    color: var(--white);
    padding: clamp(48px, 6vw, 80px) 0;
}

.avail-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.avail-copy p {
    margin-top: 16px;
    color: rgba(255, 255, 255, .78);
    max-width: 34em;
}

.avail-paths {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.path {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--white);
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}
.path:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
}

.path-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
}
.path-text {
    font-size: 15px;
    color: rgba(255, 255, 255, .78);
}
.path-link {
    margin-top: auto;
    padding-top: 6px;
    font-weight: 700;
    font-size: 15px;
    color: #9DB8FF;
}

/* ------------------------------------------------------------
   Alati
   ------------------------------------------------------------ */
.tools { padding: clamp(64px, 8vw, 112px) 0; }

.section-head { margin-bottom: clamp(32px, 4vw, 48px); }

.tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(32px, 5vw, 72px);
    border-top: 1px solid var(--line);
}

.tool {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--wash);
    color: var(--signal);
}
.tool-icon svg { width: 24px; height: 24px; }

.tool h3 {
    font-size: 21px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}
.tool h3 small {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}

.tool p {
    margin-top: 10px;
    font-size: 16px;
    color: var(--ink-2);
    max-width: 36em;
}

.tool-note {
    font-size: 14px !important;
    color: var(--ink) !important;
    font-weight: 600;
}

/* ------------------------------------------------------------
   SiteHealth u fokusu
   ------------------------------------------------------------ */
.focus {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(64px, 8vw, 112px) 0;
}

.focus-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.focus-copy p {
    margin-top: 16px;
    color: var(--ink-2);
    max-width: 34em;
}

.focus-checks {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}
.focus-checks li {
    position: relative;
    padding-left: 24px;
    font-weight: 600;
    font-size: 15px;
}
.focus-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mint);
}

/* ---- Izvještaj (ilustracija) ---- */
.report {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    max-width: 440px;
    margin-left: auto;
}

.report-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.report-title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
}
.report-domain {
    font-size: 13px;
    color: var(--ink-2);
}

.report-score {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
}

.score-ring {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    flex: none;
    background: conic-gradient(var(--mint) 0 75%, var(--line) 75% 100%);
    display: grid;
    place-items: center;
}
.score-ring::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--paper);
}
.score-scale {
    position: relative;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
}

.score-text strong {
    display: block;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
}
.score-text span {
    font-size: 13px;
    color: var(--ink-2);
}

.report-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    font-size: 14px;
    font-weight: 600;
}
.report-rows li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.st {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
}
.st-ok { background: var(--mint); }
.st-warn { background: var(--amber); }

.report-ai {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.report-ai-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--signal);
}
.report-line {
    height: 8px;
    border-radius: 4px;
    background: var(--line);
}
.report-line-short { width: 62%; }

/* ------------------------------------------------------------
   Kako radi
   ------------------------------------------------------------ */
.how { padding: clamp(64px, 8vw, 112px) 0; }

.steps {
    list-style: none;
    margin: clamp(28px, 4vw, 44px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.steps h3 { font-size: 20px; }

.steps p {
    margin-top: 10px;
    font-size: 16px;
    color: var(--ink-2);
}

/* ------------------------------------------------------------
   Globalhost
   ------------------------------------------------------------ */
.maker {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(64px, 8vw, 112px) 0;
}

.maker-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.maker-copy p {
    margin-top: 16px;
    color: var(--ink-2);
    max-width: 34em;
}

.maker-facts {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
}
.maker-facts div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.maker-facts dt {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}
.maker-facts dd {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
}

/* ------------------------------------------------------------
   Pitanja
   ------------------------------------------------------------ */
.faq { padding: clamp(64px, 8vw, 112px) 0; }

.faq-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 40px 18px 0;
    position: relative;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.faq-list details[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-list p {
    padding: 0 0 20px;
    color: var(--ink-2);
    font-size: 16px;
    max-width: 44em;
}

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.cta {
    background: var(--signal);
    color: var(--white);
    padding: clamp(64px, 8vw, 104px) 0;
}

.cta-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta .h2 { max-width: 16em; }

.cta p {
    margin: 16px 0 32px;
    max-width: 32em;
    color: rgba(255, 255, 255, .85);
    font-size: 18px;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--signal-deep);
}
.cta .btn-primary:hover { background: var(--wash); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-foot {
    padding: 36px 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-2);
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.foot-brand strong {
    display: block;
    font-family: var(--font-head);
    color: var(--ink);
}

.foot-contact {
    font-style: normal;
    line-height: 1.7;
    text-align: right;
}

/* ------------------------------------------------------------
   Responsivno
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .panel { max-width: 640px; }
    .avail-inner { grid-template-columns: 1fr; }
    .focus-inner { grid-template-columns: 1fr; }
    .report { margin-left: 0; }
    .maker-inner { grid-template-columns: 1fr; }
    .faq-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        cursor: pointer;
    }
    .nav-toggle span {
        display: block;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
    }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 16px;
    }
    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }
    .site-nav .btn {
        margin-top: 12px;
        border-bottom: 0;
    }
    .nav-toggle-input:checked ~ .site-nav { display: flex; }

    .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .avail-paths { grid-template-columns: 1fr; }
    .tool-list { grid-template-columns: 1fr; }
    .focus-checks { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .maker-facts div { grid-template-columns: 1fr; gap: 4px; }
    .foot-inner { flex-direction: column; }
    .foot-contact { text-align: left; }
}

/* ------------------------------------------------------------
   Smanjena animacija
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .panel-tile { animation: none; }
    .faq-list summary::after { transition: none; }
}
