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

@media (max-width: 768px) {

  body { overflow-x: hidden; }

  :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 { 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__links, .nav__cta { display: none; }
  .nav__brand { display: none; }

  /* Light hero — burger bars dark */
  .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;
  }

  /* Logo white when nav open or scrolled (bg turns dark) */
  .nav-open .nav__logo img,
  .site-header--scrolled .nav__logo img { filter: brightness(0) invert(1); }

  .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: 120px 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 — brending (light bg)
     ══════════════════════════════════════════ */

  .hero--brending {
    height: auto;
    min-height: 100svh;
  }

  .hero--brending .hero__content {
    position: relative;
    top: auto; left: auto; transform: none;
    width: 100%;
    padding: 140px 20px 80px;
    box-sizing: border-box;
    display: block;
  }

  .hero--brending .hero__heading {
    margin-top: 20px;
    display: block;
    text-align: left;
    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; }

  .hero--brending .hero__sub {
    text-align: left;
    max-width: 100%;
    margin-left: 0; margin-right: 0;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  /* Port-filters — natural single wrapping row, 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;
  }

  /* Trust label + logo ticker */
  .hero__trust-label {
    margin-top: 28px;
    font-size: 12px;
    text-align: left;
  }
  .logo-ticker__wrap { margin-top: 16px; }


  /* ══════════════════════════════════════════
     HERO eyebrow / sub standardization
     ══════════════════════════════════════════ */

  .hero--brending .bh1 { font-size: 9px; letter-spacing: 0.08em; }


  /* ══════════════════════════════════════════
     FIX 1 — ACCORDION → static stacked cards
     Disable sticky scroll zone, dissolve flex strip,
     force every panel open with step-number badge
     in the top-left of a white card.
     ══════════════════════════════════════════ */

  .brending-acc__scroll-zone {
    position: static !important;
    height: auto !important;
    background: #f5f5f5;
  }

  .section-brending-acc {
    position: static !important;
    top: auto !important;
    height: auto !important;
    display: block !important;
    padding: 60px 0;
    overflow: visible !important;
  }

  .brending-acc__inner {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    max-width: 100%;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* Every panel becomes a stationary white card */
  .brending-acc__panel,
  .brending-acc__panel.is-active {
    flex: 1 1 auto !important;
    display: block !important;
    width: 100%;
    margin-right: 0 !important;
    padding: 44px 20px 24px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: visible;
    position: relative;
    transition: none !important;
  }

  /* Hide the dark image column — we use the number badge instead */
  .brending-acc__image {
    display: none !important;
  }

  /* Step number — top-left corner badge on the card */
  .brending-acc__num {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-block;
    font-family: var(--font-mont);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #111111;
    background: #f1f1f1;
    border-radius: 6px;
    padding: 5px 8px;
    line-height: 1;
    z-index: 2;
  }

  /* Content always visible regardless of JS .is-active toggling */
  .brending-acc__content,
  .brending-acc__panel.is-active .brending-acc__content {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent;
    padding: 0;
    transition: none !important;
  }

  .brending-acc__title {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #111111;
  }

  .brending-acc__text {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    max-width: 100%;
  }


  /* ══════════════════════════════════════════
     BENEFITI boxes
     ══════════════════════════════════════════ */

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

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

  .benefiti__boxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }

  .bn-box {
    width: 100%;
    min-height: 240px;
    padding: 28px 24px;
    border-radius: 12px;
    box-sizing: border-box;
  }

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

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

  .bn-box--5 { grid-column: auto; order: 6; }
  .bn-box--6 { order: 5; }


  /* ══════════════════════════════════════════
     FIX 2 — COMPARE: Option B stacked contrast cards
     "Bez identiteta" = light grey card with × icons.
     "S Likomotitvom"  = dark brand card with ✓ icons.
     Strong visual differentiation, readable typography.
     ══════════════════════════════════════════ */

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

  .brending-compare__head {
    padding: 0 20px 32px;
    text-align: left;
    margin-bottom: 0;
  }

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

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

  .brending-compare__head p {
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
    max-width: 100%;
    margin: 12px 0 0 0;
  }

  /* Stack columns vertically with strong gap */
  .brending-compare__table {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 28px 0 0 0;
    grid-template-columns: unset;
  }

  .brending-compare__col {
    width: 100%;
    padding: 28px 22px;
    border-radius: 14px;
    box-sizing: border-box;
  }

  /* BEFORE — light grey "Bez" card */
  .brending-compare__col--before {
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,0.05);
  }

  /* AFTER — strong dark contrast "Sa" card */
  .brending-compare__col--after {
    background: #111111;
    border: 1px solid #111111;
  }

  .brending-compare__col-label {
    display: block;
    margin: 0 0 18px 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.15;
  }

  .brending-compare__col--before .brending-compare__col-label { color: #888888; }
  .brending-compare__col--after  .brending-compare__col-label { color: #ffffff; }

  .brending-compare__item {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 14px;
    gap: 12px;
  }

  .brending-compare__item:last-child { margin-bottom: 0; }

  .brending-compare__item::before {
    width: 22px;
    height: 22px;
    margin-top: 0;
  }


  /* ══════════════════════════════════════════
     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 {
    font-size: var(--fs-p);
    line-height: 1.65;
    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;
  }


  /* ══════════════════════════════════════════
     FIX 3 — HERO left-align (defensive overrides)
     ══════════════════════════════════════════ */

  .hero__content,
  .hero__heading,
  .hero__heading-line,
  .hero__sub,
  .bh1 { text-align: left; }


  /* ══════════════════════════════════════════
     FIX 5 — FAQ: reset rogue left padding
     .container already provides the 20px gutter;
     ensure no extra inner left-padding from desktop.
     ══════════════════════════════════════════ */

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

  .section-faq .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-faq .faq__heading,
  .section-faq .faq__list,
  .section-faq .faq__item,
  .section-faq .faq__question {
    padding-left: 0;
    margin-left: 0;
  }

  .faq__heading { margin-bottom: 36px; text-align: left; }
  .faq__question { gap: 16px; padding: 20px 0; }
  .faq__question-text { font-size: 14px; }

  /* Desktop sets max-width: 80% which created the visual left-bias */
  .faq__answer-inner {
    max-width: 100%;
    font-size: 15px;
    padding-left: 0;
    margin-left: 0;
  }


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

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

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

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

  .cta__btn-wrap { text-align: left; }

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

}
/* 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;
}

