﻿/* ============================================================
   MOBILE — graficki-dizajn.html responsive styles
   Breakpoint: ≤ 768px
   Loaded last so it overrides all other stylesheets.
   ============================================================ */

/* Hidden on desktop */
.hero__scroll-hint { display: none; }

@media (max-width: 768px) {

  /* ── BASE ── */
  body { overflow-x: hidden; }

  /* ── TOKENS ── */
  :root {
    --fs-h1-mont:  36px;
    --fs-h1-dutch: 40px;
    --fs-h2-mont:  27.5px;
    --fs-h2-dutch: 30.8px;
    --fs-p:        15px;
    --gutter:      20px;
  }

  .h2-anchor { display: none; }

  .h1-mont, .h1-dutch,
  .h2-mont, .h2-dutch {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* ── CONTAINER ── */
  .container { padding-left: 20px; padding-right: 20px; }


  /* ══════════════════════════════════════════
     NAV
     ══════════════════════════════════════════ */

  .site-header,
  .hero .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding-top: 25px;
    padding-bottom: 16px;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.32s ease;
  }

  .site-header--hidden { transform: translateY(-100%); }

  .site-header--scrolled { background: #111111; }
  .site-header--scrolled .nav__brand,
  .site-header--scrolled .nav__link  { color: #ffffff; }
  .site-header--scrolled .nav__burger span { background: #ffffff; }

  .nav {
    height: 70px;
    padding: 0 20px;
  }

  .nav__left { gap: 12px; }

  .nav__logo,
  .nav__logo img { width: 44px; height: 44px; }

  .nav-open .nav__logo img,
  .site-header--scrolled .nav__logo img { filter: brightness(0) invert(1); }

  .nav__links,
  .nav__cta  { display: none; }
  .nav__brand { display: none; }

  /* Burger — dark bars (hero has light bg image + black text) */
  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    flex-shrink: 0;
  }

  .nav__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111111;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-open .nav__burger span { background: #ffffff; }
  .nav-open .nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav-open .nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav__mobile {
    display: block;
    position: fixed;
    inset: 0;
    background: #111111;
    z-index: 999;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-open .nav__mobile { transform: translateX(0); }

  .nav__mob-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 220px 20px 60px;
    transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .nav__mob-panel--main { transform: translateX(0); }
  .nav__mob-panel--pushed { transform: translateX(-100%) !important; }
  .nav__mob-panel--sub   { transform: translateX(100%); }
  .nav__mob-panel--sub.nav__mob-panel--active { transform: translateX(0); }

  .nav__mob-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .nav__mob-link {
    font-family: var(--font-mont);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-decoration: none;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    text-align: left;
  }

  .nav__mob-links > li:last-child .nav__mob-link { border-bottom: none; }
  .nav__mob-link svg { width: 8px; height: 14px; flex-shrink: 0; opacity: 0.45; }

  .nav__mob-back {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mont);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 40px;
  }

  .nav__mob-back svg { width: 8px; height: 14px; }

  .nav__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mont);
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 32px;
    text-decoration: none;
    margin-top: 40px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
  }

  .nav__mob-link--cta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__mob-link-inner { display: flex; flex-direction: column; gap: 10px; }
  .nav__mob-link-title { font-size: 22px; font-weight: 400; color: #ffffff; letter-spacing: -0.04em; }
  .nav__mob-link-sub   { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.35); letter-spacing: 0; line-height: 1.4; }


  /* ══════════════════════════════════════════
     HERO
     ══════════════════════════════════════════ */

  .hero--graficki-v2 {
    height: auto;
    min-height: auto;
  }

  /* Override desktop: position:absolute, top:220px, left:50%, transform, align-items:center */
  .hero--graficki-v2 .hero__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 160px 20px 120px;
    box-sizing: border-box;
    display: block;
    align-items: flex-start;
  }

  /* Override desktop: text-align:center, align-items:center, max-width:900px */
  .hero--graficki-v2 .hero__heading {
    margin-top: 20px;
    display: block;
    text-align: left;
    align-items: flex-start;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero__heading-line { display: inline; }

  .hero__heading-line .h1-mont  { font-size: 28px; line-height: 1.15; }
  .hero__heading-line .h1-dutch { font-size: 31px; line-height: 1.15; }

  /* Override desktop: text-align:center, max-width:680px */
  .hero--graficki-v2 .hero__sub {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  /* Override desktop: transform:scale(0.85), margin:auto — 20% smaller */
  .hero--graficki-v2 .hero__badge {
    transform:        none;
    transform-origin: unset;
    margin-left:      0;
    margin-right:     0;
    margin-bottom:    24px;
    padding:          6.4px 14.4px;
    font-size:        calc(var(--fs-nav) * 0.96 * 0.8);
  }

  .hero--graficki-v2 .hero__badge-text  { font-size: calc(var(--fs-nav) * 0.96 * 0.8); }
  .hero--graficki-v2 .hero__badge-stars { font-size: 10.4px; }

  /* Filter tags — single wrapping row, natural break, 20% smaller */
  .port-filters {
    margin-top:     28px;
    flex-direction: row;
    flex-wrap:      wrap;
    align-items:    flex-start;
    gap:            8px;
  }

  .port-filters__row { display: contents; }

  .port-filter {
    font-size: calc(var(--fs-nav) * 0.96 * 1.15 * 0.8);
    padding:   7.4px 18.4px;
  }


  /* ══════════════════════════════════════════
     BENEFITI — exact copy from index mobile.css
     ══════════════════════════════════════════ */

  .section-benefiti {
    position: relative;
    z-index: 2;
    background: #ffffff;
    margin-top: -3px;
    padding-top: 20px;
    padding-bottom: 60px;
    box-shadow: 0 -1px 0 #ffffff;
  }

  .benefiti__heading { text-align: left; margin-bottom: 20px; }

  .benefiti__boxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(100% - 40px);
    margin: 36px auto 0;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }

  .bn-box {
    height: auto;
    min-height: 240px;
    padding: 28px;
    border-radius: 12px;
  }

  .bn-box--1 { order: 1; }
  .bn-box--2 { order: 2; }
  .bn-box--3 { order: 3; }
  .bn-box--4 { order: 4; }
  .bn-box--5 { order: 6; }
  .bn-box--6 { order: 5; }

  .bn-box__header {
    font-size: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  .bn-box__img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-height: 286px;
    width: auto;
    margin: 0;
  }

  .bn-box--5 {
    min-height: 250px;
    padding: 36px 28px;
  }

  .bn-box__pre,
  .bn-box__post { font-size: 12px; }


  /* ══════════════════════════════════════════
     PROBLEM → SOLUTION
     ══════════════════════════════════════════ */

  .section-gd5-probsol {
    padding: 64px 0;
    background: #f4f4f4;
  }

  .gd5-probsol__inner {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .gd5-probsol__head {
    margin-bottom: 28px;
    text-align: left;
  }

  .gd5-probsol__heading {
    font-size: var(--fs-h2-mont);
    line-height: 1.15;
    text-align: left;
  }

  .gd5-probsol__heading em {
    font-size: var(--fs-h2-dutch);
    line-height: 1.05;
  }

  .gd5-probsol__sub {
    max-width: 310px;
    text-align: left;
    line-height: 1.6;
  }

  .gd5-probsol__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .gd5-ps-row {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(0,0,0,0.06);
  }

  .gd5-ps-problem {
    position: relative;
    padding: 24px 22px 26px;
    background: #111111;
  }

  .gd5-ps-problem .gd5-ps-label {
    display: block;
    width: max-content;
    margin: 0 0 12px;
    padding: 5px 12px;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.12);
    border-radius: 5px;
    font-size: 11px;
    font-weight: var(--fw-medium);
    text-transform: none;
    letter-spacing: var(--ls-default);
  }

  .gd5-ps-problem p {
    max-width: 100%;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.28;
    max-width: 100%;
  }

  .gd5-ps-solution {
    position: relative;
  }

  .gd5-ps-solution__body {
    padding: 22px;
    background: #ffffff;
    border-radius: 0;
  }

  .gd5-ps-solution__body .gd5-ps-label {
    margin-bottom: 10px;
    color: #777777;
    background: #eeeeee;
  }

  .gd5-ps-name {
    display: block;
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.1;
  }

  .gd5-ps-solution__body p {
    font-size: 14px;
    line-height: 1.65;
    color: #5f5f5f;
  }

  .gd5-ps-tags {
    gap: 7px;
  }

  .gd5-ps-tag {
    padding: 6px 10px;
    background: #f1f1f1;
    border: 1px solid rgba(0,0,0,0.06);
    color: #222222;
  }

  .gd5-probsol__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 28px;
    padding: 22px;
    border-radius: 14px;
    background: #111111;
  }

  .gd5-probsol__footer p {
    color: rgba(255,255,255,0.62);
  }

  .gd5-probsol__cta {
    color: #ffffff;
  }


  /* ══════════════════════════════════════════
     WORKFLOW
     ══════════════════════════════════════════ */

  .section-gd2-workflow {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .gd2-workflow__inner {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .gd2-workflow__left {
    text-align: left;
    margin-bottom: 36px;
  }

  .gd2-workflow__left h2 {
    font-size: var(--fs-h2-mont);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .gd2-workflow__left h2 em {
    font-size: var(--fs-h2-dutch);
    line-height: 1.05;
  }

  .gd2-workflow__left p {
    font-size: 15px;
  }

  /* Remove sticky stacking — just flow normally */
  .gd2-step {
    position: static;
    margin-bottom: 12px;
    padding: 24px 20px;
  }

  .gd2-step:last-child { margin-bottom: 0; }

  .gd2-step__title { font-size: 18px; }
  .gd2-step__text  { font-size: 14px; }


  /* ══════════════════════════════════════════
     PORTFOLIO STRIP
     ══════════════════════════════════════════ */

  .section-mkt-portfolio {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .mkt-portfolio__head {
    width: calc(100% - 40px);
    margin: 0 auto 24px;
    justify-content: flex-start;
    text-align: left;
  }

  .mkt-portfolio__head h2 {
    text-align: left;
  }

  .mkt-portfolio__grid {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    margin: 0 auto;
    gap: 12px;
  }

  /* Fix aspect ratio on mobile */
  .mkt-portfolio__item {
    aspect-ratio: 4 / 3;
  }

  .mkt-portfolio__item--cta {
    aspect-ratio: unset;
    min-height: 200px;
    padding: 24px;
    gap: 16px;
  }

  .mkt-portfolio__cta-text {
    font-size: 18px;
  }

  .mkt-portfolio__cta-btn {
    width: auto;
  }


  /* ══════════════════════════════════════════
     PRICING CTA
     ══════════════════════════════════════════ */

  .section-mkt-pricing {
    padding-top: 0;
    padding-bottom: 60px;
  }

  .mkt-pricing__box {
    width:      100%;
    padding:    40px 20px;
    box-sizing: border-box;
    text-align: left;
  }

  .mkt-pricing__text h2 {
    font-size: var(--fs-h2-mont);
    line-height: 1.15;
    text-align: left;
  }

  .mkt-pricing__text h2 em {
    font-size: var(--fs-h2-dutch);
    line-height: 1.05;
  }

  .mkt-pricing__text p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .mkt-pricing__btns {
    flex-direction: column;
    margin-top: 24px;
    gap: 10px;
  }

  .mkt-pricing__btn-primary,
  .mkt-pricing__btn-ghost {
    width: 100%;
    justify-content: center;
  }


  /* ══════════════════════════════════════════
     FAQ
     ══════════════════════════════════════════ */

  .section-faq { padding-top: 60px; padding-bottom: 60px; }

  .faq__heading { margin-bottom: 36px; text-align: left; }
  .faq__question { gap: 16px; padding: 20px 0; }
  .faq__question-text  { font-size: 14px; }
  .faq__answer-inner   { max-width: 100%; font-size: 15px; }


  /* ══════════════════════════════════════════
     CTA
     ══════════════════════════════════════════ */

  .section-cta { padding-top: 80px; padding-bottom: 80px; }

  .cta__heading { margin-bottom: 20px; text-align: left; }
  .cta__heading-line { display: inline; }
  .cta__dimmed { display: inline; }

  .cta__sub { font-size: 15px; margin-bottom: 32px; text-align: left; }

  .cta__btn {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 14px;
  }


  /* ══════════════════════════════════════════
     FOOTER
     ══════════════════════════════════════════ */

  .site-footer { padding-top: 56px; }

  .footer__top { flex-direction: column; gap: 0; padding-bottom: 0; }
  .footer__logo { padding-bottom: 36px; }
  .footer__logo img { width: 56px; height: 56px; }

  .footer__nav { display: none; }
  .footer__mob-nav { display: block; width: 100%; border-top: 1px solid rgba(0,0,0,0.08); margin-bottom: 36px; }

  .footer__mob-link {
    display: block;
    font-family: var(--font-mont);
    font-size: 15px;
    font-weight: 400;
    color: #111111;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    letter-spacing: var(--ls-default);
  }

  .footer__mob-link--l2   { font-size: 14px; color: #444444; padding: 12px 0 12px 16px; border-bottom: none; }
  .footer__mob-link--deep { font-size: 13px; color: #666666; padding: 14px 0 14px 32px; border-bottom: none; }

  .footer__mob-group { border-bottom: 1px solid rgba(0,0,0,0.08); }

  .footer__mob-nav > .footer__mob-group:last-of-type { border-bottom: none; }

  .footer__mob-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font-family: var(--font-mont);
    font-size: 15px;
    font-weight: 400;
    color: #111111;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    letter-spacing: var(--ls-default);
  }

  .footer__mob-title--l2 { font-size: 14px; color: #444444; padding: 12px 0 12px 16px; }
  .footer__mob-title svg { width: 10px; height: 10px; flex-shrink: 0; transition: transform 0.3s ease; opacity: 0.5; }
  .footer__mob-group.is-open > .footer__mob-title svg { transform: rotate(180deg); }

  .footer__mob-sub { display: none; }
  .footer__mob-group.is-open > .footer__mob-sub { display: block; padding-bottom: 8px; }

  .footer__legal-links { flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; }
  .footer__legal-links a,
  .footer__legal-sep { font-size: 12px; }

  .footer__disclaimer { font-size: 12px; line-height: 1.55; }
  .footer__disclaimer br { display: none; }

  .footer__meta { gap: 4px; }
  .footer__meta p { font-size: 12px; }

  .footer__back-top { position: static; margin-top: 20px; }
  .footer__bottom { padding-bottom: 28px; }

  .footer__watermark      { font-size: 64px; }
  .footer__watermark-wrap { margin-top: 28px; }

}
/* Solid divider between Kompanija and Kontaktiraj nas in main mobile nav */
#mob-main .nav__mob-links > li:nth-last-child(2) .nav__mob-link {
  border-bottom-color: #ffffff;
}

