/* ============================================================
   MOBILE — shared footer styles
   Single source of truth for all pages' mobile footer.
   Breakpoint: ≤ 768px
   ============================================================ */

@media (max-width: 768px) {

  /* ══════════════════════════════════════════
     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 {
    flex-direction: column;
    flex-wrap: unset;
    gap: 0;
    flex: unset;
    width: 100%;
  }

  /* Hide desktop footer nav, show mobile one */
  .footer__nav { display: none; }
  .footer__mob-nav { display: block; width: 100%; border-top: 1px solid rgba(0,0,0,0.08); margin-bottom: 36px; }

  /* Direct links (Početna, Cijene, Portfolio) */
  .footer__mob-link {
    display: block;
    font-family: var(--font-mont);
    font-size: 15px;
    font-weight: 400;
    color: #111111;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    letter-spacing: var(--ls-default);
  }

  /* L2 links inside accordion */
  .footer__mob-link--l2 {
    font-size: 14px;
    color: #444444;
    padding: 12px 0 12px 16px;
    border-bottom: none;
  }

  /* L3 (deep) links */
  .footer__mob-link--deep {
    font-size: 13px;
    color: #666666;
    padding: 14px 0 14px 32px;
    border-bottom: none;
  }

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

  /* Accordion title button */
  .footer__mob-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 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);
  }

  /* Sub content — hidden by default */
  .footer__mob-sub {
    display: none;
  }

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

  /* Legal links wrap on small screens */
  .footer__legal-links {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 4px 8px;
    margin-bottom: 14px;
  }

  .footer__legal-row {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .footer__legal-sep--desktop {
    display: none;
  }

  .footer__legal-links a,
  .footer__legal-sep {
    font-size: 12px;
  }

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

  .footer__disclaimer .footer__desktop-break::after {
    content: ' ';
  }

  .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 {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    font-size: clamp(76px, 23vw, 118px);
    text-align: center;
  }

  .footer__watermark-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 28px;
  }

}
